Questions tagged [color]
{color} is about using color in (La)TeX documents. Popular packages are color and xcolor.
4,335
questions
2
votes
1
answer
31
views
Changing color after a sublist changes vertical spacing
Edit: related to \color inserts unwanted vertical space in itemize
I'm working with lists using itemize and I need to put the lists side by side. No need for help so far.
I also want to use color to ...
4
votes
2
answers
171
views
How to color a cell in easytable
\documentclass[border=20pt]{standalone}
\usepackage[thinlines]{easytable}
\usepackage[table]{xcolor}
\begin{document}
\huge
\begin{TAB}(e,2cm,2cm){|c:c:c:c:c|}{|c:c:c:c:c|}
\cellcolor{black}1 & ...
2
votes
2
answers
53
views
cellcolor not working with multicolumn
I'm trying to make a Gantt chart using the NiceTabular environment, but when trying to combine multicolumn and cellcolor I am having issues. Here's a MWE
\documentclass[11pt]{article}
\usepackage[...
0
votes
1
answer
34
views
Change TOC color only
I am currently writing a report for my internship on LaTeX. I am using TeXstudio since my file was becoming too large for free Overleaf to compile. I have many referencing in it, and I would like to ...
2
votes
1
answer
148
views
What should I do so that the length of the brackets remains constant when I color the table?
\documentclass[a4paper,10pt]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
%\usepackage[table]{xcolor}
%\usepackage{colortbl}
%\usepackage{xcolor}
\usepackage{...
0
votes
0
answers
18
views
Color outputs differ when using `rgb` vs. `cmyk` target color model [duplicate]
Setup
Consider the following two files:
rgb.tex:
\documentclass{standalone}
\usepackage{tikz}
\usepackage[rgb]{xcolor}
\begin{document}
\begin{tikzpicture}
\fill [blue!50] (0, 0) rectangle (1, 1);
\...
0
votes
2
answers
35
views
Color scheme changes in LyX don't get applied
I'm following https://wiki.lyx.org/Tips/ColorSchemes and copying the settings into the preferences file as explained. However, when I open LyX, the changes are not applied. I'm trying to change the ...
0
votes
0
answers
38
views
Supposed coloring issue when printing a document compiled in latex
I'm in the process of printing my thesis that i have compiled with latex. An issue has emerged that i don't know if it is an existing problem. The owner of the copy shop told me that latex may use a ...
0
votes
0
answers
27
views
Using TikZ to Plot the Fourier Transform with Magnitude and Argument Coloring
I would like to use TikZ to draw the function graph of the Fourier transform
𝐹(𝜔) of 𝑒^𝑡 sin(𝑡)𝑢(𝑡). The x-axis represents 𝜔, the y-axis represents the magnitude of 𝐹(𝜔), and different ...
11
votes
3
answers
2k
views
How to Draw Gabriel's Horn
Consider Gabriel's Horn:
which, mathematically speaking, is the curve y=1/x over the interval [1,∞] revolved about the x-axis. It is interesting because though it contains a finite volume, its ...
3
votes
2
answers
153
views
Colored underline and overline in math mode
I am trying to write a style sheet that will define the commends \undercolor{math here}{<color>} and \overcolor{math here}{<color>}.
I had thought this would be very easy, and got this ...
0
votes
1
answer
62
views
Black captions are CMYK, not RGB
I am writing a book, and my publisher wants the caption text to be entirely black. From the looks of it, it seems black to the naked eye, but apparently it's in CMYK whereas it should be RGB(0, 0, 0). ...
0
votes
1
answer
56
views
Changing the commentstyle color for an existing language in listings?
Consider the following MWE:
\documentclass{article}
\usepackage{xcolor}
\usepackage{listings}
\begin{document}
Hello World!
\begin{lstlisting}[language=C]
// this is a main function
int main(int ...
2
votes
1
answer
47
views
Horizental gradient colored text with a function
I want to create this horizental gradient coloring for text
and here the code to do it for each letter but I want to have a function to do this. function should get text, and 2 colors. note it should ...
2
votes
0
answers
43
views
Interference between color and geometry packages under memoir class [duplicate]
I have the following extra simple code (which I trimmed from larger code):
\documentclass{memoir}
\usepackage[paperheight=150mm,
paperwidth=100mm
]{geometry}
\usepackage{...