X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Ftest-insets.lyx.lyx;h=0aa2ee886a1f7b0123823654388cd6fe725fa318;hb=5f359e27b06b3290707ae1fc327629a1e8339ff1;hp=9a80d4854e7d0031d6571d16acc27bcd1141a95b;hpb=8aa37c43a1e7bc6038322183c63aecdd2024ab59;p=lyx.git diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx index 9a80d4854e..0aa2ee886a 100644 --- a/src/tex2lyx/test/test-insets.lyx.lyx +++ b/src/tex2lyx/test/test-insets.lyx.lyx @@ -1,7 +1,9 @@ -#LyX file created by tex2lyx 2.2 -\lyxformat 481 +#LyX file created by tex2lyx 2.3 +\lyxformat 544 \begin_document \begin_header +\save_transient_properties true +\origin roundtrip \textclass article \begin_preamble @@ -21,16 +23,18 @@ \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_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 @@ -69,6 +73,7 @@ \suppress_date false \justification true \use_refstyle 0 +\use_minted 0 \index Index \shortcut idx \color #008000 @@ -85,7 +90,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 @@ -111,6 +119,10 @@ status collapsed %stupid stuff \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -177,6 +189,9 @@ name "lab:test" \begin_inset CommandInset ref LatexCommand ref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -201,6 +216,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 @@ -213,6 +231,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand eqref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -225,6 +246,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand vref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -237,6 +261,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand vpageref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -249,6 +276,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand formatted reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -261,6 +291,9 @@ reference "lab:test" \begin_inset CommandInset ref LatexCommand nameref reference "lab:test" +plural "false" +caps "false" +noprefix "false" \end_inset @@ -296,17 +329,7 @@ status collapsed \end_inset - will be parsed in ERT, since -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - - does not support refstyle and prettyref natively at the same time. + will be parsed in ERT, since LyX does not support refstyle and prettyref natively at the same time. \end_layout \begin_layout Section @@ -332,6 +355,7 @@ LatexCommand citep after "after" before "" key "article-crossref" +literal "true" \end_inset @@ -343,6 +367,7 @@ LatexCommand citep after "after" before "" key "whole-set,article-crossref" +literal "true" \end_inset @@ -362,6 +387,7 @@ LatexCommand citet after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -373,6 +399,7 @@ LatexCommand citet* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -384,6 +411,7 @@ LatexCommand Citet after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -395,6 +423,7 @@ LatexCommand Citet* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -410,6 +439,7 @@ LatexCommand citep after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -421,6 +451,7 @@ LatexCommand citep* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -432,6 +463,7 @@ LatexCommand Citep after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -443,6 +475,7 @@ LatexCommand Citep* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -458,6 +491,7 @@ LatexCommand citealt after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -469,6 +503,7 @@ LatexCommand citealt* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -480,6 +515,7 @@ LatexCommand Citealt after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -491,6 +527,7 @@ LatexCommand Citealt* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -506,6 +543,7 @@ LatexCommand citealp after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -517,6 +555,7 @@ LatexCommand citealp* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -528,6 +567,7 @@ LatexCommand Citep after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -539,6 +579,7 @@ LatexCommand Citealp* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -554,6 +595,7 @@ LatexCommand citeauthor after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -565,6 +607,7 @@ LatexCommand citeauthor* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -576,6 +619,7 @@ LatexCommand Citeauthor after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -587,6 +631,7 @@ LatexCommand Citeauthor* after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -602,6 +647,7 @@ LatexCommand citeyear after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -617,6 +663,7 @@ LatexCommand citeyearpar after "after" before "before" key "article-crossref" +literal "true" \end_inset @@ -631,6 +678,7 @@ nocite: LatexCommand nocite after "" key "article-crossref" +literal "true" \end_inset @@ -648,6 +696,10 @@ status collapsed bibliography since LaTeX throws an error. \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -660,6 +712,10 @@ status collapsed bibliographystyle{unsrt} \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -699,6 +755,7 @@ LatexCommand citet after "" before "" key "gur+04" +literal "true" \end_inset @@ -711,6 +768,7 @@ key "gur+04" LatexCommand bibitem label "Möstl et~al.(2010)" key "Mostl2010" +literal "true" \end_inset @@ -733,6 +791,7 @@ A. 2004, ApJ, 604, 632 LatexCommand bibitem label "{{Gürkan et~al.}(2004)}" key "gur+04" +literal "true" \end_inset @@ -928,6 +987,7 @@ LatexCommand nomenclature prefix "www" symbol "URL" description "uniform resource locator" +literal "true" \end_inset @@ -950,6 +1010,7 @@ http://www.lyx.org LatexCommand nomenclature symbol "URL2" description "uniform resource locator" +literal "true" \end_inset @@ -975,6 +1036,7 @@ link: \begin_inset CommandInset href LatexCommand href target "www.test.test" +literal "true" \end_inset @@ -986,6 +1048,7 @@ link2: \begin_inset CommandInset href LatexCommand href target "http://www.test.test" +literal "true" \end_inset @@ -999,6 +1062,7 @@ LatexCommand href name "name" target "www.test.test" type "mailto:" +literal "true" \end_inset @@ -1011,6 +1075,7 @@ file: LatexCommand href target "www.test.test" type "file:" +literal "true" \end_inset @@ -1022,6 +1087,7 @@ ftp: \begin_inset CommandInset href LatexCommand href target "ftp://www.test.test" +literal "true" \end_inset @@ -1034,6 +1100,7 @@ ftp2: LatexCommand href name "www.test.test" target "ftp://www.test.test" +literal "true" \end_inset @@ -1046,6 +1113,7 @@ parser test (stupid, but valid): LatexCommand href name "}" target "http://www.test.test" +literal "true" \end_inset @@ -1058,6 +1126,7 @@ parser test (escaped): LatexCommand href name "a brace } and another one { and something" target "http://www.test.test" +literal "true" \end_inset @@ -1436,7 +1505,7 @@ kill \begin_inset Caption Standard -\begin_layout Standard +\begin_layout Plain Layout \begin_inset Argument 1 status collapsed @@ -1518,7 +1587,7 @@ Second \begin_inset Caption Standard -\begin_layout Standard +\begin_layout Plain Layout \begin_inset Argument 1 status collapsed @@ -1592,9 +1661,9 @@ Second \begin_layout Standard -\begin_inset Caption LongTableNoNumber +\begin_inset Caption Unnumbered -\begin_layout Standard +\begin_layout Plain Layout standard foot \end_layout @@ -1637,9 +1706,9 @@ bottom. \begin_layout Standard -\begin_inset Caption LongTableNoNumber +\begin_inset Caption Unnumbered -\begin_layout Standard +\begin_layout Plain Layout (last foot) \end_layout @@ -3130,7 +3199,8 @@ row \begin_inset Quotes erd \end_inset - of the table can take up several lines. Note however that TeX + of the table can take up several lines. Note however that \SpecialChar TeX + \begin_inset space \space{} \end_inset @@ -3457,17 +3527,7 @@ like this. \end_layout \begin_layout Standard -From bug 7412 another example with more captions (can currently not produced in -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - -): +From bug 7412 another example with more captions (can currently not produced in LyX): \begin_inset Tabular @@ -3481,7 +3541,7 @@ LyX \begin_inset Caption Standard -\begin_layout Standard +\begin_layout Plain Layout A long table \end_layout @@ -3506,7 +3566,7 @@ A long table \begin_inset Caption Standard -\begin_layout Standard +\begin_layout Plain Layout A long table – continued \end_layout @@ -4419,6 +4479,10 @@ status collapsed % some comment \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -4487,7 +4551,7 @@ status open \begin_inset Caption Standard -\begin_layout Standard +\begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label @@ -5116,6 +5180,11 @@ width "" special "none" height "1in" height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" status open @@ -5146,6 +5215,11 @@ width "" special "none" height "1in" height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" status open @@ -5176,6 +5250,11 @@ width "" special "none" height "1in" height_special "totalheight" +thickness "0.4pt" +separation "3pt" +shadowsize "4pt" +framecolor "black" +backgroundcolor "none" status open @@ -5319,22 +5398,317 @@ Some tables need more than one footnote. \end_layout -\begin_layout Section -Macros +\begin_layout Standard +A table using decimal alignment: \end_layout \begin_layout Standard -\begin_inset ERT -status collapsed +\begin_inset Float table +wide false +sideways false +status open -\begin_layout Plain Layout -LyX + +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Four +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +Five +\end_layout + +\end_inset + + +\begin_inset Text + +\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 + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +four +\end_layout + +\end_inset + + +\begin_inset Text + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +five +\end_layout + +\end_inset + + +\begin_inset Text + +\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 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +77234 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +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 \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 +\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 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +86 +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Standard +37 +\end_layout - supports several kinds of macros: def +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Macros +\end_layout + +\begin_layout Standard +LyX supports several kinds of macros: def \begin_inset FormulaMacro \def\macroa #1{a #1 a} \end_inset @@ -5904,17 +6278,7 @@ Special formattings \end_layout \begin_layout Subsection - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - - line +LyX line \end_layout \begin_layout Standard @@ -6004,7 +6368,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 @@ -6102,7 +6489,7 @@ ow \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout Wow \end_layout @@ -6170,16 +6557,16 @@ TIPA e̥ e̊ e̬ e̤ ḛ e̼ e̪ e̺ e̻ e \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout h \end_layout \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 Standard +\begin_layout Plain Layout w \end_layout @@ -6188,7 +6575,7 @@ w e \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout j \end_layout @@ -6197,7 +6584,7 @@ j e \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout ɣ \end_layout @@ -6206,7 +6593,7 @@ j e \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout ʕ \end_layout @@ -6215,7 +6602,7 @@ j e̴ e̝ e̞ e̘ e̙ ẽ e \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout n \end_layout @@ -6224,7 +6611,7 @@ n e \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout l \end_layout @@ -6581,6 +6968,14 @@ TIPA code in math: \end_layout +\begin_layout Subsection +Other symbols +\end_layout + +\begin_layout Standard +All three should be converted to U+00C5: Å Å Å (not U+212B). All three should be converted to U+00E5: å å å. +\end_layout + \begin_layout Subsection Line breaks \begin_inset Index breaks @@ -6652,17 +7047,7 @@ linebreak[4] \end_layout \begin_layout Standard -There are even newlines with weird arguments, but these are not handled by -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - - +There are even newlines with weird arguments, but these are not handled by LyX \begin_inset ERT status collapsed @@ -6734,37 +7119,17 @@ Special characters \begin_layout Standard Then one has those macros with a long name for a short meaning, like ~, ^ or \backslash -, \SpecialChar \slash{} -, \SpecialChar \nobreakdash- - and the characters that -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LaTeX -\end_layout - -\end_inset - - wants to espace because they are active, like _&#${}%. +, \SpecialChar breakableslash +, \SpecialChar nobreakdash + and the characters that LaTeX wants to espace because they are active, like _&#${}%. \end_layout \begin_layout Standard -And what about special characters like hyphe\SpecialChar \- -nation mark, ellipsis\SpecialChar \ldots{} -, and end-of-sentence\SpecialChar \@. - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - - also supports a menu separator\SpecialChar \menuseparator -and a spif\SpecialChar \textcompwordmark{} +And what about special characters like hyphe\SpecialChar softhyphen +nation mark, ellipsis\SpecialChar ldots +, and end-of-sentence\SpecialChar endofsentence + LyX also supports a menu separator\SpecialChar menuseparator +and a spif\SpecialChar ligaturebreak fy ligature break. \end_layout @@ -6833,87 +7198,11 @@ status collapsed \end_layout \begin_layout Standard - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - - translates the phrases -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - -, -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -TeX -\end_layout - -\end_inset - -, -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LaTeX -\end_layout - -\end_inset - -2e and -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LaTeX -\end_layout - -\end_inset - - to the commands LyX, TeX, LaTeX2e and LaTeX. If these phrases occur as part of other words (like 1 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LyX -\end_layout - -\end_inset - - or a -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -TeX -\end_layout - -\end_inset - - or -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -LaTeX -\end_layout - -\end_inset - -3) they should not be put into ERT. +LyX translates the phrases LyX, TeX, LaTeX2e and LaTeX to the commands \SpecialChar LyX +, \SpecialChar TeX +, \SpecialChar LaTeX2e + and \SpecialChar LaTeX +. If these phrases occur as part of other words (like 1LyX or aTeX or LaTeX3) they should not be put into ERT. \end_layout \begin_layout Standard @@ -6993,6 +7282,10 @@ status collapsed % and another \end_layout +\begin_layout Plain Layout + +\end_layout + \end_inset @@ -7012,7 +7305,7 @@ status collapsed A sub \begin_inset script subscript -\begin_layout Standard +\begin_layout Plain Layout sc \emph on ript @@ -7025,7 +7318,7 @@ ript and super \begin_inset script superscript -\begin_layout Standard +\begin_layout Plain Layout script with \begin_inset Formula $a^2+b^2=c^2$ \end_inset @@ -7072,6 +7365,19 @@ $ . \end_layout +\begin_layout Standard + +\begin_inset Formula \[ +\begin{array}{rclccc} +1 + 2 & = & 3 +\multicolumn{3}{c}{4 < 5 \leq 6 } +\end{array} +\] +\end_inset + + +\end_layout + \begin_layout Section Lists/Indices \end_layout @@ -7202,6 +7508,7 @@ undefined index: \begin_inset CommandInset index_print LatexCommand printindex type "idx" +literal "true" \end_inset @@ -7217,6 +7524,7 @@ index "idx": \begin_inset CommandInset index_print LatexCommand printindex type "idx" +literal "true" \end_inset @@ -7232,6 +7540,7 @@ index "new": \begin_inset CommandInset index_print LatexCommand printindex type "new" +literal "true" \end_inset @@ -7247,6 +7556,7 @@ subindex "new": \begin_inset CommandInset index_print LatexCommand printsubindex type "idx" +literal "true" \end_inset