{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)

2
votes
1answer
32 views

Highlight asterisk in lstlisting

I would like to emphasise the asterisk used in \begin{equation*} in lstlisting. I have tried using emph, also including the alsoletter macro, but it doesn't work. Why not? \documentclass{article} ...
3
votes
0answers
47 views

How can I make listings look like minted?

Up until now I used the listings package for my code-listings. Today, I tried minted and I'm pleased with the default look. Since I'd have a lot to do to switch from listings to minted at this stage ...
0
votes
0answers
17 views

JavaScript ES6 Code highlighting

I'm using the latest minted to highlight my sourcecode. I've got a lot of code listings using ES5 and ES6 javascript features but minted is lacking a lot of them still. What can I do to get proper ...
3
votes
2answers
106 views

Emphasizing all occurrences of given word in document

Please forgive my naivety, but I have a fairly large TeX document and I was hoping that there was an easy way to do the following. I can create code blocks in the text using the following: ...
3
votes
1answer
63 views

How to remove highlighting color?

How would you remove highlighting color from LaTeX with one command? I have used the soul package with its command \hl.
4
votes
1answer
64 views

Streamline use of Highlight in text and equations

I have been highlighting certain parts of text in order to make it easier for me to search through a long document to find parts that need expanded on or some sort of work is left to do; however, I've ...
0
votes
0answers
26 views

LuaLaTeX, luacode and highlighting syntax [duplicate]

One thing prevent me to use luacode environment even for short code is that the lua code is not highlighted in a latex document. Does anyone knows how to have both syntax highlighted ? I use simple ...
5
votes
1answer
47 views

How to include Matlab code into LaTeX in colour? [duplicate]

I need Matlab code, e.g. the one here, in LaTeX and in colour (the comment is green, for/if/else/end is blue). % super cooles Programm i = 1 for i = 1:10 if i > 3 i=i+2 else ...
3
votes
1answer
40 views

How to make TeXstudio recognize \DeclarePairedDelimiter declaration

I'm using TeXstudio as editor because I think it provides the best features among other software I tried (namely Kile and TeXworks), especially about highlighting, autocompletion and spell checking. ...
6
votes
2answers
184 views

How can I highlight elements in a matrix?

I'm about to use this diagram to make computing 3x3 determinants clear and easy for my students. I tried to add this picture to my lecture but it's blurred due to the bad quality of the picture. So i ...
2
votes
1answer
28 views

Where is TeXworks' syntax-pattern.txt file (on windows 7)?

I was trying to change my TeXworks editor's background to black, some suggested it is possible to edit this file : ~/.TexWorks/configuration/syntax-pattern.txt but I could not locate this .txt ...
3
votes
2answers
34 views

How to customize a kbordermatrix

To the matrix given below, I would like to add the following two features: A downarrow centered below the text "Column j." Highlight the entry a_{ij}. How might I achieve this? ...
1
vote
1answer
71 views

Highlighting text with ulem package

Consider the following minimal example (taken from this answer): \documentclass{article} \usepackage{color} \usepackage{ulem} \newcommand\hl{\bgroup\markoverwith ...
1
vote
0answers
44 views

How can I highlight something inside a listing? [closed]

I need to call attention to parts of code that don't get highlighted as keywords, strings, etc. inside a listing. I've found a few relevant questions on TeX.SE I and tried to apply the solutions ...
1
vote
1answer
58 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
43 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
62 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
96 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 ...
3
votes
2answers
47 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 ...
17
votes
5answers
474 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
122 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
71 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
40 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
222 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
103 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
46 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
122 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
102 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
117 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
85 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
90 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
76 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
68 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
194 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
61 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
238 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
138 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
140 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
70 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
134 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
263 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
73 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
140 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
99 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
60 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
153 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
139 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
132 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
2answers
144 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
650 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: