Common Lisp Package: DOCUTILS.WRITER.LATEX

Latex writer for docutils

README:

FUNCTION

Private

COL-SPECS (TABLE)

Return col-specs for longtable

ENCODE (WRITER STRING)

Encode special characters in `text` & return encoded string. # $ % & ~ _ ^ { } Escaping with a backslash does not help with backslashes, ~ and ^. < > are only available in math-mode or tt font. (really ?) $ starts math- mode.\begin{thebibliography}{%s} AND quotes:

ERROR (DATUM &REST ARGUMENTS)

Invoke the signal facility on a condition formed from DATUM and ARGUMENTS. If the condition is not handled, the debugger is invoked.

JOIN-STRINGS (STRINGS &OPTIONAL (SEPARATOR ))

Return a new string by joining together the STRINGS, separating each string with a SEPARATOR character or string

MODE (CHECKLIST WRITER)

Return true if writer is in any of the checklist modes

SPLIT-STRING (STRING &KEY COUNT (DELIMITER +WS+) REMOVE-EMPTY-SUBSEQS)

Split `string' along whitespace as defined by the sequence `ws'. Whitespace which causes a split is elided from the result. The whole string will be split, unless `max' is provided, in which case the string will be split into `max' tokens at most, the last one containing the whole rest of the given `string', if any.

TO-LATEX-ENCODING (ENCODING)

Translate docutils encoding name into latex's. Default fallback method is remove "-" and "_" chars from docutils_encoding.

Undocumented

ATTVAL (WRITER STRING)

BOOKMARK (WRITER NODE)

CLOSE-TABLE (TABLE)

CLOSING (TABLE)

COLUMN-WIDTH (TABLE)

DEPART-ROW (TABLE)

DOUBLE-QUOTES-IN-TT (TEXT)

ENSURE-TABLE-PREAMBLE (WRITER)

LATEX-LENGTH (SIZE)

OPEN-TABLE (TABLE)

OPENING (TABLE)

QUOTE-QUOTES (TEXT)

ROWSPAN (TABLE CELL)

SETFROWSPAN (VALUE TABLE CELL)

USED-PACKAGES (TABLE)

VERTICAL-BAR (TABLE)

VISIT-ENTRY (TABLE)

VISIT-ROW (TABLE)

VISIT-THEAD (TABLE)

MACRO

Private

VISIT-DOCINFO-ITEM (WRITER NODE NAME)

Helper macro for docinfo items

Undocumented

COLLECT-PARTS (&BODY BODY)

WITH-MODES ((WRITER &REST MODES) &BODY BODY)

SLOT-ACCESSOR

Private

AUTHOR-STACK (OBJECT)

List of author information

SETFAUTHOR-STACK (NEW-VALUE OBJECT)

List of author information

DEPENDENCIES (OBJECT)

List of dependencie uris

SETFDEPENDENCIES (NEW-VALUE OBJECT)

List of dependencie uris

ENUMERATION-COUNTERS (OBJECT)

Stack of enumeration counters

SETFENUMERATION-COUNTERS (NEW-VALUE OBJECT)

Stack of enumeration counters

LITERAL-BLOCK-STACK (OBJECT)

Nested literal blocks

SETFLITERAL-BLOCK-STACK (NEW-VALUE OBJECT)

Nested literal blocks

MAX-ENUM-DEPTH (OBJECT)

Maximum enumeration counter depth so far

SETFMAX-ENUM-DEPTH (NEW-VALUE OBJECT)

Maximum enumeration counter depth so far

METADATA (OBJECT)

docinfo metadata for Latex and pdfinfo

SECTION-NUMBERS (OBJECT)

Stack of nested section numbers

SETFSECTION-NUMBERS (NEW-VALUE OBJECT)

Stack of nested section numbers

Undocumented

ACTIVE-TABLE (OBJECT)

CLASS-SECTIONS (OBJECT)

ENTRY-NUMBER (OBJECT)

LATEX-TYPE (OBJECT)

OPEN-P (OBJECT)

SETFOPEN-P (NEW-VALUE OBJECT)

TABLE-STYLE (OBJECT)

VARIABLE

Private

+WS+

Bag of white space delimiter characters

CLASS

Public

LATEX-OUTPUT-STREAM

Stream to help format latex out correctly - uses line wrapping, removes multiple spaces (including ~)

LATEX-WRITER

Docutils latex writer

Private

LATEX-TABLE

Manage a table while traversing. Maybe change to a mixin defining the visit/departs, but then class Table internal variables are in the Translator.

CONDITION

Private

Undocumented

ERROR (DATUM &REST ARGUMENTS)

WARNING