Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes
Accepted

Define new color for highlighting

The problem is the usage of \textcolor inside the \hl argument. Interchanging the commands helps: \documentclass{article} \usepackage[x11names]{xcolor} \usepackage{soul} \definecolor{myB}{RGB}{0, 0, ...
cabohah's user avatar
  • 12.4k
4 votes

how to edit only the color of a page

If you have a relatively recent TeX, everypage is deprecated and you should use the new hooks instead. Note that your font setup and packages involve multiple conflicts: you need to resolve these or ...
cfr's user avatar
  • 202k
4 votes
Accepted

Extra space when body ends with math mode

I get extra space at the end of the derivation. Could someone point out why and how might I avoid the extraneous space? It's not the fault of the environment definition. Instead, the issue arises ...
Mico's user avatar
  • 510k
4 votes

Define new color for highlighting

white and black are always defined. Beside this, put the text color outside the \hl: \documentclass{article} \usepackage[x11names]{xcolor} \usepackage{soul} \newcommand\hlblack[1]{{\color{white}\...
Ulrike Fischer's user avatar
3 votes

Creating a command that returns colors

We can use \colorlet to specify a color for each case. The \@ifundefined below checks if the case color is undefined (from here), and uses a default if so, to match \IfStrEqCase{arg}{...cases...}[...
jessexknight's user avatar
  • 2,772
2 votes
Accepted

The color package is not defining colors correctly

From the documentation (page 4): The colours black, white, red, green, blue, cyan, magenta, yellow should be predefined .... Nothing about brown, orange or gray. If you are using the dvips driver is ...
cfr's user avatar
  • 202k
1 vote
Accepted

Table with multiple different colored cells

With tabularray: \documentclass[review]{elsarticle} \usepackage[table]{xcolor} \usepackage{tabularray} \UseTblrLibrary{booktabs} \DefTblrTemplate{contfoot-text}{default}{\footnotesize( To be continued)...
CarLaTeX's user avatar
  • 64.2k
1 vote
Accepted

Error with color name appearing when coloring a node in TikZ

As @SandyG already told in a comment, you are using the color name twice in your Bullet/.style once as fill=#1 and second as label=#1. The fill=#1 sets the fill color. The label=#1 outputs the color ...
1 vote

Highlight numbers using listings package

For information, the package piton directly gives an output respecting the conditions. The package piton does not use any external program and, hence, does not require the use of --shell-escape. ...
F. Pantigny's user avatar
  • 41.8k

Only top scored, non community-wiki answers of a minimum length are eligible