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

8
votes
1answer
128 views

How to get more than 3 levels of nesting in mdframed environments?

Before I get to many of "don't do this as it does not look good", I have two modes of my documents: Final mode: where there is ONLY one level of nested mdframed Review mode: where there are numerous ...
3
votes
1answer
51 views

Beamer Frame is displayed wrong

i made a Code for alerting through a frame. It adds an empty (just looks empty very light text) frame in front of the greyed out frame (Picture below). It only appears to add a frame, if i use ...
3
votes
1answer
720 views

Texworks syntax highlighting not working on windows 8 and 8.1

any latex code I want to view in TexWorks 0.4.5 r.1280 (Miktex 2.9) won't show the syntax highlighting. It compiles just fine but everything line is written in black. On very long documents the ...
5
votes
0answers
490 views

Advanced use of listings package [closed]

I am a PhD student in A.I. that is using the listings package to render its code snippets. I am trying to define a language environment for Drools - a quite famous Production Rules System - that is ...
28
votes
3answers
9k views

How to highlight an entire paragraph?

I'd like to highlight paragraphs such that the highlight color appears as one whole rectangle underlying the entire paragraph. I have looked around but nothing gives me the desired effect so far. For ...
10
votes
1answer
728 views

Why is it that coloring in soul in beamer is not visible

\documentclass{beamer} \usepackage{soul,color} \begin{document} \begin{frame} \hl{Hello World} \end{frame} \end{document} I process this with pdflatex and I do not see the expected highlight. ...
9
votes
2answers
230 views

Beamer: highlighting text with colored background through which surrounding text can be seen

On some slides I'd like to highlight some text by using a colored background, like so: I've exaggerated the width of the border around the text in this example to indicate the effect I want. I ...
3
votes
1answer
89 views

Highlighting in tabular environment

I am trying highlight a row of matrices in a tabular environment. However, the left brackets of the matrices are gone. And I don't know how to fix this. In addition, how can I highlight 2 elements ...
34
votes
1answer
1k views

Hobby path realization in convex hull approach

Motivation In the answer Highlight a group of nodes in a tikz tree, Jake suggested combining the convex hull approach from padded boundary of convex hull with the hobby path and I was really ...
18
votes
2answers
2k views

Highlighting in Beamer using TikZ nodes

This question led to a new package: aobs-tikz Is it possible to alter the code in the following MWE to the effect that “ABCD” is visible on both slides but only on the second it has the red ...
0
votes
0answers
83 views

Indented Code Blocks Have no Background Color When Generating PDF

As the title says, when I run: pandoc -o book.pdf book.md The code blocks show up in monotype font but with no background color. I've also tried all styles using --highlight-style with no success. ...
4
votes
1answer
215 views

Change selection color in TeXShop

I'm working with TeXShop (Mac OS) and I want to change the color of text selection. If I want to search for special words with CMD+F, the program highlights the text in a light gray color... Every ...
4
votes
1answer
208 views

tikz node with listing environment

I'm trying to create a c++ class hierarchy. Each node in the hierarchy is a class description with code listing in it and multiple nodes are connected by lines and arrows depicting the hierarchy. I'm ...
7
votes
2answers
8k views

How to highlight table rows by colors in Beamer

I would like to highlight rows in tables, in rowwise, that is I would like to highlight row 1 in red, then make row 1 in black but row 2 in red, etc. How can I manage to do so in Beamer?
11
votes
2answers
991 views

Issues and potentiality of the tikzmark macro: dynamic box adaptation

Since I discovered the tikzmark macro I've been enthusiastic about it. I think that it is possible to distinguish at least two versions of the command: a basic one (two examples: ...
11
votes
1answer
204 views

How can I typeset LaTeX source code with this very specific syntax highlighting? [closed]

I want to put some LaTeX source code in my PDF output with the style like this: Color in text mode is white, in math mode is yellow and in comments is grey. For control sequences, I divide it into ...
3
votes
1answer
82 views

Making comments stand out when using Sweave and R

Is there any way to bold or highlight all comments when using Sweave? Maybe a command to make all lines starting with # be bolded? <<>>= # I want this to be bold automatically @
5
votes
1answer
189 views

Code highlighting for imported source files

I have several source code files that I would like to include in my document. I know that I can use verbatiminput to get the lines from the file, and use lstlisting to highlight the code, but I ...
2
votes
1answer
113 views

Misplaced \noalign error in table, but only when using include{}

I am using xtable() in R to create a LaTeX table that I import into a .rnw file via \input{}. As documented here, I am attempting to highlight rows conditional upon a certain value of one variable. ...
11
votes
2answers
471 views

Table using booktabs and cellcolor looks ugly

When using \cellcolor in a booktabs table, I find that the output is not really appealing: I don't really care that the colored cell does not touch the lines above and below (cf. Coloring columns ...
0
votes
0answers
29 views

Allow line breaks in highlighted text [duplicate]

When I highlight a bit of text using \colorbox, it prevents line breaking. How does one give tex permission to break lines? Example: \documentclass{article} \usepackage{color} \begin{document} ...
4
votes
1answer
347 views

Underline text with background (soul and ulem nesting)

I'm using soul's \hl to set background for the paragraph parts and ulem's \uline to underline text. The problem is what I cant underline text for text with background. Initial doc: ...
2
votes
1answer
161 views

TeXstudio: How to highlight text in \emph or \textit command, for example?

Is there a way to configure TeXstudio so that emphasized text will display in the editor in italics, for example: \emph{some text} The custom highlighting seems to apply only to environments or ...
2
votes
1answer
111 views

Highlight smallest number in table

I would like to highlight the smallest number in each row. How would I go about doing this. In the following for example, would like to highlight 3 and 3. \documentclass{article} ...
2
votes
1answer
41 views

Indicate an “added entry to the index” in the main text

I'm writing a text with many index entries: Variable $\Kappa$\index{Kappa@$\Kappa$} is used to ... I'd like to see a hint in the main text, that an entry was added to the index. I tried using ...
4
votes
1answer
3k views

Highlight, textcolor, and boldface simultaneously

I would like some portion of the text to have all three features but it's not compiling. It works two at a time but not with all three. \hl{\textbf{foo}} \hl{\textcolor{red}{foo}} ...
3
votes
2answers
406 views

How to emphasize the character '&' within a listing?

How do I emphasize with the listings package the column separators in a tabular environment? This is my MWE: \documentclass{article} \usepackage{lmodern} \usepackage{graphicx} ...
4
votes
1answer
170 views

Color lines in source code that is embedded in LaTeX

I am looking for a way to mark some lines in a source code sample that will be integrated into my LaTeX code. I already found solutions to embed source code and have syntax highlighting like this ...
3
votes
0answers
148 views

Is TeX the only document creator with syntax highlighting? [closed]

Is there any other document creator software other than TeX (word processor, DTP, webapp etc.) that can include syntax highlighted source code in a number of programming languages? For me it seems ...
8
votes
1answer
469 views

How to make \hl (highlighting) to automatically place incompatible commands in \mbox?

The soul package provides a useful command \hl for highlighting text. However, \cite, \ref, and some other commands (maybe equations too) must be placed within an \mbox in order for \hl to work ...
14
votes
2answers
5k views

How to highlight important parts (with a gray background)

In the below link http://www.math.uiowa.edu/~goodman/algebrabook.dir/bookmt.pdf the author highlights anything which is important using a greyish color background. For example, if you see ...
9
votes
2answers
3k views

XML highlighting - different style for attributes

I need to highlight syntax in my LaTeX presentation, so i've found this answer: XML syntax highlighting \lstdefinelanguage{XML} { morestring=[b]", morestring=[s]{>}{<}, ...
2
votes
0answers
122 views

Grey box around the text [duplicate]

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 ...
2
votes
1answer
111 views

Using latexdiff to highlight changes: alternatives for soul?

I am using latexdiff to create a pdf that highlights changes between two .tex along with hg diff latex, so as to use with Mercurial. However, the problem is that the the strikethrough formatting ...
7
votes
2answers
243 views

How to make a semi - shading stripe in resume with LaTeX

I want to make some semi-shading strips in resume to highlight each field, like this image: However, the template code which I use is as below: \newcommand{\resitem}[1]{\item #1 \vspace{-2pt}} % ...
2
votes
0answers
161 views

How to highlight words or sentences? [duplicate]

I would like to create something similar to . To begin with, I would like to create a rounded and background-colored highlight of a word (or a short series of words). What package should I use ? ...
3
votes
1answer
1k views

lstlisting: Syntax highlighting for C++ like in Editor?

i want to insert some C++ code into my thesis and i tried tons of options to make the code look like in my editor. Here is what i have so far: \usepackage{listings} \usepackage{color} ...
0
votes
0answers
76 views

\citep not working if natbib is in the master file

I am building a thesis with a master file and some included files. For example, let say master.tex contains \include{chap1}. The \citep command does highlight in master.tex but not in chap1.tex. I ...
0
votes
0answers
14 views

AUCTex problem with \citep [duplicate]

In my emacs, .tex file extension isn't enough to highlight \citep command. I found that \usepackage{natbib} needs to be in preamble to make it working. The problem is that when secondary files ...
8
votes
1answer
322 views

Why does Vim highlighting treat _a differently than _b in math mode?

I am not using vim-latex, just the regular vim syntax highlighting for latex. To make sure of this I tested this by running: vim -u NONE -N I notice that if I am in math mode "f_a" will display ...
6
votes
1answer
134 views

Defining font color inside highlight fails

Since I wanted a better readability of highlights of a would be black & white-printed document, I needed to change both the highlighting color (gray) AND the font color (white). Depending which ...
2
votes
1answer
1k views

Highlight some words of a beamer

If I want to highlight some words of following frame: \begin{frame} \frametitle{Paragraphs of Text} Sed iaculis dapibus gravida. Morbi sed tortor erat, nec interdum arcu. Sed id lorem lectus. ...
8
votes
2answers
265 views

How to highlight tree levels

How can i highlight tree levels to be some thing like that... I've drawn my tree with this code \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
0
votes
0answers
21 views

Highlighting text with citations and references [duplicate]

I was using the package soul to highlight text. It is pretty good, except for the fact that I get errors when I try to highlight a block of text with references or a citation. For example: ...
41
votes
8answers
9k views

Highlight elements in the matrix

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square): $$ A = \begin{bmatrix} \fbox{0} & ...
3
votes
2answers
642 views

How Do I Highlight Table Rows in beamer, Piecewise?

I would like to know how to highlight rows within a table in beamer, piecewise, so that when I present the piece, I can originally have no rows highlighted, and then the first, and then both the first ...
2
votes
1answer
424 views

listings doesn't print my keywords bold in lstlisting

I've got the following problem: I want to print a listing with the listings package and lstlisting: \documentclass{scrreprt} \usepackage{listings} \begin{document} ...
0
votes
0answers
112 views

Highlight the lowest and plus minus using R LaTeX

I am using a similar dataset to the following: a= c("Fruits", "Adam","errorA", "steve", "errorS", "apples", 17.1,2.22, 3.2,1.1, "oranges", 3.1,2.55, 18.1,3.2 ) ...
11
votes
1answer
396 views

How to highlight arabic texts with allowing line breaks?

I would like to highlight some texts. For Latin texts the \hl command of the soul package works well, but not for Arabic texts. (\hl{SOME ARABIC TEXT} has only a small line as output in the pdf ...
2
votes
1answer
91 views

Correctly highlight long ToC entries using TikZ without pagenumbers

Using this answer, I have highlighting for chapters in my Table of Contents. For long chapter names, however, the box is wonky, because P1.north west and P1.north east do not span the entire line: ...