From: Uwe Stöhr Date: Thu, 11 Jun 2009 23:56:48 +0000 (+0000) Subject: tex2lyx/test/test-insets.tex: more tests X-Git-Tag: 2.0.0~6336 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f2d0a94b91286e4029922dcc42e786e18d422656;p=features.git tex2lyx/test/test-insets.tex: more tests git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30060 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index e866d7f145..886bf761d9 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -7,7 +7,7 @@ \onehalfspacing \usepackage{amsmath} - +\usepackage{url} \usepackage{verbatim} \usepackage[numbers]{natbib} \usepackage{varioref} @@ -28,7 +28,7 @@ \noindent This paragraph is not indented. -\section{References} +\section{References\index{References}} Let's start with simple things: a label~\label{lab:test} and a reference~\ref{lab:test}; note that I have tested ``unbreakable @@ -41,10 +41,10 @@ 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}. -\section{Cites} +\section{Cites\index{Cites}} -Let's start with simple things: a \textbackslash{}cite: \citet{article-crossref} -and two \textbackslash{}cites: \citep{whole-set,article-crossref} +Let's start with simple things: a \textbackslash{}cite: \cite[after]{article-crossref} +and two \textbackslash{}cites: \cite[after]{whole-set,article-crossref} Now the natbib things: @@ -52,24 +52,35 @@ Now the natbib things: \citet*[before][after]{article-crossref} \textbackslash{}Citet: \Citet[before][after]{article-crossref} \textbackslash{}Citet{*}: \Citet*[before][after]{article-crossref} -\textbackslash{}citep: \citep{article-crossref} +\textbackslash{}citep: \citep[before][after]{article-crossref} \textbackslash{}citep{*}: +\citep*[before][after]{article-crossref} \textbackslash{}Citep: \Citep[before][after]{article-crossref} +\textbackslash{}Citep{*}: \Citep*[before][after]{article-crossref} -\textbackslash{}citealt: \citealt{article-crossref} +\textbackslash{}citealt: \citealt[before][after]{article-crossref} +\textbackslash{}citealt{*}: \citealt*[before][after]{article-crossref} +\textbackslash{}Citealt: \Citealt[before][after]{article-crossref} +\textbackslash{}Citealt{*}: \Citealt*[before][after]{article-crossref} -\textbackslash{}citealp: \citealp{article-crossref} +\textbackslash{}citealp: \citealp[before][after]{article-crossref} +\textbackslash{}citealp{*}: \citealp*[before][after]{article-crossref} +\textbackslash{}Citealp: \Citep[before][after]{article-crossref} +\textbackslash{}Citealp{*}: \Citealp*[before][after]{article-crossref} -\textbackslash{}citeauthor: \citeauthor{article-crossref} +\textbackslash{}citeauthor: \citeauthor[before][after]{article-crossref} +\textbackslash{}citeauthor{*}: \citeauthor*[before][after]{article-crossref} +\textbackslash{}Citeauthor: \Citeauthor[before][after]{article-crossref} +\textbackslash{}Citeauthor{*}: \Citeauthor*[before][after]{article-crossref} -\textbackslash{}citeyear: \citeyear{article-crossref} +\textbackslash{}citeyear: \citeyear[before][after]{article-crossref} -\textbackslash{}citeyearpar: \citeyearpar{article-crossref} +\textbackslash{}citeyearpar: \citeyearpar[before][after]{article-crossref} \textbackslash{}nocite: \nocite{article-crossref} \bibliographystyle{unsrt} \bibliography{xampl} -\section{Input files} +\section{Input files\index{Input files}} We can input files too, like this \input{DummyDocument}, or with the include variant \include{DummyDocument} @@ -77,18 +88,22 @@ variant \include{DummyDocument} If you prefer verbatim input, you can choose between~\verbatiminput{foo} or~\verbatiminput*{foo}. -\section{Lists} +\section{URL\index{URL}} + +An URL: \url{http://www.lyx.org} + +\section{Lists\index{Lists}} \listoffigures \listoftables -\section{Graphics} +\section{Graphics\index{Graphics}} There is also some basic support for graphics, in the form \includegraphics{foo.eps}, or the slightly more elaborate \includegraphics[bb=10bp 0bp 96bp 96bp,clip,height=1cm, width=1cm]{foo.eps}. -\section{Special formattings} +\section{Special formattings\index{Special formattings}} \subsection{LyX line} @@ -123,7 +138,7 @@ They can also or be broken by a newpage \newpage or by a page break \pagebreak or by a defined page break \pagebreak[4] -\section{Special characters} +\section{Special characters\index{Special characters}} Then one has those macros with a long name for a short meaning, like \textasciitilde, \textasciicircum{} or \textbackslash{}, and the characters @@ -133,5 +148,6 @@ And what about special characters like hyphe\-nation mark, ellipsis\ldots, and end-of-sentence\@. LyX also supports a menu separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break. +\printindex{} \end{document}