clean(*): remove tectonic
This commit is contained in:
parent
4ba6a65a71
commit
4068b3a3cd
File diff suppressed because it is too large
Load Diff
|
@ -6,4 +6,3 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
tectonic = "0.14.1"
|
||||
|
|
18
src/main.rs
18
src/main.rs
|
@ -1,8 +1,5 @@
|
|||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::Write;
|
||||
use std::process;
|
||||
use tectonic;
|
||||
|
||||
fn main() {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
|
@ -24,19 +21,4 @@ fn main() {
|
|||
if is_equation {
|
||||
computorv1::maths::solver::solve(evaluated);
|
||||
}
|
||||
/*
|
||||
let latex = r#"
|
||||
\documentclass{article}
|
||||
\begin{document}
|
||||
Hello, world!
|
||||
\end{document}
|
||||
"#;
|
||||
|
||||
let pdf_data: Vec<u8> = tectonic::latex_to_pdf(latex).expect("processing failed");
|
||||
println!("Output PDF size is {} bytes", pdf_data.len());
|
||||
|
||||
// Write the modified data.
|
||||
let mut f = File::create("file-modified.pdf").unwrap();
|
||||
f.write_all(pdf_data.as_slice()).unwrap();
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue