diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/floatrow/frsample12.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/floatrow/frsample12.tex | 95 |
1 files changed, 32 insertions, 63 deletions
diff --git a/Master/texmf-dist/doc/latex/floatrow/frsample12.tex b/Master/texmf-dist/doc/latex/floatrow/frsample12.tex index afd694fc899..295274bc7fc 100644 --- a/Master/texmf-dist/doc/latex/floatrow/frsample12.tex +++ b/Master/texmf-dist/doc/latex/floatrow/frsample12.tex @@ -138,9 +138,12 @@ \unitlength1.44pt +\onecolumn +\begingroup + \chapter{Two Column Document and Color (Beta-Version Example)} -\begin{sl} +\begin{sl}\fontsize{11}{13.6}\selectfont This example shows floats in two-column document. There are also color settings. @@ -153,22 +156,16 @@ box alignment and justification of object contents flushed to left margin; separation between beside caption and object equals to 2\,em; separation between beside float boxes also equals to 1\,em. \begin{verbatim} -\usepackage[font={small,sf}, - footskip=.5\skip\footins, - footnoterule=limited, - captionskip=5pt, - margins=raggedright, - objectset=raggedright, - capbesidesep=qquad, - floatrowsep=quad]{floatrow} +\usepackage[font={small,sf},footskip=.5\skip\footins,footnoterule=limited, + captionskip=5pt,margins=raggedright,objectset=raggedright, + capbesidesep=qquad,floatrowsep=quad]{floatrow} \end{verbatim} \emph{Common caption settings.} For caption text used \verb|\small| font, caption label font bold, separated by period sign, justification justified. \begin{verbatim} -\usepackage[font=small,labelfont=bf, - labelsep=period,justification=justified, +\usepackage[font=small,labelfont=bf,labelsep=period,justification=justified, singlelinecheck=no]{caption} \end{verbatim} @@ -176,8 +173,7 @@ by period sign, justification justified. Justification centerlast (last line centered). The value of \verb|\farskip| equals zero (to avoid unwanted colored space in tables). \begin{verbatim} -\usepackage[justification=centerlast, - farskip=0pt]{subfig} +\usepackage[justification=centerlast,farskip=0pt]{subfig} \end{verbatim} \emph{Special settings for float types.}\\ @@ -187,10 +183,8 @@ current \verb|\hsize|, heights of boxes adjusted in float row (float style was `gathered' by \verb|\floatsetup| keys), beside captions aligned to the edges of frame, footnote rule absent. \begin{verbatim} -\floatsetup[figure]{framestyle=doublebox, - capbesideframe=yes, - framearound=object,framefit=yes, - heightadjust=object,footnoterule=none} +\floatsetup[figure]{framestyle=doublebox,capbesideframe=yes, + framearound=object,framefit=yes,heightadjust=object,footnoterule=none} \end{verbatim} \emph{Textbox.} The new float textbox uses defined colored thick rules above and below, @@ -199,37 +193,18 @@ object contents have red color and \verb|\parskip|${={}}2$\,pt; floats in float row separated by 2\,em space.\\ Captions use hanged label. \begin{verbatim} -\DeclareNewFloatType{textbox}% - {fileext=lor,name=Text,placement=tp} +\DeclareNewFloatType{textbox}{fileext=lor,name=Text,placement=tp} -\DeclareFloatVCode{rulei}% - {\begingroup - \color{blue}% - \hrule height1.8ptdepth0pt\kern2pt% - \endgroup} +\DeclareFloatVCode{rulei}{\begingroup + \color{blue}\hrule height1.8ptdepth0pt\kern2pt\endgroup} \DeclareFloatVCode{ruleii}% - {\begingroup - \color{blue}% - \kern2pt\hrule height1.8pt depth0pt% - \kern5pt - \endgroup} -\DeclareObjectSet{colorred} - {\parskip2pt\color{red}} -\DeclareFloatSeparators{colorsep}% - {\begingroup - \color{blue}% - \floatfacing - {\hskip14pt - \vrule width1.8pt\hskip2pt}% - {\hskip2pt - \vrule width1.8pt\hskip14pt}% - \endgroup} -\floatsetup[textbox]{precode=rulei, - midcode=ruleii, - capposition=bottom, - objectset=colorred, - floatrowsep=qquad, - heightadjust=object} + {\begingroup\color{blue}\kern2pt\hrule height1.8pt depth0pt\kern5pt\endgroup} +\DeclareObjectSet{colorred}{\parskip2pt\color{red}} +\DeclareFloatSeparators{colorsep}{\begingroup + \color{blue}\floatfacing{\hskip14pt\vrule width1.8pt\hskip2pt}% + {\hskip2pt\vrule width1.8pt\hskip14pt}\endgroup} +\floatsetup[textbox]{precode=rulei,midcode=ruleii,capposition=bottom, + objectset=colorred,floatrowsep=qquad,heightadjust=object} \captionsetup[textbox]{format=hang} \end{verbatim} @@ -237,11 +212,9 @@ Captions use hanged label. For beside captions the rules above and below were replaced by vertical separate rule. Caption label placed in separate line. \begin{verbatim} -\floatsetup[capbesidetextbox]% - {precode=none,capbesidesep=colorsep} +\floatsetup[capbesidetextbox]{precode=none,capbesidesep=colorsep} -\captionsetup[capbesidetextbox]% - {format=default,labelsep=newline} +\captionsetup[capbesidetextbox]{format=default,labelsep=newline} \end{verbatim} \emph{Special settings for special float layout.}\\ @@ -250,12 +223,8 @@ For rotated floats created special settings to align visual top of rotated float with beside text column was created spacial alignment; beside captions positioned to the right from object contents and top aligned. \begin{verbatim} -\DeclareMarginSet{sideways}% - {\setfloatmargins - {}{\hskip.5\topskip plus1fil}} -\floatsetup[rotfloat]{% - capbesideposition={right,top}, - margins=sideways} +\DeclareMarginSet{sideways}{\setfloatmargins{}{\hskip.5\topskip plus1fil}} +\floatsetup[rotfloat]{capbesideposition={right,top},margins=sideways} \end{verbatim} \emph{Wide rotated.} For wide or two-column (starred) @@ -267,17 +236,17 @@ command from loaded \pkg{floatpagestyle} package\footnote{In current example positioned to the right from object contents and vertically centered. \begin{verbatim} \DeclareMarginSet{widesideways}% - {\setfloatmargins{}% - {\hskip-\headsep - \hskip-.7\headheight plus1fil}} -\floatsetup[widerotfloat]{% - capbesideposition={right,center}, - capbesideframe=no, - margins=widesideways} + {\setfloatmargins{}{\hskip-\headsep\hskip-.7\headheight plus1fil}} +\floatsetup[widerotfloat]{capbesideposition={right,center}, + capbesideframe=no,margins=widesideways} \end{verbatim} \end{sl} +\endgroup + +\twocolumn + \input fr-sample \end{document} |