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

Better error messages for tikz compilation #691

Open
siefkenj opened this issue Feb 25, 2024 · 0 comments
Open

Better error messages for tikz compilation #691

siefkenj opened this issue Feb 25, 2024 · 0 comments

Comments

@siefkenj
Copy link
Contributor

Compiling my book, I got a very strange error message while processing images:

! Undefined control sequence.
l.15 \resizebox

After hunting this down, I discovered my docinfo.ptx file wasn't being included and so tikz wasn't being loaded.

It turns out \resizebox is part of graphicx which is loaded by tikz. Never having seen this error before, it took a while to hunt down, and I suspect it would be confusing even to those experienced with LaTeX (especially since \resizebox is inserted by PreTeXt and not in the user's code).

Perhaps this psecific error could be detected and a helpful message might be added like

This error may be caused by a missing LaTeX preamble. Such a preamble is supplied in `<docinfo>`.
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

1 participant