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}
30 \usepackage{textgreek}
32 \usepackage{subscript}
42 \setlength{\parskip}{3mm}
43 \setlength{\parindent}{0sp}
47 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
48 \newcommand{\noun}[1]{\textsc{#1}}
49 %% The greyedout annotation environment
50 \newenvironment{lyxgreyedout}{\textcolor{note_fontcolor}\bgroup}{\egroup}
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
54 \setlength{\fboxsep}{3mm}
56 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
60 \usepackage{ifpdf} % part of the hyperref bundle
61 \ifpdf % if pdflatex is used
63 % set fonts for nicer pdf view
64 \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
66 % link all cross references and URLs in pdf output
67 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered,
68 bookmarksopen, bookmarksopenlevel=2,
69 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
70 pdfpagelayout=OneColumn, pdfnewwindow=true,
71 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
72 pdfauthor={LyX Team}, pdftex,
73 pdftitle={tex2lyx testcase},pdfsubject={tex2lyx},
74 pdfkeywords={LyX, tex2lyx}]{hyperref}
76 \else % if dvi or ps is produced
78 % link all cross references and URLs in dvi output
79 \usepackage[ps2pdf]{hyperref}
81 \fi % end if pdflatex is used
90 \subsection{Frameless Boxes}
92 blabla \mbox{mbox} blabla
94 blabla \makebox{makebox 1} blabla
96 blabla \makebox[3cm]{makebox 2} blabla
98 blabla \makebox[3cm][l]{makebox 3} blabla
102 \setlength{\unitlength}{.2in}
105 \put(0,0){\makebox(0,0)[tr]{AAA}}
106 \put(8,0){\makebox(0,0){BBB}}
107 \put(0,8){\framebox(0,0){x}}
108 \put(1,0){\line(1,0){6}}
113 \raisebox {8.5mm}{test}\raisebox {-6.5mm}{tset}
115 \subsection{Framed Boxes}
117 blabla \begin{framed}framed\end{framed} blabla
119 blabla \begin{framed}\begin{framed}nested framed\end{framed}\end{framed} blabla
121 blabla \fbox{fbox} blabla
123 blabla \framebox{fr\textcolor{blue}{ame}box 1} blabla
125 blabla \framebox[3cm]{framebox 2} blabla
127 blabla \framebox[3cm][l]{framebox 3} blabla
129 This is an example text. %
131 \begin{minipage}[c][1\totalheight][s]{0.2\columnwidth}%
137 is evenly distributed
148 This is an example text.
150 blabla \ovalbox{ovalbox} blabla
152 blabla \Ovalbox{Ovalbox} blabla
154 blabla \shadowbox{shadowbox} blabla
156 blabla \doublebox{doublebox} blabla
160 \subsection{LyX Boxes}
163 \textbf{Note:} Not all DVI-viewers are able to display rotations.
167 Shaded background box\end{shaded}
169 \begin{minipage}[c]{1\columnwidth}%
171 Shaded background box, with inner minipage\end{shaded}%
176 \subsection{Predefined Colors}
178 test \textcolor{blue}{blue} test \textcolor{red}{red red red} test \textcolor{green}{bla}\textcolor{magenta}{blub}
179 test \textcolor{brown}{brown} test \textcolor{darkgray}{darkgray} test \textcolor{gray}{gray}\textcolor{lightgray}{lightgray}
180 test \textcolor{lime}{lime} test \textcolor{olive}{olive} test \textcolor{orange}{orange}\textcolor{pink}{pink}
181 test \textcolor{purple}{purple} test \textcolor{teal}{teal} test \textcolor{violet}{violet}
183 \textcolor{green}{c}%
186 \textcolor{green}{o}%
189 \subsection{Custom Colors}
191 test \textcolor{darkgreen}{dark green} test
193 \definecolor{violet}{rgb}{0.5, 0, 1}
195 test \textcolor{violet}{violet} test
209 \normalsize normalsize text
213 \footnotesize footnotesize text
215 \scriptsize scriptsize text
219 \Huge Huge text \huge huge text \LARGE LARGE text \Large Large text
220 \large large text \normalsize normalsize text \small small text
221 \footnotesize footnotesize text \scriptsize scriptsize text \tiny tiny text
223 \normalsize Font size switches don't affect section headings!
227 \section{Font size dummy 1}
233 \section*{Font size dummy 2}
239 \section{Strikeout, underlined etc.}
241 Emphasized: \emph{test}
243 Underbar: \uline{test}
245 Double underbar: \uuline{test}
247 Wavy underbar: \uwave{test}
249 Strike out: \sout{test}
251 Crossed out: \xout{test}
255 Underbar, emphasized, strikeout: \emph{\uline{\sout{test}}}
258 \section{Paragraph spacing}
263 singlespace single singlespace single singlespace single singlespace single
264 singlespace single singlespace single singlespace single singlespace single
268 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
269 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
271 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
272 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
278 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
279 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
285 doublespace single doublespace single doublespace single doublespace single
286 doublespace single doublespace single doublespace single doublespace single
290 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
291 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
294 \section{Paragraph alignment}
299 center single center single center single center single center single
300 center single center single center single center single center single
306 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
307 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
309 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
310 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
316 flushleft single flushleft single flushleft single flushleft single
317 flushleft single flushleft single flushleft single flushleft single
323 flushright single flushright single flushright single flushright single
324 flushright single flushright single flushright single flushright single
330 centering single centering single centering single centering single
331 centering single centering single centering single centering single
336 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
337 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
339 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
340 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
343 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
344 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
346 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
347 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
349 %set back to justified
353 \subsection{Horizontal spaces}
355 Lines can have an hfill \hfill in the middle.
356 Lines can have an hfill \hspace{\fill} in the middle.
357 Lines can have a protected hfill \hspace*{\fill} in the middle.
358 Lines can have a dotted fill \dotfill in the middle.
359 Lines can have a rule fill \hrulefill in the middle.
360 Lines can have a left arrow fill \leftarrowfill in the middle.
361 Lines can have a right arrow fill \rightarrowfill in the middle.
362 Lines can have a upbrace fill \upbracefill in the middle.
363 Lines can have a downbrace fill \downbracefill in the middle.
364 Lines can have an absolute space \hspace{2cm} in the middle.
365 Lines can have a relative space \hspace{0.12\textwidth} in the middle.
366 Lines can have a glue-length space \hspace{2cm plus 2mm minus 1mm} in the middle.
367 Lines can have protected space \hspace*{2cm} in the middle.
369 We also handle defined spaces:
373 Visible\textvisiblespace{}a
377 NegThin\negthinspace{}a
379 NegMed\negmedspace{}a
381 NegThick\negthickspace{}a
392 \subsubsection*{now in math:}
396 protected fill: $a\hspace*{\fill} b$
398 2\,cm: $a\hspace*{2cm}b$
400 protected 2\,cm: $a\hspace{1cm}b$
404 enspace: $a\enspace b$
412 negative thin: $a\negthinspace b$
414 negative medium: $a\negmedspace b$
416 negative thick: $a\negthickspace b$
425 \subsection{Vertical spaces}
427 Lines can have a vfill \vfill in the middle.
428 Lines can have a vfill \vspace{\fill} in the middle.
429 Lines can have a protected vfill \vspace*{\fill} in the middle.
430 Lines can have a vertical absolute space \vspace{2cm} in the middle.
431 Lines can have a vertical relative space \vspace{0.09\columnwidth} in the middle.
432 Lines can have a vertical glue-length space \vspace{2cm minus 2bp plus 1cc} in the middle.
433 Lines can have protected vertical space \vspace*{2cm} in the middle.
435 We also handle skips:
439 bigskip 2:\vspace{\bigskipamount}
443 medskip 2:\vspace{\medskipamount}
445 smallskip 1:\smallskip
447 smallskip 2:\vspace{\smallskipamount}
452 from package "ascii" and "ifsym":
453 \textregistered{\ascii\ETB}\textifsymbol[ifgeo]{48}\textifsymbol[ifgeo]{96}
458 \textnumero\texttrademark
460 from textgreek and textcyr:
461 \textgreek{>a}\textcyr{\cyrv}
469 from marvosym and wasysym:
470 \CheckedBox \HandCuffLeft
472 from bbding and pifont:
473 \FiveStarOpen \ding{190}