[][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

c_omit_guide

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

c_omit_handout

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

c_omit_solution

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

c_only_handout

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

c_physics_macros

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

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_guide

Strip out guides

omit_handout

Strip out handouts

omit_solutions

Strip out solutions

only_handout

Keep just the handouts

physics_macros

Substitute five physics macros

pull_sections_out

Pull (sub)sections out of guide/solution/handout

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.