X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Fbox-color-size-space-align.tex;h=eb7de94160fe36fb265b2733d6f397c2c32b209e;hb=d3c63f97c4fce4e091277ced6c1829473c311231;hp=8c83d58768e2656a54e5cd3848c9ecb784492dfa;hpb=5247de506c47fc6167f8e1cb3beee22109204313;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 8c83d58768..eb7de94160 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,11 +14,30 @@ \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} +\usepackage{xcolor} \setlength{\parskip}{3mm} \setlength{\parindent}{0sp} @@ -22,7 +45,7 @@ \setstretch{1.2} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. - +\newcommand{\noun}[1]{\textsc{#1}} %% The greyedout annotation environment \newenvironment{lyxgreyedout}{\textcolor{note_fontcolor}\bgroup}{\egroup} @@ -32,6 +55,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 @@ -72,6 +97,10 @@ blabla \makebox[3cm]{makebox 2} blabla blabla \makebox[3cm][l]{makebox 3} blabla +\makebox[1\width]{www} + +\parbox[t][1\depth]{2.3cm}{www} + \begin{figure}[ht] \centering \setlength{\unitlength}{.2in} @@ -79,6 +108,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} @@ -94,32 +124,40 @@ blabla \begin{framed}\begin{framed}nested framed\end{framed}\end{framed} blabla blabla \fbox{fbox} blabla -blabla \framebox{framebox 1} blabla +blabla \framebox{framebox} blabla + +\fbox{\begin{minipage}[t]{0.9\columnwidth}% +fbox around minipage% +\end{minipage}} + +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. % +\framebox[1.5\totalheight]{www} + +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 @@ -131,6 +169,52 @@ blabla \doublebox{doublebox} blabla $\boxed{\int A=B}$ +\subsection{Boxes with custom settings} + +\fboxsep 35pt + +\framebox[1cm]{www} + +\fboxsep 20pt \framebox[1cm]{www} + +{\fboxsep 1pt \fboxrule 10pt \framebox[1cm]{www}} + +{\fboxsep 35pt\shadowsize 15pt\shadowbox{\centering www}} + +\parbox[t]{0.9\columnwidth}{% +\centering www% +} + +{\raggedleft +\parbox[t]{0.9\columnwidth}{ +\centering www% +} +} + +\subsection{Color Boxes} + +\colorbox{blue}{www} + +\colorbox{blue}{\begin{minipage}[t]{0.9\columnwidth} +www +\end{minipage}} + +\colorbox{blue}{\parbox[t]{0.9\columnwidth}{www}} + +\colorbox{blue}{\makebox[0.9\columnwidth][l]{www}} + +\fcolorbox{lime}{white}{\begin{minipage}[t]{0.9\columnwidth}% +www% +\end{minipage}} + +\fcolorbox{lime}{white}{\parbox[t]{0.9\columnwidth}{% +www% +}} + +\fcolorbox{lime}{white}{\makebox[0.9\columnwidth][l]{www}} + +\fcolorbox{lime}{white}{www} + \subsection{LyX Boxes} \begin{lyxgreyedout} @@ -140,11 +224,19 @@ $\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} test \textcolor{blue}{blue} test \textcolor{red}{red red red} test \textcolor{green}{bla}\textcolor{magenta}{blub} +test \textcolor{brown}{brown} test \textcolor{darkgray}{darkgray} test \textcolor{gray}{gray}\textcolor{lightgray}{lightgray} +test \textcolor{lime}{lime} test \textcolor{olive}{olive} test \textcolor{orange}{orange}\textcolor{pink}{pink} +test \textcolor{purple}{purple} test \textcolor{teal}{teal} test \textcolor{violet}{violet} test \textcolor{green}{c}% \textcolor{red}{o}% @@ -201,6 +293,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 @@ -295,6 +407,7 @@ 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. @@ -306,7 +419,9 @@ Lines can have a left arrow fill \leftarrowfill in the middle. Lines can have a right arrow fill \rightarrowfill in the middle. Lines can have a upbrace fill \upbracefill in the middle. Lines can have a downbrace fill \downbracefill in the middle. -Lines can have space \hspace{2cm} in the middle. +Lines can have an absolute space \hspace{2cm} in the middle. +Lines can have a relative space \hspace{0.12\textwidth} in the middle. +Lines can have a glue-length space \hspace{2cm plus 2mm minus 1mm} in the middle. Lines can have protected space \hspace*{2cm} in the middle. We also handle defined spaces: @@ -317,10 +432,6 @@ Visible\textvisiblespace{}a Thin\,a -Medium\:a - -Thick\;a - NegThin\negthinspace{}a NegMed\negmedspace{}a @@ -335,12 +446,48 @@ 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 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 a vertical absolute space \vspace{2cm} in the middle. +Lines can have a vertical relative space \vspace{0.09\columnwidth} in the middle. +Lines can have a vertical glue-length space \vspace{2cm minus 2bp plus 1cc} in the middle. Lines can have protected vertical space \vspace*{2cm} in the middle. We also handle skips: @@ -358,4 +505,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{\cyrv} + +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}