-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
Hey, thanks for the great package!
Trying to use this to export some code:
\[
\underbrace{
\begin{bmatrix}
y_{1i} \\
\vdots \\
y_{mi}
\end{bmatrix}
}_{\mathbf{y}_i}
=
\underbrace{
\begin{bmatrix}
\beta_{11} & & \beta_{1(p+1)} \\
& \ddots & \\
\beta_{m1} & & \beta_{m(p+1)}
\end{bmatrix}
}_{B^\intercal}
\underbrace{
\begin{bmatrix}
x_{1i} \\
\vdots \\
x_{(p+1)i}
\end{bmatrix}
}_{\mathbf{x}_i}
-
\underbrace{
\begin{bmatrix}
\varepsilon_{i1} \\
\vdots \\
\varepsilon_{im}
\end{bmatrix}
}_{\mathbf{\varepsilon}_i}
\]But I have 2 problems:
- The minus on its own like gets exported as as a list item (i think), and causes some symbols to be double slashed.
- I think either the underbraces or the
\\cause issues when only$$or\[are used as the math delimiters. When I use\begin{aligned}...\end{aligned}inside the math environment they then render properly
This is how it appears in the output markdown:
> \\[
> \underbrace{
>
> \begin{bmatrix}
> y\_{1i} \\\\
> \vdots \\\\
> y\_{mi}
> \end{bmatrix}
>
> }<sub>\mathbf{y}_i</sub>
> =
> \underbrace{
>
> \begin{bmatrix}
> \beta\_{11} & & \beta\_{1(p+1)} \\\\
> & \ddots & \\\\
> \beta\_{m1} & & \beta\_{m(p+1)}
> \end{bmatrix}
>
> }<sub>B^\intercal</sub>
> \underbrace{
>
> \begin{bmatrix}
> x\_{1i} \\\\
> \vdots \\\\
> x\_{(p+1)i}
> \end{bmatrix}
>
> }<sub>\mathbf{x}_i</sub> +
> \underbrace{
>
> \begin{bmatrix}
> \varepsilon\_{i1} \\\\
> \vdots \\\\
> \varepsilon\_{im}
> \end{bmatrix}
>
> }<sub>\mathbf{\varepsilon}_i</sub>
> \\]There are <sub> ... </sub> elements in there
Thanks a lot!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels