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
1 vote
0 answers
34 views

IEEE ACCSESS TEMPLATE TCOLORBOX PROBLEM

I am trying to highlight some sections in ieee accsess template.So I added packages: \usepackage[most]{tcolorbox} \newtcolorbox{highlighted}{colback=yellow,coltext=black,breakable} when I have added ...
1 vote
0 answers
32 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 \...
3 votes
1 answer
64 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 ...
1 vote
1 answer
67 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} \...
1 vote
1 answer
50 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. ...
1 vote
1 answer
52 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 : \...
0 votes
1 answer
49 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 ...
1 vote
1 answer
63 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)
  • 13
0 votes
0 answers
37 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 ...
0 votes
0 answers
39 views

How to bold or highlight specifc text in Verbatim, Is there any other method?

I am trying add some code in my article, And I need to bold and highlight some code words in Verbatim section (in Code). Or atleast highlight words. I couldnt find any method in verbatim to highlight ...
0 votes
1 answer
47 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, ...
0 votes
0 answers
24 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. ...
  • 711
1 vote
1 answer
71 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,...
0 votes
1 answer
72 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 ...
1 vote
2 answers
92 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 ...
  • 117
0 votes
2 answers
109 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 ...
2 votes
3 answers
137 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 ...
0 votes
0 answers
20 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 ...
0 votes
1 answer
96 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
68 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
50 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,534
0 votes
0 answers
175 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
101 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
84 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
89 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
130 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
43 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
24 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 ...
  • 101
4 votes
4 answers
279 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
54 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 ...
  • 43
3 votes
1 answer
76 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{...
  • 7,356
3 votes
2 answers
112 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
1 answer
78 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
80 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
31 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
28 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
237 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 ...
  • 801
1 vote
1 answer
116 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} ...
  • 222
2 votes
1 answer
51 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
54 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
68 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 ...
  • 317
0 votes
1 answer
162 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
195 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
57 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,721
0 votes
0 answers
35 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}[<+->] ...
  • 229
1 vote
1 answer
142 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
749 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 ...
  • 307
1 vote
1 answer
165 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 ...
  • 8,150
0 votes
2 answers
115 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 ...
  • 209
2 votes
1 answer
592 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

1
2 3 4 5
14