Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.22k stars 968 forks source link

tikz conflict #184

Open noraj opened 4 years ago

noraj commented 4 years ago

I have this random error occurring:

Error producing PDF.
! Package tikz Error: Sorry, some package has redefined the meaning of the math
-mode dollar sign. This is incompatible with tikz and its calc library and migh
t cause unrecoverable errors.

See the tikz package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.380 \end{verbatim}

I was not able to find which content exactly was generating the error, it seems to be very contextual.

But I found this workaround: https://tex.stackexchange.com/questions/165929/semiverbatim-with-tikz-in-beamer/165937#165937

\makeatletter
\global\let\tikz@ensure@dollar@catcode=\relax
\makeatother

I just added it here in the template image

Since tikz is loaded only when titlepage-background is used only people using this option could possibly encounter the error.

maxodoble commented 4 years ago

hi,

this workaround was working o.k. for me too, but today i got this tikz error message again, even though the workaround is still active.

any ideas why this workaround could have stopped working?

maxodoble commented 4 years ago

hi,

this workaround was working o.k. for me too, but today i got this tikz error message again, even though the workaround is still active.

any ideas why this workaround could have stopped working?

Forget this, made a stupid mistake myself! the workaround is o.k.