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[T2A,LGR,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}
27 \PassOptionsToPackage{normalem}{ulem}
31 \usepackage{subscript}
34 %\usepackage{marvosym} % clash with pifont (! \Cross already defined)
41 \setlength{\parskip}{3mm}
42 \setlength{\parindent}{0sp}
46 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
47 \newcommand{\noun}[1]{\textsc{#1}}
48 \DeclareRobustCommand{\greektext}{%
49 \fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
50 \DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
51 \ProvideTextCommand{\~}{LGR}[1]{\char126#1}
52 \DeclareRobustCommand{\cyrtext}{%
53 \fontencoding{T2A}\selectfont\def\encodingdefault{T2A}}
54 \DeclareRobustCommand{\textcyr}[1]{\leavevmode{\cyrtext #1}}
55 %% The greyedout annotation environment
56 \newenvironment{lyxgreyedout}{\textcolor{note_fontcolor}\bgroup}{\egroup}
58 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
60 \setlength{\fboxsep}{3mm}
62 \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5}
66 \usepackage{ifpdf} % part of the hyperref bundle
67 \ifpdf % if pdflatex is used
69 % set fonts for nicer pdf view
70 \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
72 % link all cross references and URLs in pdf output
73 \usepackage[colorlinks=true, bookmarks, bookmarksnumbered,
74 bookmarksopen, bookmarksopenlevel=2,
75 linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
76 pdfpagelayout=OneColumn, pdfnewwindow=true,
77 pdfstartview=XYZ, plainpages=false, pdfpagelabels,
78 pdfauthor={LyX Team}, pdftex,
79 pdftitle={tex2lyx testcase},pdfsubject={tex2lyx},
80 pdfkeywords={LyX, tex2lyx}]{hyperref}
82 \else % if dvi or ps is produced
84 % link all cross references and URLs in dvi output
85 \usepackage[ps2pdf]{hyperref}
87 \fi % end if pdflatex is used
96 \subsection{Frameless Boxes}
98 blabla \mbox{mbox} blabla
100 blabla \makebox{makebox 1} blabla
102 blabla \makebox[3cm]{makebox 2} blabla
104 blabla \makebox[3cm][l]{makebox 3} blabla
106 \makebox[1\width]{www}
108 \parbox[t][1\depth]{2.3cm}{www}
112 \setlength{\unitlength}{.2in}
115 \put(0,0){\makebox(0,0)[tr]{AAA}}
116 \put(8,0){\makebox(0,0){BBB}}
117 \put(0,8){\framebox(0,0){x}}
118 \put(1,0){\line(1,0){6}}
123 \raisebox {8.5mm}{test}\raisebox {-6.5mm}{tset}
125 \subsection{Framed Boxes}
127 blabla \begin{framed}framed\end{framed} blabla
129 blabla \begin{framed}\begin{framed}nested framed\end{framed}\end{framed} blabla
131 blabla \fbox{fbox} blabla
133 blabla \framebox{framebox} blabla
135 \fbox{\begin{minipage}[t]{0.9\columnwidth}%
136 fbox around minipage%
139 blabla \framebox{fr\textcolor{blue}{ame}box 1} blabla
141 blabla \framebox[3cm]{framebox 2} blabla
143 blabla \framebox[3cm][l]{framebox 3} blabla
145 \framebox[1.5\totalheight]{www}
147 This is an example text. %
149 \begin{minipage}[c][1\totalheight][s]{0.2\columnwidth}%
155 is evenly distributed
166 This is an example text.
168 blabla \ovalbox{ovalbox} blabla
170 blabla \Ovalbox{Ovalbox} blabla
172 blabla \shadowbox{shadowbox} blabla
174 blabla \doublebox{doublebox} blabla
178 \subsection{Boxes with custom settings}
184 \fboxsep 20pt \framebox[1cm]{www}
186 {\fboxsep 1pt \fboxrule 10pt \framebox[1cm]{www}}
188 {\fboxsep 35pt\shadowsize 15pt\shadowbox{\centering www}}
190 \parbox[t]{0.9\columnwidth}{%
195 \parbox[t]{0.9\columnwidth}{
200 \subsection{Color Boxes}
204 \colorbox{blue}{\begin{minipage}[t]{0.9\columnwidth}
208 \colorbox{blue}{\parbox[t]{0.9\columnwidth}{www}}
210 \colorbox{blue}{\makebox[0.9\columnwidth][l]{www}}
212 \fcolorbox{lime}{white}{\begin{minipage}[t]{0.9\columnwidth}%
216 \fcolorbox{lime}{white}{\parbox[t]{0.9\columnwidth}{%
220 \fcolorbox{lime}{white}{\makebox[0.9\columnwidth][l]{www}}
222 \fcolorbox{lime}{white}{www}
224 \subsection{LyX Boxes}
227 \textbf{Note:} Not all DVI-viewers are able to display rotations.
231 Shaded background box\end{shaded}
233 \begin{minipage}[c]{1\columnwidth}%
235 Shaded background box, with inner minipage\end{shaded}%
240 \subsection{Predefined Colors}
242 test \textcolor{blue}{blue} test \textcolor{red}{red red red} test \textcolor{green}{bla}\textcolor{magenta}{blub}
243 test \textcolor{brown}{brown} test \textcolor{darkgray}{darkgray} test \textcolor{gray}{gray}\textcolor{lightgray}{lightgray}
244 test \textcolor{lime}{lime} test \textcolor{olive}{olive} test \textcolor{orange}{orange}\textcolor{pink}{pink}
245 test \textcolor{purple}{purple} test \textcolor{teal}{teal} test \textcolor{violet}{violet}
247 \textcolor{green}{c}%
250 \textcolor{green}{o}%
253 \subsection{Custom Colors}
255 test \textcolor{darkgreen}{dark green} test
257 \definecolor{violet}{rgb}{0.5, 0, 1}
259 test \textcolor{violet}{violet} test
273 \normalsize normalsize text
277 \footnotesize footnotesize text
279 \scriptsize scriptsize text
283 \Huge Huge text \huge huge text \LARGE LARGE text \Large Large text
284 \large large text \normalsize normalsize text \small small text
285 \footnotesize footnotesize text \scriptsize scriptsize text \tiny tiny text
287 \normalsize Font size switches don't affect section headings!
291 \section{Font size dummy 1}
297 \section*{Font size dummy 2}
303 \section{Strikeout, underlined etc.}
305 Emphasized: \emph{test}
307 Underbar: \uline{test}
309 Double underbar: \uuline{test}
311 Wavy underbar: \uwave{test}
313 Strike out: \sout{test}
315 Crossed out: \xout{test}
319 Underbar, emphasized, strikeout: \emph{\uline{\sout{test}}}
322 \section{Paragraph spacing}
327 singlespace single singlespace single singlespace single singlespace single
328 singlespace single singlespace single singlespace single singlespace single
332 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
333 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1 onehalfspace 1
335 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
336 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2 onehalfspace 2
342 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
343 onehalfspace single onehalfspace single onehalfspace single onehalfspace single
349 doublespace single doublespace single doublespace single doublespace single
350 doublespace single doublespace single doublespace single doublespace single
354 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
355 1.2 spacing single 1.2 spacing single 1.2 spacing single 1.2 spacing single
358 \section{Paragraph alignment}
363 center single center single center single center single center single
364 center single center single center single center single center single
370 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
371 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1 flushleft 1
373 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
374 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2 flushleft 2
380 flushleft single flushleft single flushleft single flushleft single
381 flushleft single flushleft single flushleft single flushleft single
387 flushright single flushright single flushright single flushright single
388 flushright single flushright single flushright single flushright single
394 centering single centering single centering single centering single
395 centering single centering single centering single centering single
400 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
401 raggedright 1 raggedright 1 raggedright 1 raggedright 1 raggedright 1
403 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
404 raggedright 2 raggedright 2 raggedright 2 raggedright 2 raggedright 2
407 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
408 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1 raggedleft 1
410 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
411 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2
413 %set back to justified
417 \subsection{Horizontal spaces}
419 Lines can have an hfill \hfill in the middle.
420 Lines can have an hfill \hspace{\fill} in the middle.
421 Lines can have a protected hfill \hspace*{\fill} in the middle.
422 Lines can have a dotted fill \dotfill in the middle.
423 Lines can have a rule fill \hrulefill in the middle.
424 Lines can have a left arrow fill \leftarrowfill in the middle.
425 Lines can have a right arrow fill \rightarrowfill in the middle.
426 Lines can have a upbrace fill \upbracefill in the middle.
427 Lines can have a downbrace fill \downbracefill in the middle.
428 Lines can have an absolute space \hspace{2cm} in the middle.
429 Lines can have a relative space \hspace{0.12\textwidth} in the middle.
430 Lines can have a glue-length space \hspace{2cm plus 2mm minus 1mm} in the middle.
431 Lines can have protected space \hspace*{2cm} in the middle.
433 We also handle defined spaces:
437 Visible\textvisiblespace{}a
441 NegThin\negthinspace{}a
443 NegMed\negmedspace{}a
445 NegThick\negthickspace{}a
456 \subsubsection*{now in math:}
460 protected fill: $a\hspace*{\fill} b$
462 2\,cm: $a\hspace*{2cm}b$
464 protected 2\,cm: $a\hspace{1cm}b$
468 enspace: $a\enspace b$
476 negative thin: $a\negthinspace b$
478 negative medium: $a\negmedspace b$
480 negative thick: $a\negthickspace b$
489 \subsection{Vertical spaces}
491 Lines can have a vfill \vfill in the middle.
492 Lines can have a vfill \vspace{\fill} in the middle.
493 Lines can have a protected vfill \vspace*{\fill} in the middle.
494 Lines can have a vertical absolute space \vspace{2cm} in the middle.
495 Lines can have a vertical relative space \vspace{0.09\columnwidth} in the middle.
496 Lines can have a vertical glue-length space \vspace{2cm minus 2bp plus 1cc} in the middle.
497 Lines can have protected vertical space \vspace*{2cm} in the middle.
499 We also handle skips:
503 bigskip 2:\vspace{\bigskipamount}
507 medskip 2:\vspace{\medskipamount}
509 smallskip 1:\smallskip
511 smallskip 2:\vspace{\smallskipamount}
516 from package "ascii" and "ifsym":
517 \textregistered\ETB\textifsymbol[ifgeo]{48}\textifsymbol[ifgeo]{96}\LF{}
520 \textnumero\texttrademark
522 from textgreek and textcyr:
523 \textgreek{>a}\textcyr{\cyrv}
531 from marvosym and wasysym:
532 \CheckedBox \HandCuffLeft
534 from bbding and pifont:
535 \FiveStarOpen \ding{190}