question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix \textcolor and \color to match what the color package does

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ylemkimoncommented, Sep 16, 2018

@edemaine I think #750 is tracking those issues.

1reaction
edemainecommented, Sep 9, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found