Enum latex::Element
[−]
[src]
pub enum Element { Para(Paragraph), Section(Section), TableOfContents, TitlePage, ClearPage, Align(Align), Environment(String, Vec<String>), UserDefined(String), List(List), // some variants omitted }
The major elements in a Document
.
Variants
Para(Paragraph)
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.
Section(Section)
A section.
TableOfContents
The table of contents.
TitlePage
The title page.
ClearPage
Clear the page.
Align(Align)
An align
environment for containing a bunch of equations.
Environment(String, Vec<String>)
A generic environment and its lines.
UserDefined(String)
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.
List(List)
A list.
Trait Implementations
impl Clone for Element
[src]
fn clone(&self) -> Element
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Element
[src]
impl PartialEq for Element
[src]
fn eq(&self, __arg_0: &Element) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Element) -> bool
This method tests for !=
.