Linked Questions

40
votes
4answers
15k views

How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)?

There is a part of my paper where I use the distributive property and it can be not clear to the reader to see the operation (I'm using in proposional logic for a proof). The logic equation (part of) ...
29
votes
7answers
21k views

Highlight text in code listing while also keeping syntax highlighting

I’m using the listings package for code listings. Now I try to highlight some part of the code using \hl from the soul package. Here’s an example of a resulting query where the injected part of a SQL ...
23
votes
2answers
3k views

tikzmark to have different behaviour if first run (and mark locations not yet available)

The macro \tikzmark has been incredibly useful to me, but do not like the default behavior upon first run. So, I would like to be able to determine if this is a first run (where there coordinates of ...
10
votes
6answers
3k views

A \boxed alternative with nicer spacing?

I like using \boxed to emphasize my answers in homework problem sets. However, whenever I use superscripts/exponents inside the box, the box becomes taller than it seems it should. This causes two ...
8
votes
6answers
2k views

How to draw tikz node behind text

I am trying to annotate an equation using tikz. I'd like to highlight a part of that equation using a tikz node, but the left part of the equation gets covered: \documentclass[varwidth, border={0pt ...
19
votes
1answer
4k views

Background coloring with overlay specification in algorithm2e + beamer package

I want to highlight some portion of my pseudo codes in my slides during the course of presentation. It's easy in powerpoint and I've made a sample slide: However, I couldn't manage to get a similar ...
15
votes
2answers
2k 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 ...
13
votes
2answers
10k views

Highlight table cells using thick, colored border

I'd like to highlight certain cells of my table. In particular, I'd like to set the border of these sells colored and thick. These cells should also have a background color. Here's a minimal example ...
7
votes
4answers
2k views

A \boxed alternative with minimal spacing?

The following code comes from this post. The problem is that I would like a way to automate the size of the box so as to be very small with a few of spacing, but the following solution doesn't work ...
10
votes
2answers
3k views

hf-tikz doesn't box around equation

In TikZ based \boxed construct is causing pdflatex to hang it was suggested to use hf-tikz instead of manually using tikz. The documentation indicates that this package doesn't work properly for tall ...
9
votes
1answer
5k views

Beamer - Source code highlighting/annotation tips

How can I highlight and annotate source code in a beamer presentation like this one? For example, consider the following image from that .pdf file: It looks to me that above presentation is made ...
12
votes
1answer
1k views

Highlight a column in equation or math environment

While explaining the idea product of two negative numbers I wanted to highlight a vertical part of the display to emphasize on the factors that are being multiplied by: \documentclass[letterpaper]{...
7
votes
1answer
1k views

adding equations gradually to beamer highlight (hf-tikz)

I am trying to highlight equations of a linear program starting from buttom and add constraints to the highlight. Here is my MWE: \documentclass{beamer} \usepackage{lmodern,amsmath,amssymb} \...
4
votes
2answers
2k views

multicols within colorbox

i'm trying to get a gray background for an entire multicols environment and get errors with this "minimal" working example: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \...
8
votes
1answer
712 views

Alignments by means of the tikzmark macro

This is a follow up of my previous question Issues and potentiality of the tikzmark macro: dynamic box adaptation. I thought should have been better to ask two questions although they are related to ...