]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test-insets.tex
tex2lyx/text.cpp: only whitespace
[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 \noindent This paragraph is not indented.
30
31 \section{References}
32
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
36 quotes too...).
37
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}.
43
44 \section{Input files}
45
46 We can input files too, like this \input{DummyDocument}, or with the include
47 variant \include{DummyDocument}
48
49 If you prefer verbatim input, you can choose
50 between~\verbatiminput{foo} or~\verbatiminput*{foo}.
51
52 \section{Lists}
53
54 \listoffigures
55 \listoftables
56
57 \section{Graphics}
58
59 There is also some basic support for graphics, in the form
60 \includegraphics{foo.eps}, or the slightly more elaborate
61 \includegraphics[height=1cm, width=1cm]{foo.eps}.
62
63 \section{Special formattings}
64
65 \subsection{LyX line}
66
67 test
68
69 {\tiny \lyxline{\tiny}}{\tiny \par}
70
71 test {\Huge Test} {\tiny test} test
72
73 \lyxline{\normalsize}
74
75 test
76
77 {\Huge \lyxline{\Huge}}{\Huge \par}
78
79 test
80
81 \subsection{Line breaks}
82
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]
87
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.
91
92 \subsection{Page breaks}
93
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]
97
98 \section{Special characters}
99
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 \_\&\#\$\{\}\%.
103
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.
107
108
109 \end{document}