]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-insets.lyx.lyx
Skip missing optional argument insets in tex2lyx
[lyx.git] / src / tex2lyx / test / test-insets.lyx.lyx
index 6e79b6af5139694e7bf4af7316c9f243fa93c185..643f0cf3611c51a5591e253ef6b61105e8aa34cd 100644 (file)
@@ -1,5 +1,5 @@
-#LyX file created by tex2lyx 2.1.0dev
-\lyxformat 469
+#LyX file created by tex2lyx 2.2
+\lyxformat 479
 \begin_document
 \begin_header
 \textclass article
@@ -39,7 +39,7 @@
 \paperfontsize 12
 \spacing onehalf
 \use_hyperref true
-\pdf_bookmarks 1
+\pdf_bookmarks 0
 \pdf_bookmarksnumbered 0
 \pdf_bookmarksopen 0
 \pdf_bookmarksopenlevel 1
@@ -47,7 +47,7 @@
 \pdf_pdfborder 0
 \pdf_colorlinks 0
 \pdf_backref section
-\pdf_pdfusetitle 1
+\pdf_pdfusetitle 0
 \papersize a4paper
 \use_geometry false
 \use_package amsmath 2
@@ -250,6 +250,18 @@ reference "lab:test"
 LatexCommand formatted
 reference "lab:test"
 
+\end_inset
+
+ as well as textual references like
+\begin_inset space ~
+
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand nameref
+reference "lab:test"
+
 \end_inset
 
 . The command 
@@ -734,7 +746,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
 
@@ -742,7 +754,7 @@ filename "DummyDocument.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy Document.lyx"
+filename "Dummy Document.tex"
 
 \end_inset
 
@@ -750,7 +762,7 @@ filename "Dummy Document.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy Document.lyx"
+filename "Dummy Document.tex"
 
 \end_inset
 
@@ -758,7 +770,7 @@ filename "Dummy Document.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy~Document.lyx"
+filename "Dummy~Document.lyx.lyx"
 
 \end_inset
 
@@ -766,11 +778,11 @@ filename "Dummy~Document.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy~Document.lyx"
+filename "Dummy~Document.lyx.lyx"
 
 \end_inset
 
- File names containg double quotes are not legal on windows, so no test file is provided. Nevertheless, they are legal on unix, so we test at least the paring. Since the file does not exist, the variant without extension would not work (tex2lyx can't deduce the correct extension of nonexisting files). 
+ File names containg double quotes are not legal on windows, so no test file is provided. Nevertheless, they are legal on unix, so we test at least the parsing. File names containing spaces can not be handled by automake (make dist would fail), so no test file is provided as well. Since the files do not exist, the variants without extension would not work (tex2lyx can't deduce the correct extension of nonexisting files). 
 \begin_inset CommandInset include
 LatexCommand include
 preview false
@@ -1407,6 +1419,7 @@ kill
 \begin_inset Argument 1
 status collapsed
 
+
 \begin_layout Standard
 An optional table caption (used in the list of tables)
 \end_layout
@@ -1488,6 +1501,7 @@ Second
 \begin_inset Argument 1
 status collapsed
 
+
 \end_inset
 
 (continued)
@@ -1559,16 +1573,6 @@ Second
 \begin_inset Caption LongTableNoNumber
 
 \begin_layout Standard
-
-\begin_inset Argument 1
-status collapsed
-
-\begin_layout Standard
-An optional table foot caption (used in the list of tables)
-\end_layout
-
-\end_inset
-
 standard foot
 \end_layout
 
@@ -1614,12 +1618,6 @@ bottom.
 \begin_inset Caption LongTableNoNumber
 
 \begin_layout Standard
-
-\begin_inset Argument 1
-status collapsed
-
-\end_inset
-
 (last foot)
 \end_layout
 
@@ -5908,7 +5906,43 @@ l
 \begin_inset IPA
 
 \begin_layout Standard
-pbtd t dcɟkɡq G
+pbtd
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+t
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+dcɟkɡq
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+;
+\end_layout
+
+\end_inset
+
+G
 \end_layout
 
 \end_inset
@@ -5917,7 +5951,55 @@ pbtd t dcɟkɡq G
 \begin_inset IPA
 
 \begin_layout Standard
-PmMn nɲN N Br RR
+PmMn
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+nɲN
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+;
+\end_layout
+
+\end_inset
+
+N
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+;
+\end_layout
+
+\end_inset
+
+Br
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+;
+\end_layout
+
+\end_inset
+
+RR
 \end_layout
 
 \end_inset
@@ -5926,7 +6008,31 @@ PmMn nɲN N Br RR
 \begin_inset IPA
 
 \begin_layout Standard
- rFBfvTDszSZ s
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+rFBfvTDszSZ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+s
 \end_layout
 
 \end_inset
@@ -5935,7 +6041,19 @@ PmMn nɲN N Br RR
 \begin_inset IPA
 
 \begin_layout Standard
- zçJxGXKħQhHɬ
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+zçJxGXKħQhHɬ
 \end_layout
 
 \end_inset
@@ -5944,7 +6062,43 @@ PmMn nɲN N Br RR
 \begin_inset IPA
 
 \begin_layout Standard
-ɮVɹ Rhɰl lL L
+ɮVɹ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+Rhɰl
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
+\end_layout
+
+\end_inset
+
+lL
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+;
+\end_layout
+
+\end_inset
+
+L
 \end_layout
 
 \end_inset
@@ -5987,7 +6141,19 @@ Ueø987o@Eœ3ɞ2Oæ5aɶA6
 \begin_inset IPA
 
 \begin_layout Standard
-ʍw4 HʢʡCʑɺɧ
+ʍw4
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+;
+\end_layout
+
+\end_inset
+
+HʢʡCʑɺɧ
 \begin_inset IPADeco toptiebar
 status open
 
@@ -6467,6 +6633,14 @@ script with
 .
 \end_layout
 
+\begin_layout Standard
+latex2writer outputs quotes in braces like 
+\begin_inset Quotes ers
+\end_inset
+
+. We swallow the, but this was one broken (bug 8903).
+\end_layout
+
 \begin_layout Section
 Mathematics
 \begin_inset Index idx