Skip to main content
9 votes

How to frame certain cells with tabular?

With {NiceTabular} of nicematrix. The red frame is drawn by using the command \Block and its key draw. \documentclass{article} \usepackage{xcolor} \usepackage{nicematrix} \begin{document} \begin{...
F. Pantigny's user avatar
  • 43.8k
9 votes
Accepted

How to frame certain cells with tabular?

Use tabularray: \documentclass[]{article} \usepackage{xcolor} \usepackage{tabularray} \begin{document} \begin{tblr}[]{ colspec={ Q[0.15\textwidth] Q[0.25\textwidth] ...
M. Al Jumaily's user avatar
8 votes
Accepted

Referencing colored item

You can use label=\color{blue}(\alph*), ref=(\alph*): Code: \documentclass{article} \usepackage[colorlinks=true,allcolors=red]{hyperref} \usepackage[shortlabels]{enumitem} \newenvironment{...
Peter Grill's user avatar
7 votes
Accepted

What is Causing This Phenomenon? Is it the Geometry Package?

You could use the standalone class and output a box of that size: \documentclass[]{standalone} \usepackage{xcolor} \begin{document} \textcolor{red}{\rule{5.625in}{0.125in}} \end{document}
Skillmon's user avatar
  • 63.1k
7 votes

What is Causing This Phenomenon? Is it the Geometry Package?

Your manual settings of \paperwidth and \paperheight do not change the size of the text area or the margins. The text area is just outside the specified paper size. You would see this, if you would ...
cabohah's user avatar
  • 15.6k
3 votes
Accepted

How to use "color of colormap" to pick a color from a defined colormap for pgfplots \addplot color in a foreach loop?

\documentclass[tikz, border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \pgfplotsset{ colormap={palette}{ color={red} color={green} color={blue} }} \begin{document} \begin{...
hpekristiansen's user avatar
3 votes
Accepted

Variable frame color with tcolorbox

With the help of skin and \tcbsubskin to define the default list of skins, and using \NewTCBox instead of \newtcbox to use ltcmd syntax, we can define this pretty straight forward: \documentclass{...
Skillmon's user avatar
  • 63.1k
3 votes
Accepted

Complex table to make

The following solution builds directly on the OP's code. \documentclass{article} %\usepackage[utf8]{inputenc} % that's the default nowadays \usepackage{iftex} \ifpdftex\usepackage[T1]{fontenc}\fi \...
Mico's user avatar
  • 519k
3 votes

Change color/style of vertical line between block start-end in algorithm2e

As far as my knowledge, these options are not provided in the package, hope you can contact the package maintainer for these options. For your requirement, have slightly modify the existing tag \...
MadyYuvi's user avatar
  • 14.7k
3 votes
Accepted

Change color/style of vertical line between block start-end in algorithm2e

Quick hack to change the colour: \documentclass{article} \usepackage{xcolor} \usepackage[linesnumbered]{algorithm2e} \makeatletter \renewcommand{\algocf@Vsline}[1]{% no vskip in between boxes but ...
samcarter_is_at_topanswers.xyz's user avatar
3 votes

Enumitem + color labels + multiline = bug?

If you compile with luatex, you can also try the luacolor package \usepackage{luacolor} It doesn't insert a color whatsits. Example: \documentclass{article} \usepackage{color,enumitem} \usepackage{...
jlab's user avatar
  • 4,246
3 votes
Accepted

Enumitem + color labels + multiline = bug?

\color{red} sets a whatsit in vertical mode, which will produce a box. Hack: add \mbox{}. \documentclass{article} \usepackage{color,enumitem} \begin{document} \section*{No color} \begin{itemize}[...
egreg's user avatar
  • 1.2m
2 votes

How to replace the argument of the command that is already defined?

\documentclass{article} \usepackage{xcolor} \NewCommandCopy{\oldtextcolor}{\textcolor} \newif\ifBlackInsteadOfColor \RenewDocumentCommand{\textcolor}{omm}{% \ifBlackInsteadOfColor% \...
ljguo's user avatar
  • 1,920
1 vote

How to replace the argument of the command that is already defined?

When you type \textcolor{red}{test} you're giving some special emphasis to the word, aren't you? Well, do yourself a favor and replace all occurrences of \textcolor{red} with \baz, all occurrences of \...
egreg's user avatar
  • 1.2m
1 vote

How to replace the argument of the command that is already defined?

Your redefinition of \textcolor causes \textcolor to be a macro whose arguments are removed from the token stream and where as replacement text the tokens \textcolor{1b11l11a11c11k11}2{1⟨tokens that ...
Ulrich Diez's user avatar
  • 30.1k
1 vote
Accepted

How to color a specific internal region?

Quick and dirty hack: fill your curves and then cover the remaining space with an additional shape \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} % Define node and ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote
Accepted

Color in beamer acting unpredictably

You are not doing anything wrong. \colorbox isn't a beamer macro and thus expects, let's call it, an xcolor colour (I'm aware that xcolour didn't invent the colours, but calling it color colour would ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote

Clash of xcolor and colortbl over a longtable

You just need to load arydshln after longtable. Besides, longtable should never be set inside center, as it does centering by itself. Also $\acute{\upsigma}$ is a really awful kludge. And 3\...
egreg's user avatar
  • 1.2m
1 vote

Highlight JSON code snippet with minted

All your requirements except the indentation guide are possible out of the box with minted. If you need the indentation guide, you can manually add the vertical lines with escapeinside and tikzmark. \...
mbert's user avatar
  • 5,116
1 vote
Accepted

Make each color from colormap darker in pgfplots

The question didn't specify how many curves are expected in each plot. If it is not too many then you can start the colormap later, instead of at Greens-A (which is a very light green) you can start ...
Marijn's user avatar
  • 39.3k
1 vote

Refining a Tikzpicture Fading Color Background

The simplest approach from an end-user perspective is to just use two shadings with matching colours. For example, \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \...
cfr's user avatar
  • 211k

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