texcore 0.4.3

Write latex in rust, and either compile it to pdf or output the tex code
Documentation

TexCore

This project is under the MIT License

TexCore is the successor to tex-rs and uses linked lists to help walk and sort elements to either write to tex code or compile to pdf.

To add to your project:

[dependencies]
texcore = "0.4"

The Compile Feature

To allow this library to be able to run on Windows systems, I have made the tectonic dependency optional and only available under the compile feature. This means that the function, texcore::compile() and ElementList::compile() are hidden under this feature.

[dependencies]
texcore = { version = "0.4", features = ["compile"] }

The TexCreate Template Feature

To allow easier development with the TexCreate project, I have decided to add the texcreate-templates portion under the texcreate_template feature. This feature also uses the compile feature as long as the dependency serde_json.

texcore = { version = "0.4", features = ["texcreate_template"] }

Read documentation here

Changes in 0.4.0

  • ElementList::new() has been changed so it needs &Metadata as an argument
  • Fixed the From trait that is implement for all of the Tex types for Element<Any>

The following functions uses ElementList mutably, as well as other described changes:

  • ElementList::to_latex_string() & ElementList::to_latex_split_string() have been modified.
    • No longer use a sort() method and instead utilizes fpop().
  • The ElementList::write() function has been split into two different functions:
    • ElementList::write(): Writes to a file given a path, main
    • ElementList::write_split(): Write to two files by splitting the meta + document and packages level