Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
2 answers
172 views

Define new color for highlighting [duplicate]

I'm trying to make a new command for highlighting a part of text using black background and white text. I use the x11names option for the xcolor package and don't want to change it but it doesn't has ...
alksdhalksjdb's user avatar
0 votes
0 answers
30 views

Highlight text that contains some citation [duplicate]

I'm trying to add some new citations in my article. Im using the following command: "some citations in this fields are \hl{e.g., \cite{abc2020}, \cite{def2021}, among others}." However, the ...
top north 5088's user avatar
3 votes
1 answer
46 views

highlight a data point on a colormap

I am trying to highlight a data point on a colormap in a way to add a bigger circle mark at the coordinates (3.6,47). In this example (see the plot below) I just added additional point at this ...
Gagik's user avatar
  • 391
1 vote
0 answers
40 views

Highlight the numbers on Number line

I would like to highlight the numbers with different colors like in first number line highlight the numbers from 0 to onwards, in second number line from 0 to onwards and in third number line ...
SandyM's user avatar
  • 2,825
0 votes
0 answers
28 views

Highlight one of the reference in the bibliography

MWE \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[width=1.00cm, height=1.00cm, left=1.00cm, right=1.00cm, top=1.00cm, bottom=1.00cm]{geometry} \...
SandyM's user avatar
  • 2,825
1 vote
1 answer
59 views

Highlight text using tikz along with uncover

I want a rounded box around the number 3480 on slide 2. The box is there in slide 1. I have used the same format along with uncover in slide 2. But I am not getting the box. Please look into the code ...
mathslove's user avatar
  • 141
3 votes
1 answer
113 views

Highlighting box within a matrix

I'm trying to ilustrate how matrix multiplication works with the following code: \begin{align*} & \begin{pmatrix} 1 &2 \\ -1 &0 \end{pmatrix} \\ \begin{pmatrix} 3 &...
Nickesponja's user avatar
0 votes
1 answer
78 views

Can't highlight equation with soul package

I cannot highlight an equation by \hl from the soul package! Is there no way to highlight an equation?
Inzo Babaria's user avatar
3 votes
1 answer
129 views

Highlighting bands of a matrix with tikz

I am trying to highlight specific band diagonals of a matrix in latex using nicematrix and tikz, but I am having trouble with fitting the bands to the matrix correctly. Does someone have an idea of ...
Mathnoob's user avatar
5 votes
1 answer
150 views

Highlight text after the n'th word (word limit)

Previously, I asked a question about highlighting pages after the n'th page. This was because I had to adhere to a page limit and wanted to indicate when a page went over that limit. I now have a ...
Mew's user avatar
  • 843
3 votes
2 answers
155 views

LaTeX Command for Simultaneous Text Coloring and Highlighting

I am currently working on revising a manuscript, and I was wondering how to define a LaTeX command that allows for simultaneous text coloring in dark-red and highlighting. The purpose is to ...
husin alhaj ahmade's user avatar
-1 votes
1 answer
66 views

Code Highlighting in tikzposter

I am doing a poster and I would like to show some programming code. With the package \begin{minted}{python}.....\end{minted} there is a beautiful code highlighting but it doesn't work in tikzposter. ...
ghxk's user avatar
  • 91
0 votes
0 answers
40 views

TeXstudio Highlighting Issue with \input

I have an auxiliary .tex file with commands, packages and the like, which I reference with \input{...}. However, TeXstudio doesn't recognise the commands in that auxiliary file. A MWE can be made in ...
Sam OT's user avatar
  • 1,339
3 votes
1 answer
42 views

Weird coloring with @ symbol (LaTeX Minted for Python)

The @ symbol is used by NumPy (a Python module) for matrix multiplication. I got a weird coloring when writing this in a LaTeX document using Minted: \documentclass{article} \usepackage{minted} \...
Héhéhé's user avatar
  • 131
1 vote
3 answers
81 views

How do I tag certain text to distinguish it, but that can also easily be toggled off to exclude from printing?

I've prepared law school course notes/outlines in LaTeX (using Overleaf). I have a school course in which I'll be tested on both the general law in a certain subject across most U.S. states, and also ...
T.C.'s user avatar
  • 111
3 votes
0 answers
81 views

How to customize the height highlightings with tikzmark package?

How to customize the height of highlightings with tikzmark package?. In the documentation, page 17-18, you can see the explanation (at lower part in this message) https://ctan.javinator9889.com/...
Mika Ike's user avatar
  • 3,781
0 votes
0 answers
36 views

How do I search for a substring and highlight the occurrences?

How do I create a command which, given a string (let's assume just a single word) and a substring (let's assume just a single letter of the alphabet), outputs the given string with all the occurrences ...
stf's user avatar
  • 243
0 votes
1 answer
96 views

Highlight in yellow a list of citations

I'm using the soul package to highlight fragments of text, using the \hl command. However, this package has problems if you have a command within the \hl command. They can usually be solved by putting ...
user173026's user avatar
0 votes
0 answers
33 views

Texpad (macOS) - highlighting url links/in-text refs using the build-in TexpadteX typesetter

Do you know any trick for including rectangles around references, such as Figures, Tables, and url links, etc. in Texpad editor when the TexpadTeX typesetter is used? While I can manually change or ...
Josh E.'s user avatar
  • 73
0 votes
1 answer
81 views

Highlight sentences in yellow for specific commands such as italic

Aim To change the background color of a sentence in which italicized words occur that use the \textit{} command. Minimal Working Example (MWE) \documentclass[12pt]{report} \usepackage{ragged2e} \...
kexxcream's user avatar
  • 2,825
0 votes
1 answer
39 views

Highlighting Text and Making it Go to the Next Line in Itemize, and Removing Space at End of Highlighting, with Soul and Linegoal

I've been trying to split highlighted text into lines and not go over the margin in the itemize environment, but linegoal calculates the wrong margin in itemize. Also, the highlighting always gets to ...
Cheese Cake's user avatar
1 vote
3 answers
114 views

I have used colorbox to one equation, how to use colorbox to two in align?

\documentclass[9pt]{beamer} \usepackage{xcolor} \begin{document} \frame { \begin{equation*}\text{\colorbox{white!90!black}{ $ \textcolor{red!70!black}{\min \quad f(x),} $}} \end{equation*} \...
Sana Green's user avatar
0 votes
1 answer
113 views

Making interactive slides in texWorks

I want to make interactive slides for my presentation. This is my first attempt to use this type of slide. I found this post and following this applied the command Highlight and only. However I am ...
Ly T's user avatar
  • 11
1 vote
1 answer
68 views

Remove hl command using notepad++ or Texstudio

During the review process of a manuscript, I was asked to highlight changes according to the comments of the reviewers. I used the soul package in combination with the color package. These two really ...
Zorg's user avatar
  • 15
1 vote
1 answer
279 views

How to highlight texts without changing the column margin, IEEE format?

I am trying to present my reviewer response with highlighted texts. I am using the soul package in IEEE double-column format. The issue is, the texts go beyond the column margin. Is there anyone who ...
Dimuthu D. K. Arachchige's user avatar
1 vote
0 answers
49 views

How to define a colorbox command which can treat other user-defined commands in its argument?

I would like to highlight text including user-defined commands with linebreaks. I found a solution for linebreaks (Colorbox does not linebreak), but the \ctext{} command cannot treat other commands in ...
TobiR's user avatar
  • 594
1 vote
1 answer
58 views

How can I highlight elements in a matrix without overlapping the delimiters?

I used the code given by Kottwitz, and here is the result. Put another way, how can I adjust the position of the delimiters so that the highlights do not overlap them?
Aldean Gem P. De Guzman's user avatar
1 vote
1 answer
504 views

Minted Highlight code with multiple colors

I would like to highlight a function in minted by giving it a multiple background colors. So I would like the same highlight than the following picture I succes to highlight the green line, but I ...
Adri's user avatar
  • 113
3 votes
1 answer
55 views

Prevent highlighting of keywords in strings starting with square brackets

I have the following MWE in pdfLaTeX. \documentclass{article} \usepackage{color} \usepackage[utf8]{inputenc} \usepackage{listings} \definecolor{dkgreen}{rgb}{0,0.6,0} \definecolor{gray}{rgb}{0.5,0.5,0....
sanitizedUser's user avatar
1 vote
1 answer
238 views

IEEE access template tcolorbox problem

I am trying to highlight some sections in an IEEE access template. So I added packages: \usepackage[most]{tcolorbox} \newtcolorbox{highlighted}{colback=yellow,coltext=black,breakable} when I have ...
Akustika Horoz's user avatar
1 vote
0 answers
432 views

Help with Lua filter for markdown to LaTeX with Pandoc

In markdown (written in Obsidian.md) I use a plugin/theme so that *==text==* is rendered as red instead of italic and highlighted. I use this lua-filter to convert regular ==highlighting== to LaTeX \...
ReaderGuy42's user avatar
3 votes
1 answer
95 views

Format improvement for step-by-step solution to cubic equations

Within \amsmath and \tasks, the step-by-step solution process to find the 3 roots for a cubic equation is provided. Request your assistance with 2 issues: Decrease horiz space between the 2 cube ...
Siuslaw Math's user avatar
1 vote
1 answer
137 views

Syntax highlighting doesn't work after percent symbol %

I'm trying to highlight my R code using minted package. However, after %, a few lines didn't get highlighted. When I delete % problem disappears. My code: \documentclass{article} \usepackage{minted} \...
Sawyer Shu's user avatar
1 vote
1 answer
77 views

`soul` and `soulpos` cause page restart if used heavily

I use lots of highlights as it is used to mark my revision from each version before I gave to my lecturer. When I highlight lots of texts, I found out that sometimes page restarted in the middle. ...
Muhammad Yasirroni's user avatar
1 vote
1 answer
416 views

How to highlight a section, subsection... with text in italic

I know that you can highlight text inside a section like this : \section{\hl{text}}. But in my case, I have text in italic inside my section, and it won't work. Here's the code I tried : \...
KeebMaster's user avatar
0 votes
1 answer
57 views

Why does the text overlap? [duplicate]

It may not be easy to see, but the error is definitely there -- look at the "r" in "Nordamerikas": How can I remedy this? This was brought to my attention during a final check of ...
Kristian Nordestgaard's user avatar
1 vote
1 answer
111 views

How do I combine `\lit` with `\hl`?

If I have the following: \lit*{\char`\\ b} How do I combine this with a \hl (highlight) to get a highlighted version of \b? (\lit is from the syntax package, and \hl is from soul)
MPP's user avatar
  • 13
1 vote
0 answers
265 views

changes-package: can highlighted text wrap into the next line?

In using the \highlight command in the changes-package on text that spans multiple lines, the text runs off the page rather than wrapping into the next line, as shown in the MWE. Is there a way around ...
Laura Fortunato's user avatar
0 votes
1 answer
142 views

Background coloring in algorithm2e pseudocode in beamer

I tried to highlight parts of my pseudocode in algorithm2e with the following answer to a similar question: https://tex.stackexchange.com/a/51590/287916. I copied the code exactly the same and run it, ...
Michelle's user avatar
0 votes
0 answers
48 views

Highlighting all elements of type in the document

I would like to know if there's a command that I can use in the preamble to highlight all elements of a given type in a colour of my choosing. I would particularly like to highlight all math formulae. ...
lfba's user avatar
  • 731
1 vote
1 answer
174 views

hl with automatic line-break for long words [duplicate]

Im using the soul package for highlighting. I noticed that \hl will go simply out of the margin, if the word is too long: \hl{Loremipsumdolorsitamet,consetetursadipscingelitr,...
user16910689's user avatar
0 votes
1 answer
207 views

Soul Highlighting Dimensions

I'm having trouble understanding part of the documentation for the soul package. I want to know the exact lower and upper positions of the produced colored rectangle when highlighting text via the \hl ...
User23456234's user avatar
  • 1,864
1 vote
2 answers
964 views

Recreate markdown-style inline code blocks in latex

I'm trying to recreate markdown-style inline code blocks in latex, you know, these things. They should have a slightly highlighted background, but not influence line height or word separation of the ...
msrd0's user avatar
  • 127
0 votes
2 answers
372 views

Highlight text with gray box [closed]

How can I achieve the same gray box as in the below image? In particular there should be no internal padding and it should not break indentation when starting a new paragraph (cf. the indent of ...
Nicolas's user avatar
  • 161
2 votes
3 answers
167 views

How To Achieve Boxed Matrix entries

I am wanting to see how one can achieve the following in LaTeX: \tilde A, \hat A, \tilde B, \hat B, \tilde C^{-1}, \hat C^{-1} and D are all matrices. $\Lambda$ is the new matrix formed from the ...
Vegeta the Prince of Saiyans's user avatar
0 votes
0 answers
31 views

Avoiding \hbox of long citations going over page margins

I am using the soul package to highlight text, some of which includes long citations. I'm using \hbox to get around the compilation errors so far, but this command is terrible for long citations! Here ...
microcastle's user avatar
0 votes
1 answer
660 views

Changing colors in soul package [duplicate]

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, ...
Kid A's user avatar
  • 3
0 votes
1 answer
94 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 ...
abdulhaq-e's user avatar
2 votes
1 answer
61 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 ...
user32882's user avatar
  • 1,594
0 votes
0 answers
462 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 ...
Sandeep Pandey's user avatar

1
2 3 4 5
14