15.07.2013 Views

flowfram.pdf. - CTAN

flowfram.pdf. - CTAN

flowfram.pdf. - CTAN

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

\@ff@disablecolor Disable colour commands.<br />

\ifthenelse{\equal{\ff@backcol}{{none}}}%<br />

{%<br />

##1%<br />

}%<br />

{%<br />

{\fboxsep=0pt\expandafter\colorbox\ff@backcol{##1}}%<br />

}%<br />

}%<br />

\newcommand*{\@ff@disablecolor}{%<br />

\def\<strong>flowfram</strong>etextcol{}%<br />

\def\<strong>flowfram</strong>ecol{}%<br />

\renewcommand{\@s@tffcol}{}\renewcommand{\@s@tfftextcol}{}%<br />

\renewcommand{\@ffbackground}[1]{##1}%<br />

}<br />

\iflefttorightcolumns Determine whether to define the Ncolumn style frames from left to right or<br />

from right to left.<br />

LR<br />

RL<br />

\newif\iflefttorightcolumns<br />

\lefttorightcolumnstrue<br />

Define options that set the direction:<br />

\DeclareOptionX{LR}{\lefttorightcolumnstrue}<br />

\DeclareOptionX{RL}{\lefttorightcolumnsfalse}<br />

If the \normalcolor command is something other than \relax, then implement<br />

the color=true option as the default, otherwise implement the color=false<br />

option as the default.<br />

\ifx\normalcolor\relax<br />

\@ff@disablecolor<br />

\else<br />

\@ff@enablecolor<br />

\fi<br />

Now the defaults have all been set, the package options specified by the user<br />

can be processed:<br />

\ProcessOptionsX<br />

If color=true option has been specified, but no color package has been loaded<br />

yet, load color.sty<br />

\ifx\normalcolor\relax<br />

\ifthenelse{\equal{\<strong>flowfram</strong>etextcol}{}}%<br />

{}%<br />

8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!