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.

\advance\@colN by 1\relax<br />

\ifthenelse<br />

{%<br />

\equal{#1}{\csname @df@id@\romannumeral\@colN\endcsname}%<br />

}%<br />

{%<br />

\ff@id=\@colN\relax<br />

Break out of loop<br />

}<br />

\@colN=\c@maxdynamic<br />

}%<br />

{}%<br />

}%<br />

\ifnum\ff@id=0\relax<br />

\PackageError{<strong>flowfram</strong>}%<br />

{Can’t find dynamic frame id ’#1’}{}%<br />

\fi<br />

\@getframeid \@getframeid{〈type〉}{〈idl〉}<br />

Gets the IDL for the frame of type 〈type〉 whose IDL is given by 〈idl〉. The IDN<br />

is stored in \ff@id.<br />

\dynamicframex<br />

\dynamicframey<br />

\dynamicframeevenx<br />

\newcommand*{\@getframeid}[2]{%<br />

\@ifdefined{@#1frameid}%<br />

{\csname @#1frameid\endcsname{#2}}%<br />

{%<br />

\PackageError{<strong>flowfram</strong>}%<br />

{Unknown frame type ‘#1’}%<br />

{Frame types can be one of: flow, static or dynamic}%<br />

}%<br />

}<br />

Make it easier to get the x and y values for dynamic frames. (Width and<br />

height stored differently.)<br />

\newcommand*{\dynamicframex}[1]{%<br />

\csname @df@\romannumeral#1@posx\endcsname<br />

}<br />

\newcommand*{\dynamicframey}[1]{%<br />

\csname @df@\romannumeral#1@posy\endcsname<br />

}<br />

\newcommand*{\dynamicframeevenx}[1]{%<br />

\csname @df@\romannumeral#1@evenx\endcsname<br />

}<br />

48

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

Saved successfully!

Ooh no, something went wrong!