I am writing some text with Markdown on the Jupyter notebook. But I am not able to import some Latex packages to the notebook. I tried to follow How to include LaTeX package in R Markdown?. I tried to include the mathtools
package, but it does not work.
With
title: "Title"
author: "Me"
header-includes:
- \usepackage{mathtools}
output:
pdf_document
I am still not able to call commands like $\xrightarrow[\text{sample text}]$
on Jupyter notebook.
Best Answer
Welcome to TeX.SE. Don't use square brackets
[]
in your math expression. Use braces{}
only. You wrote:$\xrightarrow[\text{sample text}]$
. It should be:$\xrightarrow{\text{sample text}}$
.Edit: Updated to show the use of
\Bracket
and\Set
from thebraket
package.