nalgebra_latex 0.1.13

A library with several robust formatters for nalgebra::Matrix, LaTeX environments, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::latex_modes::{DisplayMathMode, InnerParagraphMode};
use mime_typed::evcxr_support::TextMarkdownUtf8;

use super::{EvcxrOutputFormatter, LatexFormatter};

impl<F, I> EvcxrOutputFormatter<TextMarkdownUtf8, I> for F
where
    F: LatexFormatter<InnerParagraphMode, DisplayMathMode, I>,
{
    fn write_evcxr_output<W: core::fmt::Write>(
        &self,
        dest: &mut W,
        input: &I,
    ) -> Result<(), core::fmt::Error> {
        F::write_latex(dest, input)
    }
}