1 %% LyX trick_preamble_code_into_believing_that_this_was_created_by_lyx created this file. For more info, see http://www.lyx.org/.
2 %% Do not edit unless you really know what you are doing.
3 \documentclass[b4paper,twoside, twocolumn,12pt]{article}
5 \renewcommand{\rmdefault}{cmr}
7 \renewcommand{\familydefault}{\sfdefault}
9 \usepackage[T1]{fontenc}
10 \usepackage[latin9]{inputenc}
13 \geometry{verbose,landscape,b4paper,tmargin=1cm,bmargin=2cm,lmargin=3cm,rmargin=4cm,headheight=6cm,headsep=5cm,footskip=7cm,columnsep=8cm}
17 \definecolor{page_backgroundcolor}{rgb}{1, 0.3359375, 0}
18 \pagecolor{page_backgroundcolor}
19 \definecolor{document_fontcolor}{rgb}{0.66796875, 1, 0}
20 \color{document_fontcolor}
21 \definecolor{note_fontcolor}{rgb}{0, 0, 1}
22 \definecolor{shadecolor}{rgb}{1, 1, 0}
26 \PassOptionsToPackage{normalem}{ulem}
29 \setlength{\parskip}{3mm}
30 \setlength{\parindent}{0sp}
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
35 \newcommand{\noun}[1]{\textsc{#1}}
36 %% The greyedout annotation environment
37 \newenvironment{lyxgreyedout}{\textcolor{note_fontcolor}\bgroup}{\egroup}
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
41 \setlength{\fboxsep}{3mm}
43 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
47 \usepackage{ifpdf} % part of the hyperref bundle
48 \ifpdf % if pdflatex is used
50 % set fonts for nicer pdf view
51 \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
53 % link all cross references and URLs in pdf output
54 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered,
55 bookmarksopen, bookmarksopenlevel=2,
56 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
57 pdfpagelayout=OneColumn, pdfnewwindow=true,
58 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
59 pdfauthor={LyX Team}, pdftex,
60 pdftitle={tex2lyx testcase},pdfsubject={tex2lyx},
61 pdfkeywords={LyX, tex2lyx}]{hyperref}
63 \else % if dvi or ps is produced
65 % link all cross references and URLs in dvi output
66 \usepackage[ps2pdf]{hyperref}
68 \fi % end if pdflatex is used
77 \subsection{Frameless Boxes}
79 blabla \mbox{mbox} blabla
81 blabla \makebox{makebox 1} blabla
83 blabla \makebox[3cm]{makebox 2} blabla
85 blabla \makebox[3cm][l]{makebox 3} blabla
89 \setlength{\unitlength}{.2in}
92 \put(0,0){\makebox(0,0)[tr]{AAA}}
93 \put(8,0){\makebox(0,0){BBB}}
94 \put(0,8){\framebox(0,0){x}}
95 \put(1,0){\line(1,0){6}}
100 \raisebox {8.5mm}{test}\raisebox {-6.5mm}{tset}
102 \subsection{Framed Boxes}
104 blabla \begin{framed}framed\end{framed} blabla
106 blabla \begin{framed}\begin{framed}nested framed\end{framed}\end{framed} blabla
108 blabla \fbox{fbox} blabla
110 blabla \framebox{fr\textcolor{blue}{ame}box 1} blabla
112 blabla \framebox[3cm]{framebox 2} blabla
114 blabla \framebox[3cm][l]{framebox 3} blabla
116 This is an example text. %
118 \begin{minipage}[c][1\totalheight][s]{0.2\columnwidth}%
124 is evenly distributed
135 This is an example text.
137 blabla \ovalbox{ovalbox} blabla
139 blabla \Ovalbox{Ovalbox} blabla
141 blabla \shadowbox{shadowbox} blabla
143 blabla \doublebox{doublebox} blabla
147 \subsection{LyX Boxes}
150 \textbf{Note:} Not all DVI-viewers are able to display rotations.
154 Shaded background box\end{shaded}
156 \begin{minipage}[c]{1\columnwidth}%
158 Shaded background box, with inner minipage\end{shaded}%
163 \subsection{Predefined Colors}
165 test \textcolor{blue}{blue} test \textcolor{red}{red red red} test \textcolor{green}{bla}\textcolor{magenta}{blub}
167 \textcolor{green}{c}%
170 \textcolor{green}{o}%
173 \subsection{Custom Colors}
175 test \textcolor{darkgreen}{dark green} test
177 \definecolor{violet}{rgb}{0.5, 0, 1}
179 test \textcolor{violet}{violet} test
193 \normalsize normalsize text
197 \footnotesize footnotesize text
199 \scriptsize scriptsize text
203 \Huge Huge text \huge huge text \LARGE LARGE text \Large Large text
204 \large large text \normalsize normalsize text \small small text
205 \footnotesize footnotesize text \scriptsize scriptsize text \tiny tiny text
207 \normalsize Font size switches don't affect section headings!
211 \section{Font size dummy 1}
217 \section*{Font size dummy 2}
223 \section{Strikeout, underlined etc.}
225 Emphasized: \emph{test}
227 Underbar: \uline{test}
229 Double underbar: \uuline{test}
231 Wavy underbar: \uwave{test}
233 Strike out: \sout{test}
235 Crossed out: \xout{test}
239 Underbar, emphasized, strikeout: \emph{\uline{\sout{test}}}
242 \section{Paragraph spacing}
247 singlespace single singlespace single singlespace single singlespace single
248 singlespace single singlespace single singlespace single singlespace single
252 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
253 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
255 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
256 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
262 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
263 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
269 doublespace single doublespace single doublespace single doublespace single
270 doublespace single doublespace single doublespace single doublespace single
274 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
275 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
278 \section{Paragraph alignment}
283 center single center single center single center single center single
284 center single center single center single center single center single
290 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
291 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
293 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
294 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
300 flushleft single flushleft single flushleft single flushleft single
301 flushleft single flushleft single flushleft single flushleft single
307 flushright single flushright single flushright single flushright single
308 flushright single flushright single flushright single flushright single
314 centering single centering single centering single centering single
315 centering single centering single centering single centering single
320 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
321 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
323 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
324 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
327 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
328 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
330 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
331 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
333 %set back to justified
337 \subsection{Horizontal spaces}
339 Lines can have an hfill \hfill in the middle.
340 Lines can have an hfill \hspace{\fill} in the middle.
341 Lines can have a protected hfill \hspace*{\fill} in the middle.
342 Lines can have a dotted fill \dotfill in the middle.
343 Lines can have a rule fill \hrulefill in the middle.
344 Lines can have a left arrow fill \leftarrowfill in the middle.
345 Lines can have a right arrow fill \rightarrowfill in the middle.
346 Lines can have a upbrace fill \upbracefill in the middle.
347 Lines can have a downbrace fill \downbracefill in the middle.
348 Lines can have space \hspace{2cm} in the middle.
349 Lines can have protected space \hspace*{2cm} in the middle.
351 We also handle defined spaces:
355 Visible\textvisiblespace{}a
359 NegThin\negthinspace{}a
361 NegMed\negmedspace{}a
363 NegThick\negthickspace{}a
374 \subsubsection*{now in math:}
378 protected fill: $a\hspace*{\fill} b$
380 2\,cm: $a\hspace*{2cm}b$
382 protected 2\,cm: $a\hspace{1cm}b$
386 enspace: $a\enspace b$
394 negative thin: $a\negthinspace b$
396 negative medium: $a\negmedspace b$
398 negative thick: $a\negthickspace b$
407 \subsection{Vertical spaces}
409 Lines can have a vfill \vfill in the middle.
410 Lines can have a vfill \vspace{\fill} in the middle.
411 Lines can have a protected vfill \vspace*{\fill} in the middle.
412 Lines can have vertical space \vspace{2cm} in the middle.
413 Lines can have protected vertical space \vspace*{2cm} in the middle.
415 We also handle skips:
419 bigskip 2:\vspace{\bigskipamount}
423 medskip 2:\vspace{\medskipamount}
425 smallskip 1:\smallskip
427 smallskip 2:\vspace{\smallskipamount}