Fix \textcolor and \color to match what the color package does
See original GitHub issueI’m lost as to how I’m supposed to programmatically use custom colours. Especially since \definecolor is not supported.
To get around this I tried using \newcommand to define a new colour.
\newcommand{\myblue}[1]{\textcolor{#0074D9}{#1}} but this is not valid because the # symbol needed for textcolor is parsed as an invalid number for the argument #. Any ideas on how to get around this?
Further, does \newcommand not make the command global? How do I have any new colours defined for the entire page?
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Extending LATEX's color facilities: the xcolor package - CTAN
Abstract xcolor provides easy driver-independent access to several kinds of colors, tints, shades, tones, and mixes of arbitrary colors by means of color...
Read more >Match ggsurvplot legend text color to line color, include risk table
Using this previous solution from Z Cao I can convert the ggsurvplot$plot to a grob, change the legend text color, and then convert...
Read more >How can I make footnote text color match body text color? - TeX
Open the class file you use, e.g., article.cls and search for the definition of the command \@makefntext . Copy that to the preamble...
Read more >All you need to know about colors in LaTeX
How to change the text color? ... The main tool to work with colors in LaTeX is the xcolor package. ... How do...
Read more >5.1 Font color | R Markdown Cookbook - Bookdown
For PDF, we can use the LaTeX command \textcolor{}{} . This requires the LaTeX package xcolor, which is included in Pandoc's default LaTeX...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@edemaine I think #750 is tracking those issues.
@ylemkimon The title of this issue is still open. Given that most of the thread was about other things, fine to move this to another issue. But we should do that.