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{...
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]
...
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{...
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}
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 ...
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{...
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{...
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
\...
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 \...
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 ...
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{...
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}[...
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%
\...
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 \...
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 ...
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 ...
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 ...
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\...
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.
\...
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 ...
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}
\...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
color × 4364tikz-pgf × 579
tables × 554
beamer × 416
pgfplots × 192
listings × 184
hyperref × 163
backgrounds × 144
formatting × 108
boxes × 108
math-mode × 107
macros × 103
sectioning × 103
graphics × 99
pdftex × 97
tcolorbox × 95
fonts × 90
table-of-contents × 87
xetex × 87
highlighting × 87
colortbl × 87
spacing × 73
pdf × 62
environments × 59
tabularx × 59