Skip to main content
31 votes
Accepted

Providing an Authentic Finish to a TIKZ Gold Plate

You could draw a black disc with opacity that varies by angle. The opacity formula pictured is k·sin²(2θ), with k=.04 (so that the opacity oscillates between 0 and k). Larger values of k will make the ...
Sandy G's user avatar
  • 46.5k
8 votes
Accepted

minted: preserve colours even with `gray` option to `xcolor`

you can change the color model locally. But you then need to consider color conversion. If you load with the gray model, the standard colors like red or blue will be defined as gray, and so can't be ...
Ulrike Fischer's user avatar
5 votes
Accepted

How to draw multicolor curve with smooth gradient in l3draw?

Your line segments are always moving 1 along the x axis, but you want to move the step size, so that the end of one line segment starts were the last one finished \documentclass{article} \usepackage{...
David Carlisle's user avatar
5 votes

Why is the row coloring broken?

I don't know why this happen. If you insert to empty cells invisible characer, for example ~, then you will get desired result: \documentclass[11pt]{article} % Packages \usepackage[table]{xcolor} \...
Zarko's user avatar
  • 299k
4 votes

Providing an Authentic Finish to a TIKZ Gold Plate

Here's another option using some code for false shading per iteration that I used for controll over shapes and image + tikz add path image background example and Draw 3 dimensional ring one. RESULT: ...
J Leon V.'s user avatar
  • 12.6k
4 votes
Accepted

Problems with coloured tables with \multirow and \multicolumn and text-wrapping for table with a lot of text. Getting blank, white areas

As proposed by @samcarter_is_at_topanswers.xyz, a try with tabularray: \documentclass{article} \usepackage{caption} \usepackage[dvipsnames, table]{xcolor} \usepackage{tabularray} \usepackage{lipsum} ...
NBur's user avatar
  • 5,096
4 votes

Bug with colors when trying to paste C++ code into LaTeX

Just like your question yesterday: use https://tex.stackexchange.com/a/409953/36296 to colour the libraries \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1,T2A]{...
samcarter_is_at_topanswers.xyz's user avatar
3 votes
Accepted

Horizental gradient colored text with a function

You could use the gradient-text package: \documentclass{article} \usepackage{xcolor} \usepackage{gradient-text} \begin{document} % Gradient text simulation \begin{center} {\Huge\bfseries \...
samcarter_is_at_topanswers.xyz's user avatar
3 votes

Problems with coloured tables with \multirow and \multicolumn and text-wrapping for table with a lot of text. Getting blank, white areas

You are specifying incorrect column widths for spanning entries. \newcolumntype{B}[0] {>{\centering\arraybackslash}p{0.16\textwidth}} %spans 2 columns There is \tabcolsep (normally 6pt) padding ...
David Carlisle's user avatar
3 votes
Accepted

Why is the row coloring broken?

You need “something” in the blank cells. I suggest to define local commands in order to get a better input for the second table. I also suggest a few enhancements (p for the first column in the top ...
egreg's user avatar
  • 1.1m
3 votes

Colorating title lists

This would be very easy, if you'd switch from the standard report class report to the KOMA-Script report class scrreprt: \documentclass[letterpaper,10pt,sfdefault=false,chapterprefix]{scrreprt} \...
cabohah's user avatar
  • 13.7k
3 votes

Making command for users to select one of several accessibility colour themes

Why not just define the colours according to the scheme the user selects? Unless you need to install specific sets of colours directly (which it doesn't sound as if you do), defining functions to ...
cfr's user avatar
  • 206k
3 votes
Accepted

How to add colors in boxes and arrows?

It is often convenient to add an argument to a style when you want to change one particular aspect. For example, you can add fill=#1 to your block style. Then you can use the option block=<color>...
Sandy G's user avatar
  • 46.5k
3 votes

How to add colors in boxes and arrows?

Added the colors in the boxes. \documentclass[12pt]{article} \usepackage{geometry}%<----To have centered the blocks \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows, positioning} \begin{...
Sebastiano's user avatar
  • 56.5k
3 votes

Package lua-ul: Marginal notes are (only) partially colored

You can use package scrlayer-notecolumn: \documentclass{article} \usepackage{lua-ul} \usepackage{xcolor} \usepackage{luacolor} \usepackage{ragged2e, setspace} \usepackage{scrlayer-notecolumn} \...
cabohah's user avatar
  • 13.7k
3 votes

Package lua-ul: Marginal notes are (only) partially colored

Quick hack: put a white highlight on top. \documentclass{article} \usepackage{lua-ul} \usepackage{xcolor} \usepackage{luacolor} \usepackage{ragged2e, setspace} \newcounter{Rnnr} \usepackage{perpage, ...
Marijn's user avatar
  • 38.6k
3 votes

Draw coloured edges in forest

Like this? MWE below shows a case when only edges are colored and when is colored edge and node: \documentclass[12pt,a4paper]{scrartcl} \usepackage[ngerman]{babel} \usepackage{forest} \begin{...
Zarko's user avatar
  • 299k
2 votes
Accepted

How to Properly Colorize PDF Figures in LaTeX: Fill Color and Transparency Problems

You could unset the color of the star so that the included pdf will inherit the colour of the surrounding text. Following the guide from Changing color in an eps file from within LaTeX one can create ...
samcarter_is_at_topanswers.xyz's user avatar
2 votes
Accepted

Accessing a colour without specifying a list of definecolor

\IfValueTF{#1} { \IfStrEq {#1} {red} {\definecolor{tempcolor}{HTML}{a60000}}{} \IfStrEq {#1} {red-warmer} {\definecolor{tempcolor}{HTML}{972500}}{} \...
David Carlisle's user avatar
2 votes

Draw coloured edges in forest

Zarko addressed your first question, so this answer focuses on your second, Why is the middle node across and not straight down? The reason this happens is, basically, because forest doesn't align ...
cfr's user avatar
  • 206k
2 votes

Problems with coloured tables with \multirow and \multicolumn and text-wrapping for table with a lot of text. Getting blank, white areas

Basically, the same idea as in the answer of NBur, but moving all cell decorations to the table header, which makes the table contents nicer and more easily manageable: \documentclass{article} \...
Sergei Golovan's user avatar
2 votes
Accepted

Changing the commentstyle color for an existing language in listings?

The easiest is with a style: \documentclass{article} \usepackage{xcolor} \usepackage{listings} \lstdefinestyle{Cgray}{language=C,commentstyle=\color{gray}\itshape} \begin{document} Hello World! \...
Marijn's user avatar
  • 38.6k
1 vote

Black captions are CMYK, not RGB

The problem in this case was the figures themselves. I used PNGs in an RGBA configuration, which had the unintentional effect of adding color coding on the black caption text. I am not sure why this ...
Henrik Hillestad Løvold's user avatar
1 vote

How to Reproduce This Tikz Colorization?

I originally posted this as an answer to your earlier question, but I deleted it because it didn't really shine. Basically, my answer was focused on improving the colour because real gold is not ...
cfr's user avatar
  • 206k
1 vote

Filling a page with colour

The problem can not be reproduced. Your code does not compile. Adding \usetikzlibrary{calc} gives: \documentclass{article} \usepackage{tikz-cd} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{...
hpekristiansen's user avatar
1 vote

Colorating title lists

I'd use newfloat instead of float. With this package, you will have \listofgraphs that internally uses \listoffigures, so we just need to patch two commands in order to pass a color to the related \...
egreg's user avatar
  • 1.1m
1 vote
Accepted

Colouring a citation in the bibliography via \cite

You could use the same approach as in https://tex.stackexchange.com/a/491194/36296 : \documentclass{article} \begin{filecontents*}[overwrite]{\jobname.bib} @article{a, author={Made up author}...
samcarter_is_at_topanswers.xyz's user avatar
1 vote
Accepted

Simple black and white Beamer Theme?

You don't need a theme, you can adjust the colours as you like: \documentclass{beamer} \usepackage[brazil]{babel} \title[short version]{SOME TITLE} \author[SOME AUTHOR]{SOME AUTHOR} \institute[SOME ...
samcarter_is_at_topanswers.xyz's user avatar

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