Mercurial > projects > dil
view trunk/src/docgen/document/latexwriter.d @ 455:f92505ad18ab
Simple configuration reader, small modifications.
author | Jari-Matti M?kel? <jmjm@iki.fi> |
---|---|
date | Mon, 29 Oct 2007 21:27:02 +0200 |
parents | f658ec4a15dd |
children | de2675bc9afa |
line wrap: on
line source
/** * Author: Jari-Matti Mäkelä * License: GPL3 */ module docgen.document.latexwriter; import docgen.document.writer; import tango.io.FileConduit : FileConduit; import tango.io.Print: Print; import tango.text.convert.Layout : Layout; /** * Writes a LaTeX document skeleton. */ class LaTeXWriter : AbstractDocumentWriter!(1, "latex") { this(DocumentWriterFactory factory, OutputStream[] outputs) { super(factory, outputs); } void generateFirstPage() { auto print = new Print!(char)(new Layout!(char), outputs[0]); print.format( templates["firstpage"], factory.options.templates.paperSize, factory.options.templates.title, factory.options.templates.versionString, docgen_version, timeNow(), factory.options.listing.literateStyle ? "" : "%" ); } }