]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test-insets.tex
tex2lyx/text.cpp: cosmetic
[lyx.git] / src / tex2lyx / test-insets.tex
1 \documentclass[a4paper,12pt]{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[latin9]{inputenc}
4
5 \setlength{\parindent}{3mm}
6 \usepackage{setspace}
7 \onehalfspacing
8
9 \usepackage{amsmath}
10
11 \usepackage{verbatim}
12
13 \usepackage{varioref}
14 \usepackage{prettyref}
15
16 \usepackage{graphicx}
17
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
19 \newcommand{\lyxline}[1][1pt]{%
20   \par\noindent%
21   \rule[.5ex]{\linewidth}{#1}\par}
22
23 \newcommand{\lyxarrow}{\leavevmode\,$\triangleright$\,\allowbreak}
24
25 \begin{document}
26
27 \tableofcontents
28
29 \section{References}
30
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
34 quotes too...).
35
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}.
41
42 \section{Input files}
43
44 We can input files too, like this \input{DummyDocument}, or with the include
45 variant \include{DummyDocument}
46
47 If you prefer verbatim input, you can choose
48 between~\verbatiminput{foo} or~\verbatiminput*{foo}.
49
50 \section{Lists}
51
52 \listoffigures
53 \listoftables
54
55 \section{Graphics}
56
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}.
60
61 \section{Special formattings}
62
63 \subsection{LyX line}
64
65 test
66
67 {\tiny \lyxline{\tiny}}{\tiny \par}
68
69 test {\Huge Test} {\tiny test} test
70
71 \lyxline{\normalsize}
72
73 test
74
75 {\Huge \lyxline{\Huge}}{\Huge \par}
76
77 test
78
79 \subsection{Line breaks}
80
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]
85
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.
89
90 \subsection{Page breaks}
91
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]
95
96 \section{Special characters}
97
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 \_\&\#\$\{\}\%.
101
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.
105
106
107 \end{document}