{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
13 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 ...
10
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
30 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
40 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
39 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 ...
2
votes
1answer
83 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 ...
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
26 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
28 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
60 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
24 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 ...
3
votes
1answer
99 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
46 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 ...
2
votes
2answers
52 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
92 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
61 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
76 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
370 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
17k 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
10k 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
66 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
59 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
77 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
25 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
125 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
196 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
101 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
37 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
200 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
137 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
134 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
44 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
30 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
44 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
36 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
54 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
127 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
81 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
124 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
46 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: ...
2
votes
1answer
85 views

hf-tikz package: error with custom colors and overlay in beamer class

Consider the following MWE from here: Solution with the hf-tikz package \documentclass{beamer} \usepackage{lmodern,amsmath,amssymb} \usepackage[beamer]{hf-tikz} \usetheme{Copenhagen} ...
1
vote
0answers
136 views

Highlight text in editor window (Texstudio)

I am trying to highlight some text in the editor window (like WinEdt does). For example, by typing: \textbf{some text} I would like to have the phrase "some text" in bold in the editor window, ...
4
votes
1answer
96 views

Highlight first occurence of reference in text

I'm working on a LaTeX template for our institute. The guidelines dictate an unusual style when referencing figures, equqations or tables. The frist time, they are mentioned in the text, they have to ...
2
votes
0answers
72 views

Stepwise edge hightlighting (tikz) doesn't work with template

I'm just now working on a written paper for a presentation I've given and would like to reuse the graphs developed for the slides. Unfortunately the template given for the paper somehow screws with my ...
3
votes
1answer
832 views

Loading babel with the 'hungarian' (magyar) option breaks 'pygments' code highlighting

Given the following TeX file everything works as expected: the (Hungarian) text Árvíztűrő Tükörfúrógép typesetted as expected and the code snippet also formatted brilliantly. \documentclass{article} ...