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

\color in preamble fails when the preview option is enabled #13

Open
microlith57 opened this issue Mar 16, 2024 · 1 comment
Open

\color in preamble fails when the preview option is enabled #13

microlith57 opened this issue Mar 16, 2024 · 1 comment

Comments

@microlith57
Copy link

This:

\documentclass[crop]{standalone}
\usepackage{xcolor}
\color{cyan}
\begin{document}
test
\end{document}

results in cyan text (pdfTeX 3.141592653-2.6-1.40.22, standalone v1.3a, xcolor v2.13), while this:

\documentclass[preview]{standalone}
\usepackage{xcolor}
\color{cyan}
\begin{document}
test
\end{document}

results in black text.
Is this because of the preview environment?

For context, being able to set the text color in the preamble is useful for ManimCommunity/manim#3643, and changing the document class might not be a good solution.

@microlith57
Copy link
Author

With crop:
image
With standalone:
image

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