15.07.2013 Views

flowfram.pdf. - CTAN

flowfram.pdf. - CTAN

flowfram.pdf. - CTAN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

\<strong>flowfram</strong>eheight<br />

\csname colwidth\romannumeral#1\endcsname<br />

}<br />

\newcommand*{\<strong>flowfram</strong>eheight}[1]{%<br />

\csname colheight\romannumeral#1\endcsname<br />

}<br />

\@setframecol Set the colour of the frame, this is a little tricky because the model may need to<br />

be specified in square brackets. First check to see if a colour model has been<br />

specified<br />

\def\@setframecol{\@ifnextchar[\@@setframecol\@@setfr@mecol}<br />

\@@setframecol A colour model has been specified.<br />

\def\@@setframecol[#1]#2\end#3#4#5{%<br />

\expandafter\edef\csname @#5@#4@\romannumeral#3\endcsname{%<br />

[#1]{#2}}%<br />

}<br />

\@@setfr@mecol A colour model has not been specified.<br />

\def\@@setfr@mecol#1\end#2#3#4{%<br />

\expandafter\edef\csname @#4@#3@\romannumeral#2\endcsname{{#1}}%<br />

}<br />

1.3 Static Frames<br />

\newstaticframe Now deal with setting up the static frames. This is similar to the flow frames,<br />

except it has an associated LATEX savebox rather than a TEX box. Syntax:<br />

\newstaticframe[〈pages〉]{〈width〉}{〈height〉}{〈x〉}{〈y〉}[〈label〉]<br />

As with \new<strong>flowfram</strong>e, the final optional argument is dealt with at the end.<br />

\@n@wstaticframe<br />

\newcommand*{\newstaticframe}{\@n@wstaticframe}<br />

\newcommand*{\@n@wstaticframe}{%<br />

\global\advance\c@maxstatic by 1\relax<br />

\newboolean{staticframe\romannumeral\c@maxstatic}%<br />

\@ifstar\@snewstaticframe\@newstaticframe<br />

}<br />

\@snewstaticframe Starred version (has a border):<br />

\newcommand{\@snewstaticframe}{%<br />

\setboolean{staticframe\romannumeral\c@maxstatic}{true}%<br />

\@@newstaticframe<br />

}<br />

\@newstaticframe Unstarred version (no border):<br />

\newcommand{\@newstaticframe}{%<br />

30

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

Saved successfully!

Ooh no, something went wrong!