Questions tagged [highlighting]

{highlighting} is about highlighting document elements. Use this tag in addition to other tags specifying what should be highlighted.

679 questions
41
votes
5 answers

Highlight First Occurrence of a Particular Word

I'm writing a scientific paper, and in this paper, I present a series of new terms. The first time a new term is presented, I would like LaTeX to automatically highlight this - e.g. by using italics or small caps. Does such a package exist? Or if…
32
votes
2 answers

Highlighting arbitrary chunks of text connected to quotes in margins - Can this be done in TeX/LaTeX?

I've got an idea and I'm wondering if it is possible to implement in TeX/LaTeX. The idea is I want to be able to associate arbitrary chunks of text on the page with a quote in the margin, and denote the association with a border around the chunk of…
user13068
22
votes
3 answers

How to highlight citations in a revised manuscript

I am submitting a revised manuscript to a journal (Medical Physics), and the journal requires that changes that are made in the revised manuscript should be highlighted. I've been attempting to use the soul package with the \hl command, but it…
littleO
  • 1,153
17
votes
2 answers

Highlight anything in LaTeX article

I'm looking for a package/command that will highlight anything I wrap with it. Currently the closest thing I've found is soul but it has many shortcomings: No sectioning highlighting No automatic footnotes highlighting No \cite highlighting unless…
Gabriel
  • 2,203
10
votes
2 answers

Unix Command Highlighting latex

Is there any what I can easily show commands in latex? I am currently using: \indent\indent\footnotesize{\# apt-get --purge remove rubygems} \\ But this isn't showing a very good disctintion between commands and text. What else could I do to show…
Dean
  • 1,455
  • 5
  • 15
  • 19
5
votes
2 answers

Add grey background to inline text

I want to make several words with a grey background like this within normal text? Like with \colorbox{yellow}{\lstinline{some text here}} but grey instead of yellow. How to do that?
vasili111
  • 377
3
votes
4 answers

Vertical highlight of a paragraph

I am searching a way to highlight in a particular way a text in latex. I know already the existence of the command \hl; however, it does not provide the result that I want. Actually, I would like to add a vertical tick grey line on the left of a…
3
votes
2 answers

Highlighting First Occurence of Word. Making it Case Insensitive

first time asking a question. I'm implementing egregs answer from this question: Highlight First Occurrence of a Particular Word %%% Code to set up special term treatment \makeatletter \newcommand{\specialterms}[1]{% \@for\next:=#1\do …
3
votes
1 answer

How to write the beautiful code as follows

I want to know how to generate the following beautiful code, including fonts, colors, line, and the figure description. I think it is not written by \lstset. This picture is extracted from a paper titled Towards Optimization-Safe Systems: Analyzing…
Lijie Xu
  • 1,427
2
votes
1 answer

\hl with custom color and linebreak and math

I want to highly text which contains math in shades of grey with allowing for linebreaks. Based on this excellent post, I tried: \documentclass{article} \usepackage{xcolor} \usepackage{soul} \newcommand{\mathcolorbox}[2]{\colorbox{#1}{$\displaystyle…
safex
  • 145
2
votes
1 answer

How to highlight equations in mathematics?

How I can highlight equation as given below:
new_born
  • 680
2
votes
1 answer

Highlight differences between character sequences

I have got some character sequences which I need to put into a documentation: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \begin{document} \begin{table}[h] {\renewcommand\arraystretch{1.25} …
bdvd
  • 35
2
votes
1 answer

Package or tool for visualizing differences

Possible Duplicate: What is a good way to show changes between two versions I done a bunch of updates in an article. I have a copy of an old revision of the paper. Now I would like to generate a PDF/DVI illustrating the updates I've done. Is…
aioobe
  • 2,376
2
votes
0 answers

Grey box around the text

I have to write a newenvironment, which plots a grey box around the text. I can't decide which package I should be use. I am writing a dissertation and I want that some text sections have a grey box around the text. Which package should I use for…
blue
  • 171
2
votes
1 answer

Notepad++ highlighted code into LaTeX?

I want to export my Notepad++ highlighted code into LaTeX. Is it possible? Note that my codes are PHP codes.
ilhan
  • 99
1
2