]> git.lyx.org Git - lyx.git/blob - src/tex2lyx/test-insets.tex
Whitespace, only whitespace. s/ +$//
[lyx.git] / src / tex2lyx / test-insets.tex
1 \documentclass{article}
2
3 \begin{document}
4
5 This document contains all sorts of insets we are supposed to
6 support.
7
8 \section{Things that work}
9
10 Let's start with simple things: a label~\label{lab:test} and a
11 reference~\ref{lab:test}; note that I have tested ``unbreakable
12 space'' without warning (and worse than that, I just tested english
13 quotes too...).
14
15 Of course there are other kind of references, like page
16 reference~\pageref{lab:test}, but also equation
17 reference~\eqref{lab:test} (from amsmath package), or varioref's
18 equivalents~\vref{lab:test} and~\vpageref{lab:test}, without
19 forgetting pretty references like~\prettyref{lab:test}.
20
21 We can input files too, like this \input{foo}, or with the include
22 variant \include{foo}
23
24 If you prefer verbatim input, you can choose
25 between~\verbatiminput{foo} or~\verbatiminput*{foo}.
26
27 If you like tables of contents, you will be happy to learn that
28 the following ones are supported:
29 \tableofcontents
30 \listoffigures
31 \listoftables
32
33 There is also some basic support for graphics, in the form
34 \includegraphics{foo.eps}, or the slightly more elaborate
35 \includegraphics[height=1cm, width=1cm]{foo.eps}.
36
37 Lines can have an \hfill in the middle, or be broken by a newline\\
38 there are even newlines with weird arguments, but these are not
39 handled by LyX\\*[1cm]
40 so we try to use ERT in this case.
41
42 Then one has those macros with a long name for a short meaning, like
43 \textasciitilde, \textasciicircum{} or \textbackslash{}, and the characters
44 that LaTeX wants to espace because they are active, like \_\&\#\$\{\}\%.
45
46 And what about special characters like hyphe\-nation mark,
47 ellipsis\ldots, and end-of-sentence\@. LyX also sports a menu
48 separator\lyxarrow and a spif\textcompwordmark fy ligature break.
49
50 What else? Maybe minipages, like this:
51 \begin{minipage}{10cm}
52 Hi there, I am a minipage!
53 \end{minipage}
54
55 There is also an option to align vertically the minipage:
56 \begin{minipage}[t]{0.3\columnwidth}
57 Actually, it is also possible to set the height and the inner position
58 of the minipage, but the LyX GUI does not use or allow to modify this
59 information. Nevertheless, tex2lyx converts it as faithfully as possible.
60 \end{minipage}
61
62
63 \section{Things that do not work (yet)}
64
65 \vspace*{1cm}
66 LyX can do vertical spacing, even with the nifty 'keep' option
67 \bigskip
68
69
70
71 \end{document}