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}}
93 An URL: \url{http://www.lyx.org}
95 \section{Lists\index{Lists}}
100 \section{Graphics\index{Graphics}}
102 There is also some basic support for graphics, in the form
103 \includegraphics{foo.eps}, or the slightly more elaborate
104 \includegraphics[bb=10bp 0bp 96bp 96bp,clip,height=1cm, width=1cm]{foo.eps}.
106 \section{Special formattings\index{Special formattings}}
108 \subsection{LyX line}
112 {\tiny \lyxline{\tiny}}{\tiny \par}
114 test {\Huge Test} {\tiny test} test
116 \lyxline{\normalsize}
120 {\Huge \lyxline{\Huge}}{\Huge \par}
124 \subsection{Line breaks}
126 They can also or be broken by a newline\\
127 or a newline command \newline
128 or by a line break \linebreak
129 or by a defined line break \linebreak[4]
131 There are even newlines with weird arguments, but these are not
132 handled by LyX\\*[1cm]
133 so we try to use ERT in this case.
135 \subsection{Page breaks}
137 They can also or be broken by a newpage \newpage
138 or by a page break \pagebreak
139 or by a defined page break \pagebreak[4]
141 \section{Special characters\index{Special characters}}
143 Then one has those macros with a long name for a short meaning, like
144 \textasciitilde, \textasciicircum{} or \textbackslash{}, and the characters
145 that LaTeX wants to espace because they are active, like \_\&\#\$\{\}\%.
147 And what about special characters like hyphe\-nation mark,
148 ellipsis\ldots, and end-of-sentence\@. LyX also supports a menu
149 separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break.