[][src]Crate latex_snippet

This crate turns (a subset of) latex into html, with syntax errors reported using span elements.

Functions

__wasm_bindgen_generated_check_latex

Check latex against supported macros

check_latex

Check latex against supported macros

convert_html

A version of html_string suitable for export to C and python.

html

Convert some LaTeX into HTML, and send the results to a std::io::Write.

html_paragraph

Convert some LaTeX into HTML, and send the results to a std::io::Write.

html_section

Convert some LaTeX into HTML, and send the results to a std::io::Write.

html_string

Convert some LaTeX into an HTML String.

html_subsection

Convert some LaTeX into HTML, and send the results to a std::io::Write.

html_subsubsection

Convert some LaTeX into HTML, and send the results to a std::io::Write.

include_solutions

Include solutions via \begin{solution}

latex_to_html_omit_solution

A version of html_with_solution suitable for export to C and python.

latex_to_html_with_solution

A version of html_with_solution suitable for export to C and python.

omit_solutions

Strip out solutions

physics_macros

Substitute five physics macros

set_panic_hook

When the console_error_panic_hook feature is enabled, we can call the set_panic_hook function at least once during initialization, and then we will get better error messages if our code ever panics.

strip_comments

Cut out comments

with_image_directory

Process \includegraphics with the specified image directory.