LatexImgGen

A rust crate for generating Latex images of equations with an edition number to avoid cache flushing and timestamp attributes

Example

let mut name = "test".to_string(); let path = "../imgfolder/"; name = LatexImgGen::render(name,"y=\\frac{1}{x}".to_string(),Some(path),true); an image called test0.svg will be generated name = LatexImgGen::render(name,"y=\\frac{2}{x}".to_string(),Some(path),true); an image called test1.svg will be generated

Parameter Inputs

render(full_img_name: String, eq_input: String, filepath: Option<&str>, _del_prev: bool) filepath -> if you want the image added to your current directory, use None \ delprev -> true if you want the previous version to be deleted