Skip to content
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

Support TikZ figures #196

Open
mpsijm opened this issue May 29, 2021 · 1 comment
Open

Support TikZ figures #196

mpsijm opened this issue May 29, 2021 · 1 comment

Comments

@mpsijm
Copy link
Contributor

mpsijm commented May 29, 2021

Currently, when you want to use TikZ with Problemtools, you need to create a standalone LaTeX document and compile it separately, and then include the resulting PDF in the problem statement. It would be nice if Problemtools would natively support TikZ figures.

For LaTeX, this is as simple as adding a \RequirePackage{tikz} to the problemset template, but this is more difficult with the HTML renderer. Apparently it is possible to render TikZ figures with plasTeX (since they have a unit test for it), but it requires external imagers like pdf2svg and gspdfpng, so I'm not sure if you want to support that.

@RagnarGrootKoerkamp
Copy link
Contributor

RagnarGrootKoerkamp commented May 29, 2021

Note that this also involves including some tikz libraries. BAPCtools currently uses:

\usetikzlibrary{arrows}
\usetikzlibrary{shapes}
\usetikzlibrary{backgrounds}
\usetikzlibrary{patterns}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants