1 \documentclass[a4paper,12pt]{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[latin9]{inputenc}
5 \setlength{\parindent}{3mm}
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}
31 Let's start with simple things: a label~\label{lab:test} and a
32 reference~\ref{lab:test}; note that I have tested ``unbreakable
33 space'' without warning (and worse than that, I just tested english
36 Of course there are other kind of references, like page
37 reference~\pageref{lab:test}, but also equation
38 reference~\eqref{lab:test} (from amsmath package), or varioref's
39 equivalents~\vref{lab:test} and~\vpageref{lab:test}, without
40 forgetting pretty references like~\prettyref{lab:test}.
44 We can input files too, like this \input{DummyDocument}, or with the include
45 variant \include{DummyDocument}
47 If you prefer verbatim input, you can choose
48 between~\verbatiminput{foo} or~\verbatiminput*{foo}.
57 There is also some basic support for graphics, in the form
58 \includegraphics{foo.eps}, or the slightly more elaborate
59 \includegraphics[height=1cm, width=1cm]{foo.eps}.
61 \section{Special formattings}
67 {\tiny \lyxline{\tiny}}{\tiny \par}
69 test {\Huge Test} {\tiny test} test
75 {\Huge \lyxline{\Huge}}{\Huge \par}
79 \subsection{Line breaks}
81 They can also or be broken by a newline\\
82 or a newline command \newline
83 or by a line break \linebreak
84 or by a defined line break \linebreak[4]
86 There are even newlines with weird arguments, but these are not
87 handled by LyX\\*[1cm]
88 so we try to use ERT in this case.
90 \subsection{Page breaks}
92 They can also or be broken by a newpage \newpage
93 or by a page break \pagebreak
94 or by a defined page break \pagebreak[4]
96 \section{Special characters}
98 Then one has those macros with a long name for a short meaning, like
99 \textasciitilde, \textasciicircum{} or \textbackslash{}, and the characters
100 that LaTeX wants to espace because they are active, like \_\&\#\$\{\}\%.
102 And what about special characters like hyphe\-nation mark,
103 ellipsis\ldots, and end-of-sentence\@. LyX also supports a menu
104 separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break.