{highlighting} is about highlighting document elements. Use this tag in addition to other tags specifying what should be highlighted.

learn more… | top users | synonyms (1)

2
votes
1answer
30 views

Highlight differences between character sequences

I have got some character sequences which I need to put into a documentation: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \begin{document} \begin{table}[h] ...
1
vote
1answer
51 views

How can I color one cell of a table using a tikzpicture?

I want to draw a table, and color one cell in another color. As I'm not that experienced in latex, I found this example: \usepackage{tikz} \usetikzlibrary{calc,matrix} \usepackage{amsthm} ...
16
votes
2answers
10k 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 ...
3
votes
2answers
108 views

How do I draw a path of grey background through elements of a matrix?

I would like to draw a highlighted path along elements of a matrix, as in the following example (which looks quite ugly as I drew the path manually with Gimp). I know ways of changing the color of ...
20
votes
4answers
2k views

texdiff for multi-file documents in subversion

I've been looking for a convenient way to highlight changes between subversion revisions of my Latex document in the generated PDF. I am working on a reasonably complex document that pulls together ...
2
votes
1answer
100 views

Customising Syntax Highlighting in TeXmaker

I'm wondering if there is any way to add new syntax highlighting patterns to TeXmaker. I've been using TeXworks for years and I love that special characters $ & { [ etc. are highlighted ...
2
votes
1answer
18 views

Align \boxed{} equation inside systeme*

I would like to know how can I align a *systeme** environment with only a \boxed{} equation belonging to it. The code I have produces the right system of equations, but the boxed equation is ...
15
votes
5answers
4k views

What is a good way to show changes between two versions

I would like to highlight changes between two versions of a LaTeX document. I have both my versions in git. Is there an easy way of generating a output document where all changes are highlighted. So ...
11
votes
2answers
5k views

XML highlighting - different style for attributes

I need to highlight syntax in my LaTeX presentation, so I've found this answer: XML syntax highlighting \lstdefinelanguage{XML} { morestring=[b]", morestring=[s]{>}{<}, ...
0
votes
0answers
36 views

How to Highlight everything: Text, Tables, TiKZ Pictures

I am aware of Latex text 'yellow' highlighters, however, I am looking for the perfect highlighter, which can simply highlight everything from text, tables and TikZ Figures. Is there a way (for ...
2
votes
1answer
48 views

Highlight #pragma in code listing using minted

I'm going to give a talk on OpenMP soon and I'm currently preparing my beamer slides. Since a lot of the OpenMP magic happens inside of #pragma instructions, I'd like to highlight those in some bright ...
2
votes
0answers
52 views

Highlight subsections below current section, while shade other (sub)sections

I want my slides to show like this, that the current section and its subsections highlighted, while other section and subsections shown but shaded: http://web.mit.edu/rsi/www/pdfs/beamer-tutorial.pdf ...
9
votes
1answer
2k views

How can I highlight JSON string values but not attributes?

example { "name" : "alan", "alias" : "nala" } If I use morecomment=[s][\color{red}]{"}{"}, How can I highlight JSON string values (on the right side) but not the attributes (left side)?
1
vote
1answer
31 views

Highlight the item in list after uncovering it

\documentclass[xcolor=table ]{beamer} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \title[Your Short Title]{Your Presentation} \author{You} \institute{Where You're From} \date{Date of ...
0
votes
0answers
45 views

minted not highlighting and inserting random characters in code

I am trying to syntax highlight some Haskell code in my latex document. The rest of my document works fine except for one section. I have the \usepackage{minted} command where my other packages are ...
0
votes
2answers
84 views

Why did TeXstudio suddenly highlight some commands with red background?

I tried to compile from a .tex file included by master. TeXstudio didn't infere that master.tex, which was also open in Texstudio was the master. I received a lot of error messages, and as a result, ...
2
votes
1answer
26 views

Highlight changed part of the equation

As a physicist, I often have unhandy expressions and do manipulations on them. One such example is the following: The only thing that has really changed are that the \gamma^0 from the outside ...
4
votes
1answer
115 views

Highlight Text with Background Color

I try to highlight text with \texttt font and background color (somehow like the highlighting on StackExchange: this). I tried with a colorbox, but the problem is that it doesn't support line breaks, ...
1
vote
1answer
53 views

highlight several successive paragraphs, including tables

I want to do s.t. which seems like it ought to be trivial, but I've tried for two days without success (much of the time trying methods I found here). Conceptually, I want to highlight an arbitrarily ...
3
votes
2answers
67 views

Text not wrapping to margins if highlighted with \colorbox

In a test file such as; \documentclass{article} \begin{document} \begin{itemize} \item Short line of text \item Comparatively long line of text to illustrate that latex is wrapping my text ...
6
votes
1answer
99 views

How to highlight elements of a matrix in a formula? [duplicate]

I currently have problems with hihglighting elements inside a matrix. I've red a lot of questions here, my problem is that I have a matrix formula, {N}=[AB]{E} where I would like to highlight parts ...
1
vote
0answers
64 views

Highlight or find locations of bounding boxes

I want to produce documents where every paragraph, equation, and other visually distinct part of the document is highlighted with its own background color (e.g. equations are highlighted in blue, ...
3
votes
2answers
82 views

Highlighting First Occurence of Word. Making it Case Insensitive

first time asking a question. I'm implementing egregs answer from this question: Highlight First Occurrence of a Particular Word %%% Code to set up special term treatment \makeatletter ...
2
votes
2answers
390 views

listings - highlighting additional keywords inside own delimiters (like Doxygen annotations)

According to listings - use different style for normal comments /* and doxygen comments /** I used listings package to set style for /** Doxygen comments */ as user defined delimiter moredelim = ...
52
votes
9answers
18k views

Highlight elements in the matrix

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square): $$ A = \begin{bmatrix} \fbox{0} & ...
23
votes
6answers
12k views

Highlight text in code listing while also keeping syntax highlighting

I’m using the listings package for code listings. Now I try to highlight some part of the code using \hl from the soul package. Here’s an example of a resulting query where the injected part of a SQL ...
33
votes
4answers
11k views

How can I highlight some lines from source code?

I am preparing a presentation (using beamer) and I'll need to include many snippets of source-code. For including source code, I'll probably use listings package. (I know there is also minted package, ...
1
vote
0answers
40 views

Indentation issues with highlighting cell using tikzmarkin

I am trying to eliminate offset/indentation issues when using tikzmarkin to highlight regions of a table. \documentclass{beamer} \RequirePackage{booktabs,colortbl,caption,tabularx,chngcntr, tikz, ...
7
votes
1answer
67 views

How can update this code for print number with different colors?

I have this code for highlight the diagonal, the first row and the first column with different colours! (This code has been build from egreg on this community :-D in a past question) ...
2
votes
2answers
64 views

highlight a node in tikz

\begin{frame} {Family work up } \begin{tikzpicture}[level 1/.style={sibling distance=5cm},level 2/.style={sibling distance=2.5cm}] \node {Patient}[edge from parent fork down] child { node ...
1
vote
0answers
90 views

Latex highlighting error for lstinline

it has been quite a while that I have this problem and I have searched everywhere online and couldn't find a solution. The problem is latex syntax highlighting doesn't work after this line: ...
9
votes
4answers
2k views

Red box drawn around question-mark operator in minted Erlang code

I'm trying to include some Erlang code samples in a document using the minted package which include the ? operator to denote a message being received from a process. The code \documentclass{minimal} ...
0
votes
0answers
32 views

highlighting of \begin{} and \end{} in TeXworks

I previously worked in TexShop, where I could for example click on '\begin{enumerate}' and the corresponding '\end{enumerate}' would be highlighted in the same colour. The same went for math mode, ...
5
votes
1answer
165 views

How to set up beamer to grey out past items but hide future items?

I know about beamer's feature \setbeamercovered{invisible} and \setbeamercovered{transparent} to hide or grey out upcoming item's . But is there some way to have past items greyed (transparent) and ...
1
vote
1answer
204 views

Highlight text and mathematical expressions with colored background

I'd like to have a function that I can use like a highlighter, both in text and in math mode. I wrote something that works but it's really slow and still causes problems in some situations. Here is ...
4
votes
1answer
112 views

Setting style for Python docstrings in lstinputlisting environment

I am using the listings package for source code in my LaTeX document. I am trying to set the style for docstrings in the Python programming language: \documentclass{article} \usepackage{listings} ...
0
votes
0answers
41 views

How to highlight accented characters in pdflatex?

I tried using soul package and hl{word inside with an accent such as é} but they simply can't be rendered in pdflatex. I tried lualatex or xetex and it worked, BUT on the downside a lot of other ...
-1
votes
1answer
56 views

\cshade makes an empty line after, How can I fix? [closed]

How can I fix the space added after it? \newcommand{\tccheck}[1]{{\cshade{yellow}{#1}}}
7
votes
2answers
221 views

Highlight the upper or lower triangular portion of a matrix

I previously asked this question here, but now would like to achieve the same goal with a matrix under a different construction. More specifically, how can I highlight or shade the upper or lower ...
2
votes
1answer
150 views

highlight glossaries entries on page

I want to highlight my glossaries entries with bold or italic formatting. I have used the following command but then the whole document is very colorful what I didn't want to have it like this. ...
4
votes
2answers
142 views

How to shade or highlight the upper or lower triangular part in a matrix?

How can I shade or highlight the lower (or upper) triangular part of a matrix in some color like Q above?
2
votes
1answer
50 views

How to add background for texttt (and allow line breaks)

I use texttt{} to write names of software, commands etc. within the text. Sometimes the texttt text is longer and there is a line break within it. It works well, no problem here. I wish to add ...
1
vote
0answers
32 views

listings: enable language settings only inside delim

I wish to enable language settings (keyword, string etc.) only inside delimiter. Example based on Jubobs answer to question about highlighting oneline delim. \documentclass[a4paper, 12pt]{article} ...
3
votes
1answer
47 views

listings: Highlight one-line delim without the delimiter itself

I would like to use a one-line delimiter (with [l] parameter), but without highlighting the delimiter itself; something like sqlite> .open ex2.db What follows sqlite> should get highlighted but ...
4
votes
1answer
37 views

Let TeXStudio highlight chords (e.g. \[F#]) in songs package

I wrote a chordbook with songs package and I would really like that TeXStudio highlights the chords. The syntax is like: Oh fre\[F#]edom In the file in ...
5
votes
1answer
62 views

make soul highlight span lines

The \hl command from the soul package highlights spans of text with a backround color when color is loaded. When used on longer spans of text, some inter-line spacing remains uncolored, which is ...
3
votes
1answer
134 views

BibLaTeX: Highlight Self-References

I am looking for a way to highlight references to my own previous publications using BibLaTeX (alphabetic cite and bibliography style), for example by using double brackets as citation marks in the ...
0
votes
1answer
83 views

how can I highlight text with the following effect

how can I highlight text with the following effect? The darkness of the color indicates the importance of the text.
2
votes
2answers
131 views

Inline verbatim with line breaks, colored font and highlighting

I'd like to be able to use inline verbatim text with the following features: Line breaks, as provided for example by package spverbatim, command \spverb; Colored font, as provide by package color; ...
1
vote
1answer
52 views

beamer: how to label an equation with \alert in its \tag?

I would like to \alert an equation tag, then refer to it in another overlay. \documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \only<1>{ My equation reads: ...