X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Ftest-insets.lyx.lyx;h=871a22827d7ba2b30cde383adfe31970453dc607;hb=b5722962fb0393299e02df0b146522770e98aef6;hp=ccb0321e23ea49a827ba60c3a1dca854cc886a88;hpb=410918400c31d78174d1baf3101b9d2026d75e38;p=lyx.git diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx index ccb0321e23..871a22827d 100644 --- a/src/tex2lyx/test/test-insets.lyx.lyx +++ b/src/tex2lyx/test/test-insets.lyx.lyx @@ -1,7 +1,8 @@ -#LyX file created by tex2lyx 2.2 -\lyxformat 495 +#LyX file created by tex2lyx 2.4 +\lyxformat 589 \begin_document \begin_header +\save_transient_properties true \origin roundtrip \textclass article \begin_preamble @@ -22,16 +23,20 @@ \language_package none \inputencoding iso8859-15 \fontencoding T1 -\font_roman default -\font_sans default -\font_typewriter default -\font_math auto +\font_roman "default" "default" +\font_sans "default" "default" +\font_typewriter "default" "default" +\font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false -\font_osf false -\font_sf_scale 100 -\font_tt_scale 100 +\font_roman_osf false +\font_sans_osf false +\font_typewriter_osf false +\font_sf_scale 100 100 +\font_tt_scale 100 100 +\use_microtype false +\use_dash_ligatures true \graphics default \default_output_format default \output_sync 0 @@ -49,7 +54,7 @@ \pdf_colorlinks 0 \pdf_backref section \pdf_pdfusetitle 0 -\papersize a4paper +\papersize a4 \use_geometry false \use_package amsmath 2 \use_package amssymb 2 @@ -70,6 +75,8 @@ \suppress_date false \justification true \use_refstyle 0 +\use_minted 0 +\use_lineno false \index Index \shortcut idx \color #008000 @@ -86,7 +93,10 @@ \tocdepth 3 \paragraph_separation indent \paragraph_indentation 3mm -\quotes_language english +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default @@ -112,6 +122,10 @@ status collapsed %stupid stuff \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -178,6 +192,9 @@ name "lab:test" \begin_inset CommandInset ref LatexCommand ref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -202,6 +219,9 @@ Of course there are other kind of references, like page reference \begin_inset CommandInset ref LatexCommand pageref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -214,6 +234,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand eqref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -226,6 +249,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand vref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -238,6 +264,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand vpageref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -250,6 +279,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand formatted reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -262,6 +294,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand nameref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -323,6 +358,7 @@ LatexCommand citep after "after" before "" key "article-crossref" +literal "false" \end_inset @@ -334,6 +370,7 @@ LatexCommand citep after "after" before "" key "whole-set,article-crossref" +literal "false" \end_inset @@ -353,6 +390,7 @@ LatexCommand citet after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -364,6 +402,7 @@ LatexCommand citet* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -375,6 +414,7 @@ LatexCommand Citet after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -386,6 +426,7 @@ LatexCommand Citet* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -401,6 +442,7 @@ LatexCommand citep after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -412,6 +454,7 @@ LatexCommand citep* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -423,6 +466,7 @@ LatexCommand Citep after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -434,6 +478,7 @@ LatexCommand Citep* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -449,6 +494,7 @@ LatexCommand citealt after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -460,6 +506,7 @@ LatexCommand citealt* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -471,6 +518,7 @@ LatexCommand Citealt after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -482,6 +530,7 @@ LatexCommand Citealt* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -497,6 +546,7 @@ LatexCommand citealp after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -508,6 +558,7 @@ LatexCommand citealp* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -519,6 +570,7 @@ LatexCommand Citep after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -530,6 +582,7 @@ LatexCommand Citealp* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -545,6 +598,7 @@ LatexCommand citeauthor after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -556,6 +610,7 @@ LatexCommand citeauthor* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -567,6 +622,7 @@ LatexCommand Citeauthor after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -578,6 +634,7 @@ LatexCommand Citeauthor* after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -593,6 +650,7 @@ LatexCommand citeyear after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -608,6 +666,7 @@ LatexCommand citeyearpar after "after" before "before" key "article-crossref" +literal "false" \end_inset @@ -622,6 +681,7 @@ nocite: LatexCommand nocite after "" key "article-crossref" +literal "false" \end_inset @@ -639,6 +699,10 @@ status collapsed bibliography since LaTeX throws an error. \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -651,6 +715,10 @@ status collapsed bibliographystyle{unsrt} \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -690,6 +758,7 @@ LatexCommand citet after "" before "" key "gur+04" +literal "false" \end_inset @@ -702,6 +771,7 @@ key "gur+04" LatexCommand bibitem label "Möstl et~al.(2010)" key "Mostl2010" +literal "false" \end_inset @@ -724,6 +794,7 @@ A. 2004, ApJ, 604, 632 LatexCommand bibitem label "{{Gürkan et~al.}(2004)}" key "gur+04" +literal "false" \end_inset @@ -759,7 +830,8 @@ We can input files too, like this \begin_inset CommandInset include LatexCommand input preview false -filename "DummyDocument.lyx" +filename "DummyDocument.lyx.lyx" +literal "false" \end_inset @@ -767,7 +839,8 @@ filename "DummyDocument.lyx" \begin_inset CommandInset include LatexCommand include preview false -filename "Dummy Document.lyx" +filename "Dummy Document.tex" +literal "false" \end_inset @@ -775,7 +848,8 @@ filename "Dummy Document.lyx" \begin_inset CommandInset include LatexCommand include preview false -filename "Dummy Document.lyx" +filename "Dummy Document.tex" +literal "false" \end_inset @@ -783,7 +857,8 @@ filename "Dummy Document.lyx" \begin_inset CommandInset include LatexCommand include preview false -filename "Dummy~Document.lyx" +filename "Dummy~Document.lyx.lyx" +literal "false" \end_inset @@ -791,7 +866,8 @@ filename "Dummy~Document.lyx" \begin_inset CommandInset include LatexCommand include preview false -filename "Dummy~Document.lyx" +filename "Dummy~Document.lyx.lyx" +literal "false" \end_inset @@ -800,6 +876,7 @@ filename "Dummy~Document.lyx" LatexCommand include preview false filename "Dummy\"Document.tex" +literal "false" \end_inset @@ -814,7 +891,7 @@ We can also import chess diagrams: \begin_inset External template ChessDiagram - filename ../../../lib/examples/iecc05.fen + filename ../../../lib/examples/Graphics_and_Insets/iecc05.fen \end_inset @@ -829,7 +906,7 @@ Spreadsheets: \begin_inset External template GnumericSpreadsheet - filename ../../../lib/examples/longsheet.gnumeric + filename ../../../lib/examples/External_Material/longsheet.gnumeric \end_inset @@ -859,7 +936,7 @@ and PDF pages: \begin_inset External template PDFPages - filename ../../../lib/examples/beamer-icsi-logo.pdf + filename ../../../lib/examples/Presentations/beamer-icsi-logo.pdf extra LaTeX "pages=-" rotateAngle 22 rotateOrigin baselineleft @@ -882,7 +959,8 @@ If you prefer verbatim input, you can choose between \begin_inset CommandInset include LatexCommand verbatiminput preview false -filename "DummyDocument.tex" +filename "foo" +literal "false" \end_inset @@ -895,7 +973,8 @@ filename "DummyDocument.tex" \begin_inset CommandInset include LatexCommand verbatiminput* preview false -filename "DummyDocument.tex" +filename "foo" +literal "false" \end_inset @@ -919,6 +998,7 @@ LatexCommand nomenclature prefix "www" symbol "URL" description "uniform resource locator" +literal "false" \end_inset @@ -927,7 +1007,7 @@ description "uniform resource locator" \begin_layout Standard An URL: -\begin_inset Flex Flex:URL +\begin_inset Flex URL status collapsed \begin_layout Plain Layout @@ -941,6 +1021,7 @@ http://www.lyx.org LatexCommand nomenclature symbol "URL2" description "uniform resource locator" +literal "false" \end_inset @@ -949,7 +1030,7 @@ description "uniform resource locator" \begin_layout Standard An URL with strange characters: -\begin_inset Flex Flex:URL +\begin_inset Flex URL status collapsed \begin_layout Plain Layout @@ -966,6 +1047,7 @@ link: \begin_inset CommandInset href LatexCommand href target "www.test.test" +literal "false" \end_inset @@ -977,6 +1059,7 @@ link2: \begin_inset CommandInset href LatexCommand href target "http://www.test.test" +literal "false" \end_inset @@ -990,6 +1073,7 @@ LatexCommand href name "name" target "www.test.test" type "mailto:" +literal "false" \end_inset @@ -1002,6 +1086,7 @@ file: LatexCommand href target "www.test.test" type "file:" +literal "false" \end_inset @@ -1013,6 +1098,7 @@ ftp: \begin_inset CommandInset href LatexCommand href target "ftp://www.test.test" +literal "false" \end_inset @@ -1025,6 +1111,7 @@ ftp2: LatexCommand href name "www.test.test" target "ftp://www.test.test" +literal "false" \end_inset @@ -1037,6 +1124,7 @@ parser test (stupid, but valid): LatexCommand href name "}" target "http://www.test.test" +literal "false" \end_inset @@ -1049,6 +1137,7 @@ parser test (escaped): LatexCommand href name "a brace } and another one { and something" target "http://www.test.test" +literal "false" \end_inset @@ -1092,7 +1181,7 @@ Inline: \begin_inset listings lstparams "language={C++},keywordstyle={\color{green}}" inline true -status collapsed +status open \begin_layout Plain Layout int a=5; @@ -1112,7 +1201,7 @@ int a=5; \begin_inset listings lstparams "caption={Example Listing float},label={lst:Example-Listing},language=Python" inline false -status collapsed +status open \begin_layout Plain Layout # Example listing float @@ -1196,7 +1285,7 @@ symbol \begin_inset listings lstparams "extendedchars=true,firstline=3,language=Python,lastline=8,numbers=left,showspaces=true,stepnumber=3" inline false -status collapsed +status open \begin_layout Plain Layout def func(param): @@ -1244,7 +1333,7 @@ Special cases: \begin_inset listings lstparams "abovecaptionskip=2em,basicstyle={\large\ttfamily},breaklines=true,extendedchars=true,firstline=2,float=h,language={[R/3 3.1]ABAP},lastline=5,numbers=left,numberstyle={\scriptsize},showspaces=true,showstringspaces=false,stepnumber=3,tabsize=4" inline false -status collapsed +status open \begin_layout Plain Layout hello @@ -1260,7 +1349,7 @@ hello \begin_inset listings lstparams "language=TeX" inline true -status collapsed +status open \begin_layout Plain Layout @@ -1298,9 +1387,9 @@ There is also some basic support for graphics, in the form \begin_inset Graphics filename foo.eps width 1cm - height 1cm clip BoundingBox 10bp 0bp 96bp 96bp + special height=1cm \end_inset @@ -1395,7 +1484,7 @@ clearpage} \begin_inset Tabular - + @@ -1583,7 +1672,7 @@ Second \begin_layout Standard -\begin_inset Caption LongTableNoNumber +\begin_inset Caption Unnumbered \begin_layout Plain Layout standard foot @@ -1628,7 +1717,7 @@ bottom. \begin_layout Standard -\begin_inset Caption LongTableNoNumber +\begin_inset Caption Unnumbered \begin_layout Plain Layout (last foot) @@ -3100,12 +3189,12 @@ status collapsed \begin_layout Plain Layout \backslash -raggedleft +raggedleft \end_layout \end_inset -This last column is a + This last column is a \begin_inset Quotes eld \end_inset @@ -3452,7 +3541,7 @@ like this. From bug 7412 another example with more captions (can currently not produced in LyX): \begin_inset Tabular - + @@ -4401,12 +4490,16 @@ status collapsed % some comment \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset \begin_inset Tabular - + @@ -4493,7 +4586,7 @@ status collapsed \begin_layout Plain Layout \backslash -centering +centering \end_layout \end_inset @@ -4511,7 +4604,7 @@ status collapsed \begin_inset Tabular - + @@ -4561,75 +4654,11 @@ Chip - + \begin_inset Text \begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -\backslash -cmidrule -\end_layout - -\end_inset - -(r) -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -{ -\end_layout - -\end_inset - -2-2 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -\backslash -cmidrule -\end_layout - -\end_inset - -(l) -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -{ -\end_layout - -\end_inset - -3-4 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} -\end_layout - -\end_inset - - \begin_inset ERT status collapsed @@ -4678,7 +4707,7 @@ Detector thickness in µm \end_inset - + \begin_inset Text \begin_layout Standard @@ -4687,7 +4716,7 @@ Detector thickness in µm \end_inset - + \begin_inset Text \begin_layout Standard @@ -4696,7 +4725,7 @@ Detector thickness in µm \end_inset - + \begin_inset Text \begin_layout Standard @@ -4998,7 +5027,7 @@ status open \begin_inset Tabular - + @@ -5314,6 +5343,228 @@ Some tables need more than one footnote. \end_inset +\end_layout + +\begin_layout Standard +A table using decimal alignment: +\end_layout + +\begin_layout Standard + +\begin_inset Float table +wide false +sideways false +status open + + +\begin_layout Standard + +\begin_inset Tabular + + + + + + + + + +\begin_inset Text + +\begin_layout Standard +One +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Two +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Three +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Four +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Five +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +one +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +two +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +three +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +four +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +five +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +He +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +2 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +2.77234 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +45672. +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +0.69 +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Standard +C +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +C +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +12537.64 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +37.66345 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +86.37 +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + \end_layout \begin_layout Section @@ -5981,7 +6232,30 @@ height "1pt" \end_layout \begin_layout Subsection -rules +Rules +\end_layout + +\begin_layout Standard +test +\end_layout + +\begin_layout Standard + +\size tiny + +\begin_inset CommandInset line +LatexCommand rule +offset "0.5ex" +width "100line%" +height "1pt" + +\end_inset + + +\size default + +\size tiny + \end_layout \begin_layout Standard @@ -6153,7 +6427,7 @@ h \end_inset - e̹ e̜ e̟ e̠ e̠ ë e̽ e̩ e̩ e̯ e˞e + e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞e \begin_inset script superscript \begin_layout Plain Layout @@ -6504,22 +6778,12 @@ tz \begin_inset IPA \begin_layout Standard -:;eˈˌ|‖.͡* -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -{ -\end_layout - -\end_inset +:;eˈˌ|‖. +\begin_inset IPADeco bottomtiebar +status open +\begin_layout Standard -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -} \end_layout \end_inset @@ -6558,6 +6822,58 @@ TIPA code in math: \end_layout +\begin_layout Subsection +Other symbols +\end_layout + +\begin_layout Standard +All three should be converted to U+00C5: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +AA +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + + Å Å (not U+212B). All three should be converted to U+00E5: +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +\backslash +aa +\end_layout + +\end_inset + + +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +{} +\end_layout + +\end_inset + + å å. +\end_layout + \begin_layout Subsection Line breaks \begin_inset Index breaks @@ -6864,6 +7180,10 @@ status collapsed % and another \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -7086,6 +7406,7 @@ undefined index: \begin_inset CommandInset index_print LatexCommand printindex type "idx" +literal "true" \end_inset @@ -7093,7 +7414,27 @@ type "idx" \end_layout \begin_layout Standard -index "idx": +index +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +" +\end_layout + +\end_inset + +idx +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +" +\end_layout + +\end_inset + +: \end_layout \begin_layout Standard @@ -7101,6 +7442,7 @@ index "idx": \begin_inset CommandInset index_print LatexCommand printindex type "idx" +literal "true" \end_inset @@ -7108,7 +7450,27 @@ type "idx" \end_layout \begin_layout Standard -index "new": +index +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +" +\end_layout + +\end_inset + +new +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +" +\end_layout + +\end_inset + +: \end_layout \begin_layout Standard @@ -7116,6 +7478,7 @@ index "new": \begin_inset CommandInset index_print LatexCommand printindex type "new" +literal "true" \end_inset @@ -7123,7 +7486,27 @@ type "new" \end_layout \begin_layout Standard -subindex "new": +subindex +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +" +\end_layout + +\end_inset + +new +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout +" +\end_layout + +\end_inset + +: \end_layout \begin_layout Standard @@ -7131,6 +7514,7 @@ subindex "new": \begin_inset CommandInset index_print LatexCommand printsubindex type "idx" +literal "true" \end_inset