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}
29 \noindent This paragraph is not indented.
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
}.
46 We can input files too, like this
\input{DummyDocument
}, or with the include
47 variant
\include{DummyDocument
}
49 If you prefer verbatim input, you can choose
50 between~
\verbatiminput{foo
} or~
\verbatiminput*
{foo
}.
59 There is also some basic support for graphics, in the form
60 \includegraphics{foo.eps
}, or the slightly more elaborate
61 \includegraphics[bb=
10bp
0bp
96bp
96bp,clip,height=
1cm, width=
1cm
]{foo.eps
}.
63 \section{Special formattings
}
69 {\tiny \lyxline{\tiny}}{\tiny \par}
71 test
{\Huge Test
} {\tiny test
} test
77 {\Huge \lyxline{\Huge}}{\Huge \par}
81 \subsection{Line breaks
}
83 They can also or be broken by a newline\\
84 or a newline command
\newline
85 or by a line break
\linebreak
86 or by a defined line break
\linebreak[4]
88 There are even newlines with weird arguments, but these are not
89 handled by LyX\\*
[1cm
]
90 so we try to use ERT in this case.
92 \subsection{Page breaks
}
94 They can also or be broken by a newpage
\newpage
95 or by a page break
\pagebreak
96 or by a defined page break
\pagebreak[4]
98 \section{Special characters
}
100 Then one has those macros with a long name for a short meaning, like
101 \textasciitilde,
\textasciicircum{} or
\textbackslash{}, and the characters
102 that LaTeX wants to espace because they are active, like
\_\&\#\$\
{\
}\%.
104 And what about special characters like hyphe\-nation mark,
105 ellipsis
\ldots, and end-of-sentence\@. LyX also supports a menu
106 separator
\lyxarrow{}and a spif
\textcompwordmark{}fy ligature break.