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

learn more… | top users | synonyms (1)

1
vote
1answer
28 views

gb4e: Highlighting examples

In a presentation of a colleague I saw that his examples were displayed in a filled grey square (he used powerpoint). This impressed me, because it highlighted the examples in a subtle and modest way. ...
1
vote
0answers
33 views

Box highlighting of text with rounded corners and hyphenation support

I used tcolorbox to highlight text some text in paragraphs, it seems to work smoothly, but it disables text hyphenation, that the highlighted piece fo text cannot be start somwhere at one line and ...
2
votes
0answers
54 views

Unhighlighted syntax with listings package

I have some trouble with making documents with syntax highlight. Here is the MWE: \documentclass{article} \usepackage{xcolor} \usepackage{listings} \lstset{% language=[LaTeX]TeX, % I also tried ...
0
votes
1answer
70 views

Highlight text and mathematical expressions with colored background

I'd like to have a function that I can use like a highlighter, both in text and in math mode. I wrote something that works but it's really slow and still causes problems in some situations. Here is ...
2
votes
2answers
33 views

Highlight selected references with asterisk

I'm using Biblatex/Biber with the phys style. I would like to highlight selected references in the text with an asterisk, i.e. the number should be marked. A \cite{key1,highlightedkey,key2} should ...
16
votes
5answers
391 views

Highlight every occurrence of a list of words?

In order to revise a draft, and identify related sections, I would like to identify similar words (by color of text, highlight, underline, or otherwise) according to topic. For example, I would like ...
1
vote
0answers
90 views

How can I typeset PowerShell code with the listings package?

I'm currently creating my diploma thesis, and used PowerShell to do some of the described work. I'd like to also put some of this code into the thesis and would therefore like to have syntax ...
2
votes
0answers
47 views

Sublimetext highlighting of braces

In SublimeText 3, the syntax highlighting for latex documents in math mode has the following (unexpected?) behavior. Consider the following: \{sometext\} versus \{ sometext\}. The syntax ...
2
votes
0answers
31 views

How to highlight php code in a HTML document and the document itself?

how can I highlight php code in a HTML document and the document itself? Example: <!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> ...
4
votes
3answers
202 views

How to show a filename above a code snippet just like on the arch wiki?

Context I'm writing a tutorial-like document in LaTeX on how to create a certain Linux based device. Part of the effort of recreating the device is writing small pieces of code, in either Bash or ...
5
votes
2answers
82 views

Automatically highlight words from a predefined list

I am not a native English speaker and there are some grammar mistakes I do a lot, especially have/has in conjunction with each/every, and so on. Q: Is there some way to highlight all occurrences of ...
3
votes
0answers
32 views

tikzmark: declare a shape imitating <span> in HTML

Too Long; Didn't Read See the figure. The yellow blocks are actually three nodes. How to improve anchor border? How to place such a node inline? Or, overall, any better mechanism to do so? ...
2
votes
0answers
89 views

R-code linebreaks AND themes in knitr

hpesoj626 provides two great minimal working examples for how to get R-code linebreaks AND code highlighting in knitr. I was wondering if it was possible to use Yihui's knitr themes within either of ...
2
votes
0answers
75 views

Highlighting words with special characters using \hl (soul)

I am using xelatex, polyglossia and the document is in UTF-8 encoding. I use the soul package to highlight words (using soulutf8 makes no difference). The problem is really weird, so I will go ...
1
vote
0answers
92 views

(Beamer) Highlight node/edge labels using onslide/only

So in my Beamer slides, I'm using this to highlight various parts of a tikz figure on different slides. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning,automata} ...
0
votes
1answer
72 views

LaTeX interaction with the OCaml toplevel system

I would like to be able to write an OCaml expression inside a LaTeX document, and have it loaded in the OCaml toplevel system, which would compile it and evaluate it. Then both the expression and its ...
2
votes
1answer
81 views

Problems with matrix highlighting in two separate equations using hf-tikz

I have the following 2 matrix. If I do that: \documentclass{article} \usepackage{amsmath} \usepackage[usenames,dvipsnames]{xcolor} \newcommand\x{\times} % requires version 0.3 of the package ...
4
votes
1answer
66 views

Problems with pdfcomments and Unicode characters in XeLaTeX

I'm trying to use the pdfcomment package in XeLaTeX. I can't seem to be able to use Unicode characters such as Czech ň or ě properly in \pdfmarkupcomment. Usually any such trailing characters of the ...
2
votes
1answer
61 views

Multiple underlines with multiple colors

I would like to highlight the text that corresponds to many persons. I think underline is a good highlighting method. But I can put only one color for the underline. \usepackage{soul,xcolor} ...
2
votes
1answer
103 views

Lyx code tag with highlighting for C

I just installed Lyx and when I try to insert the program I observe that there is no syntax highlighting. What is the best way to allow for syntax highlighting in LYX?
0
votes
1answer
53 views

Editor with mode-sensitive syntax highlightning

Is there a text editor with support for the following (somewhat special) syntax highlightning. I want to be able to set a different background color for math mode and for normal mode. (I realize this ...
0
votes
0answers
202 views

Word/rtf to Latex conversion with highlighting?

Similar questions have been asked before, such as Word 2003 to LaTeX converter and How to write in .doc/.odf/.rtf and convert to .tex?. I have a minor specification on them: I would like the ...
6
votes
1answer
106 views

Highlight code with squared brackets

I want to show some .ini file in my work. The ini file works with squared brackets. I try to use \lstdefinelanguage but I can't handle it. That is what I try before and in my understanding it should ...
2
votes
1answer
98 views

Typeset colored terminal output using minted

I need to reproduce the output of a command in a LaTeX document. The command uses ANSI escape codes to produce colored output. I'd like to use minted, but using \inputminted{shell}{coloredoutput} ...
1
vote
0answers
60 views

Highlight indentation level in code listings

I try to highlight the indentation level of some code listings to explain indentation behaviour of my language. My language is whitespace sensitive. Indentation indicates block structure similar to ...
4
votes
1answer
115 views

LaTeX to HTML using htlatex - Background problem

I've been trying to highlight Python code and convert it to HTML. For highlighting I used the minted package since it provided a few styles that I was looking for and I used htlatex for HTML ...
5
votes
2answers
163 views

Adding Keywords to Existing Language for Listings Package

I would like to add more keywords to an existing language definition so that when I use \begin{lstlisting} ... \end{lstlisting}, the new keywords are highlighted along with the predefined ones. This ...
4
votes
1answer
64 views

Why highlighting math with soul doesn't combine with l2tabu option for the nag package?

I have found that highlighting mathematical formulas with soul package does not work if the nag package is used with l2tabu option. A minimal (not) working example is: \documentclass{book} ...
4
votes
2answers
133 views

Highlight / emphasize a string in tcblisting

How can I emphasize a string in a tcblisting like it is possible with the "moredelim" option in a lstlisting environment? The goal ist to be able to situational epmhasize arbitrary strings in a ...
4
votes
1answer
83 views

LESS and SASS source code formatting

I need to add piece of source code in LESS and SASS. Piece of code is divided into two columns. First column is source code in Less and second column in Sass, something like on this page, but without ...
0
votes
0answers
56 views

TeXShop is scrolling upwards while pressing cmd

When I press cmd in TeXShop 3.48.1, it scrolls upwards and highlights some text. Is there a way to solve this problem. I've just updated to MacTeX 2014 which did not solve the problem.
1
vote
0answers
119 views

TeXShop inverse search highlight color

[EDIT 18 Jan 2015: This has now been fixed in 3.49! Thanks to Richard Koch and company. Copied from http://pages.uoregon.edu/koch/texshop/version.html: Three hidden preferences were added, allowing ...
1
vote
1answer
120 views

How do I highlight a block of source code in LaTeX?

I have many blocks of source code in my document (each of them is at least 40 lines). I would like to format parts of these code blocks, preferably with some annotations on the right. I was thinking ...
3
votes
1answer
100 views

Chess Notation with skak: How to highlight squares?

i'm using the skak-package for some chess notation in a presentation. My only issue: How can i highlight various squares on the chessboard? Basic: \documentclass[12pt]{beamer} \usepackage{skak} ...
0
votes
1answer
107 views

highlighting RTL text - ulem with bidi and color

following this: http://tex.stackexchange.com/a/48549/22969, I tried this code: \documentclass{article} \usepackage{ulem} \usepackage{xcolor} \usepackage{polyglossia} \setdefaultlanguage{hebrew} ...
2
votes
1answer
462 views

Highlight Row in LaTex [duplicate]

I would like to highlight first row in a table, starts with Date... Here is a screenshot of the table in question:
1
vote
2answers
185 views

listings - highlighting additional keywords inside own delimiters (like Doxygen annotations)

According to listings - use different style for normal comments /* and doxygen comments /** I used listings package to set style for /** Doxygen comments */ as user defined delimiter moredelim = ...
2
votes
1answer
108 views

listings - use different style for normal comments /* and doxygen comments /**

listings package allows setting basicstyle, keywordstyle, identifierstyle, commentstyle, stringstyle. Is it possible to set different style for comments that start from /** not just /*? To make my ...
4
votes
0answers
83 views

Text highlighting that works with CMYK xcolor mode?

I looked at Cool Text Highlighting in LaTeX, and as my MWE (below) demonstrates: ... the first part, highlighted with soul's \hl, fails when [cmyk]{xcolor} is used. The accepted answer in the link ...
5
votes
1answer
93 views

Combine todonotes with mdframed to highlight paragraphs and write notes

I am trying to combine todonotes with mdframed to create a unifying command that allows to write todos and and highlight paragraphs at the same time. The syntax is ...
4
votes
1answer
205 views

Using BW style for minted code highlighting not pure BW

I'm trying to use the minted package with bw style for JavaScript code highlighting. Under the document I added \usemintedstyle{bw} and use highlighting like this: ...
6
votes
1answer
134 views

highlighting words which cannot be hyphenated

is there any package which can automatically highlight unhyphenable words in output PDF? I.e. words which are not in the list of words for hyphenation. For example: I'm using polyglossia package. ...
4
votes
1answer
284 views

Listings with keywords that contain both letters and numbers

I have a listing which needs to highlight keywords with both letters and numbers. Following the advice in this question I've used the otherkeywords to define the keywords which contain numbers. This ...
9
votes
2answers
6k views

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 ...
3
votes
1answer
60 views

Why don't those non-alphanumeric chars (*/_) get colored in blue, here?

Consider the following example: \documentclass{article} \usepackage{listings} \usepackage{xcolor} \lstset{language=R, morecomment=[l]{>}, commentstyle=\color{blue}, alsoletter={*} ...
4
votes
1answer
358 views

How can I highlight JSON string values but not attributes?

example { "name" : "alan", "alias" : "nala" } If I use morecomment=[s][\color{red}]{"}{"}, How can I highlight JSON string values (on the right side) but not the attributes (left side)?
5
votes
1answer
224 views

Correctly highlighting custom html tags in listings

Problem statement I have several code listings containing HTML markup in my latex files. These listings contain multiple custom html tags (created in combination with corresponding AngularJS ...
0
votes
0answers
137 views

get spyder-like color highlighting in pythontex

In my work with Python 3.4, I use spyder (anaconda3 2.0.1) and I like the highlighting of the Spyder editor (version 2.3). Is it possible to have the same highlighting scheme in latex documents ...
0
votes
1answer
185 views

Highlighting labels of undefined citations? [duplicate]

I am wanting 'cite' entries that don't have a corresponding 'bibitem' entry to show up in red, along with the name of the missing reference label. I had found a forum entry that suggested a solution, ...
4
votes
0answers
145 views

(Clickable) cross-reference in lstlisting

To generate documentation for an 'application programming interface', I would like to have a syntax highlighted area (with the class declaration), which has clickable links to the documentation (which ...