Coloring
tmpethick opened this issue · comments
Thomas Pethick commented
I am trying to use colors in math mode. However the following minimal examples cannot compile since \textcolor
is apparently not available even though the package is loaded.
Tex:
\documentclass{article}
\usepackage{color}
\begin{document}
$\textcolor{red}{test}$
\end{document}
Markdown:
-----------
title: Test
header-includes:
- \usepackage{color}
-----------
$\textcolor{red}{asd}$
Do you have any idea what the problem could be?
Thanks for all the work you have put into it!
Thomas Pethick commented
Sorry I was a bit too fast on the trigger. I've modified site.hs
to include preamble
from frontmatter similar to your own approach on liamoc/liamoc.net.
I'll look into the possibility of extracting usepackage
directly from latex files when I have time..