X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Ftest-insets.lyx.lyx;h=871a22827d7ba2b30cde383adfe31970453dc607;hb=b5722962fb0393299e02df0b146522770e98aef6;hp=89ebe8ae8a6cc6c9b0c45a2d2d8cc954617afed6;hpb=cc6c86ff3b7d10bc6a0ea286020f63a75fef9608;p=lyx.git diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx index 89ebe8ae8a..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 502 +#LyX file created by tex2lyx 2.4 +\lyxformat 589 \begin_document \begin_header +\save_transient_properties true \origin roundtrip \textclass article \begin_preamble @@ -29,9 +30,13 @@ \font_default_family default \use_non_tex_fonts false \font_sc false -\font_osf false +\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 @@ -760,6 +831,7 @@ We can input files too, like this LatexCommand input preview false filename "DummyDocument.lyx.lyx" +literal "false" \end_inset @@ -768,6 +840,7 @@ filename "DummyDocument.lyx.lyx" LatexCommand include preview false filename "Dummy Document.tex" +literal "false" \end_inset @@ -776,6 +849,7 @@ filename "Dummy Document.tex" LatexCommand include preview false filename "Dummy Document.tex" +literal "false" \end_inset @@ -784,6 +858,7 @@ filename "Dummy Document.tex" LatexCommand include preview false filename "Dummy~Document.lyx.lyx" +literal "false" \end_inset @@ -792,6 +867,7 @@ filename "Dummy~Document.lyx.lyx" LatexCommand include preview false filename "Dummy~Document.lyx.lyx" +literal "false" \end_inset @@ -800,6 +876,7 @@ filename "Dummy~Document.lyx.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 @@ -883,6 +960,7 @@ If you prefer verbatim input, you can choose between LatexCommand verbatiminput preview false filename "foo" +literal "false" \end_inset @@ -896,6 +974,7 @@ filename "foo" LatexCommand verbatiminput* preview false 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) @@ -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 - + @@ -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 - + @@ -5331,16 +5360,13 @@ status open \begin_layout Standard \begin_inset Tabular - - + + - - - - - - + + + \begin_inset Text @@ -5360,7 +5386,7 @@ Two \end_inset - + \begin_inset Text \begin_layout Standard @@ -5369,12 +5395,7 @@ Three \end_inset - -\begin_inset Text - -\end_inset - - + \begin_inset Text \begin_layout Standard @@ -5383,23 +5404,13 @@ Four \end_inset - -\begin_inset Text - -\end_inset - - + \begin_inset Text \begin_layout Standard Five \end_layout -\end_inset - - -\begin_inset Text - \end_inset @@ -5422,7 +5433,7 @@ two \end_inset - + \begin_inset Text \begin_layout Standard @@ -5431,12 +5442,7 @@ three \end_inset - -\begin_inset Text - -\end_inset - - + \begin_inset Text \begin_layout Standard @@ -5445,23 +5451,13 @@ four \end_inset - -\begin_inset Text - -\end_inset - - + \begin_inset Text \begin_layout Standard five \end_layout -\end_inset - - -\begin_inset Text - \end_inset @@ -5484,52 +5480,29 @@ He \end_inset - + \begin_inset Text \begin_layout Standard -2 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard -77234 +2.77234 \end_layout \end_inset - + \begin_inset Text \begin_layout Standard -45672 +45672. \end_layout \end_inset - -\begin_inset Text - -\end_inset - - + \begin_inset Text \begin_layout Standard -0 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard -69 +0.69 \end_layout \end_inset @@ -5554,56 +5527,29 @@ C \end_inset - -\begin_inset Text - -\begin_layout Standard -12537 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard -64 -\end_layout - -\end_inset - - -\begin_inset Text - -\begin_layout Standard -37 -\end_layout - -\end_inset - - + \begin_inset Text \begin_layout Standard -66345 +12537.64 \end_layout \end_inset - + \begin_inset Text \begin_layout Standard -86 +37.66345 \end_layout \end_inset - + \begin_inset Text \begin_layout Standard -37 +86.37 \end_layout \end_inset @@ -6832,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 @@ -6886,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 @@ -7192,6 +7180,10 @@ status collapsed % and another \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -7414,6 +7406,7 @@ undefined index: \begin_inset CommandInset index_print LatexCommand printindex type "idx" +literal "true" \end_inset @@ -7421,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 @@ -7429,6 +7442,7 @@ index "idx": \begin_inset CommandInset index_print LatexCommand printindex type "idx" +literal "true" \end_inset @@ -7436,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 @@ -7444,6 +7478,7 @@ index "new": \begin_inset CommandInset index_print LatexCommand printindex type "new" +literal "true" \end_inset @@ -7451,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 @@ -7459,6 +7514,7 @@ subindex "new": \begin_inset CommandInset index_print LatexCommand printsubindex type "idx" +literal "true" \end_inset