mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
tex2lyx/test/test-insets.tex: more tests
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30060 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f8d655d4e2
commit
f2d0a94b91
@ -7,7 +7,7 @@
|
|||||||
\onehalfspacing
|
\onehalfspacing
|
||||||
|
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
|
\usepackage{url}
|
||||||
\usepackage{verbatim}
|
\usepackage{verbatim}
|
||||||
\usepackage[numbers]{natbib}
|
\usepackage[numbers]{natbib}
|
||||||
\usepackage{varioref}
|
\usepackage{varioref}
|
||||||
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
\noindent This paragraph is not indented.
|
\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
|
Let's start with simple things: a label~\label{lab:test} and a
|
||||||
reference~\ref{lab:test}; note that I have tested ``unbreakable
|
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
|
equivalents~\vref{lab:test} and~\vpageref{lab:test}, without
|
||||||
forgetting pretty references like~\prettyref{lab:test}.
|
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}
|
Let's start with simple things: a \textbackslash{}cite: \cite[after]{article-crossref}
|
||||||
and two \textbackslash{}cites: \citep{whole-set,article-crossref}
|
and two \textbackslash{}cites: \cite[after]{whole-set,article-crossref}
|
||||||
|
|
||||||
Now the natbib things:
|
Now the natbib things:
|
||||||
|
|
||||||
@ -52,24 +52,35 @@ Now the natbib things:
|
|||||||
\citet*[before][after]{article-crossref} \textbackslash{}Citet: \Citet[before][after]{article-crossref}
|
\citet*[before][after]{article-crossref} \textbackslash{}Citet: \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}
|
\textbackslash{}nocite: \nocite{article-crossref}
|
||||||
|
|
||||||
\bibliographystyle{unsrt}
|
\bibliographystyle{unsrt}
|
||||||
\bibliography{xampl}
|
\bibliography{xampl}
|
||||||
|
|
||||||
\section{Input files}
|
\section{Input files\index{Input files}}
|
||||||
|
|
||||||
We can input files too, like this \input{DummyDocument}, or with the include
|
We can input files too, like this \input{DummyDocument}, or with the include
|
||||||
variant \include{DummyDocument}
|
variant \include{DummyDocument}
|
||||||
@ -77,18 +88,22 @@ variant \include{DummyDocument}
|
|||||||
If you prefer verbatim input, you can choose
|
If you prefer verbatim input, you can choose
|
||||||
between~\verbatiminput{foo} or~\verbatiminput*{foo}.
|
between~\verbatiminput{foo} or~\verbatiminput*{foo}.
|
||||||
|
|
||||||
\section{Lists}
|
\section{URL\index{URL}}
|
||||||
|
|
||||||
|
An URL: \url{http://www.lyx.org}
|
||||||
|
|
||||||
|
\section{Lists\index{Lists}}
|
||||||
|
|
||||||
\listoffigures
|
\listoffigures
|
||||||
\listoftables
|
\listoftables
|
||||||
|
|
||||||
\section{Graphics}
|
\section{Graphics\index{Graphics}}
|
||||||
|
|
||||||
There is also some basic support for graphics, in the form
|
There is also some basic support for graphics, in the form
|
||||||
\includegraphics{foo.eps}, or the slightly more elaborate
|
\includegraphics{foo.eps}, or the slightly more elaborate
|
||||||
\includegraphics[bb=10bp 0bp 96bp 96bp,clip,height=1cm, width=1cm]{foo.eps}.
|
\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}
|
\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 page break \pagebreak
|
||||||
or by a defined page break \pagebreak[4]
|
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
|
Then one has those macros with a long name for a short meaning, like
|
||||||
\textasciitilde, \textasciicircum{} or \textbackslash{}, and the characters
|
\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
|
ellipsis\ldots, and end-of-sentence\@. LyX also supports a menu
|
||||||
separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break.
|
separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break.
|
||||||
|
|
||||||
|
\printindex{}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Loading…
Reference in New Issue
Block a user