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
0
votes
1answer
24 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
22 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
27 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 ...
0
votes
0answers
10 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
44 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
42 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
31 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
21 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
17 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
23 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 ...
0
votes
0answers
20 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
103 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
61 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
27 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
36 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 ...
1
vote
1answer
35 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
30 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
89 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
50 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
28 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
56 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
44 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
53 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
93 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
60 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.
0
votes
0answers
33 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
57 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}. ...
0
votes
0answers
35 views

Minted custom code highligt of FIXME

I would like to highlight everything after the keyword "FIXME:" similar to the way Jet-brains does it in their IDEs, where the text "FIXME:" and the following rest of the line is another color At ...
1
vote
1answer
86 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 ...
0
votes
0answers
44 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
54 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
37 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 ...
0
votes
0answers
53 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
40 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 ...
6
votes
3answers
366 views

Annotating a table with arrows

I want to recreate the following table on latex Here is my MWE \documentclass{article} \usepackage{colortbl} \begin{document} \begin{table}[h] \begin{tabular}{|>{\columncolor[gray]{.8}}c|m{1cm}...
3
votes
1answer
268 views

Highlight (some) items in smart diagram (circular diagram)

I already created the a basic smart diagram. Now I want to highlight 2 of the items in the smart diagram, but I am not able to find a solution. I tried to create some background layer for surrounding ...
2
votes
0answers
53 views

How can I highlight a reference in the reference section?

I would like to highlight a new reference in the reference section of my paper. The following code works to change the reference text color into red. How can I modify the command to include the ...
2
votes
1answer
48 views

Highlight part of axis with label on top

I have a pgfplot with time as x-axis variable. I would like to highlight certain periods of time and put a name on top of the upper x-axis. \documentclass{article} \usepackage[utf8]{inputenc} \...
0
votes
1answer
66 views

Remove highlight in printed quoted line

In some journal, they required changes made to be highlighted in some striking color. Then, the revised paragraph also need to be reflected in the reply to reviewer section. The tex below should do ...
2
votes
1answer
216 views

how can we highlight a long title?

I want to highlight my title with a certain color. My title is long and it lays in 3 lines. How can I create a colorbox for the title? \title{My Desired Title} conflicts with the command \hl.
2
votes
1answer
114 views

\hl with custom color and linebreak and math

I want to highly text which contains math in shades of grey with allowing for linebreaks. Based on this excellent post, I tried: \documentclass{article} \usepackage{xcolor} \usepackage{soul} \...
4
votes
2answers
102 views

Expand macro inside lstlisting and apply syntax highlighting

I'm wondering if there's a way to expand a macro inside a lstlisting environment which automatically applies syntax highlighting to the expanded text. For example, the listing in \documentclass{...
0
votes
0answers
125 views

Highlighting and un-highlighting several rows of a table at once in Beamer

I have the following table in beamer class \documentclass[svgnames]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \definecolor{MyBackground}{RGB}{255,253,...
0
votes
0answers
34 views

How to highlight C/C++ header file names with the listings package? [duplicate]

C/C++ header files can be given in two forms: <foo> or "foo". For example: #include <iostream> #include "myheader.hpp" By default, listings does not recognize the first form, and regards ...
1
vote
1answer
80 views

Change “et al” in bibliography in case that contain one specific author in there

I am trying to change the et~al. that appears in the bibliography in the case that inside the extra (et~al) authors there is an author that I am trying to make bold in the bibliography using the ...
0
votes
0answers
122 views

How to use \discretionary inside soul's \hl?

\documentclass{article} \usepackage{soul} \usepackage{color} \begin{document} Some \hl{te\discretionary{-}{-}{-}xt}. \end{document} The above does not compile due to Missing { inserted, Improper ...
2
votes
2answers
65 views

losing ligatures when switching font series or color in the middle of a word

For pedagogical purposes, I would like to highlight some characters in a word, through bold or red color or whatever will work. Because I use handwriting fonts (German Schulschriften wedn and French ...
2
votes
1answer
857 views

How to highlight text containing citation and figure referencing?

I am trying to highlight a text with reference. Without references, the below works fine. Could anyone know how to handle the highlighting the text containing citation and figure references? MWE is ...
3
votes
2answers
84 views

How to use the global definition of a variable in a command where that variable has already been defined?

I was trying to highlight some text, which contains \x, using the \hl command from the soul package, where \x is simply defined as \def\x{\mathbf{x}}. However, I've found that \x has already been ...

1
2 3 4 5
11