(
path: &Path,
)
| 211 | } |
| 212 | |
| 213 | pub fn parse_latex_from_file( |
| 214 | path: &Path, |
| 215 | ) -> Result<PathBuf> { |
| 216 | let mut content = String::new(); |
| 217 | let mut f = File::open(path) |
| 218 | .map_err(Error::Io)?; |
| 219 | f.read_to_string(&mut content).unwrap(); |
| 220 | |
| 221 | parse_latex(&content) |
| 222 | } |