31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

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.

foo.[lw|nw|w]<br />

lextract<br />

❄<br />

foo.man<br />

ldel<br />

✲<br />

XXXweave<br />

foo-del.[lw|nw|w] ✲ foo.tex<br />

✻<br />

\input<br />

latex<br />

✲<br />

Figure C.3: <strong>The</strong> <strong>Manual</strong> Production Process<br />

\usepackage{Lweb}<br />

\begin{document}<br />

output of lextract<br />

\end{document}<br />

and then applies latex and xdvi to it.<br />

<strong>LEDA</strong>ROOT<br />

incl<br />

<strong>LEDA</strong><br />

<strong>Manual</strong><br />

cmd noweb tex MANUAL<br />

Figure C.4: <strong>Manual</strong> relevant directories<br />

Ldoc is the tool to produce full documentations consisting of manual page, implementation,<br />

and test routines. Ldoc is based on noweb [78], and Lweb. Lweb is a dialect of<br />

noweb which we developed for the production of the <strong>LEDA</strong> book and the documentation<br />

of the <strong>LEDA</strong> system. You should have a working knowledge of noweb before proceeding.<br />

Ldoc is based on the commands lextract, ldel, and weave. We discussed lextract already.<br />

ldel infile outfile<br />

reads infile, deletes all manual comments from it, and writes the result on outfile. Weave<br />

is the weave-command of the literate programming tool in use, i.e., noweave for noweb,<br />

and lweave for Lweb. Ldoc works on noweb-, and Lweb-files. It first uses lextract to<br />

extract the manual and ldel to extract a file pure of manual comments, it then applies the<br />

appropriate weave command to the output of ldel, and it finally applies latex and xdvi to<br />

the resulting file. All Lman options apply.<br />

Figure <strong>The</strong> <strong>LEDA</strong> directory tree shows the parts of the <strong>LEDA</strong>ROOT directory that<br />

are relevant for manual production. Subdirectory <strong>Manual</strong> splits into cmd, noweb, tex,<br />

and MANUAL: cmd contains the commands Lman, Fman, . . . , noweb contains the full<br />

documentation (written in noweb) of all commands, tex contains the style-files for manual<br />

production, and MANUAL contains the actual <strong>LEDA</strong> manual.<br />

For more information about the <strong>LEDA</strong> tools for manual production and documentation<br />

we refer the reader to the corresponding chapter of [64].

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

Saved successfully!

Ooh no, something went wrong!