Hot answers tagged

5 votes
Accepted

Change color of a paragraph containing aligned equations

(At least with PDFLaTeX) \color{…} results in a whatsit and is therefore horizontal material. Unfortunately switching back to the previous color at the end of a group also needs a whatsit. So in your ...
  • 3,818
5 votes

Annoying color lines in table

\documentclass{article} \usepackage[margin=1cm]{geometry} \usepackage{xcolor} \usepackage{tabularray} \usepackage{graphicx} \newcommand{\mybox}[1]{\rotatebox{90}{\parbox[c]{5cm}{\centering #1}}} \...
  • 3,662
5 votes

Annoying color lines in table

Getting rid of almost all vertical and horizontal black lines brings about the desired relief. The horizontal lines are causing the problem you encountered, and the vertical lines won't be missed. ...
  • 469k
4 votes

Generating color-neutral PDF with `xelatex`

You can try to compile with xelatex -output-driver="xdvipdfmx -c" file For \ExplSyntaxOn \sys_ensure_backend: \pdf_uncompress: \ExplSyntaxOff \documentclass{article} \begin{document} abc \...
4 votes
Accepted

Unable to Disable `colr` Feature With HarfBuzz Renderer From the `fontspec` Package

You can use RawFeature ={colr=1} to activate colr font feature, and to deactivate the feature just replace 1 with any other integer. \documentclass{article} \usepackage[bidi = basic]{babel} \...
  • 16.6k
3 votes

Annoying color lines in table

Here is a way to do that table with {NiceTabular} of nicematrix with a perfect output (you won't see any thin white lines, whatever PDF viewer you use). \documentclass{article} \usepackage[margin=20mm]...
  • 31.2k
3 votes

Annoying color lines in table

One more solution with use of the tabularray package (similar to nice @Clara answer (+1) but instead of the graphicx is employed makecell. For numbers are used S column of siunitx package: \...
  • 277k
3 votes
Accepted

How to apply new foreground and background colors to verb?

You code does not work, because it would use \color as contents argument of \colorbox. You could define a new command: \newcommand{\colorboxwithcontentcolor}[3]{\colorbox{#1}{\color{#2}#3}} and use \...
  • 3,818
3 votes
Accepted

Customizing circuitikz, thickness and colors

If I extend your code fragment to an MWE (Minimal Working example) and aa wee bit change your code with every node/.append style = {font=\bfseries} to circuitikz option and add \ctikzset{bipoles/...
  • 277k
3 votes
Accepted

Colored and opaque image background in Beamer with foilhead

Do you really need to use beamerfoils? Why don't you just use standard frames? Things are much better documented then: \documentclass[12pt,xcolor={usenames}]{beamer} \setbeamercovered{transparent} \...
2 votes
Accepted

How to fill non-rectangle region below line in tikz latex beamer

I wouldn't use the textpos package to position your tikz pictures. TikZ is perfectly capable to do this itself using the overlay and remember picture option to fill the whole upper part of the slide ...
2 votes
Accepted

Tikz milsymbs in a matrix, with colours (getting errors)

The commands that milsymb provide seem to be ordinary TikZ drawings, you can just put those in the cells of a matrix. The package doesn't provide nice interfaces to change various things but in your ...
1 vote

Tikz milsymbs in a matrix, with colours (getting errors)

You can easily place the symbols at predefined coordinates using the location key: \documentclass{standalone} \usepackage{milsymb} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \...
1 vote
Accepted

\cellcolor doesn't work in my talltblr environment

The tabularray package has its own mechanism to change the colour of cells. You can change the background colour with \SetCell{bg=red} or via the cell{...}{...}={bg=gray} option: \documentclass[...
1 vote
Accepted

Tikz changing node background colour

You can use the fill=... key (please be aware that nesting tikz pictures is not recommended and can have funny side effects.): \documentclass{standalone} \usepackage{tikz} \usepackage{forest} \...
1 vote
Accepted

algorithmic + textcolor == something's wrong -- perhaps a missing item, and incorrect layout

Instead of \textcolor, which is more appropriate for short sequences of text, you could use {\color{red} ... }: \documentclass{article} \usepackage{algorithmic} \usepackage{xcolor} \begin{document} \...
1 vote
Accepted

How to resolve specifically the error "Option clash for package xcolor. \RequirePackage" between tikzposter and ProfCollege

Presumably both tikzposter and ProfCollege loads xcolor but only the latter with options. This currently gives issues in LaTeX. The standard remedy is something like \RequirePackage[table,svgnames]{...
  • 51.4k
1 vote
Accepted

Changing the page color for a float page

Looking at the floatpag package, I figured you could use the same trick for pagecolor. I had to create my on \thispagecolor command. \documentclass{scrbook} \usepackage{xcolor} \usepackage{floatpag} ...
  • 74.1k
1 vote
Accepted

Expl3: Expansion of mappings over lists

You want to build a clist from the given third argument in which every item is prefixed and suffixed as indicated by the first and second argument, then pass the list to \providecolors. \documentclass{...
  • 1.1m
1 vote
Accepted

Provide value-dependent color to \cellcolor command

\cellcolor should be (after expansion) the first item in the cell, with no unexpandable token before it. You can use \fpeval: \documentclass{article} \usepackage[table]{xcolor} \usepackage{pgfplots} ...
  • 1.1m
1 vote

Problem coloring an entire table due to \raisebox

For information, here is a way to construct that table with {NiceTabular} of nicematrix. \documentclass[a4paper,11pt]{article} \usepackage{nicematrix} \usepackage{booktabs} \begin{document} \begin{...
  • 31.2k

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