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
0answers
16 views

Change background color of head navigation elements (and shaded)

I want to change the background (as a rectangle around, similar to the footer) in the two head navigation bars, for section and subsection. So that the currently active elements have one color, e.g. ...
3
votes
1answer
66 views

How to yellow highlight differences of two tex documents automatically in LaTex

I want to compare two different tex files, say old.tex and new.tex, by just yellow highlighting the different places in the new.tex automatically. I tried two ways but not exactly what I want. Use ...
0
votes
0answers
32 views

Highlight and label anything in LaTex article

I'm looking for a package that highlights and labels anything I wrap with it. So that I can then create a list of those highlights according to the label. I was thinking of something like the ...
0
votes
0answers
50 views

Parts of speech tagging in LaTeX?

A part of speech tagger identifies the nouns, verbs, adjectives, etc. in a sentence. There are several programs that do this online, an example being https://parts-of-speech.info. I am looking for a ...
1
vote
1answer
25 views

Coloring the lines of an algorithm

I'm writing a report for a class project and I need to highlight several lines within some of the algorithms in the report. I managed to do so, but I don't like the solution I got. Here is a picture (...
2
votes
0answers
13 views

Texmaker Highlight/Note Functionality

I was thinking it would be really useful to me if there is a functionality in texmaker like highlighting some text blocks to easy recognize. Currently I am writing comments like this %%% Check This ...
0
votes
0answers
44 views

highlighting with soul corrupts text structure

I have a text where students have to individually highlight certain passages. The lines are numbered for later comparison. I use \hl{} from the soul-package for highlighting, but have found that it ...
1
vote
0answers
38 views

How can I highlight specific lines of code with minted in beamer?

I've been working on a set of slides in beamer, and one feature I really like as I'm learning is alert. In one part of my presentation, I have a relatively complex bit of code that's 12 lines long ...
0
votes
0answers
29 views

How to highlight text spanning multiple lines that includes macros?

I am currently proofreading a document and want to highlight some sentences. Unfortunately, I haven't found a highlighting package that can both Preserve linebreaks Highlight text produced by macros, ...
0
votes
0answers
17 views

LaTeX highlighting ignored in Kile 2.9.91

I'm trying to change the editor highlighting for LaTeX in Kile via: Seetings > Configure Kile > Editor > Fonts & Colors Highlighting Text Styles choosing Highlight:Markup/LaTeX and then ...
3
votes
1answer
28 views

How to get xcancel to work inside highlight?

\documentclass[oneside,9pt]{memoir} \usepackage{soul} \usepackage{cancel} \usepackage{ulem} \usepackage{lipsum} \usepackage{xcolor} \makeatletter \def\SOUL@hlpreamble{% \setul{\dp\strutbox}{\...
1
vote
1answer
41 views

Looking for a way to mark margin

Per the formatting requirements for a specific proposal, I need a way to mark sections of the documents (possibly breaking across pages) with asterisk symbols going down both margins. Ideally I would ...
3
votes
2answers
221 views

Highlighting only the bottom half of a word

I would like to define a command for highlighting in the following style. Some people do this on paper and I would like to mimic that on a particular document. How could I achieve this? I thought of ...
0
votes
1answer
23 views

Break longer word into lines to fit the box (inputminted?)

I would like to fit the long string (as it is labelled url in the json file) inside the box without overflowing. As far as I understand, breaklines option only helps when strings consist of separated ...
0
votes
0answers
43 views

highlight not working on figure captions

I am using highlight package where I use \hl command to highlight certain sentences. But when It comes to a figure caption, it gives wierd errors and stops working. Any suggestions on this. \...
2
votes
1answer
61 views

lstlisting: Box numbered variables in matching colors

Is it possible to match numbers, prepended by a %, e.g. variable %101 and surround every occurrence of that number in color-matched boxes? I am trying to make it easier for readers to follow the ...
2
votes
1answer
63 views

How to highlight the XML code in latex overleaf

I followed few answers mentioned here to highlight the XML content in my latex and tried to combine best things together from different answers but for some reason nothing is being highlighted in my ...
4
votes
3answers
51 views

No corner table with colored titles

I would like to know how to build a table like the one on this code, however I feel there should be a much better way to do it since: 1.- I want to get rid of the top left cell. 2.- Since the left ...
0
votes
0answers
27 views

Highlight some text and download it as image online

Till now, I was using codecogs online editor to quickly get LaTeX images simply by attaching the code at the end of the url like this - https://latex.codecogs.com/png.latex?\int_{0}&space;^{\infty}...
3
votes
1answer
74 views

minted escapeinside works for all supported languages except LaTeX

I want to add some math symbols into the escaped contents, minted works well for languages like Python, but not LaTeX. A sample code: \documentclass{article} \usepackage{minted} \begin{document} \...
1
vote
1answer
40 views

Biblatex multiple author annotations

I'm highlighting certain authors in biblatex using the annotation feature: \documentclass{article} \usepackage{biblatex} \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @MISC{test, ...
6
votes
2answers
307 views

Alternative to the soul package?

Context One may want to highlight some text, or strike it. This can be done with either the soul package, or with the ulem package using a trick, although it does not work that well. Problem The ...
3
votes
1answer
63 views

Highlight Lines in side-by-side algorithm

I have a 2 column latex template (IEEEtran), in which I put 2 algorithms side by side: \documentclass[10pt,conference]{article} \usepackage{algorithm} \usepackage{algorithmic} \usepackage{xcolor} \def\...
2
votes
1answer
57 views

Bibliography: highlight recent references automatically by adding an asterisk in left margin

I am updating a list of references and I would like to highlight references added since the last update. For example, I would like to add an asterisk (or another symbol) just before the reference (...
1
vote
1answer
368 views

Use minted for plain-text? (without syntax-highlighting) [duplicate]

I'm possibly too lazy to find how to do it without minted, but since I already use minted and I want top keep it's styles it applies to code boxes (like background color, the line break features, ...
0
votes
0answers
38 views

Highlighting citations along with some long sentences starting in the middle of paragraphs

I am trying to highlight my revised paper in latex, since when I highlight its PDF using Foxit the highlights are not shown after pressing generate PDF in journal's website. I have some troubles: I ...
2
votes
1answer
37 views

How to stop lines of an algorithm from jumping up and down

I have the following code to walk though the lines of an algorithm: \documentclass{beamer} \usetheme{default} \usepackage[]{algorithm2e} \def\HiLi{\leavevmode\rlap{\hbox to \hsize{\color{yellow!50}\...
1
vote
0answers
60 views

pgfplotstable: How to highlight row and column of a cell with special content

If I say string replace={x}{\cellcolor{pink}x} a cell with content 'x' gets highlighted. But how to highlight the row and the column of 'x' too? \documentclass[]{article} \usepackage{pgfplotstable} \...
0
votes
0answers
87 views

Highlight numbers in code with listings

I'm currently trying to define my own code style with the Listings package for LaTeX. Among other things this style should display numbers in a separate color. However, if the numbers are within a ...
1
vote
1answer
86 views

Highlighting maximum value in pgfplotstable works partially

I'm highlighting (bold font) the maximum values with pgfplotstable. It works for all columns, except the last column. In the last column, the last row is always highlighted. I would be very thankful, ...
0
votes
1answer
307 views

Use \hl command to highlight a subsection title

I am trying to use the \hl command to highlight a subsection and subsubsection title. I have tried wrapping the commands in a \mbox or between parenthesis but it doesn't seem to work. They worked with ...
0
votes
1answer
89 views

Highlighting specific entries in the bibliography using `biblatex`

In a previous topic (Highlighting particular bibliography entries), the asker was looking for a way to color specific entries. The solution provided allows for choosing arbitrary color for any ...
0
votes
0answers
26 views

Highlight hyperref's links without modifying the general layout

This question is related to my previous one Change hyperref's links colors without modifing the .tex file. For editing purposes I need to highlight links to figures, tables, footnotes etc. I ...
1
vote
1answer
35 views

Highlighting a specific node in tikZ matrix when the node has multiple lines of text (beamer)

I have a slide with a matrix of nodes that appear one at a time on the slide. Each node has multiple lines of text and math (the sample code shown below was stripped off some of the math to abstract ...
3
votes
1answer
50 views

Add keywords to listings in preamble or lstlang1.sty

Some keywords I want to add I would like to add a few keywords for C, but am having difficulty. The keywords I would like to include are bool, simd, omp, restrict, etc. I would like these to be just ...
1
vote
1answer
69 views

Annotations above inequalities in a chain of inequalities, one slide at a time

I am trying to write a chain of inequalities with the following feature: first, on successive slides, I wish to highlight (for instance, with a tcolorbox) successive inequalities and annotate them ...
1
vote
1answer
60 views

How to color quotes block in red

How can I color the block std::complex<T> in red as shown in the picture?
0
votes
1answer
102 views

\colorbox shape – highlight formula

I've seen somewhere such a shape of a highlight. I am trying to repeat this using xcolor package, but I managed to get only rectangular shape of the box. \colorbox{red!10}{$\displaystyle\int xe^{-x}...
0
votes
0answers
23 views

Is it possible to remove highlights were made with Latex from a PDF file?

So I finished writing a paper using Latex and then I added highlights using the hl{} command. Now I need to remove those highlights from the PDF file. unfortunately, I've lost the tex script so I only ...
0
votes
0answers
39 views

TeXStudio and macro/shortcuts

In TeXstudio it is possible to use the shortcut Ctrl + B to get the following code \textbf{} with the cursor in the middle of the parenthesis ready for me to write some text that will be bold. ...
0
votes
0answers
38 views

Change colour of highlighting of preview search results (TeXShop)?

[enter image description here][2][![enter image description here][3]][3]Is it possible to change the highlight colour of search results in the document in the preview window (not in list of search ...
1
vote
1answer
40 views

Beamer and longtable

I am trying to highlight a row in beamer, but the whole row does not get hihglighted (i.e., there is white space between each column). Is there any way to highlight the entire row by still using the ...
1
vote
0answers
52 views

How to highlight lines on a pattern using minted?

The Answer in "How to highlight (color/draw attention to) a particular snippet in Minted" is very helpful. But, is there a way to highlight lines in minted on a pattern? E.g. not to say "...
5
votes
1answer
116 views

Key Listener to Show/Hide TikZ-Comments & Text Highlighting in PDF Output

While working on curating my lecture notes with LaTeX, I've come across a dilemma:             readability and aesthetics VS. rigor and ...
2
votes
0answers
109 views

Code highlighting drawn under tcolorbox and not displayed

I am looking to add highlighting to listings. I have tried to adept the techniques given by https://tex.stackexchange.com/users/23765/siracusa in the question Highlight text in code listing while also ...
0
votes
0answers
30 views

How can I highlight software commands as code in text? [duplicate]

I want to highlight some software commands as code in my text without any line break or any new paragraph for the code. Is there any possible way to do so?
0
votes
1answer
82 views

\lstinline highlighting error in Texmaker

I am able to compile perfectly, and the PDF output is nice. But editing-wise, it gets annoying that Texmaker colours everything after \lstinline as if it is a listing. Any quick fix for this? Here is ...
2
votes
1answer
91 views

beamer: using a spotlight to highlight a part of an image

Using beamer , I would like to highlight a part of an image using a spotlight (circular, or rectangular) as shown below: How can I achieve that in beamer?
0
votes
0answers
32 views

Distinguishing extended blocks of quoted text

I'm working on a document where I copy large amounts of text from a book by Hartshorne, and interleave it with large amounts of my own text (basically saying "here's what the math book says; here's ...
1
vote
0answers
102 views

Illustrated equation (with TikZ) with evenly spaced lines (and some homogeneous highlight)

If possible, I would like to achieve this in a simpler and better way, namely: using a single equation where lines are spaced in a regular way the cup and bracket are big enough each highlighting ...

1
2 3 4 5
12