X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Fbox-color-size-space-align.tex;h=e0428fdf7937aa21c5adc7cd088c701863d4e76d;hb=3c1b79dd5bd9d6d79a83254075a65a61d46317e2;hp=c97ccc92f5e2da4d39ea3f0d38e71ddd15436189;hpb=58fde18a9f2a3c434918cb54e705181216745c27;p=lyx.git diff --git a/src/tex2lyx/test/box-color-size-space-align.tex b/src/tex2lyx/test/box-color-size-space-align.tex index c97ccc92f5..e0428fdf79 100644 --- a/src/tex2lyx/test/box-color-size-space-align.tex +++ b/src/tex2lyx/test/box-color-size-space-align.tex @@ -2,6 +2,10 @@ %% Do not edit unless you really know what you are doing. \documentclass[b4paper,twoside, twocolumn,12pt]{article} +\renewcommand{\rmdefault}{cmr} +\usepackage{berasans} +\renewcommand{\familydefault}{\sfdefault} + \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} @@ -10,9 +14,29 @@ \usepackage{amsmath} \usepackage{color} +\definecolor{page_backgroundcolor}{rgb}{1, 0.3359375, 0} +\pagecolor{page_backgroundcolor} +\definecolor{document_fontcolor}{rgb}{0.66796875, 1, 0} +\color{document_fontcolor} \definecolor{note_fontcolor}{rgb}{0, 0, 1} -\definecolor{shadecolor}{rgb}{1, 0, 0} +\definecolor{shadecolor}{rgb}{1, 1, 0} \usepackage{framed} +\usepackage{calc} +\usepackage{fancybox} +\PassOptionsToPackage{normalem}{ulem} +\usepackage{ulem} +\usepackage{ifsym} +\usepackage{ascii} +\usepackage{textgreek} +\usepackage{textcyr} +\usepackage{subscript} +\usepackage{tfrupee} +\usepackage{bbding} +\usepackage{marvosym} +\usepackage{wasysym} +\usepackage{pifont} +\usepackage{tipa} +\usepackage{tipx} \setlength{\parskip}{3mm} \setlength{\parindent}{0sp} @@ -20,7 +44,7 @@ \setstretch{1.2} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. - +\newcommand{\noun}[1]{\textsc{#1}} %% The greyedout annotation environment \newenvironment{lyxgreyedout}{\textcolor{note_fontcolor}\bgroup}{\egroup} @@ -30,6 +54,8 @@ \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5} +\color[rgb]{0,0,0} + \usepackage{ifpdf} % part of the hyperref bundle \ifpdf % if pdflatex is used @@ -77,6 +103,7 @@ blabla \makebox[3cm][l]{makebox 3} blabla \begin{picture}(8,6) \put(0,0){\makebox(0,0)[tr]{AAA}} \put(8,0){\makebox(0,0){BBB}} +\put(0,8){\framebox(0,0){x}} \put(1,0){\line(1,0){6}} \end{picture} @@ -86,34 +113,46 @@ blabla \makebox[3cm][l]{makebox 3} blabla \subsection{Framed Boxes} +blabla \begin{framed}framed\end{framed} blabla + +blabla \begin{framed}\begin{framed}nested framed\end{framed}\end{framed} blabla + blabla \fbox{fbox} blabla -blabla \framebox{framebox 1} blabla +blabla \framebox{fr\textcolor{blue}{ame}box 1} blabla blabla \framebox[3cm]{framebox 2} blabla blabla \framebox[3cm][l]{framebox 3} blabla -Dies ist ein Beispieltext. % +This is an example text. % \framebox{% \begin{minipage}[c][1\totalheight][s]{0.2\columnwidth}% \begin{center} - Der Boxinhalt + The box content \par\end{center} \begin{center} - ist über die + is evenly distributed \par\end{center} \begin{center} - Boxhöhe + over the \par\end{center} \begin{center} - gleichmäßig verteilt. + box height. \par\end{center}% \end{minipage}} -Dies ist ein Beispieltext. +This is an example text. + +blabla \ovalbox{ovalbox} blabla + +blabla \Ovalbox{Ovalbox} blabla + +blabla \shadowbox{shadowbox} blabla + +blabla \doublebox{doublebox} blabla $\boxed{\int A=B}$ @@ -126,6 +165,11 @@ $\boxed{\int A=B}$ \begin{shaded}% Shaded background box\end{shaded} +\begin{minipage}[c]{1\columnwidth}% +\begin{shaded}% +Shaded background box, with inner minipage\end{shaded}% +\end{minipage} + \section{Colors} \subsection{Predefined Colors} @@ -187,6 +231,26 @@ bla blub bla blub \normalsize + +\section{Strikeout, underlined etc.} + +Emphasized: \emph{test} + +Underbar: \uline{test} + +Double underbar: \uuline{test} + +Wavy underbar: \uwave{test} + +Strike out: \sout{test} + +Crossed out: \xout{test} + +Noun: \noun{test} + +Underbar, emphasized, strikeout: \emph{\uline{\sout{test}}} + + \section{Paragraph spacing} bla @@ -281,9 +345,11 @@ raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 raggedleft 2 %set back to justified \raggedright{} + \subsection{Horizontal spaces} Lines can have an hfill \hfill in the middle. +Lines can have an hfill \hspace{\fill} in the middle. Lines can have a protected hfill \hspace*{\fill} in the middle. Lines can have a dotted fill \dotfill in the middle. Lines can have a rule fill \hrulefill in the middle. @@ -298,11 +364,9 @@ We also handle defined spaces: Interword\ a -Thin\,a - -Medium\:a +Visible\textvisiblespace{}a -Thick\;a +Thin\,a NegThin\negthinspace{}a @@ -318,9 +382,44 @@ quad\quad{}a qquad\qquad{}a + +\subsubsection*{now in math:} + +fill: $a\hfill b$ + +protected fill: $a\hspace*{\fill} b$ + +2\,cm: $a\hspace*{2cm}b$ + +protected 2\,cm: $a\hspace{1cm}b$ + +enskip: $a\enskip b$ + +enspace: $a\enspace b$ + +thin: $a\, b$ + +medium: $a\: b$ + +thick: $a\; b$ + +negative thin: $a\negthinspace b$ + +negative medium: $a\negmedspace b$ + +negative thick: $a\negthickspace b$ + +quad: $a\quad b$ + +qquad: $a\qquad b$ + +interword: $a\ b$ + + \subsection{Vertical spaces} -Lines can have an vfill \vfill in the middle. +Lines can have a vfill \vfill in the middle. +Lines can have a vfill \vspace{\fill} in the middle. Lines can have a protected vfill \vspace*{\fill} in the middle. Lines can have vertical space \vspace{2cm} in the middle. Lines can have protected vertical space \vspace*{2cm} in the middle. @@ -340,4 +439,33 @@ smallskip 1:\smallskip smallskip 2:\vspace{\smallskipamount} +\section{Characters} + +from package "ascii" and "ifsym": +\textregistered{\ascii\ETB}\textifsymbol[ifgeo]{48}\textifsymbol[ifgeo]{96} +{\ascii\LF} +\ascii\LF{} + +from textcomp: +\textnumero\texttrademark + +from textgreek and textcyr: +\textgreek{>a}\textcyr{\char226} + +from subscript: +\textsubscript{4} + +from tfrupee +\rupee + +from marvosym and wasysym: +\CheckedBox \HandCuffLeft + +from bbding and pifont: +\FiveStarOpen \ding{190} + +from tipa and tipx: +\textctt \textdblig + + \end{document}