Enum latex::Element [] [src]

pub enum Element {
    Para(Paragraph),
    Section(Section),
    TableOfContents,
    TitlePage,
    ClearPage,
    Align(Align),
    Environment(StringVec<String>),
    UserDefined(String),
    List(List),
    // some variants omitted
}

The major elements in a Document.

Variants

A bare paragraph.

Note

You probably don't want to add a paragraph directly to your document, instead add it to a Section so that if you are walking the AST later on things make sense.

A section.

The table of contents.

The title page.

Clear the page.

An align environment for containing a bunch of equations.

A generic environment and its lines.

Any other element.

This can be used as an escape hatch if the particular element you want isn't directly supported or if you need to do something which isn't easily expressed any other way. You simply provide the raw string you want and it will be rendered unchanged in the final document.

A list.

Trait Implementations

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Element
[src]

Formats the value using the given formatter.

impl PartialEq for Element
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<Section> for Element
[src]

Performs the conversion.

impl Renderable for Element
[src]

Render the item.