{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)

4
votes
2answers
185 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
60 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
35 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
58 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
38 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 <user>\AppData\Roaming\texstudio\songs....
5
votes
1answer
90 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
164 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
88 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
147 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
55 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
123 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} \begin{...
1
vote
0answers
220 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
106 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
77 views

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

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
882 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} \...
3
votes
1answer
129 views

Highlighting of $…$ syntax in WinEdt 9

In WinEdt 8.0 the text within dollar signs $...$ in the .tex file was highlighted by using a different background color than the rest of the text. I installed WinEdt 9.0 and this effect is no longer ...
1
vote
1answer
249 views

Highlighting text with ulem package

Consider the following minimal example (taken from this answer): \documentclass{article} \usepackage{color} \usepackage{ulem} \newcommand\hl{\bgroup\markoverwith {\textcolor{yellow}{\rule[-.5ex]{...
0
votes
0answers
57 views

Kile - syntax highlighting of new command

I made the following changes to my /usr/share/kde4/apps/katepart/syntax/latex.xml file for Kile: in the <highlighting><contexts> section, I added the line <StringDetect String="\lm{"...
2
votes
1answer
85 views

Highlight text using alltt

I am trying to create this effect: (without red underlines, I did this example with Word that emphasizes the words he doesn't know in red). I used the package alltt this: \begin{alltt} text ...
5
votes
3answers
1k 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
1answer
224 views

Annotate the table row highlighted by Tikzmark in Beamer

Here is my situation: I am using \tikzmarkin to highlight relevant rows of a results table in my Beamer slide deck. I want to put annotations to the right of the row highlight, so that hypothesis ...
1
vote
2answers
162 views

Can I copy text with syntax highlighting

Is there a way to copy LaTeX text out of TeXstudio with syntax highlighting? Will include some macros and small portions of LaTeX in a presentation (Powerpoint) and want to get it as readable as ...
4
votes
1answer
191 views

How can I make listings look like minted?

Up until now I used the listings package for my code-listings. Today, I tried minted and I'm pleased with the default look. Since I'd have a lot to do to switch from listings to minted at this stage ...
3
votes
0answers
133 views

problem with highlighting single words with adobe reader in iPad

It seems awful that I can't highlight an individual word in adobe reader in ipad. Selecting words are done randomly. In some cases, it does highlight an individual word whereas in other cases, it ...
19
votes
2answers
14k views

How to make \hl (highlighting) to automatically place incompatible commands in \mbox?

The soul package provides a useful command \hl for highlighting text. However, \cite, \ref, and some other commands (maybe equations too) must be placed within an \mbox in order for \hl to work ...
4
votes
0answers
63 views

Kerning issue in soul \hl with \emph

The text is little squashed when using \hl with \emph, but only with particular words which makes me think this is a kerning issue? \documentclass{article} \usepackage{color} \usepackage{soul} \...
2
votes
2answers
186 views

Highlight asterisk in lstlisting

I would like to emphasise the asterisk used in \begin{equation*} in lstlisting. I have tried using emph, also including the alsoletter macro, but it doesn't work. Why not? \documentclass{article} \...
18
votes
2answers
2k views

Highlight a group of nodes in a tikz tree

To make it simple, I want to highlight a group of tikz nodes like in the following picture It was borrowed from the JLatexEditor. I would like to know which Tikz commands I can use to do the job in ...
5
votes
3answers
1k views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
25
votes
3answers
31k views

Piecewise highlighting in beamer presentation

I would like to do the following with beamer: All items of an itemize environment should be displayed in gray. The current item should be highlighted in black while all others remain grayed out, but ...
1
vote
0answers
125 views

JavaScript ES6 Code highlighting

I'm using the latest minted to highlight my sourcecode. I've got a lot of code listings using ES5 and ES6 javascript features but minted is lacking a lot of them still. What can I do to get proper ...
4
votes
2answers
900 views

Change selection color in TeXShop

I'm working with TeXShop (Mac OS) and I want to change the color of text selection. If I want to search for special words with CMD+F, the program highlights the text in a light gray color... Every ...
4
votes
2answers
191 views

Emphasizing all occurrences of given word in document

Please forgive my naivety, but I have a fairly large TeX document and I was hoping that there was an easy way to do the following. I can create code blocks in the text using the following: \begin{...
3
votes
1answer
108 views

How to remove highlighting color?

How would you remove highlighting color from LaTeX with one command? I have used the soul package with its command \hl.
35
votes
3answers
17k 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 ...
4
votes
1answer
441 views

Streamline use of Highlight in text and equations

I have been highlighting certain parts of text in order to make it easier for me to search through a long document to find parts that need expanded on or some sort of work is left to do; however, I've ...
6
votes
2answers
428 views

How can I highlight elements in a matrix?

I'm about to use this diagram to make computing 3x3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i ...
0
votes
0answers
26 views

LuaLaTeX, luacode and highlighting syntax [duplicate]

One thing prevent me to use luacode environment even for short code is that the lua code is not highlighted in a latex document. Does anyone knows how to have both syntax highlighted ? I use simple ...
5
votes
1answer
2k views

How to include Matlab code into LaTeX in colour? [duplicate]

I need Matlab code, e.g. the one here, in LaTeX and in colour (the comment is green, for/if/else/end is blue). % super cooles Programm i = 1 for i = 1:10 if i > 3 i=i+2 else ...
20
votes
3answers
2k views

Highlighting a .diff file

Is there a way to highlight the syntax of a diff file (i.e. by using the listings package)?
4
votes
1answer
155 views

How to make TeXstudio recognize \DeclarePairedDelimiter declaration

I'm using TeXstudio as editor because I think it provides the best features among other software I tried (namely Kile and TeXworks), especially about highlighting, autocompletion and spell checking. ...
2
votes
1answer
264 views

Where is TeXworks' syntax-pattern.txt file (on windows 7)?

I was trying to change my TeXworks editor's background to black, some suggested it is possible to edit this file : ~/.TexWorks/configuration/syntax-pattern.txt but I could not locate this .txt file....
3
votes
2answers
96 views

Highlight selected references with asterisk

I'm using Biblatex/Biber with the phys style. I would like to highlight selected references in the text with an asterisk, i.e. the number should be marked. A \cite{key1,highlightedkey,key2} should ...
3
votes
2answers
84 views

How to customize a kbordermatrix

To the matrix given below, I would like to add the following two features: A downarrow centered below the text "Column j." Highlight the entry a_{ij}. How might I achieve this? \documentclass{...
1
vote
0answers
53 views

How can I highlight something inside a listing? [closed]

I need to call attention to parts of code that don't get highlighted as keywords, strings, etc. inside a listing. I've found a few relevant questions on TeX.SE I and tried to apply the solutions ...
0
votes
2answers
191 views

highlighting RTL text - ulem with bidi and color

following this: http://tex.stackexchange.com/a/48549/22969, I tried this code: \documentclass{article} \usepackage{ulem} \usepackage{xcolor} \usepackage{polyglossia} \setdefaultlanguage{hebrew} \...
1
vote
1answer
74 views

gb4e: Highlighting examples

In a presentation of a colleague I saw that his examples were displayed in a filled grey square (he used powerpoint). This impressed me, because it highlighted the examples in a subtle and modest way. ...
10
votes
3answers
588 views

How to highlight tree levels

How can i highlight tree levels to be some thing like that... I've drawn my tree with this code \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...
1
vote
0answers
82 views

Box highlighting of text with rounded corners and hyphenation support

I used tcolorbox to highlight text some text in paragraphs, it seems to work smoothly, but it disables text hyphenation, that the highlighted piece fo text cannot be start somwhere at one line and ...
23
votes
3answers
744 views

Visually highlighting symbolic material

I have a diagram in which I need to indicate the difference between symbolic mathematics and English words (potentially to someone who doesn't know about it): Colour works beautifully for making ...