{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
20 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 ...
1
vote
0answers
31 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
56 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
44 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
47 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: ...
0
votes
0answers
17 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, ...
4
votes
1answer
59 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 ...
4
votes
1answer
82 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
31 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 ...
-2
votes
1answer
50 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
143 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 ...
4
votes
2answers
108 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
32 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
25 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
35 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 ...
5
votes
1answer
37 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 ...
4
votes
1answer
27 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 ...
-1
votes
1answer
72 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.
1
vote
1answer
41 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
58 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
45 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
83 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 ...
3
votes
1answer
55 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 ...
2
votes
0answers
62 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 ...
0
votes
0answers
31 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 ...
2
votes
1answer
69 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 ...
2
votes
2answers
95 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
2answers
98 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 ...
3
votes
0answers
56 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 ...
4
votes
1answer
117 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 ...
4
votes
0answers
39 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} ...
3
votes
1answer
105 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 ...
2
votes
2answers
113 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} ...
4
votes
1answer
130 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 ...
0
votes
0answers
71 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
155 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: ...
3
votes
1answer
88 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.
4
votes
1answer
168 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 ...
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
219 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 ...
4
votes
1answer
95 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. ...
6
votes
2answers
294 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 ...
2
votes
1answer
147 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 ...
3
votes
2answers
61 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? ...
1
vote
1answer
163 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 ...
1
vote
0answers
50 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 ...
1
vote
1answer
64 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. ...
1
vote
0answers
65 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 ...
2
votes
0answers
79 views

Unhighlighted syntax with listings package

I have some trouble with making documents with syntax highlight. Here is the MWE: \documentclass{article} \usepackage{xcolor} \usepackage{listings} \lstset{% language=[LaTeX]TeX, % I also tried ...
1
vote
1answer
169 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 ...