-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrices in subsection titles fails (md -> PDF) #3932
Comments
Reproduced in dev version. |
Current output: \subsection{\texorpdfstring{\(\begin{bmatrix}0 &0 &0\end{bmatrix}\)}{\textbackslash{}begin\{bmatrix\}0 \&0 \&0\textbackslash{}end\{bmatrix\}}}\label{beginbmatrix0-0-0endbmatrix}} Note that this works fine: \subsection[foo]{\texorpdfstring{\(\begin{bmatrix}0 &0 &0\end{bmatrix}\)}{\textbackslash{}begin\{bmatrix\}0 \&0 \&0\textbackslash{}end\{bmatrix\}}}\label{beginbmatrix0-0-0endbmatrix}} |
There's an approach here: |
Adding \subsection{\texorpdfstring{\(\protect\begin{bmatrix}0 &0 &0\protect\end{bmatrix}\)}{\textbackslash{}begin\{bmatrix\}0 \&0 \&0\textbackslash{}end\{bmatrix\}} |
Adding the
|
Looks like adding |
Version: 1.16.0.2
Files:
mwe.md
## $\begin{bmatrix}0 &0 &0\end{bmatrix}$
header
Output:
My expected output is a PDF with a subsection heading with this matrix:

The text was updated successfully, but these errors were encountered: