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§
- Bunch of From<>s, they feel like they might be useful
- Latex commands/macros. Haven’t found this in any other crate.
- Standard Latex things.
- Packages and the overall latex layout.
- Custom error type.
- Really helpful stuff.
- Ubiquitous.
Macros§
- Sugar for \chapter{} creation
- 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.
- Sugar for document creation
- Sugar for environment creation.
- Sugar for image creation
- This, too, could’ve gotten ugly. Package creation with options.
- Sugar for \part{} creation
- Basically
vec![]
- Sugar for \section{} creation
- Sugar for table creation. Different name coz
diesel
uses thetable!()
macro to do some wizardry. - Convenient, I hope?
- StackOverflow: https://stackoverflow.com/a/58243493