The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
37 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
28 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
50 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
16 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
47 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
23 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
44 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
0answers
22 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
319 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
78 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
29 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
43 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
58 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 ...
1
vote
1answer
70 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
68 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
66 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
63 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
14 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
54 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
55 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
60 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 ...
1
vote
0answers
325 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 ...
0
votes
0answers
158 views

Multi-line text highlight with \cite

Basically want to mimic highlight function of Word or pdf. Need to highlight Need to be multi-line able to cite Not properly working MWE (taken from here and modified): \documentclass[5p,hidelinks]{...
3
votes
2answers
67 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 ...
2
votes
1answer
82 views

Enable highlighting and auto-line-breaking for texttt{}

I'm using the following command to modify texttt{} so that it automatically breaks long lines (without inserting a hyphen), and it's very helpful when writing documents where I have to write lengthy ...
1
vote
0answers
79 views

How can I highlight text in the middle of sentences [closed]

I want to be able to present short code in the middle of a sentence. How can I highlight text in the middle of sentences in Latex so it they appear as code. Consider this example For this purpose ...
2
votes
1answer
49 views

How do I keep morekeywords from being highlighted in a comment?

Say I have the following listing style: \lstdefinestyle{custCpp}{ language=c++, keywordstyle={\bfseries}, % keyword color keywordstyle = [2]{\color{blue}\bfseries}, otherkeywords = {...
1
vote
1answer
112 views

How can I achieve writing text in latex thesis/report in highlighting block?

I want to highlight some text in a block just as we are able to do so in latex beamer template or as we can see notes section in many books which has a box highlighted and perhaps have different ...
0
votes
1answer
126 views

How to highlight deleted text in the PDF output generated by compiling latexdiff

For the purposes of showing corrections to a PhD thesis, I am using latexdiff to produce a PDF showing the difference between the original and the new version. My examiner has requested me to not ...
0
votes
1answer
77 views

How can I use `\uline` from the `ulem` package to underline text inside a `\colorbox`?

Screenshot: I have the following code: \uline{No underlining for \colorbox{lightgray}{everything} inside the colorbox.} Which looks like this: How can I get a continuous line for the text inside \...
2
votes
0answers
86 views

Dynamically Highlight Active Hypertarget

Is it possible to [dynamically] highlight the active hypertarget in a pdf document? I am using LaTeX (with the bookmark package) to create a pdf document (via dvips and ps2pdf) with many pages of ...
1
vote
0answers
41 views

Listing parenthesis highlighting [duplicate]

I'm using the listings package to insert code into the document. My research led me towards the literate option of listings to control operator highlighting. I have one issue - the right round bracket ...
1
vote
0answers
67 views

soulutf8 doesn't work with Cyrillic in XeLaTeX

I'm trying to highlight a text written in Russian using soulutf8 package. In the PDF file, rendered with XeLaTeX, instead of highlighted Russian letters, I've got nothing. With English symbols, it ...
4
votes
1answer
731 views

Highlight/color a part of text in block in beamer

I am using beamer in Latex to make a presentation. I use a block for definition like: \begin{block}{P1} \justifying Some text here \end{block} Let us say I wish to highlight a word "Some". By ...
1
vote
1answer
162 views

Highlighting part of equation with text underneath

I am trying to use this but change the text to be down and to be not divided but I did not know how to alter the code. Any help?
3
votes
1answer
263 views

Line break long verbatim text with highlighted background

I created an MWE-look-alike in the original document then 'background highlighted' (somehow 'highlight' means something else in verbatim) some text to show where/what to focus on. This MWE-look-alike ...
2
votes
1answer
140 views

White space between hightlight tex [duplicate]

Here I faced challenge in highlighted text using soul package, when highlighting white space occurs in between lines. It should be closed up, please suggest any option for fixing this issue: Note: ...
1
vote
1answer
65 views

soulutf8 highlight turn on/off

I have an issue with the soul package (and soulutf8). In order to easily turn on/off highlighting text (\hl{<text>}), I have defined a counter highlighter, that is either set to 0 (highlighting ...
4
votes
1answer
282 views

How do I highlight a term with an underbrace?

I would like to highlight my equation in this way: I'm using an align environment. Could you help me?
1
vote
2answers
887 views

Add grey background to inline text

I want to make several words with a grey background like this within normal text? Like with \colorbox{yellow}{\lstinline{some text here}} but grey instead of yellow. How to do that?
1
vote
0answers
62 views

Visually highlight portions of a document

I'm looking for a possibility to visually highlight entire portions of a document. It could be a paragraph or entire pages. Ideally by changing the background color, but it could also be a colored bar ...
6
votes
3answers
710 views

How to highlight a portion of Matlab Code

Consider following code posted for What can I use to typeset MATLAB code in my document? \documentclass{article} \usepackage[T1]{fontenc} \usepackage{bigfoot} % to allow verbatim in footnote \...
6
votes
4answers
261 views

Is there some way put boxes around matrix elements without too much effort?

I know this question has been asked before but the examples that they give are too complicated to replicate, for example. Is there some way to make boxes like these (dashes are not necessary but ...
0
votes
0answers
43 views

Context related code highlighting with t-vim

Notice that \inlinec{\n} represents only a single character. An escape sequence like \inlinec{\n} provides a general and extensible mechanism for representing hard-to-type or invisible characters. ...
4
votes
3answers
2k views

\hl command is underlining instead of highlighting

How can I highlight the dollar currency symbol? For some reason, the code below is underlining rather than highlighting when I try it. \documentclass{article} \usepackage{soul} \begin{document} \hl{\...
3
votes
2answers
181 views

How to highlight a line of text (with colored background) with animation in beamer?

There are several ways to highlight a line of text with colored background in beamer, for example, using framed or mdframed. How to animate this highlight, i.e., filling the background color from ...
1
vote
1answer
83 views

Higlight a desired “n-th” author in \fullcites in cleanthesis?

I have found different answers about highlighting authors in biblatex in the bibliography but not so much in specific citations. I have different \fullcite{Label} commands along a text where I show ...
0
votes
1answer
400 views

Highlight code in lstlisting

I would like to highlight code in a listlisting environment. I tried two techniques: using \usepackage{lstlinebgrd} and using \usepackage{color} (based on this conversation) but none really match what ...
1
vote
3answers
130 views

Highlighting certain parts of matrix without TikZ

I have a matrix, given in the following snippet: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{blkarray} \begin{document} \begin{equation} \begin{...
0
votes
0answers
72 views

How to highlight a math box in Lyx?

Is there a way to highlight a math box in Lyx? Something like this for example?