]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-insets.lyx.lyx
Small update of TODO
[lyx.git] / src / tex2lyx / test / test-insets.lyx.lyx
index 01e557609387b8c43bb48d3bb4cc0991985577f2..0aa2ee886a1f7b0123823654388cd6fe725fa318 100644 (file)
@@ -1,34 +1,11 @@
-#LyX file created by tex2lyx 2.2
-\lyxformat 495
+#LyX file created by tex2lyx 2.3
+\lyxformat 544
 \begin_document
 \begin_header
-\origin D:/LyXGit/Master/src/tex2lyx/test/
+\save_transient_properties true
+\origin roundtrip
 \textclass article
 \begin_preamble
-%% Do not edit unless you really know what you are doing.
-
-
-
-
-
-\usepackage{url}
-% the following is useful when we have the old nomencl.sty package
-\providecommand{\printnomenclature}{\printglossary}
-\providecommand{\makenomenclature}{\makeglossary}
-\makenomenclature
-\usepackage{xargs}
-\usepackage{listings}
-
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
-\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
-\newcommand{\lyxline}[1][1pt]{%
-  \par\noindent%
-  \rule[.5ex]{\linewidth}{#1}\par}
-
-\newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
 
 % Load refstyle before prettyref so that prettyref wins.
 % The real refstyle tests are in test-refstyle-theorems.tex.
 \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
@@ -94,6 +73,7 @@
 \suppress_date false
 \justification true
 \use_refstyle 0
+\use_minted 0
 \index Index
 \shortcut idx
 \color #008000
 \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
 Title
 \end_layout
 
-\begin_layout Date
-two days ago
-\end_layout
-
 \begin_layout Standard
 
 \begin_inset ERT
@@ -140,11 +119,19 @@ status collapsed
 %stupid stuff
 \end_layout
 
+\begin_layout Plain Layout
+
+\end_layout
+
 \end_inset
 
 
 \end_layout
 
+\begin_layout Date
+two days ago
+\end_layout
+
 \begin_layout Standard
 
 \begin_inset CommandInset toc
@@ -202,6 +189,9 @@ name "lab:test"
 \begin_inset CommandInset ref
 LatexCommand ref
 reference "lab:test"
+plural "false"
+caps "false"
+noprefix "false"
 
 \end_inset
 
@@ -226,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
 
@@ -238,6 +231,9 @@ reference "lab:test"
 \begin_inset CommandInset ref
 LatexCommand eqref
 reference "lab:test"
+plural "false"
+caps "false"
+noprefix "false"
 
 \end_inset
 
@@ -250,6 +246,9 @@ reference "lab:test"
 \begin_inset CommandInset ref
 LatexCommand vref
 reference "lab:test"
+plural "false"
+caps "false"
+noprefix "false"
 
 \end_inset
 
@@ -262,6 +261,9 @@ reference "lab:test"
 \begin_inset CommandInset ref
 LatexCommand vpageref
 reference "lab:test"
+plural "false"
+caps "false"
+noprefix "false"
 
 \end_inset
 
@@ -274,6 +276,9 @@ reference "lab:test"
 \begin_inset CommandInset ref
 LatexCommand formatted
 reference "lab:test"
+plural "false"
+caps "false"
+noprefix "false"
 
 \end_inset
 
@@ -286,6 +291,9 @@ reference "lab:test"
 \begin_inset CommandInset ref
 LatexCommand nameref
 reference "lab:test"
+plural "false"
+caps "false"
+noprefix "false"
 
 \end_inset
 
@@ -347,6 +355,7 @@ LatexCommand citep
 after "after"
 before ""
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -358,6 +367,7 @@ LatexCommand citep
 after "after"
 before ""
 key "whole-set,article-crossref"
+literal "true"
 
 \end_inset
 
@@ -377,6 +387,7 @@ LatexCommand citet
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -388,6 +399,7 @@ LatexCommand citet*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -399,6 +411,7 @@ LatexCommand Citet
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -410,6 +423,7 @@ LatexCommand Citet*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -425,6 +439,7 @@ LatexCommand citep
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -436,6 +451,7 @@ LatexCommand citep*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -447,6 +463,7 @@ LatexCommand Citep
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -458,6 +475,7 @@ LatexCommand Citep*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -473,6 +491,7 @@ LatexCommand citealt
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -484,6 +503,7 @@ LatexCommand citealt*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -495,6 +515,7 @@ LatexCommand Citealt
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -506,6 +527,7 @@ LatexCommand Citealt*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -521,6 +543,7 @@ LatexCommand citealp
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -532,6 +555,7 @@ LatexCommand citealp*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -543,6 +567,7 @@ LatexCommand Citep
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -554,6 +579,7 @@ LatexCommand Citealp*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -569,6 +595,7 @@ LatexCommand citeauthor
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -580,6 +607,7 @@ LatexCommand citeauthor*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -591,6 +619,7 @@ LatexCommand Citeauthor
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -602,6 +631,7 @@ LatexCommand Citeauthor*
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -617,6 +647,7 @@ LatexCommand citeyear
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -632,6 +663,7 @@ LatexCommand citeyearpar
 after "after"
 before "before"
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -646,6 +678,7 @@ nocite:
 LatexCommand nocite
 after ""
 key "article-crossref"
+literal "true"
 
 \end_inset
 
@@ -663,6 +696,10 @@ status collapsed
 bibliography since LaTeX throws an error.
 \end_layout
 
+\begin_layout Plain Layout
+
+\end_layout
+
 \end_inset
 
 
@@ -675,6 +712,10 @@ status collapsed
 bibliographystyle{unsrt}
 \end_layout
 
+\begin_layout Plain Layout
+
+\end_layout
+
 \end_inset
 
 
@@ -714,6 +755,7 @@ LatexCommand citet
 after ""
 before ""
 key "gur+04"
+literal "true"
 
 \end_inset
 
@@ -726,6 +768,7 @@ key "gur+04"
 LatexCommand bibitem
 label "Möstl et~al.(2010)"
 key "Mostl2010"
+literal "true"
 
 \end_inset
 
@@ -748,6 +791,7 @@ A. 2004, ApJ, 604, 632
 LatexCommand bibitem
 label "{{Gürkan et~al.}(2004)}"
 key "gur+04"
+literal "true"
 
 \end_inset
 
@@ -783,7 +827,7 @@ We can input files too, like this
 \begin_inset CommandInset include
 LatexCommand input
 preview false
-filename "DummyDocument.lyx"
+filename "DummyDocument.lyx.lyx"
 
 \end_inset
 
@@ -791,7 +835,7 @@ filename "DummyDocument.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy Document.lyx"
+filename "Dummy Document.tex"
 
 \end_inset
 
@@ -799,7 +843,7 @@ filename "Dummy Document.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy Document.lyx"
+filename "Dummy Document.tex"
 
 \end_inset
 
@@ -807,7 +851,7 @@ filename "Dummy Document.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy~Document.lyx"
+filename "Dummy~Document.lyx.lyx"
 
 \end_inset
 
@@ -815,7 +859,7 @@ filename "Dummy~Document.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy~Document.lyx"
+filename "Dummy~Document.lyx.lyx"
 
 \end_inset
 
@@ -906,7 +950,7 @@ If you prefer verbatim input, you can choose between
 \begin_inset CommandInset include
 LatexCommand verbatiminput
 preview false
-filename "DummyDocument.tex"
+filename "foo"
 
 \end_inset
 
@@ -919,7 +963,7 @@ filename "DummyDocument.tex"
 \begin_inset CommandInset include
 LatexCommand verbatiminput*
 preview false
-filename "DummyDocument.tex"
+filename "foo"
 
 \end_inset
 
@@ -943,6 +987,7 @@ LatexCommand nomenclature
 prefix "www"
 symbol "URL"
 description "uniform resource locator"
+literal "true"
 
 \end_inset
 
@@ -965,6 +1010,7 @@ http://www.lyx.org
 LatexCommand nomenclature
 symbol "URL2"
 description "uniform resource locator"
+literal "true"
 
 \end_inset
 
@@ -990,6 +1036,7 @@ link:
 \begin_inset CommandInset href
 LatexCommand href
 target "www.test.test"
+literal "true"
 
 \end_inset
 
@@ -1001,6 +1048,7 @@ link2:
 \begin_inset CommandInset href
 LatexCommand href
 target "http://www.test.test"
+literal "true"
 
 \end_inset
 
@@ -1014,6 +1062,7 @@ LatexCommand href
 name "name"
 target "www.test.test"
 type "mailto:"
+literal "true"
 
 \end_inset
 
@@ -1026,6 +1075,7 @@ file:
 LatexCommand href
 target "www.test.test"
 type "file:"
+literal "true"
 
 \end_inset
 
@@ -1037,6 +1087,7 @@ ftp:
 \begin_inset CommandInset href
 LatexCommand href
 target "ftp://www.test.test"
+literal "true"
 
 \end_inset
 
@@ -1049,6 +1100,7 @@ ftp2:
 LatexCommand href
 name "www.test.test"
 target "ftp://www.test.test"
+literal "true"
 
 \end_inset
 
@@ -1061,6 +1113,7 @@ parser test (stupid, but valid):
 LatexCommand href
 name "}"
 target "http://www.test.test"
+literal "true"
 
 \end_inset
 
@@ -1073,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
 
@@ -1607,7 +1661,7 @@ Second
 
 \begin_layout Standard
 
-\begin_inset Caption LongTableNoNumber
+\begin_inset Caption Unnumbered
 
 \begin_layout Plain Layout
 standard foot
@@ -1652,7 +1706,7 @@ bottom.
 
 \begin_layout Standard
 
-\begin_inset Caption LongTableNoNumber
+\begin_inset Caption Unnumbered
 
 \begin_layout Plain Layout
 (last foot)
@@ -3124,12 +3178,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
 
@@ -4425,6 +4479,10 @@ status collapsed
 % some comment
 \end_layout
 
+\begin_layout Plain Layout
+
+\end_layout
+
 \end_inset
 
 
@@ -4517,7 +4575,7 @@ status collapsed
 \begin_layout Plain Layout
 
 \backslash
-centering 
+centering
 \end_layout
 
 \end_inset
@@ -5004,6 +5062,340 @@ in % of pixel size
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+A table using dcolumn:
+\end_layout
+
+\begin_layout Standard
+
+\begin_inset Float table
+wide false
+sideways false
+status open
+
+
+\begin_layout Standard
+
+\begin_inset Tabular 
+<lyxtabular version="3" rows="4" columns="5">
+<features rotate="0" tabularvalignment="middle" tabularwidth="0pt">
+<column alignment="center" valignment="top">
+<column alignment="center" valignment="top">
+<column alignment="none" valignment="top" special="d">
+<column alignment="none" valignment="top" special="d">
+<column alignment="none" valignment="top" special="d">
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+One
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+Two
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+
+\family roman
+Three
+\family default
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+
+\family roman
+Four
+\family default
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="1" alignment="none" valignment="top" usebox="none" special="c">
+\begin_inset Text
+
+\begin_layout Standard
+
+\family roman
+Five
+\family default
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+one
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+two
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 0
+use_makebox 1
+width ""
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
+
+
+\begin_layout Standard
+three
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 0
+use_makebox 1
+width ""
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
+
+
+\begin_layout Standard
+four
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\begin_inset Box Frameless
+position "c"
+hor_pos "c"
+has_inner_box 1
+inner_pos "c"
+use_parbox 0
+use_makebox 1
+width ""
+special "none"
+height "1in"
+height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
+status open
+
+
+\begin_layout Standard
+five
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+He
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+2
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+2.77234 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+45672. 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+0.69 
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+C
+\begin_inset Foot
+status collapsed
+
+
+\begin_layout Standard
+Some tables require footnotes.
+\end_layout
+
+\end_inset
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+C
+\begin_inset Foot
+status collapsed
+
+
+\begin_layout Standard
+Some tables need more than one footnote.
+\end_layout
+
+\end_inset
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+12537.64 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+37.66345 
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="none" valignment="top" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+86.37 
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -5976,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
@@ -6148,7 +6563,7 @@ h
 
 \end_inset
 
- 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
@@ -6553,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
@@ -6859,6 +7282,10 @@ status collapsed
 % and another
 \end_layout
 
+\begin_layout Plain Layout
+
+\end_layout
+
 \end_inset
 
 
@@ -7081,6 +7508,7 @@ undefined index:
 \begin_inset CommandInset index_print
 LatexCommand printindex
 type "idx"
+literal "true"
 
 \end_inset
 
@@ -7096,6 +7524,7 @@ index "idx":
 \begin_inset CommandInset index_print
 LatexCommand printindex
 type "idx"
+literal "true"
 
 \end_inset
 
@@ -7111,6 +7540,7 @@ index "new":
 \begin_inset CommandInset index_print
 LatexCommand printindex
 type "new"
+literal "true"
 
 \end_inset
 
@@ -7126,6 +7556,7 @@ subindex "new":
 \begin_inset CommandInset index_print
 LatexCommand printsubindex
 type "idx"
+literal "true"
 
 \end_inset