Questions tagged [highlighting]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
32 views

lstlisting: Box numbered variables in matching colors

Is it possible to match numbers, prepended by a %, e.g. variable %101 and surround every occurrence of that number in color-matched boxes? I am trying to make it easier for readers to follow the ...
2
votes
1answer
45 views

How to highlight the XML code in latex overleaf

I followed few answers mentioned here to highlight the XML content in my latex and tried to combine best things together from different answers but for some reason nothing is being highlighted in my ...
4
votes
3answers
44 views

No corner table with colored titles

I would like to know how to build a table like the one on this code, however I feel there should be a much better way to do it since: 1.- I want to get rid of the top left cell. 2.- Since the left ...
0
votes
0answers
26 views

Highlight some text and download it as image online

Till now, I was using codecogs online editor to quickly get LaTeX images simply by attaching the code at the end of the url like this - https://latex.codecogs.com/png.latex?\int_{0}&space;^{\infty}...
3
votes
1answer
56 views

minted escapeinside works for all supported languages except LaTeX

I want to add some math symbols into the escaped contents, minted works well for languages like Python, but not LaTeX. A sample code: \documentclass{article} \usepackage{minted} \begin{document} \...
1
vote
1answer
28 views

Biblatex multiple author annotations

I'm highlighting certain authors in biblatex using the annotation feature: \documentclass{article} \usepackage{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @MISC{test, ...
5
votes
1answer
124 views

Alternative to the soul package?

Context One may want to highlight some text, or strike it. This can be done with either the soul package, or with the ulem package using a trick, although it does not work that well. Problem The ...
3
votes
1answer
57 views

Highlight Lines in side-by-side algorithm

I have a 2 column latex template (IEEEtran), in which I put 2 algorithms side by side: \documentclass[10pt,conference]{article} \usepackage{algorithm} \usepackage{algorithmic} \usepackage{xcolor} \def\...
2
votes
1answer
43 views

Bibliography: highlight recent references automatically by adding an asterisk in left margin

I am updating a list of references and I would like to highlight references added since the last update. For example, I would like to add an asterisk (or another symbol) just before the reference (...
1
vote
1answer
111 views

Use minted for plain-text? (without syntax-highlighting) [duplicate]

I'm possibly too lazy to find how to do it without minted, but since I already use minted and I want top keep it's styles it applies to code boxes (like background color, the line break features, ...
0
votes
0answers
34 views

Highlighting citations along with some long sentences starting in the middle of paragraphs

I am trying to highlight my revised paper in latex, since when I highlight its PDF using Foxit the highlights are not shown after pressing generate PDF in journal's website. I have some troubles: I ...
2
votes
1answer
37 views

How to stop lines of an algorithm from jumping up and down

I have the following code to walk though the lines of an algorithm: \documentclass{beamer} \usetheme{default} \usepackage[]{algorithm2e} \def\HiLi{\leavevmode\rlap{\hbox to \hsize{\color{yellow!50}\...
1
vote
0answers
42 views

pgfplotstable: How to highlight row and column of a cell with special content

If I say string replace={x}{\cellcolor{pink}x} a cell with content 'x' gets highlighted. But how to highlight the row and the column of 'x' too? \documentclass[]{article} \usepackage{pgfplotstable} \...
0
votes
0answers
84 views

Highlight numbers in code with listings

I'm currently trying to define my own code style with the Listings package for LaTeX. Among other things this style should display numbers in a separate color. However, if the numbers are within a ...
1
vote
1answer
47 views

Highlighting maximum value in pgfplotstable works partially

I'm highlighting (bold font) the maximum values with pgfplotstable. It works for all columns, except the last column. In the last column, the last row is always highlighted. I would be very thankful, ...
0
votes
1answer
94 views

Use \hl command to highlight a subsection title

I am trying to use the \hl command to highlight a subsection and subsubsection title. I have tried wrapping the commands in a \mbox or between parenthesis but it doesn't seem to work. They worked with ...
0
votes
1answer
48 views

Highlighting specific entries in the bibliography using `biblatex`

In a previous topic (Highlighting particular bibliography entries), the asker was looking for a way to color specific entries. The solution provided allows for choosing arbitrary color for any ...
0
votes
0answers
25 views

Highlight hyperref's links without modifying the general layout

This question is related to my previous one Change hyperref's links colors without modifing the .tex file. For editing purposes I need to highlight links to figures, tables, footnotes etc. I ...
1
vote
1answer
33 views

Highlighting a specific node in tikZ matrix when the node has multiple lines of text (beamer)

I have a slide with a matrix of nodes that appear one at a time on the slide. Each node has multiple lines of text and math (the sample code shown below was stripped off some of the math to abstract ...
3
votes
1answer
43 views

Add keywords to listings in preamble or lstlang1.sty

Some keywords I want to add I would like to add a few keywords for C, but am having difficulty. The keywords I would like to include are bool, simd, omp, restrict, etc. I would like these to be just ...
1
vote
1answer
57 views

Annotations above inequalities in a chain of inequalities, one slide at a time

I am trying to write a chain of inequalities with the following feature: first, on successive slides, I wish to highlight (for instance, with a tcolorbox) successive inequalities and annotate them ...
1
vote
1answer
49 views

How to color quotes block in red

How can I color the block std::complex<T> in red as shown in the picture?
0
votes
1answer
62 views

\colorbox shape – highlight formula

I've seen somewhere such a shape of a highlight. I am trying to repeat this using xcolor package, but I managed to get only rectangular shape of the box. \colorbox{red!10}{$\displaystyle\int xe^{-x}...
0
votes
0answers
20 views

Is it possible to remove highlights were made with Latex from a PDF file?

So I finished writing a paper using Latex and then I added highlights using the hl{} command. Now I need to remove those highlights from the PDF file. unfortunately, I've lost the tex script so I only ...
0
votes
0answers
30 views

TeXStudio and macro/shortcuts

In TeXstudio it is possible to use the shortcut Ctrl + B to get the following code \textbf{} with the cursor in the middle of the parenthesis ready for me to write some text that will be bold. ...
0
votes
0answers
28 views

Change colour of highlighting of preview search results (TeXShop)?

[enter image description here][2][![enter image description here][3]][3]Is it possible to change the highlight colour of search results in the document in the preview window (not in list of search ...
1
vote
1answer
32 views

Beamer and longtable

I am trying to highlight a row in beamer, but the whole row does not get hihglighted (i.e., there is white space between each column). Is there any way to highlight the entire row by still using the ...
1
vote
0answers
36 views

How to highlight lines on a pattern using minted?

The Answer in "How to highlight (color/draw attention to) a particular snippet in Minted" is very helpful. But, is there a way to highlight lines in minted on a pattern? E.g. not to say "...
5
votes
1answer
110 views

Key Listener to Show/Hide TikZ-Comments & Text Highlighting in PDF Output

While working on curating my lecture notes with LaTeX, I've come across a dilemma:             readability and aesthetics VS. rigor and ...
2
votes
0answers
78 views

Code highlighting drawn under tcolorbox and not displayed

I am looking to add highlighting to listings. I have tried to adept the techniques given by https://tex.stackexchange.com/users/23765/siracusa in the question Highlight text in code listing while also ...
0
votes
0answers
28 views

How can I highlight software commands as code in text? [duplicate]

I want to highlight some software commands as code in my text without any line break or any new paragraph for the code. Is there any possible way to do so?
0
votes
1answer
57 views

\lstinline highlighting error in Texmaker

I am able to compile perfectly, and the PDF output is nice. But editing-wise, it gets annoying that Texmaker colours everything after \lstinline as if it is a listing. Any quick fix for this? Here is ...
2
votes
1answer
61 views

beamer: using a spotlight to highlight a part of an image

Using beamer , I would like to highlight a part of an image using a spotlight (circular, or rectangular) as shown below: How can I achieve that in beamer?
0
votes
0answers
31 views

Distinguishing extended blocks of quoted text

I'm working on a document where I copy large amounts of text from a book by Hartshorne, and interleave it with large amounts of my own text (basically saying "here's what the math book says; here's ...
1
vote
0answers
96 views

Illustrated equation (with TikZ) with evenly spaced lines (and some homogeneous highlight)

If possible, I would like to achieve this in a simpler and better way, namely: using a single equation where lines are spaced in a regular way the cup and bracket are big enough each highlighting ...
0
votes
0answers
73 views

highlight text within lstlisting

I would like to highlight some text in a lstlisting section. The text contains some characters like % and {, }. To highlight some code I use different method but I always have the same issue: \...
0
votes
0answers
29 views

Page counter is reset when highlighting long text using sethlcolor from soul package [duplicate]

I encounter a similar problem like this TeX question or this other one. However, I open a new question because the examples given by the previous ones were not suited to highlight the potential ...
3
votes
1answer
68 views

Highlighted code inline

I would like to write some code inline with other text. The code should match other code I write in the document though. So it should be highlighted (let's say yellow), should be in typewriter font ...
1
vote
1answer
50 views

Printing TeX special symbols with tex.print, but also highlighted

I would like to be able to automatically print TeX special symbols into pdf. Mostly (but not only) the underscore symbol _, but also highlighted by grey color (similar to how it is displayed in this ...
0
votes
1answer
55 views

circle the numbers in the tabular [duplicate]

I have a question about the tabular. How do you obtain the attached tabular?
2
votes
1answer
125 views

Realistically highlight theorem title and numbering

Recently I came along this awesome post about cool text highlighting in LaTeX and the corresponding answer from @Antal Spector-Zabusky. I do want to implement this highlighting into my lecture notes. ...
0
votes
1answer
71 views

How can I add code highlighting for listings with different colour lines?

How can I create a listing design in LaTeX, with numbers on the left, and each line separated with colours like in the picture? I could not find such listing style for LaTeX.
1
vote
0answers
37 views

grey out a complete slide on beamer

I mad a bloc in front of other content. Now i want to not highlight the slide like shown in the picture bellow. How can i do that.
0
votes
1answer
96 views

combining soul package and color one in a newcommand

I have to use \st (from soul package) for crossing a line over a word in a text file. In addition, for presenting a specific replaced word instead of the first one, I use {\color{blue} second word}. ...
1
vote
1answer
94 views

How to include a highlighted source code from external tex file?

I have tried to minimise my scenario here. Basically, I would like to call each piece of highlighted code from external tex file over the beamer class. There are two .tex files code.tex main.tex ...
1
vote
0answers
57 views

In a Beamer presentation, is it possible to cancel highlighting for something inside \alert?

I have a macro, which in simplified form looks like this: \newcommand{\func}[2]{#1\left(#2\right)} Example of its application: \func{f}{x^2} On a beamer overlay, I want to highlight the function ...
0
votes
0answers
58 views

How to make a realistic highlighting [duplicate]

I'm using \hl{} from soul package to highlight some words in my document. However, I'd like a "realistic" highlighting, simulating the result of a "manual" note: a not-so-regular rectangle with "...
0
votes
1answer
60 views

Expose single sentence through paragraph-like formatting

I was wondering if there exists a "common-practice"-possibility to expose a single sentence to make it stand out without adding too much weight to the overall look of a page (i.e. I don't want it to ...
1
vote
0answers
60 views

Beamer - Colouring Specific Navigation Circles

I have some frames that are just small increments from previous frames and, as such, I do not wish them to have a distinct navigation circle. I've been able to achieve this by using the method ...
0
votes
1answer
45 views

Setting TeXShop comment colors from command line

I've updated to TeXShop 4.31 from 4.01 and the colors I've set from the command line as below are no longer respected, even though they are stored in TeXShop.plist. The comments are shown in red, not ...

1
2 3 4 5
12