12.07.2015 Views

eledmac A presumptuous attempt to port EDMAC, TABMAC and ...

eledmac A presumptuous attempt to port EDMAC, TABMAC and ...

eledmac A presumptuous attempt to port EDMAC, TABMAC and ...

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.

50 20 Sectioning comm<strong>and</strong>s20 Sectioning comm<strong>and</strong>s\section@numYou use \beginnumbering <strong>and</strong> \endnumbering <strong>to</strong> begin <strong>and</strong> end a line-numberedsection of the text; the pair of comm<strong>and</strong>s may be used as many times as youlike within one document <strong>to</strong> start <strong>and</strong> end multiple, separately line-numberedsections. LaTeX will maintain <strong>and</strong> display a ‘section number’ as a count named\section@num that counts how many \beginnumbering <strong>and</strong> \resumenumberingcomm<strong>and</strong>s have appeared; it needn’t be related <strong>to</strong> the logical divisions of yourtext.\extensionchars\ifnumbering\numberingtrue\numberingfalse\ifnumberingR\ifl@dpairing\l@dpairingtrue\l@dpairingfalse\ifpst@rtedL\pst@rtedLtrue\pst@rtedLfalse\l@dnumpstartsL\ifledRcol\ifledRcol@Each section will read <strong>and</strong> write an associated ‘line-list file’, containing informationused <strong>to</strong> do the numbering; the file will be called 〈jobname〉.nn, where nn is thesection number. However, you may direct that an extra string be added before thenn in that filename, in order <strong>to</strong> distinguish these temporary files from others: thatstring is called \extensionchars. Initially it’s empty, since different operatingsystems have greatly varying ideas about what characters are permitted in filenames. So \renewcomm<strong>and</strong>{\extensionchars}{-} gives temporary files calledjobname.-1, jobname.-2, etc.163 \newcount\section@num164 \section@num=0165 \let\extensionchars=\emptyThe \ifnumbering flag is set <strong>to</strong> true if we’re within a numbered section (that is,between \beginnumbering <strong>and</strong> \endnumbering). You can use \ifnumbering inyour own code <strong>to</strong> check whether you’re in a numbered section, but don’t changethe flag’s value.166 \newif\ifnumberingIn preparation for the eledpar package, these are related <strong>to</strong> the ‘left’ text of paralleltexts (when \ifl@dpairing is TRUE). They are explained in the eledpar manual.167 \newif\ifl@dpairing168 \l@dpairingfalse169 \newif\ifpst@rtedL170 \pst@rtedLfalse171 \newcount\l@dnumpstartsL\ifledRcol is set <strong>to</strong> true in the Rightside environnement. It must be distinguedfrom \ifledRcol@ which is set <strong>to</strong> true when a right line is processed, in \Pagesor \Columns.172 \newif\ifledRcol173 \newif\ifledRcol@The \ifnumberingR flag is set <strong>to</strong> true if we’re within a right text numberedsection.174 \newif\ifnumberingR

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

Saved successfully!

Ooh no, something went wrong!