# Tag Info

### Colored and inclined boxes

You can use tcolorbox: \documentclass{article} \usepackage[most]{tcolorbox} \newtcbox{mybox}[2]{ enhanced, frame hidden, colback=#2, arc=2pt, tikz={rotate=#1,transform shape}, ...
• 2,400

### How can I change the color of an adforn ornament?

Here are two ways. Unrelated : unless your distribution is quite old, loading inputenc is not necessary any more: utf8 is what latex expects by default. \documentclass{article} \...
• 259k
Accepted

### How can I change the color of an adforn ornament?

adforn provides its ornaments as a font, so you can change the colors like with any other font. See the xcolor documentation for the various ways of using and defining colors. \documentclass{article} \...
• 51.8k
Accepted

### How to customize plot color using xcolor?

Henri Menke already provided the solution: use color=LB1. But if you want to define your own colors, you can also define a cycle list from where pgfplots will autolatically select the color (and ...
• 127k
Accepted

### How to color a rule node in LuaTeX?

rg only colors filled outlines while the stroke color is set with RG. So you need 1 0 0 rg 1 0 0 RG in order to set both.
• 30.1k

### Colored and inclined boxes

The solution by @user187803 using tcolorbox is probably the right way to do this, especially is you want the fuzzy shadow. For variety, here is a TikZ solution using drop shadow. \usepackage[...
• 20.1k
Accepted

### Vertical alignment with prftree, tikz and beamer

You guessed right, the problem is that the first frame does not have the line. The line thickness should be \prflinethickness, plus a pad of \prflinepadbefore before and \prflinepadafter after. I ...
• 53.8k

### Are there an easy way to coloring tables depending on the value in each cell?

An interesting solution was posted on this blog post: \documentclass[12pt]{article} % Based on https://www.siavoosh.com/blog/2019/01/05/latex-table-cell-coloring-based-on-values-in-the-cell/#respond %=...
• 4,590
Accepted

### Drawing a color swatch/palette for CMYK

This isn't a solution based on your code but based on tcolorbox. I'm not an expert in color systems, so I don't know if CMYK works properly here. EDIT: Color name and CMYK code are now separate. ...
• 2,400
Accepted

### Conflict between \pagestyle{fancy} and xcolor package

This is not caused by fancyhdr but by the standard LaTeX classes. These define the headers in such a way that \MakeUppercase is applied to them. This uppercases everything in the header, including the ...
• 12.4k
Accepted

### How to change color of searched text in TexStudio

Go to Options -> Configure TeXstudio, at Internal PDF Viewer option `Highlight Color. The default color is #FFFF003F, I change to #FF00003F, it will produce a red highlight. I also added a little ...
• 2,887
1 vote

### Remove vertical space above list in cell with color

Adding \leavevmode before \color_select:n will solve your problem. \@minipagetrue \trivlist \item \leavevmode \color_select:n{green} ABCDE \endtrivlist But here is a better solution with tabularray ...
• 7,764
1 vote
Accepted

### Test if Current Color is Black (with line breaks)

When you do \newcommand*{\TypsetInBlueOnlyIfCurrentColorIsBlack}[1]{% ... } you are telling LaTeX that the argument to \TypsetInBlueOnlyIfCurrentColorIsBlack cannot contain blank lines (or \par). ...
• 985k
1 vote

### Can't colour the right rows table

I'm not sure to understand exactly what you want. Here is a solution with {NiceTabular*} of nicematrix. \documentclass[11pt]{report} \usepackage{geometry} \newgeometry{left=2.5cm,right=2.5cm,bottom=2....
• 25.1k
1 vote
Accepted

### Smooth curve with tikz

While you are waiting for Tikz-specific help, here is an alternative in Metapost, wrapped up in luamplib. I believe you can use the same approach to defining a path in Tikz with the hobby package. ...
• 35.8k
1 vote
Accepted

### How to Eliminate an Unseemly Seam in a Psvectorian bi-Colored Pspicture

\begin{pspicture}(-5,-5)(5,8) \psframe*[linecolor=blue!35](-5,-5)(0,8) \psframe*[linecolor=yellow!75](0,-5)(5,8) % oiseaux \rput[tr]{-30}(-1.3,5.15){\psvectorian[color=white,width=2.1cm]{57}} \rput[...
• 12.6k
1 vote

### PGFPlot scatter plot with random color and legend

This is totally not an answer, a bit involving with no legendries, only a comment for fun. The figure reminds one of my favorite illustration about some stuff like social relationships, freedom, etc. ...
• 13.6k
1 vote
Accepted

### PGFPlot scatter plot with random color and legend

\documentclass{article} \usepackage{xcolor} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=1.18} \pgfplotstableread{ 1.25 96.88 0.58 96.25 0.77 96.25 1.17 96.04 0.89 96.04 3.50 ...
• 2,400
1 vote
Accepted

### Package option (for xcolor) is not being properly used in beamer

This is due to a bug in beamer v3.65 which was fixed in beamer v3.66. Those who are forced to use this version (upgrades may be difficult when you install the complete system), you can use the ...
• 16.8k
1 vote
Accepted

### Colouring headings for lemma, theorem, corollary, and definition

With the package amsthm you can use the enhanced \newtheorem command. \newtheorem{⟨env name⟩}{⟨text⟩}[⟨parent counter⟩] \newtheorem{⟨env name⟩}[⟨shared counter⟩]{⟨text⟩} Then you add colors to the &...
• 24.5k

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