]> 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 b4e67c0fd8bc033e45da85d5f6a2a1a701620317..643f0cf3611c51a5591e253ef6b61105e8aa34cd 100644 (file)
@@ -1,10 +1,16 @@
-#LyX file created by tex2lyx 2.1.0dev
-\lyxformat 462
+#LyX file created by tex2lyx 2.2
+\lyxformat 479
 \begin_document
 \begin_header
 \textclass article
 \begin_preamble
 
+% 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}
 
 
@@ -13,7 +19,7 @@
 \maintain_unincluded_children false
 \language english
 \language_package none
-\inputencoding latin9
+\inputencoding iso8859-15
 \fontencoding T1
 \font_roman default
 \font_sans default
@@ -33,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
@@ -245,7 +252,61 @@ 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 
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+secref
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+{
+\end_layout
+
+\end_inset
+
+lab:test
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+}
+\end_layout
+
+\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.
 \end_layout
 
 \begin_layout Section
@@ -685,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
 
@@ -693,7 +754,7 @@ filename "DummyDocument.lyx"
 \begin_inset CommandInset include
 LatexCommand include
 preview false
-filename "Dummy Document.lyx"
+filename "Dummy Document.tex"
 
 \end_inset
 
@@ -701,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
 
@@ -709,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
 
@@ -717,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
@@ -871,6 +932,20 @@ description "uniform resource locator"
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+An URL with strange characters: 
+\begin_inset Flex Flex:URL
+status collapsed
+
+\begin_layout Plain Layout
+http://www.lyx.org/percent%dollar$
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -1306,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}@{*}">
@@ -1344,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
@@ -1425,6 +1501,7 @@ Second
 \begin_inset Argument 1
 status collapsed
 
+
 \end_inset
 
 (continued)
@@ -1484,11 +1561,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
@@ -1497,13 +1599,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>
@@ -5699,19 +5826,7 @@ TIPA
 \begin_inset IPA
 
 \begin_layout Standard
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-r{e}
-\end_layout
-
-\end_inset
-
- e̬ e̤ e˷ e̼ e̪ e̺ e̻ e
+e̥ e̊ e̬ e̤ ḛ e̼ e̪ e̺ e̻ e
 \begin_inset script superscript
 
 \begin_layout Standard
@@ -5720,83 +5835,7 @@ h
 
 \end_inset
 
- e̹ e̜ e̟ 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-={*}
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-{
-\end_layout
-
-\end_inset
-
-e
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-}
-\end_layout
-
-\end_inset
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-b{e}
-\end_layout
-
-\end_inset
-
- ë e̽ 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-s
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-{
-\end_layout
-
-\end_inset
-
-e
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-}
-\end_layout
-
-\end_inset
-
- e̩ e̯ e˞e
+ e̹ e̜ e̟ e̠ e̠ ë e̽ e̩ e̩ e̯ e˞e
 \begin_inset script superscript
 
 \begin_layout Standard
 
 \end_inset
 
- e˺ 
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
+ e˺ e̋
+\end_layout
 
-\backslash
-H{e}
+\begin_layout Standard
+è ē é ȅ ě ê e᷄ e᷅ e᷈ ĕ 
 \end_layout
 
 \end_inset
@@ -5866,29 +5902,47 @@ H{e}
 \end_layout
 
 \begin_layout Standard
-è ē é eȅ ě ê e᷄ e᷅ e᷈ ĕ 
+
+\begin_inset IPA
+
+\begin_layout Standard
+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
 
-\begin_layout Standard
+\end_inset
 
-\begin_inset IPA
+dcɟkɡq
+\begin_inset ERT
+status collapsed
 
-\begin_layout Standard
-pbtd t dcɟkɡq G
+\begin_layout Plain Layout
+
+\backslash
+;
 \end_layout
 
 \end_inset
 
-\begin_inset IPA
-
-\begin_layout Standard
-PmMn nɲN N Br RR
+G
 \end_layout
 
 \end_inset
@@ -5897,46 +5951,60 @@ PmMn nɲN N Br RR
 \begin_inset IPA
 
 \begin_layout Standard
- rFBfvTDszSZ s
+PmMn
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+:
 \end_layout
 
 \end_inset
 
-\begin_inset IPA
+nɲN
+\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
+N
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-*
+;
 \end_layout
 
 \end_inset
 
-r Rhɰl lL L
+Br
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
+
+\backslash
+;
 \end_layout
 
 \end_inset
 
-
+RR
 \end_layout
 
-\begin_layout Standard
+\end_inset
 
 \begin_inset IPA
 
 \begin_layout Standard
@@ -5947,72 +6015,103 @@ status collapsed
 \begin_layout Plain Layout
 
 \backslash
-!
+:
 \end_layout
 
 \end_inset
 
-o|!ǂ||
+rFBfvTDszSZ
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-!
+:
 \end_layout
 
 \end_inset
 
-b
+s
+\end_layout
+
+\end_inset
+
+\begin_inset IPA
+
+\begin_layout Standard
+
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-!
+:
 \end_layout
 
 \end_inset
 
-d
+zçJxGXKħQhHɬ
+\end_layout
+
+\end_inset
+
+\begin_inset IPA
+
+\begin_layout Standard
+ɮVɹ
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-!
+:
 \end_layout
 
 \end_inset
 
-j
+Rhɰl
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-!
+:
 \end_layout
 
 \end_inset
 
-g
+lL
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-!
+;
 \end_layout
 
 \end_inset
 
-Ge'
+L
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+
+\begin_inset IPA
+
+\begin_layout Standard
+ʘ|!ǂ||ɓɗʄɠʛe'
 \end_layout
 
 \end_inset
@@ -6029,7 +6128,7 @@ iy1ʉW
 \color red
 uIY
 \color inherit
-Ueø987o@E\9c3ɞ2Oæ5aɶA6
+Ueø987o@Eœ3ɞ2Oæ5aɶA6
 \end_layout
 
 \end_inset
@@ -6042,19 +6141,19 @@ Ueø987o@E\9c3ɞ2Oæ5aɶA6
 \begin_inset IPA
 
 \begin_layout Standard
-
+ʍw4
 \begin_inset ERT
 status collapsed
 
 \begin_layout Plain Layout
 
 \backslash
-*
+;
 \end_layout
 
 \end_inset
 
-ww4 HʢʡCʑɺɧ
+HʢʡCʑɺɧ
 \begin_inset IPADeco toptiebar
 status open
 
@@ -6087,63 +6186,7 @@ tz
 \begin_inset IPA
 
 \begin_layout Standard
-:;eˈˌ
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-textvertline
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-{}
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-textdoublevertline
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-{}
-\end_layout
-
-\end_inset
-
-.
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-t{*}
-\end_layout
-
-\end_inset
-
-
+:;eˈˌ|‖.͡*
 \begin_inset ERT
 status collapsed
 
@@ -6181,24 +6224,7 @@ status collapsed
 \IPAChar \tone{45}
 \IPAChar \tone{12}
 \IPAChar \tone{454}
-↗
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-
-\backslash
-textglobfall
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Plain Layout
-{}
+↗↘
 \end_layout
 
 \end_inset
@@ -6206,6 +6232,9 @@ status collapsed
 
 \end_layout
 
+\begin_layout Standard
+TIPA code in math: 
+\begin_inset Formula $\textipa{\tone{55}|\text{\!b{}\!d{}\!g{}\!G{}\textglobfall{}\textvertline{}\textdoublevertline{}}}$
 \end_inset
 
 
@@ -6604,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