]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-insets.lyx.lyx
tex2lyx/text.cpp: bring back a comment as discussed
[lyx.git] / src / tex2lyx / test / test-insets.lyx.lyx
index 3d58cd745523037a54dda9ee52633911d8770010..0cb836fe93506f91a3b837dbc99ebecdec5cf4cd 100644 (file)
@@ -1,5 +1,5 @@
-#LyX file created by tex2lyx 2.1.0dev
-\lyxformat 463
+#LyX file created by tex2lyx 2.2
+\lyxformat 479
 \begin_document
 \begin_header
 \textclass article
@@ -8,6 +8,7 @@
 % Load refstyle before prettyref so that prettyref wins.
 % The real refstyle tests are in test-refstyle-theorems.tex.
 \usepackage{refstyle}
+\AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}}
 
 
 \def\mycommand{\textquestiondown}
@@ -38,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
 \pdf_pdfborder 0
 \pdf_colorlinks 0
 \pdf_backref section
-\pdf_pdfusetitle 1
+\pdf_pdfusetitle 0
 \papersize a4paper
 \use_geometry false
 \use_package amsmath 2
 \use_package amssymb 2
+\use_package cancel 0
 \use_package esint 1
 \use_package mathdots 0
 \use_package mathtools 0
@@ -248,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 
@@ -732,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
 
@@ -740,7 +754,7 @@ filename "DummyDocument.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy Document.lyx"
+filename "Dummy Document.tex"
 
 \end_inset
 
@@ -748,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
 
@@ -756,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
 
@@ -764,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
@@ -1367,7 +1381,7 @@ clearpage}
 \begin_layout Standard
 
 \begin_inset Tabular 
-<lyxtabular version="3" rows="64" columns="2">
+<lyxtabular version="3" rows="66" columns="2">
 <features rotate="0" islongtable="true">
 <column alignment="none" valignment="top" special="@{*}r">
 <column alignment="none" valignment="top" special="|p{1in}@{*}">
@@ -1545,11 +1559,36 @@ Second
 
 \end_layout
 
+\end_inset
+</cell>
+</row>
+<row endfoot="true" caption="true">
+<cell multicolumn="1" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\begin_inset Caption LongTableNoNumber
+
+\begin_layout Standard
+standard foot
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
 \end_inset
 </cell>
 </row>
 <row endfoot="true">
-<cell alignment="none" valignment="top" topline="true" bottomline="true" usebox="none">
+<cell alignment="none" valignment="top" topline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Standard
@@ -1558,13 +1597,38 @@ This goes at the
 
 \end_inset
 </cell>
-<cell alignment="none" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
+<cell alignment="none" valignment="top" topline="true" leftline="true" usebox="none">
 \begin_inset Text
 
 \begin_layout Standard
 bottom.
 \end_layout
 
+\end_inset
+</cell>
+</row>
+<row endlastfoot="true" caption="true">
+<cell multicolumn="1" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Standard
+
+\begin_inset Caption LongTableNoNumber
+
+\begin_layout Standard
+(last foot)
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+</cell>
+<cell multicolumn="2" alignment="none" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
 \end_inset
 </cell>
 </row>
@@ -5760,187 +5824,234 @@ TIPA
 \begin_inset IPA
 
 \begin_layout Standard
-e̥ 
-\begin_inset ERT
-status collapsed
+e̥ e̊ e̬ e̤ ḛ e̼ e̪ e̺ e̻ e
+\begin_inset script superscript
 
-\begin_layout Plain Layout
+\begin_layout Standard
+h
+\end_layout
 
-\backslash
-r{e}
+\end_inset
+
+ e̹ e̜ e̟ e̠ e̠ ë e̽ e̩ e̩ e̯ e˞e
+\begin_inset script superscript
+
+\begin_layout Standard
+w
 \end_layout
 
 \end_inset
 
- e̬ e̤ e˷ e̼ e̪ e̺ e̻ e
+ e
 \begin_inset script superscript
 
 \begin_layout Standard
-h
+j
 \end_layout
 
 \end_inset
 
- e̹ e̜ e̟ 
-\begin_inset ERT
-status collapsed
+ e
+\begin_inset script superscript
 
-\begin_layout Plain Layout
+\begin_layout Standard
+\end_layout
 
-\backslash
-={*}
+\end_inset
+
+ e
+\begin_inset script superscript
+
+\begin_layout Standard
 \end_layout
 
 \end_inset
 
+ e̴ e̝ e̞ e̘ e̙ ẽ e
+\begin_inset script superscript
 
-\begin_inset ERT
-status collapsed
+\begin_layout Standard
+n
+\end_layout
 
-\begin_layout Plain Layout
-{
+\end_inset
+
+ e
+\begin_inset script superscript
+
+\begin_layout Standard
+l
 \end_layout
 
 \end_inset
 
-e
-\begin_inset ERT
-status collapsed
+ e˺ e̋
+\end_layout
 
-\begin_layout Plain Layout
-}
+\begin_layout Standard
+è ē é ȅ ě ê e᷄ e᷅ e᷈ ĕ 
 \end_layout
 
 \end_inset
 
+
+\end_layout
+
+\begin_layout Standard
+
+\begin_inset IPA
+
+\begin_layout Standard
+pbtd
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-b{e}
+:
 \end_layout
 
 \end_inset
 
- ë e̽ 
+t
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-s
+:
 \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
 
-e
+\begin_inset IPA
+
+\begin_layout Standard
+PmMn
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
-}
+
+\backslash
+:
 \end_layout
 
 \end_inset
 
- e̩ e̯ e˞e
-\begin_inset script superscript
+nɲN
+\begin_inset ERT
+status collapsed
 
-\begin_layout Standard
-w
+\begin_layout Plain Layout
+
+\backslash
+;
 \end_layout
 
 \end_inset
 
- e
-\begin_inset script superscript
+N
+\begin_inset ERT
+status collapsed
 
-\begin_layout Standard
-j
+\begin_layout Plain Layout
+
+\backslash
+;
 \end_layout
 
 \end_inset
 
- e
-\begin_inset script superscript
+Br
+\begin_inset ERT
+status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
+
+\backslash
+;
 \end_layout
 
 \end_inset
 
- e
-\begin_inset script superscript
-
-\begin_layout Standard
+RR
 \end_layout
 
 \end_inset
 
- e̴ e̝ e̞ e̘ e̙ ẽ e
-\begin_inset script superscript
+\begin_inset IPA
 
 \begin_layout Standard
-n
-\end_layout
 
-\end_inset
+\begin_inset ERT
+status collapsed
 
- e
-\begin_inset script superscript
+\begin_layout Plain Layout
 
-\begin_layout Standard
-l
+\backslash
+:
 \end_layout
 
 \end_inset
 
- e˺ 
+rFBfvTDszSZ
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-H{e}
+:
 \end_layout
 
 \end_inset
 
-
+s
 \end_layout
 
+\end_inset
+
+\begin_inset IPA
+
 \begin_layout Standard
-è ē é eȅ ě ê e᷄ e᷅ e᷈ ĕ 
-\end_layout
 
-\end_inset
+\begin_inset ERT
+status collapsed
 
+\begin_layout Plain Layout
 
+\backslash
+:
 \end_layout
 
-\begin_layout Standard
-
-\begin_inset IPA
+\end_inset
 
-\begin_layout Standard
-pbtd t dcɟkɡq G
+zçJxGXKħQhHɬ
 \end_layout
 
 \end_inset
@@ -5949,34 +6060,43 @@ pbtd t dcɟkɡq G
 \begin_inset IPA
 
 \begin_layout Standard
-PmMn nɲN N Br RR
+ɮVɹ
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
 \end_layout
 
 \end_inset
 
-\begin_inset IPA
+Rhɰl
+\begin_inset ERT
+status collapsed
 
-\begin_layout Standard
- rFBfvTDszSZ s
+\begin_layout Plain Layout
+
+\backslash
+:
 \end_layout
 
 \end_inset
 
-\begin_inset IPA
+lL
+\begin_inset ERT
+status collapsed
 
-\begin_layout Standard
- zçJxGXKħQhHɬ
+\begin_layout Plain Layout
+
+\backslash
+;
 \end_layout
 
 \end_inset
 
-\begin_inset IPA
-
-\begin_layout Standard
-ɮVɹ Rhɰl lL L
+L
 \end_layout
 
 \end_inset
@@ -6019,7 +6139,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
 
@@ -6052,19 +6184,7 @@ tz
 \begin_inset IPA
 
 \begin_layout Standard
-:;eˈˌ|‖.
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-t{*}
-\end_layout
-
-\end_inset
-
-
+:;eˈˌ|‖.͡*
 \begin_inset ERT
 status collapsed
 
@@ -6511,6 +6631,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