Tagged Questions
2
votes
0answers
54 views
spot package with pdflatex [closed]
I need to draw an ellipse around a word in a beamer presentation and I stumbled across the promising Spot package.
Unfortunately it does not seem to work with pdflatex and I could not find any hint ...
6
votes
2answers
89 views
Highlight / color parts of text
LaTex newbie here. Currently using vim with solarized color scheme to edit .tex documents.
When writing I often jump around to different parts of the document, leaving gaps behind to work on later. ...
3
votes
1answer
119 views
Emacs / AUCTeX — Customization of keyword highlight syntax
font-lock-keyword-face is used by AUCTeX for all keywords, and I have not been able to find a way to create a new keyword that is a different color.
I have defined the foreground of ...
4
votes
1answer
186 views
Cell coloring (highlighting) with in-out effects in a table in beamer
I need cell coloring (or highlight effect) in a cell of a table in beamer after a click (I mean, I am planning to talk about something in that frame and I will emphasize just a number in a cell at the ...
6
votes
2answers
133 views
Highlighting code like one would in a SE post
When posting on SE, users can "highlight" code by using the ` symbol. Is there any way to get that in LaTeX?
My intention is to highlight segments of code or particular functions. To be clear, I'm ...
1
vote
0answers
271 views
Is it possible to reorganize coloring/highlighting priority in Texmaker?
I want to be able to see latex commands in Texmaker while in mathmode, but the settings file does not seem to account for priority via line rearrangement, so I was wondering if there was a way to make ...
12
votes
1answer
230 views
Highlighting chunks of text spiral
I use the code provided in this question to draw a text spiral and now I want to highlight each chunk separated with a comma in a different color. Is there a way to achieve that?
...
2
votes
1answer
131 views
wrapping inline long lines and adding background color
Objective
I'm trying to achieve the following output.
Here's the code I used to produce it. I had to hack it
\begin{document}
\begin{description}
\item In ...
8
votes
1answer
399 views
A few words in a coloured/grey background box
How can I write a few words with a grey highlighting box in the background, as shown in the picture below ("TEXT 4")?
4
votes
2answers
167 views
Warnings and errors highlighting when compiling in Bash environment
I'm processing a large document, using Latexmk in a Bash environment. It would be very helpful if error and warning messages were somehow highlighted or coloured, in order to facilitate spotting them. ...
4
votes
2answers
249 views
How to highlight math environments with colored background?
How to highlight maths environments (in-line mode excluded) with a coloured rectangular background e.g. grey?
A \textwidth rectangular behind the \begin{equation} environment.
5
votes
1answer
295 views
How to render Android listings with syntax highlighting?
I need to include the source code of a bigger Android project in the documentation written with LaTeX. Do you recommend any particular package that is capable of highlighting Java code and which also ...
9
votes
3answers
559 views
Enumerated text and formula with background color
I want to have an enumeration with text and formulas with a background color, but \colorbox does not work, here's my code:
\documentclass{book}
\usepackage{xcolor}
\usepackage{shadethm}
...
4
votes
1answer
2k views
How to highlight table rows by colors in Beamer
I would like to highlight rows in tables, in rowwise, that is I would like to highlight row 1 in red, then make row 1 in black but row 2 in red, etc.
How can I manage to do so in Beamer?
3
votes
2answers
514 views
Stretching colorbox to the end of line
I was just making my resume and I wanted to highlight the different sections. I used the color package. This is the code:
\usepackage{color}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
...
20
votes
3answers
3k views
How to highlight an entire paragraph?
I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far.
For ...
3
votes
1answer
428 views
How to color over/underline, or other ways to highlight substituted expressions in proofs?
I desire to "highlight" in equational proofs the expressions that are substituted for or transformed in each successive step. Since an expression may be transformed in both the prior step and the next ...
6
votes
3answers
756 views
Color a line in array
Is it possible to change a color of a single line inside an array environment?
I have an array of possible solutions and I'd like the best one to be highlighted, the array is declared like
...
2
votes
1answer
471 views
Highlight changes in a specific entry of a reference list created with biblatex
I would like to highlight changes in a specific entry (or even a part of the entry) of a reference list created with biblatex, e.g., by changing the font color to red. (Unfortunately such a feature is ...
10
votes
2answers
563 views
soul: broken highlighting with xcolor when using \selectcolormodel
I try to highlight text using the soul package.
But I experience problems if I use it in combinations with the xcolor
command selectcolormodel, only spaces are highlighted as shown in the MWE:
...
9
votes
2answers
2k views
How to highlight important parts (with a gray background)
In the below link
http://www.math.uiowa.edu/~goodman/algebrabook.dir/bookmt.pdf
the author highlights anything which is important using a greyish color background. For example, if you see ...
2
votes
1answer
914 views
Adding a highlight to \texttt blocks
I'm trying the add a grey highlight to the \texttt command to essentially achieve the same effect as the code blocks on here.
This is something I attempted to do when I first started writing my ...
2
votes
1answer
490 views
Using “listings” package to colorize the source code of ANTLR grammar file?
I use listings package in my diploma thesis for source code. Besides the mainstream languages like Java and C# I also need to include the sources of the language grammars (.g) which are pure mark-up ...
3
votes
1answer
390 views
Why is it that coloring in soul in beamer is not visible
\documentclass{beamer}
\usepackage{soul,color}
\begin{document}
\begin{frame}
\hl{Hello World}
\end{frame}
\end{document}
I process this with pdflatex and I do not see the expected highlight.
...
3
votes
1answer
2k views
Fortran syntax highlighting in listings
I've got some Fortran 90 source code I want to put into my thesis appendix. For this I'm using the listings package. Is it possible to have colored syntax highlighting for the Fortran code?
2
votes
1answer
319 views
Highlight entries in Table of Contents with coloured rectangles using TikZ an tocloft
The solution presented in How to highlight specific entries in a tocloft-formatted ToC did not work for colored background. There is a problem when using color because the colored rectangles are ...
2
votes
1answer
314 views
Using pdfliteral to highlight text
Using pdfliteral, one can color text like the following:
w1_prev = node.new("whatsit","pdf_literal")
w1_prev.data = "q 1 0 0 rg"
w1_prev.mode = 1
w2_prev = ...
6
votes
3answers
2k views
Highlight environment by setting a gray background color
The title explains everything. I have a theorem with ntheorem and want to highlight it with a gray background color. What would be the easiest way to achieve this?
2
votes
1answer
949 views
operator highlighting using listings
How to color (using listings package?) C (or, well, any other programming language) operators? So that when I write
\begin{lstlistings}[language=C++]
int i = 0;
if(i > 1) {
// do ...

