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
2 votes
1 answer
51 views

How to highlight a citation

I need to highlight a citation of a publication list (required for a grant application). I tried to use \hl but got the following error message: LaTeX Warning: Citation '{abc}' on page 0 undefined on ...
user avatar
  • 779
1 vote
1 answer
42 views

Custom environment for tcolorbox not working with certain option

I have trouble defining a custom environment for a tcolorbox equation environment. When I define an environment for my tcolorbox with ams align Option I get the error: LaTeX Error: \begin{tcolorbox} ...
user avatar
  • 202
2 votes
1 answer
46 views

Highlighting elements in matrices and linking them with other parameters with arrows

I would like to highlight some elements in a matrix and link them with arrows to their definition given on the matrix side (like in the picture below). I know there are possibilities to highlight ...
user avatar
1 vote
0 answers
31 views

highlighting with different heights

I want to use \hl from the soul package to highlight my mathematical definitions. The problem is, that it is very inflexible when it comes to height. For example when I write \documentclass{article} \...
user avatar
2 votes
1 answer
31 views

How to colorize specific entries in the bibliography based on author annotation?

I would like to colorize some of the references in the bibliography similarly to this question, this one, and this one. However, these techniques use an additional category. This other one uses ...
user avatar
  • 295
0 votes
0 answers
12 views

New command to dynamically change proper name removes spaces within main body but not tables? [duplicate]

I have a document that looks like so \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{soul} \usepackage{tabularx} \DeclareRobustCommand{\highlight}[1]{{\sethlcolor{...
user avatar
  • 103
0 votes
1 answer
18 views

Highlighting text for revised manuscript using `colorbox` forces long highlights onto single line?

I am attempting to use colorbox from xcolor to highlight changes to a revised manuscript I am submitting (my first LaTeX based manuscript). I have found that the method works well for single to ...
user avatar
  • 103
1 vote
0 answers
69 views

Highlighted words in LaTeX disappear in Pandoc

I wrote my thesis in LaTeX, but my supervisor wants a word document. So I used pandoc to convert it. Now I got my thesis back and had to mark the changes. I found this code (see below) to achieve this,...
user avatar
  • 121
0 votes
1 answer
42 views

Uphold the original numeration when using 'skip rows between index'

I have the same table (with n rows) several times and I want to highlight some rows. But I need to skip some rows in each case (i.e. 'skip row 0,...,x' or 'skip row x,...,n' etc.). That means ...
user avatar
  • 6,217
0 votes
0 answers
19 views

How to highlight an itemize item in an animation flow

I am trying to highlight the second item in an itemize after displaying all items: \usepackage{tikz} \usetikzlibrary{tikzmark} %#% \begin{frame}{slide_1}{} \begin{itemize}[<+->] ...
user avatar
  • 219
1 vote
1 answer
52 views

Is it normal for minted to run slow?

I just install minted, but the simple command: latexmk -pdf -shell-escape main.tex with main.tex simply being: \documentclass{article} \usepackage{minted} \begin{document} \begin{minted}{r} sprem <...
user avatar
  • 11
2 votes
1 answer
140 views

How to highlight the bullet points one by one?

I would like to achieve the following effect: Show the first bullet point and highlight the keywords in it; Show both the first and the second bullet points and highlight the keywords in the second ...
user avatar
  • 91
1 vote
1 answer
75 views

Is it possible to highlight and underline at the same time?

In looking at Highlight text with colored underline link to margin notes, I was struck by (to me) the unexpectedly attractive look of text that is both highlighted and underlined -- certainly not ...
user avatar
  • 7,683
0 votes
1 answer
71 views

Alternative to \begin{leftbar} that doesn't result in a float?

I'm trying to create an environment that makes paragraphs or groups of paragraphs in my text visually distinct from the rest. I just want it to be clear what is the one and what is the other. Ideally ...
user avatar
  • 157
2 votes
1 answer
223 views

How to highlight TeX code? [duplicate]

I want to highlight some TeX code listings, so I use lstlisting. \begin{lstlisting}[language=TeX] \begin{tabular}{ |p{4cm}|p{4cm}|p{4cm}| } \hline \multicolumn{3}{|c|}{Country List} \\ \hline ...
user avatar
  • 131
0 votes
0 answers
30 views

What is the package of Texstudio proposals in the new version

In the new version of TexStudio we have some icons whose shapes are: the commands are: \alert{} \comment{}{} \remove{} and so on. But what is the package to use these commands. Because I am not ...
user avatar
3 votes
1 answer
167 views

Hidden highlighting error

I have no idea why the following MWE should have errors. I would really appreciate it if you could help. \documentclass{article} \usepackage{color,soul} \begin{document} \hl{used the Monte Carlo ...
user avatar
  • 447
2 votes
2 answers
55 views

highlighting in-line equations

I am using \hl to highlight in-line equations but it is not working properly for some cases. Please see the following example. \documentclass{article} \usepackage{color,soul} \soulregister\cite7 \...
user avatar
  • 447
1 vote
0 answers
34 views

soul package with Latex dilimiter

I would like to ask that how can we use Latex delimiter \(\) instead of $$ inside parameter of \hl{} highlight from soul package? \documentclass[a5paper,12pt]{beamer} \usepackage{soul,xcolor} \...
user avatar
  • 139
1 vote
1 answer
50 views

Listings: overloaded use of dash

In my language, I use the dash character - in three different contexts. As an operator, e.g., 5 - 1. As a minus sign, e.g., -10. As part of a keyword, e.g., some-keyword. I would like to have a ...
user avatar
  • 318
2 votes
1 answer
91 views

Verbatim/Lstlisting environment with background color highlighting

Use case: Currently we are reporting security findings using MS Word. These findings contain large parts of code snippets, command outputs and HTML code. We highlight relevant parts of this code so ...
user avatar
0 votes
1 answer
42 views

Hide all highlights

TLDR: How to automatically hide all hl elements in the PDF? I have a latex document where I use the soul package to include highlighted text in my pdf, e.g. \hl{test}. These are only meant for me and ...
user avatar
0 votes
0 answers
31 views

TeXmaker syntax highlighting problems

can anyone tell me why TeXmaker is not coloring my code correctly? For some reason everything below my \newcommandline is in text-colour. When i paste my code into overleaf it works normally (https://...
user avatar
3 votes
1 answer
69 views

Is it possible to highlight every cell with counters `iRow `and `jCol` in `NiceTabular`?

It is very common for me to need to place braces in matrix environment in a controlled fashion which I find NiceTabular environment suitable for such purpose. One difficulty I encounter is that when ...
user avatar
0 votes
1 answer
42 views

How to change TeXShop highlighting color during delimiter matching?

Could someone explain how to tone down the blood-red default background color that TeXShop uses during delimiter matching? Sadly it's driving me nuts and I need to change it to something more soothing-...
user avatar
  • 1
1 vote
1 answer
37 views

Is it possible to add a background color just to an accent?

For something like \hat{w} or \vec{v} is it possible to set the background color for just the accent, i.e., the background of w and v would be normal, but the circumflex and vector symbol would be ...
user avatar
  • 1,587
0 votes
1 answer
63 views

Highlighting diacritical marks and making optional bounding boxes

For a specific selected diacritical mark within the word, how can you apply either all or one of the text formatting options below: highlighting coloring Underlining Changing to Bold Changing to ...
user avatar
  • 733
1 vote
1 answer
40 views

\tikzmarkin not highlighting whole row in table (beamer)

For some reason, when I try to highlight table rows using \tikzmarkin, the last character is not included in the highlight. See the example below. \documentclass[notes,11pt, aspectratio=169]{beamer} \...
user avatar
3 votes
1 answer
43 views

Space between lines of large titles

I'm setting up a title sheet after the book cover and I'm having a hard time. This title has very small line spacing. I've tried using \setstretch{xx} but it didn't work. What can I do? The code is ...
user avatar
1 vote
2 answers
234 views

tabularray individual cell colouring

I am attempting to colour specific cells in a table. I have tried recommendations such as color only a cell of a table and Efficiently colouring block of table cells, but when I try the code, only a ...
user avatar
  • 117
4 votes
0 answers
169 views

Highlighting pseudocode in algorithm

Edit: I "solved" my main issues now. It's a bit ugly/hacky, but at least the result looks ok. With this edit I'm replacing the now obsolete old code with what I have now. But suggestions for ...
user avatar
  • 41
0 votes
0 answers
400 views

How to create a gray background for text like we do in markdown? [duplicate]

My question actually has two parts: 1- How can I create a gray background for a paragraph like this using latex? Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum 2- How can I highlight just a little ...
user avatar
0 votes
0 answers
46 views

Decorate environment with vertical bars or background but keeping footnote default behavior (ie text on the correct page)

I'm trying to decorate a long (multipage) quote environment by adding bars on both sides, or a colored background. I've seen environments like mdframed for such cases, but they affect footnotes : they ...
user avatar
  • 403
4 votes
2 answers
75 views

Using soul and xcolor to highlight \emph renders some letters incorrectly

Minimum working example: \documentclass{article} \usepackage{xcolor} \usepackage{soul} \begin{document} \hl{\emph{irreducible}} \hl{{\emph irreducible}} \emph{irreducible} \end{...
user avatar
  • 41
2 votes
1 answer
230 views

Highlighting particular references in .bib file

I have the following sample .tex file \documentclass{article} \usepackage{soul} \begin{document} This is the file \cite{kang2020energy,pilakkat2019improved,ram2020performance} \...
user avatar
  • 761
2 votes
2 answers
119 views

need help in highlighting a row in a table

I am trying to highlight a rows MSE in the table but i am unable to do it and I am getting a small box at the end of the table. need help to draw a red box around the MSE row in the two tables ...
user avatar
  • 175
2 votes
1 answer
57 views

Is there a way to get the text position on beamer slides? (Can I insert auto-positioned spotlight highlights?)

This problem originates from the idea that I wanted to put spotlight highlighting directly on my slides. I was able to code something like that. (And there is also an alternative here: beamer: using a ...
user avatar
  • 388
0 votes
1 answer
135 views

How to highlight text in lyx?

I want to highlight some text in lyx just like in word/docs. I can't find the way to do this in lyx, how do I do that?
user avatar
0 votes
0 answers
35 views

Highlight the title of a section and one bibliography output of bibtex

I am trying to highlight one specific title of my section by using the \hlc command, but it does not seem to work at all. When I try this: \hlc[green]{\section{Title section5}}, the title of the ...
user avatar
1 vote
1 answer
26 views

Ruined styles when adding empty explpreset

I'm trying to show LaTeX commands using package showexpl. In the documentation of the package, it says that explpreset has a default value of . I think the sentence in documentation is not completed ...
user avatar
  • 115
1 vote
0 answers
102 views

How to add text at the start and end of each line?

I would like to add some text at the end of each line. For example, for the input This is a long text that will be split by LaTeX into various lines. I want to obtain This is a long textX Xthat will ...
user avatar
0 votes
1 answer
143 views

Syntax highlight for gmsh code (*.geo)?

I am looking for syntax highlighting packages (as listings or minted) for *.geo (gmsh input) and/or MSH file format version 2 or 4 *.msh (gmsh output). Example of content of *.geo file // Scale global ...
user avatar
  • 359
0 votes
1 answer
51 views

pgfplotstable: string replace when formatting with 'postproc cell content' does not work

It seems, that string replace={XXX}{replaced} does not work, if I use postproc cell content/.style={...}. What can I do? \documentclass[a4paper]{article} \usepackage{colortbl} \usepackage{...
user avatar
  • 6,217
0 votes
1 answer
20 views

Looking for a package able to do this highlighting+labeling

I am looking for a way to do the following highlighting : see the word "be". I did some googling to find an answer but I wasn't lucy! I also tried other ways such as converting the HTML ...
user avatar
1 vote
0 answers
72 views

Why does highlighting in the soul package change the spacing between letters?

\documentclass{ieeeaccess} \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb,amsfonts} %\usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{color, soul} % comment ...
user avatar
  • 593
0 votes
0 answers
66 views

How to highlight multiple lines of inline equations?

\documentclass{ieeeaccess} \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb,amsfonts} %\usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{color, soul} % comment ...
user avatar
  • 593
8 votes
1 answer
351 views

Highlight numbers using listings package

The problem: Is it possible to highlight all the numbers inside a lstenvironment except the numbers in comments, strings or variable names? Example of expected output (Python in Google Colaboratory): ...
user avatar
1 vote
0 answers
261 views

MDPI Default Template Highlight

Hi everyone I am working on MDPI submission using their template avaliable on overleaf and their site here I am highlighting changes using the soul package and the \hl{} but everytime I do this on the ...
user avatar
2 votes
1 answer
20 views

Biblatex: Marking reference categories with different symbols

A journal I would like to submit to requires that references of "special" and "outstanding" interest be labelled with one or two asterisks, respectively, as follows: This is a ...
user avatar
  • 93
1 vote
0 answers
54 views

Beamer - \spot not Transparent

In Beamer, I tried using \spot, but no matter what I tried, I couldn't get it to not be opaque. e.g., If I write \spot{0}: 1, the spotlight 'highlights' 0, but leaks over and hides : completely. I ...
user avatar

1
2 3 4 5
13