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

TikZ pictures in title, authors, etc have no color #2398

Open
xworld21 opened this issue Aug 18, 2024 · 0 comments · May be fixed by #2400
Open

TikZ pictures in title, authors, etc have no color #2398

xworld21 opened this issue Aug 18, 2024 · 0 comments · May be fixed by #2400

Comments

@xworld21
Copy link
Contributor

The following

\documentclass{article}
\usepackage{tikz}
\title{Title}
\author{Author\begin{tikzpicture}\filldraw[red] (0,0) circle (4pt);\end{tikzpicture}}
\date{1 January 1980}
\begin{document}
  \maketitle

  \begin{tikzpicture}\filldraw[red] (0,0) circle (4pt);\end{tikzpicture}
\end{document}

should have a red disk next to the author name. However, it comes out black (or more precisely, it takes the color of the surrounding text). This happens only when \author{} is specified in the preamble; behaviour seems normal if \author{} is after \begin{document}

In preamble:

<svg:g fill="#000000" stroke="#000000" ...>

In document body (note the additional @color):

<svg:g color="#FF0000" fill="#FF0000" stroke="#FF0000" ...>

(First spotted in #2395 (comment).)

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

Successfully merging a pull request may close this issue.

2 participants