Module somedoc::write::latex[][src]

Write a document as LaTeX. This includes a small number of additional CTAN packages to support math formatting, images, and code syntax highlighting.

Example

use somedoc::write::{OutputFormat, write_document_to_string};

let doc = make_some_document();

let doc_str = write_document_to_string(&doc, OutputFormat::Latex).unwrap();
println!("{}", doc_str);

Structs

LatexPreamble

This structure represents the preamble included in the generated LaTeX source. Note that the default includes a number of package references that you'll lose if you simply replace it with another. It is generally better to append to this preamble in the following manner:

LatexWriter

Implementation of the LaTeX writer structure, usually this is accessed via the writer function, but may be used directly.

Enums

PreambleItem

This enumeration represents the components included in a LaTeX file preamble; note that this is not exhaustive, but useful enough for generation of most document content.

Functions

writer

Implementation of the writer function for HTML.