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}
41 \setlength{\parskip}{3mm}
42 \setlength{\parindent}{0sp}
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
47 \newcommand{\noun}[1]{\textsc{#1}}
48 %% The greyedout annotation environment
49 \newenvironment{lyxgreyedout}{\textcolor{note_fontcolor}\bgroup}{\egroup}
51 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
53 \setlength{\fboxsep}{3mm}
55 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
59 \usepackage{ifpdf} % part of the hyperref bundle
60 \ifpdf % if pdflatex is used
62 % set fonts for nicer pdf view
63 \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
65 % link all cross references and URLs in pdf output
66 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered,
67 bookmarksopen, bookmarksopenlevel=2,
68 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
69 pdfpagelayout=OneColumn, pdfnewwindow=true,
70 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
71 pdfauthor={LyX Team}, pdftex,
72 pdftitle={tex2lyx testcase},pdfsubject={tex2lyx},
73 pdfkeywords={LyX, tex2lyx}]{hyperref}
75 \else % if dvi or ps is produced
77 % link all cross references and URLs in dvi output
78 \usepackage[ps2pdf]{hyperref}
80 \fi % end if pdflatex is used
89 \subsection{Frameless Boxes}
91 blabla \mbox{mbox} blabla
93 blabla \makebox{makebox 1} blabla
95 blabla \makebox[3cm]{makebox 2} blabla
97 blabla \makebox[3cm][l]{makebox 3} blabla
101 \setlength{\unitlength}{.2in}
104 \put(0,0){\makebox(0,0)[tr]{AAA}}
105 \put(8,0){\makebox(0,0){BBB}}
106 \put(0,8){\framebox(0,0){x}}
107 \put(1,0){\line(1,0){6}}
112 \raisebox {8.5mm}{test}\raisebox {-6.5mm}{tset}
114 \subsection{Framed Boxes}
116 blabla \begin{framed}framed\end{framed} blabla
118 blabla \begin{framed}\begin{framed}nested framed\end{framed}\end{framed} blabla
120 blabla \fbox{fbox} blabla
122 blabla \framebox{fr\textcolor{blue}{ame}box 1} blabla
124 blabla \framebox[3cm]{framebox 2} blabla
126 blabla \framebox[3cm][l]{framebox 3} blabla
128 This is an example text. %
130 \begin{minipage}[c][1\totalheight][s]{0.2\columnwidth}%
136 is evenly distributed
147 This is an example text.
149 blabla \ovalbox{ovalbox} blabla
151 blabla \Ovalbox{Ovalbox} blabla
153 blabla \shadowbox{shadowbox} blabla
155 blabla \doublebox{doublebox} blabla
159 \subsection{LyX Boxes}
162 \textbf{Note:} Not all DVI-viewers are able to display rotations.
166 Shaded background box\end{shaded}
168 \begin{minipage}[c]{1\columnwidth}%
170 Shaded background box, with inner minipage\end{shaded}%
175 \subsection{Predefined Colors}
177 test \textcolor{blue}{blue} test \textcolor{red}{red red red} test \textcolor{green}{bla}\textcolor{magenta}{blub}
179 \textcolor{green}{c}%
182 \textcolor{green}{o}%
185 \subsection{Custom Colors}
187 test \textcolor{darkgreen}{dark green} test
189 \definecolor{violet}{rgb}{0.5, 0, 1}
191 test \textcolor{violet}{violet} test
205 \normalsize normalsize text
209 \footnotesize footnotesize text
211 \scriptsize scriptsize text
215 \Huge Huge text \huge huge text \LARGE LARGE text \Large Large text
216 \large large text \normalsize normalsize text \small small text
217 \footnotesize footnotesize text \scriptsize scriptsize text \tiny tiny text
219 \normalsize Font size switches don't affect section headings!
223 \section{Font size dummy 1}
229 \section*{Font size dummy 2}
235 \section{Strikeout, underlined etc.}
237 Emphasized: \emph{test}
239 Underbar: \uline{test}
241 Double underbar: \uuline{test}
243 Wavy underbar: \uwave{test}
245 Strike out: \sout{test}
247 Crossed out: \xout{test}
251 Underbar, emphasized, strikeout: \emph{\uline{\sout{test}}}
254 \section{Paragraph spacing}
259 singlespace single singlespace single singlespace single singlespace single
260 singlespace single singlespace single singlespace single singlespace single
264 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
265 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
267 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
268 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
274 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
275 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
281 doublespace single doublespace single doublespace single doublespace single
282 doublespace single doublespace single doublespace single doublespace single
286 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
287 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
290 \section{Paragraph alignment}
295 center single center single center single center single center single
296 center single center single center single center single center single
302 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
303 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
305 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
306 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
312 flushleft single flushleft single flushleft single flushleft single
313 flushleft single flushleft single flushleft single flushleft single
319 flushright single flushright single flushright single flushright single
320 flushright single flushright single flushright single flushright single
326 centering single centering single centering single centering single
327 centering single centering single centering single centering single
332 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
333 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
335 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
336 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
339 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
340 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
342 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
343 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
345 %set back to justified
349 \subsection{Horizontal spaces}
351 Lines can have an hfill \hfill in the middle.
352 Lines can have an hfill \hspace{\fill} in the middle.
353 Lines can have a protected hfill \hspace*{\fill} in the middle.
354 Lines can have a dotted fill \dotfill in the middle.
355 Lines can have a rule fill \hrulefill in the middle.
356 Lines can have a left arrow fill \leftarrowfill in the middle.
357 Lines can have a right arrow fill \rightarrowfill in the middle.
358 Lines can have a upbrace fill \upbracefill in the middle.
359 Lines can have a downbrace fill \downbracefill in the middle.
360 Lines can have absolute space \hspace{2cm} in the middle.
361 Lines can have relative space \hspace{0.12\textwidth} in the middle.
362 Lines can have protected space \hspace*{2cm} in the middle.
364 We also handle defined spaces:
368 Visible\textvisiblespace{}a
372 NegThin\negthinspace{}a
374 NegMed\negmedspace{}a
376 NegThick\negthickspace{}a
387 \subsubsection*{now in math:}
391 protected fill: $a\hspace*{\fill} b$
393 2\,cm: $a\hspace*{2cm}b$
395 protected 2\,cm: $a\hspace{1cm}b$
399 enspace: $a\enspace b$
407 negative thin: $a\negthinspace b$
409 negative medium: $a\negmedspace b$
411 negative thick: $a\negthickspace b$
420 \subsection{Vertical spaces}
422 Lines can have a vfill \vfill in the middle.
423 Lines can have a vfill \vspace{\fill} in the middle.
424 Lines can have a protected vfill \vspace*{\fill} in the middle.
425 Lines can have vertical absolute space \vspace{2cm} in the middle.
426 Lines can have vertical relative space \vspace{0.09\columnwidth} in the middle.
427 Lines can have protected vertical space \vspace*{2cm} in the middle.
429 We also handle skips:
433 bigskip 2:\vspace{\bigskipamount}
437 medskip 2:\vspace{\medskipamount}
439 smallskip 1:\smallskip
441 smallskip 2:\vspace{\smallskipamount}
446 from package "ascii" and "ifsym":
447 \textregistered{\ascii\ETB}\textifsymbol[ifgeo]{48}\textifsymbol[ifgeo]{96}
452 \textnumero\texttrademark
454 from textgreek and textcyr:
455 \textgreek{>a}\textcyr{\char226}
463 from marvosym and wasysym:
464 \CheckedBox \HandCuffLeft
466 from bbding and pifont:
467 \FiveStarOpen \ding{190}