liamoc / latex-formulae

Libraries and tools for rendering math to images using real LaTeX, from Haskell, Pandoc and Hakyll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coloring

tmpethick opened this issue · comments

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!

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..