Skip to content

Text color and math mode. #16

@fryguybob

Description

@fryguybob

It looks like we use \pgfsetfillcolor for coloring text but this has odd behavior with text that has math components:

example :: Diagram B
example = circle 2 `atop` (baselineText "$\\frac{1}{2}$" & fc red)

The text is the right color, but the fraction bar is not:

half-black

If I add a color command using the fc color name that gets defined in the output I can work around the issue:

example :: Diagram B
example = circle 2 `atop` (baselineText "\\color{fc}$\\frac{1}{2}$" & fc red)

all-red

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions