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

9
votes
2answers
410 views

Boxed entries in matrices

I would like to create a formula or figure like this: I tried it simply with the pmatrix environment and the \boxed command, but the spacing looked horrible. I think it might be done with TikZ, but ...
2
votes
1answer
566 views

Syntax highlighting for different programming languages [duplicate]

In my paper I want to include some source codes with colored sytax. For syntax highlighting I use the listings package: \lstset{frame=tb, language={[Visual]Basic}, aboveskip=3mm, belowskip=3mm, ...
1
vote
1answer
212 views

Highlighting a Chunk of Code within a lstlisting by specifying the line number

This question in somehow related to http://stackoverflow.com/questions/1304315/highlighting-a-chunk-of-code-within-a-lstlisting but not exactly the same. I want to make some slides with animation ...
2
votes
0answers
685 views

Is it possible to reorganize coloring/highlighting priority in Texmaker? [closed]

I want to be able to see latex commands in Texmaker while in mathmode, but the settings file does not seem to account for priority via line rearrangement, so I was wondering if there was a way to make ...
1
vote
1answer
205 views

Syntax Highlight in Winedt

I am using Winedt 7.1 and learning TikZ and I am thinking about to add the commands to the keyword.ini, in the help they mentioned, adding to many keywords may affect the performance. Is there a ...
4
votes
1answer
199 views

Disable underlining in display math and resume afterwards

In my documents I have conditional text, which is underlined (in non-display math mode) to make it more obvious to the reader as to exactly which portions of text is conditional text. In display math ...
4
votes
1answer
181 views

Highlight elements in the matrix (continued)

Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to select one single entry in the matrix? Where does one need to place the left and the right marks?
9
votes
1answer
444 views

Making Source Code Copyable with listings [duplicate]

I'm using listings to display some matlab code in my latex document but i'd like to have syntax highlighting. I've tried two ways of getting syntax highlighting and neither make the code copyable. The ...
8
votes
2answers
313 views

How to draw container box in TikZ? How to get it with rounded corner?

I want to draw something like this: This is what I am able to draw: This is my TikZ code: \documentclass{article} \usepackage{verbatim} \usepackage[active,tightpage,floats]{preview} ...
12
votes
1answer
326 views

Highlighting chunks of text spiral

I use the code provided in this question to draw a text spiral and now I want to highlight each chunk separated with a comma in a different color. Is there a way to achieve that? ...
2
votes
0answers
102 views

Highlight R chunks in a Knitr document when working in Kile

When working on a knitr document in kile I can get highlights for the LaTeX parts of the document by adding the *.Rnw file extension in the Modes & Filetypes tab under Open/save configuration ...
4
votes
1answer
282 views

wrapping inline long lines and adding background color

Objective I'm trying to achieve the following output. Here's the code I used to produce it. I had to hack it \begin{document} \begin{description} \item In ...
5
votes
2answers
4k views

How to adjust the beamer block width to the size of its content?

I would like to define a nice beamer block environment with the following properties a) it is always centered on the slide (horizontally) b) it is only slightly longer than its content The aim is to ...
1
vote
0answers
75 views

Highlighting modifications in a .tex file using Kile editor [duplicate]

I am looking for any option of automatically highlighting the modified or added text (in pdf version after compilation) in my current .tex file using Kile editor. I know that there is a similar ...
0
votes
1answer
193 views

List a CMake file [closed]

Does anyone have/know of a style file for the listings package which would enable the correct syntax highlighting of cmake files in LaTeX?
2
votes
1answer
949 views

Issue with soul and nested macros

I'm using package soul to highlight text, for example with \hl{some text}. It works nicely in general, but when the text contains other macros, soul simply skips it. For example: \usepackage{soul} ...
1
vote
0answers
83 views

How should I add visual indications of excerpted sections? [duplicate]

Possible Duplicate: Putting a bar in the margin How to make continuous (but breakable) vertical rule along left side of paragraph? I'm planning on including large excerpts of publications ...
10
votes
1answer
299 views

Glitch in 'Cool text highlighting'

This answer provides a fantastic "ragged text highlight". Unfortunately I'm getting a weird glitch with it: I have literally taken the source code from the link and replaced the material between ...
6
votes
3answers
419 views

Putting a coloured background behind text without adding whitespace

Consider this: I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
18
votes
3answers
577 views

Visually highlighting symbolic material

I have a diagram in which I need to indicate the difference between symbolic mathematics and English words (potentially to someone who doesn't know about it): Colour works beautifully for making ...
9
votes
1answer
1k views

A few words in a coloured/grey background box

How can I write a few words with a grey highlighting box in the background, as shown in the picture below ("TEXT 4")?
16
votes
3answers
2k views

Color box with rounded corners around a fragment of a formula

Is there any way in TeX to highlight some part of a formula with a box having colored background and rounded corners? At present, I need to export such formulas into an image, add those highlight ...
1
vote
0answers
56 views

Drawing a box around certain parts of a matrix [duplicate]

Possible Duplicate: Highlight elements in the matrix i have a matrix: \begin{equation} \begin{bmatrix} 1 & 5 & 4 & 2 & 1 \\ 1 & 5 & 4 & 2 & 1 \\ ...
11
votes
1answer
353 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 ...
5
votes
1answer
385 views

TikZ callout pointing to nested nodes

In the following MWE I want to create a TikZ callout pointing to a node within a node. The outer node is for the highlighting environment \tikzMe the inner node is for the \tikzmark. Somehow I do not ...
5
votes
1answer
220 views

Strange movement of objects when highlighted item in beamer is uncovered

Can anyone explain to me why there is this strange "shift" of objects when passing from the first to the second slide in the below MWE? \documentclass{beamer} \usepackage{beamerthemeshadow} ...
2
votes
2answers
286 views

a table, fully in highlight background

how can i have a table in highlight background like the following? (preferably without using Tikz package)
8
votes
1answer
358 views

Highlighting double backslash using listings with texcsstyle

I've got a question (it's in the title) about listings that I do not believe have been answered anywhere (either that or my Google-fu isn't that sufficient). Before I knew of texcsstyle's star option, ...
3
votes
1answer
966 views

Changing the color of user defined commands in TeXmaker

I have some own commands (as \note) that I usually define in the beginning of each document, which I would like TeXmaker to highlight in the same way as similar commands such as sections and math are ...
17
votes
2answers
1k 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 ...
4
votes
2answers
316 views

Warnings and errors highlighting when compiling in Bash environment

I'm processing a large document, using Latexmk in a Bash environment. It would be very helpful if error and warning messages were somehow highlighted or coloured, in order to facilitate spotting them. ...
2
votes
2answers
621 views

lstinputlistings syntax highlighting

I am using package listings to import my Python source code into my LaTeX document. I use the command \lstinputlistings. I have a Python source like class MyClass(Yourclass): def __init__(self, ...
1
vote
0answers
103 views

Strange highlighting in LaTeX-Suite [closed]

I use Vim 7.3 and LaTeX-Suite 1.8.23. But every time when I use the function in LaTeX-Suite , such as $e^^ and amsmath<F5>, the whole source code will be highlighted. How to fix it up?
11
votes
2answers
664 views

Array cell highlighting tikz

I'm beginning to write up a PhD thesis and am pretty new to LaTeX. I'm trying to explain a numerical method I'm using and in doing this I wish to highlight sections of arrays to aid explanation. The ...
4
votes
1answer
542 views

LaTeX: Syntax highlighting for Maple, Mathematica, Sage

I'm typing up a short comparison of Maple, Mathematica, and Sage in LaTeX. My problem is this: I'd like to include highlighted source code in one column (left) and output in another (right). I ...
6
votes
2answers
182 views

Improving the POV definition in the listings package

I'm attempting to create a language definition in the listings package that mimics exactly the syntax highlighting in POV-Ray 3.6 for Windows (http://www.povray.org/download/). Here is a screenshot ...
1
vote
1answer
178 views

How can I highlight Java bytecode?

I usually use minted to display highlighted source code. But it seems as if minted would not support Java bytecode (see list of supported languages). How can I insert highlighted java bytecode? (Is ...
3
votes
0answers
54 views

Highlighting keywords with spaces with the listings package [duplicate]

Possible Duplicate: How to emphasize within a listing two successive identifiers separated by a space? I am trying to highlight the following keywords with the listings package: over ...
2
votes
2answers
232 views

How can I highlight text before a character with listing?

All is in the title. I would like to add a color to the text before a character with listing package. For example, I would like to add a color to text between the beginning of a line and : or =, in a ...
2
votes
0answers
163 views

Highlight keywords in math mode? [duplicate]

I am using Emacs+Auctex. I need additional highlighting in math mode. How can I force Emacs to highlight braces and some commands (like \quad) inside math mode with different color?
3
votes
1answer
240 views

Highlighting of latex code in emacs

I am absolutely new to Emacs and lisp, but I am considering a possibility to start using it for LaTeX code editing. What I have learned about Emacs (and it fascinated me) is that it has almost ...
5
votes
0answers
452 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 ...
10
votes
1answer
565 views

Highlighting part of an image

I want to highlight part of an image in beamer by drawing a box around it and setting the rest of the image to a dim setting. I do not know how to decrease the brightness of the rest of the picture. ...
3
votes
1answer
2k views

\lstdefinestyle syntax highlighting

I´m new to latex and got the following problem. I defined a listing style for XML Syntax highlighting like this: How can I get also the equals symbol in the attribute color (orange)? I want to do ...
4
votes
2answers
559 views

How to highlight math environments with colored background?

How to highlight maths environments (in-line mode excluded) with a coloured rectangular background e.g. grey? A \textwidth rectangular behind the \begin{equation} environment.
1
vote
1answer
816 views

\lstinputlisting for a normal text file?

sometimes im using \lstinputlisting to show some code examples in my pdf. Now I just would like to insert a normal textfile. Everything is fine, I like this box around my text and the numbers every ...
19
votes
2answers
3k views

\boxed{}, TikZ and colored equation background

I wonder if someone could provide me with a simple MWE for using TikZ together with \boxed to produce a colored equation background. If possible with rounded corners. I am using \boxed{} inside the ...
23
votes
3answers
13k views

What can I use to typeset MATLAB code in my document?

Does anybody have a quick and easy way to typeset some relatively long MATLAB code in the appendix? I looked up a few methods, and the mcode package emerged as a possibility, but it seems to be ...
7
votes
2answers
223 views

Is there any solution for highlighting text in CJK?

Is there any solution for highlighting texts or sentences in Chinese, Japanese, and Korean? I know none, at the moment. But this will be changed, if someone would like to help me with CJK in LaTeX. ...
4
votes
1answer
189 views

Highlight a prompt with the listings package

I use the listings package to typeset a series of commands in the language Octave (a free clone of Matlab) in my lecture notes. Most of the command lines look like this: octave:1> A=eye(4) A = ...