1 \documentclass[a4paper,12pt]{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[latin9]{inputenc}
5 \setlength{\parindent}{3mm}
12 \usepackage[numbers]{natbib}
14 \usepackage{prettyref}
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
19 \newcommand{\lyxline}[1][1pt]{%
21 \rule[.5ex]{\linewidth}{#1}\par}
23 \newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak}
29 \noindent This paragraph is not indented.
31 \section{References\index{References}}
33 Let's start with simple things: a label~\label{lab:test} and a
34 reference~\ref{lab:test}; note that I have tested ``unbreakable
35 space'' without warning (and worse than that, I just tested english
38 Of course there are other kind of references, like page
39 reference~\pageref{lab:test}, but also equation
40 reference~\eqref{lab:test} (from amsmath package), or varioref's
41 equivalents~\vref{lab:test} and~\vpageref{lab:test}, without
42 forgetting pretty references like~\prettyref{lab:test}.
44 \section{Cites\index{Cites}}
46 Let's start with simple things: a \textbackslash{}cite: \cite[after]{article-crossref}
47 and two \textbackslash{}cites: \cite[after]{whole-set,article-crossref}
49 Now the natbib things:
51 \textbackslash{}citet: \citet[before][after]{article-crossref} \textbackslash{}citet{*}:
52 \citet*[before][after]{article-crossref} \textbackslash{}Citet: \Citet[before][after]{article-crossref}
53 \textbackslash{}Citet{*}: \Citet*[before][after]{article-crossref}
55 \textbackslash{}citep: \citep[before][after]{article-crossref} \textbackslash{}citep{*}:
56 \citep*[before][after]{article-crossref} \textbackslash{}Citep: \Citep[before][after]{article-crossref}
57 \textbackslash{}Citep{*}: \Citep*[before][after]{article-crossref}
59 \textbackslash{}citealt: \citealt[before][after]{article-crossref}
60 \textbackslash{}citealt{*}: \citealt*[before][after]{article-crossref}
61 \textbackslash{}Citealt: \Citealt[before][after]{article-crossref}
62 \textbackslash{}Citealt{*}: \Citealt*[before][after]{article-crossref}
64 \textbackslash{}citealp: \citealp[before][after]{article-crossref}
65 \textbackslash{}citealp{*}: \citealp*[before][after]{article-crossref}
66 \textbackslash{}Citealp: \Citep[before][after]{article-crossref}
67 \textbackslash{}Citealp{*}: \Citealp*[before][after]{article-crossref}
69 \textbackslash{}citeauthor: \citeauthor[before][after]{article-crossref}
70 \textbackslash{}citeauthor{*}: \citeauthor*[before][after]{article-crossref}
71 \textbackslash{}Citeauthor: \Citeauthor[before][after]{article-crossref}
72 \textbackslash{}Citeauthor{*}: \Citeauthor*[before][after]{article-crossref}
74 \textbackslash{}citeyear: \citeyear[before][after]{article-crossref}
76 \textbackslash{}citeyearpar: \citeyearpar[before][after]{article-crossref}
78 \textbackslash{}nocite: \nocite{article-crossref}
80 \bibliographystyle{unsrt}
83 \section{Input files\index{Input files}}
85 We can input files too, like this \input{DummyDocument}, or with the include
86 variant \include{DummyDocument}
88 If you prefer verbatim input, you can choose
89 between~\verbatiminput{foo} or~\verbatiminput*{foo}.
91 \section{URL\index{URL}\nomenclature[www]{URL}{uniform resource locator}}
93 An URL: \url{http://www.lyx.org}
94 \nomenclature{URL2}{uniform resource locator}
96 \section{Lists\index{Lists}}
101 \section{Graphics\index{Graphics}}
103 There is also some basic support for graphics, in the form
104 \includegraphics{foo.eps}, or the slightly more elaborate
105 \includegraphics[bb=10bp 0bp 96bp 96bp,clip,height=1cm, width=1cm]{foo.eps}.
107 \section{Special formattings\index{Special formattings}}
109 \subsection{LyX line}
113 {\tiny \lyxline{\tiny}}{\tiny \par}
115 test {\Huge Test} {\tiny test} test
117 \lyxline{\normalsize}
121 {\Huge \lyxline{\Huge}}{\Huge \par}
125 \subsection{Line breaks}
127 They can also or be broken by a newline\\
128 or a newline command \newline
129 or by a line break \linebreak
130 or by a defined line break \linebreak[4]
132 There are even newlines with weird arguments, but these are not
133 handled by LyX\\*[1cm]
134 so we try to use ERT in this case.
136 \subsection{Page breaks}
138 They can also or be broken by a newpage \newpage
139 or by a page break \pagebreak
140 or by a defined page break \pagebreak[4]
142 \section{Special characters\index{Special characters}}
144 Then one has those macros with a long name for a short meaning, like
145 \textasciitilde, \textasciicircum{} or \textbackslash{}, and the characters
146 that LaTeX wants to espace because they are active, like \_\&\#\$\{\}\%.
148 And what about special characters like hyphe\-nation mark,
149 ellipsis\ldots, and end-of-sentence\@. LyX also supports a menu
150 separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break.