Crate Texas

Crate Texas 

Source

Re-exports§

pub use traits::*;
pub use commands::*;
pub use component::*;
pub use document::*;
pub use errors::*;

Modules§

casting
Bunch of From<>s, they feel like they might be useful
commands
Latex commands/macros. Haven’t found this in any other crate.
component
Standard Latex things.
document
Packages and the overall latex layout.
errors
Custom error type.
macros
Really helpful stuff.
traits
Ubiquitous.

Macros§

chapter
Sugar for \chapter{} creation
command
This could’ve gotten real ugly if you had to do it yourself. So whenever you’ve got a latex macro you defined earlier, and want to use it, use this macro.
document
Sugar for document creation
environment
Sugar for environment creation.
image
Sugar for image creation
package
This, too, could’ve gotten ugly. Package creation with options.
part
Sugar for \part{} creation
row
Basically vec![]
section
Sugar for \section{} creation
tabular
Sugar for table creation. Different name coz diesel uses the table!() macro to do some wizardry.
textchunk
Convenient, I hope?
unwrap
StackOverflow: https://stackoverflow.com/a/58243493