Crate rust_texas

Crate rust_texas 

Source
Expand description

Well, hello there.

So this crate aims to provide convenient ways of programmatically generating a latex file.

If you want to just convert from some other file format WITHOUT any processing, I recommend pandoc.

I’ll slowly and steadily begin adding more features, and my goal is to be able to cover most standard use-cases of Latex. If you want any feature, raise an issue! I will see it, and while I may not reply (scatterbrained, much?) I will fix it.

A shout-out to another crate, tex-rs. A few of the design choices I made are based on this crate.

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.
label
macros
Really helpful stuff.
prelude
traits
Ubiquitous.

Macros§

builtin
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.
figure
frame
image
Sugar for image creation
label
package
This, too, could’ve gotten ugly. Package creation with options.
part
Sugar for \part{} creation
reference
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