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
1 answer
38 views

Changing colors in soul package

I am writing a template for my lecture notes and I wanted to have a different color as my highlighted text. \usepackage{soul} \usepackage[dvipsnames]{xcolor} \definecolor{delectricblue}{RGB}{93, ...
  • 3
0 votes
1 answer
49 views

Partially highlight title in tcolorbox environment

I would like to improve my solution to the following goal. A tcolorbox environment with a title that is partially highlighted. Thanks to the great answers here and the awesome tcolorbox docs. I ...
2 votes
1 answer
41 views

Why does highlighting stop working when I introduce hyphenation and text including an equals sign?

I'm using soul's \texthl in combination with \texttt to render inline code that can break at arbitrary hyphenation points when it reaches the end of a line. To simulate the "verbatim" aspect ...
  • 1,460
0 votes
0 answers
46 views

How to compare two tex file outputs?

I want to get a highlighted pdf where the difference in two tex files output is captured. My main tex file calls separate tex files as chapters using \include . I tried using latexdiff, but it is not ...
3 votes
2 answers
49 views

Cell coloring does not work properly in tables

I have a table that I would like to color/highlight its rows. I am using \cellcolor function but have no idea why it is not working properly. Also, please help me to locate "Normal" and &...
  • 501
3 votes
2 answers
51 views

Automatically highlighting name in bibliography doesn't work with middle initial

I've been trying to figure out a way to automatically highlight my name in the bibliography. I thought that I could just compare first name and \namepartgiven and last name with \namepartfamily, but ...
5 votes
1 answer
82 views

How to prevent unintended equation number shiftwhen using tcolorbox with algorithm?

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[]{algorithm2e} \usepackage[most]{tcolorbox} \definecolor{bg}{RGB}{255,249,227} \begin{document} \section{Introduction} \begin{algorithm}[...
4 votes
1 answer
46 views

Highlighting bibliography entries based on keywords

I'd like to highlight particular bibliography entries by changing the background color. I really like the way this looks in moewe's solution here, but I want to specify which entries are being ...
0 votes
1 answer
40 views

How to Underline (with Linebreaking) within Contiguously Highlighted Text Using Soul

I would like to use the command \ul within a block of text that is contiguously highlighted using the macro contained in the following code: \documentclass[12pt,openany]{book} \usepackage{soul} \...
0 votes
0 answers
20 views

Highlighting of too long sentences

I have the same question as in this tex question. How do you highlight sentences that are too long (with more than X words)? According to the single answer, TexStudio has a build-in functionality for ...
4 votes
4 answers
247 views

pdflatex: conflict between pdfcomment and soul

Here's the MWE: \documentclass{article} \usepackage{soul} \usepackage{pdfcomment} \begin{document} \section*{\hl{Fine}} \section{\hl{Error}} \end{document} which gives the following error ...
  • 41
0 votes
0 answers
30 views

How to set background color for long in-text citations with line wrapping?

Normally for revised-version, the revised text should be highlighted. When it contains long in-text citations which span more than one line, the background color will extend to the margin, and ...
  • 33
3 votes
1 answer
74 views

How to Contiguously Shade a Portion of a Paragraph with Color

Consider the code: \documentclass{book} \usepackage{xcolor,soul} \colorlet{soulred}{red!25} \begin{document} \thispagestyle{empty} \LARGE \begingroup \sethlcolor{soulred}% Here is some text. \hl{...
  • 5,657
3 votes
2 answers
103 views

Highlighting the top and bottom of a matrix

I want to be able to make that kind of triangles like in the image. I hope you can help me
  • 143
0 votes
0 answers
29 views

Make \hl include linebreaks

I am using soul package and \hl to highlight text in my Latex. However, it does not work when there is a linebreak or a new paragraph. I have a whole page to highlight. Is it possible to make \hl ...
0 votes
1 answer
52 views

How do I plot the solutions of an equation of a 3D Plot?

I want to plot all possible solutions for sqrt(|x||y|) = 2 into my plot as a line. My code for the plot currently looks like this \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat = ...
0 votes
0 answers
27 views

Import seems to fail with TexStudio after reinstallation. Why?

I reinstalled Texsudio on a new SSD yesterday. After that I only encounter problems, Nothing changed to my actual MikTex installation, which has always been on my boot disk. E.g. when I import my ...
0 votes
0 answers
20 views

Color of highlighting of search result in Texshop

I am using the ogrekit find in Texshop on a mac. When TeXShop finds a string, the string is highlighted in grey, which is difficult to see in dark mode (with a background in black). How can I change ...
  • 101
2 votes
1 answer
81 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 ...
  • 791
1 vote
1 answer
73 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} ...
  • 212
2 votes
1 answer
48 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 ...
1 vote
0 answers
38 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} \...
2 votes
1 answer
48 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 ...
  • 315
0 votes
0 answers
13 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{...
  • 103
0 votes
1 answer
47 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 ...
  • 103
1 vote
0 answers
131 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,...
  • 121
0 votes
1 answer
51 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 ...
  • 6,357
0 votes
0 answers
26 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}[<+->] ...
  • 219
1 vote
1 answer
76 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 <...
  • 11
3 votes
1 answer
365 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 ...
  • 287
1 vote
1 answer
106 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 ...
  • 7,917
0 votes
1 answer
82 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 ...
  • 167
2 votes
1 answer
402 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 ...
  • 131
0 votes
0 answers
40 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 ...
3 votes
1 answer
168 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 ...
  • 501
2 votes
2 answers
110 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 \...
  • 501
1 vote
0 answers
44 views

soul package with Latex dilimiter [duplicate]

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} \...
  • 139
1 vote
1 answer
60 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 ...
  • 350
3 votes
1 answer
139 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 ...
0 votes
1 answer
73 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 ...
0 votes
0 answers
39 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://...
3 votes
2 answers
85 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 ...
0 votes
1 answer
55 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-...
  • 1
1 vote
1 answer
53 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 ...
  • 1,607
0 votes
1 answer
71 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 ...
  • 733
1 vote
1 answer
50 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} \...
3 votes
1 answer
52 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 ...
1 vote
2 answers
434 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 ...
  • 127
4 votes
0 answers
288 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 ...
  • 41
0 votes
0 answers
705 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 ...

1
2 3 4 5
13