]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-insets.tex
Reduce caption hardcoding
[lyx.git] / src / tex2lyx / test / test-insets.tex
index 28d43011258cffc522dabae9d6d7d0b057d53a41..5fd393030788a0f4e54a13295768fae6e0d09980 100644 (file)
@@ -18,7 +18,6 @@
 \providecommand{\makenomenclature}{\makeglossary}
 \makenomenclature
 \usepackage{varioref}
-\usepackage{prettyref}
 \usepackage{splitidx}
 \makeindex
 \newindex[Index]{idx}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
 
+% 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}}}
+\usepackage{prettyref}
+
 \def\mycommand{\textquestiondown}
 
 \begin{document}
@@ -81,7 +86,10 @@ Of course there are other kind of references, like page
 reference~\pageref{lab:test}, but also equation
 reference~\eqref{lab:test} (from amsmath package), or varioref's
 equivalents~\vref{lab:test} and~\vpageref{lab:test}, without
-forgetting pretty references like~\prettyref{lab:test}.
+forgetting pretty references like~\prettyref{lab:test} as well as textual
+references like~\nameref{lab:test}.
+The command \secref{lab:test} will be parsed in ERT, since LyX
+does not support refstyle and prettyref natively at the same time.
 
 \section{Cites\index{Cites}}
 
@@ -140,13 +148,15 @@ M., \& Rasio, F.~A. 2004, ApJ, 604, 632\end{thebibliography}
 
 We can input files too, like this \input{DummyDocument}, or with the include
 variant (tests quoting as well):
-\include{\string"Dummy\space Document\string"}
+\include{\string"Dummy\space Document\string".tex}
 \include{\string"Dummy Document\string".tex}
 \include{\string"Dummy\string~Document\string"}
 \include{\string"Dummy\string~Document\string".tex}
 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
+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).
 \include{\string"Dummy\string"Document\string".tex}
 
@@ -270,10 +280,13 @@ KILLED & LINE!!!! \kill
 \textbf{First}&\textbf{Second}\\
 \hline\hline
 \endhead
+\caption*
+{standard foot}\\
 \hline
 This goes at the&bottom.\\
 \hline
 \endfoot
+\caption*{(last foot)}\\
 \hline
 These lines will&appear\\
 in place of the & usual foot\\
@@ -641,6 +654,9 @@ builtin \textasciicircum % with a comment
 A sub\textsubscript{sc\emph{ript}} and super\textsuperscript{script
 with $a^2+b^2=c^2$ math}.
 
+latex2writer outputs quotes in braces like {\textquoteright}. We swallow the,
+but this was one broken (bug 8903).
+
 
 \section{Mathematics\index{Mathematics}}