Questions tagged [tikzmark]

A {tikz-pgf} library for remembering positions on a page for later use.

Filter by
Sorted by
Tagged with
3
votes
1answer
53 views

Vertical spacing in diagram

Consider the following MWE: \documentclass[letterpaper]{article} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \usepackage{lipsum} \usetikzlibrary{tikzmark,calc} \usepackage{amsmath} \begin{...
2
votes
1answer
56 views

Drawing an arrow from a cell in a table contained in a node to an anchor of another node in a tikz picture

I have a tikz picture where I would like draw an arrow from a cell in a table contained in a node to an anchor of another node: (the arrow is added using Microsoft Paint) I attempted to draw the ...
1
vote
1answer
32 views

How can I make a `tikzmark` inside an environment work over a pagebreak?

This is an extension of my previous question How can I highlight part of an equation with TikZ but without extra space around the highlighted part?. The new question is, how do I make the hilite ...
2
votes
2answers
108 views

Tikz: Is it possible to align any two nodes by aligning their subnodes?

My question is: Is it possible to align any two nodes by aligning their subnodes? For TikZ nodes, is it possible to add a new anchor to an existed nodes? (for example: add node-b.north as an new ...
4
votes
1answer
95 views

Why does [rounded rectangle] cause random “divide by zero” PGF Math Error?

I was using tikzmark to insert tikz drawings inside an equation when I encountered a weird bug, which I reduced to the following minimal (non-)working example: The following file bug.tex, \...
1
vote
2answers
55 views

Pointing an arrow to an entry in a table (beamer)

I am trying to annotate a single entry in a table on a slide. My problem is that the word "tag" appears at a correct y location, but its x location is dead center of the slide. I tried xshift = ??? ...
2
votes
1answer
55 views

remember picture not working with forest and tikzmark's subnode

According to the tikzmark documentation, when using \subnode, it should be possible to use ordinary node syntax (within a tikzpicture) to access this information. Thus after \node {a \subnode{a}{...
2
votes
1answer
206 views

Returning TikZ arrow across multiple pages

I want to have arrows between my marginnotes and I achieved this with \tikzmarknode. I've also fixed the issue with multiple pages (see this question). However, when I put in a returning arrow, to ...
1
vote
1answer
144 views

Draw TikZ arrow across multiple pages

I want to have arrows between my marginnotes and I achieved this with \tikzmarknode (figure 1). But it does not work if one mark is on another page (figure 2). What I would like to have is a ...
2
votes
2answers
129 views

Tikzmark Annotations Overlapping with Footer

Currently, my tikzmark annotations overlap with my footer defined by the fancyhdr package. Currently I have my equation with the annotation defined like \begin{equation} \tikzmarknode{A}{2} \end{...
3
votes
1answer
139 views

How to use tikzmark to label steps in math mode with fractions?

I have an equality between to fractions in math mode and want to be able to show how we got from one to another. I want to use arrows and label them. Ideally, it should look like this: I have the ...
4
votes
1answer
204 views

Is it possible to annotate equations (i.e. arrow signs/curly braces) to define each variable?

I have quite a simple question. I was wondering if it was possible to do something like this in LaTeX: But formatted a little more nicely. It doesn't need to be arrows necessarily. Just some form of ...
2
votes
1answer
79 views

tikzmark: How to add a '['-bracket / square brace on content?

€dit - New Text: I have some content (pgfplotstable and some text) and would like to add a square brace on the left side, like this is a "bmatrix". What is the best way to do that? What have I to ...
9
votes
4answers
312 views

How can I prevent this tikzpicture from running into my text?

I'm using tikzmark to define some arrows to point to variables in an equation. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{...
2
votes
1answer
71 views

Cross Multiplication

I am trying to achieve something similar to this: My first idea was to use nodes inside tikzpicture, so I came up with this: First Example \documentclass[11pt]{article} \usepackage{tikz} \...
1
vote
1answer
80 views

Systeme and Tikzmark

The following program outputs the image below. My question: Can I improve this program to achieve a more precise image? The node were not calculated but were achieved by a trial-and-error. Any idea ...
2
votes
1answer
105 views

Horizontal space after tikzpicture[overlay, remember picture]

I'm writing a document using a template that is not mine, in which, after an equation, some arrows are added using TikZ, by defining tikzmarks and using the overlay, remember picture options to the ...
4
votes
1answer
95 views

Why xelatex renders arrows in tikz figures differently than lualatex?

My document can be produced with the following code: \documentclass{beamer} % only frames ...
2
votes
2answers
328 views

tikzmarknode not working in Overleaf

I have started going through all of the bookmarked answers on StackExchange that I want to use for examples. I have had success with most of the answers being able to compile within Overleaf. However, ...
1
vote
1answer
117 views

Anchor alignment in tikzmarknode

The following code results in a strange behavior: \begin{align*} \sum\limits_{i=1}^{3}\sum\limits_{j=1}^{4} a_{ij}&= \tikzmarknode{red1}{\highlight[red!20]{\sum\limits_{j=1}^{3}a_{1j}}} + \...
3
votes
1answer
144 views

TikZ in floating algorithm2e

I had a question to strikeout a line in algorithm2e. I got an answer that uses tikz to strikeout the line. This works great. However, if I use a floating algorithm2e (i.e. removing the [H] in \begin{...
4
votes
1answer
161 views

“Dimension too large” error with too many tikzmarks

This is a follow up to the discussion here. Andrew provided a patch for the problem that when the page number go too large it created the problem (see his and Ulrike's answers in the linked question)....
4
votes
2answers
81 views

“Dimension too large” error with tikz graphic using tikzmark when document gets too many pages

I use this code (fixed by marmot :) ...), which worked perfectly until a point where my document got too many pages. At a given point I get a "Dimension too large" error. It uses code that tests if a ...
3
votes
1answer
79 views

Tikz picture with tikzmark across page boundary won't print if inside environment

Combining this solution to draw braces with tikzmarks, with this to make them go across page boundaries, presents me with an interesting problem: It won't print the vertical part on the first page if ...
4
votes
1answer
173 views

Test if tikzmark exists on same page

Apologies for flooding the site with tikzmark problems ... :) I know that with \iftikzmark I can test if a given tikzmark exists in general. Is there a way to test if a particular tikzmark exists on ...
7
votes
1answer
318 views

tikzmarknode and vphantom take up horizontal space

A tikzmarknode combined with a vphantom character takes up horizontal space. Minimal but nonetheless noticeable. \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document}...
2
votes
1answer
117 views

\tikzmarknode lines with hooks

I'm trying to get a line produced by tikzmarknodes to start and end with little hooks, i.e., horizontal thinner lines protruding from the ends, more or less to resemble a bracket. I couldn't figure ...
9
votes
3answers
534 views

how one can write a nice vector parser, something that does \pgfvecparse{\A=\B-\C; \D=\E x \F;}

I am often use coordinates of points to draw figure in geometry. I know that, we can add, minus coordinates of points, example \begin{tikzpicture} \tkzDefPoints{0/0/C',3/0/D',1/1/B'} \coordinate (A') ...
0
votes
2answers
349 views

tikzmark for math inside tikz node label

I am looking for a way to mark particular positions within the math-text of node. My MNWE is: \documentclass[tikz]{standalone} \usepackage{mathtools,xparse,bm} \usetikzlibrary{tikzmark} \...
13
votes
3answers
524 views

How can I detect which tikzmark version I'm using?

With \listfiles we can easily list the current version of all the packages loaded. But it doesn't tell anything about the version of the TikZlibrary tikzmark. How can I detect it? The problem is, ...
7
votes
1answer
345 views

Using Tikz, Tikzmark to show differentiation of ln f(x)

I am trying to replicate this diagram. My confusion is due to the reason that I am not starting in an tikzpicture enviroment but in an align* environment. Here is a skeleton of the diagram. I believe ...
4
votes
2answers
242 views

Is Using Tikzmarknode within Tikz Matrix possible?

I was not able to use tikzmarknodes within the matrix example below. I have included an image of the arrows I want to draw and the MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
8
votes
2answers
379 views

Two lstlistings side by side with refering arrow

SE I am trying to draw the image below in LaTeX using lstlisting, tikzpicture, minipage, and tabular The code that I got so far can be seen below \documentclass{article} \usepackage[utf8]{inputenc} ...
3
votes
1answer
77 views

Arithmetic on tikzmark points

Can I do arithmetic on tikzmark points? For example if I have \tikzmark{A} and \tikzmark{B} can I find their midpoint?
1
vote
1answer
429 views

Transparent marker without line inside

In the plot below, I need to have transparent markers without the line passing through them. For instance, the triangles are transparent but have a line inside, while the circles are white but not ...
3
votes
3answers
176 views

Labelings with Tikzmark

I need some help placing labels appropriately. \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \usepackage{colortbl} %%% ALLOWS COLORING OF CELL IN TABULAR ENVIRONMENT \...
1
vote
1answer
117 views

Aligning with Tikzmark

I am trying to get my arrows straight and wondering whether I am going about this properly? \documentclass{article} \usepackage{tikz,amsmath,mathtools} \usetikzlibrary{tikzmark} %%% Derivative ...
6
votes
1answer
76 views

Drawing Line Between Tikzmarknodes

I am trying to draw a line between the nodes in the output: \documentclass{article} \usepackage{tikz,amsmath} \usetikzlibrary{tikzmark} %%% Derivative Macro \newcommand{\der}[2]{\dfrac{\mathrm{d}#1}...
4
votes
3answers
229 views

Additional Symbols Tikzmark and Braces

I am wondering if it is possible to add the extra symbols in this example given the way I have written the code. I have provided a minimal example and another image with the additional symbols of + ...
3
votes
1answer
46 views

How to get page number of tikzmark markers?

Given the following example using the tikzmark library: \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \usepackage{atbegshi} \AtBeginShipout{\AtBeginShipoutUpperLeft{% \...
3
votes
0answers
93 views

Problem with Tikzmark and other Packages

I needed help from Marmot on the arrows of this program because my skills are weak, but I made a few attempts alone and got errors I knew were wrong. Removing the package flexisym did the job. Why? ...
5
votes
1answer
391 views

Using Tikzmark and Arrows

This is a basic question and I apologize if this program is using the latest version of the tikzmark library not available in CTAN. I posted as far as I got and also the image I am trying to ...
2
votes
1answer
87 views

Cancel a term using tikzmark package

Recently, @marmot in Need help to create a more flexible \cancel command that works inside an align environment suggested the use of the \tikzmarknode command of the last version (1.6) of the tikzmark ...
2
votes
2answers
226 views

How to install just the most recent tikzmark package?

How do I install just the most recent version of the tikzmark package? I tried to install texlive 2018, but it requires glibc 2.14, and my system (CentOS 6) only have glibc 2.12. I then installed the ...
5
votes
2answers
132 views

tikzmark subnode in math changes font size

I would like to annotate an equation inside a tikzpicture, and am trying to use subnode from the tikzmark library for this purpose. The problem is that wrapping math in subnode does not maintain the ...
5
votes
2answers
512 views

How to use tikzmark inside tikz-cd?

I want to use tikzmark in tikzcd. However, even the following sample returns errors \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} \usetikzlibrary{tikzmark} \begin{document} \...
4
votes
1answer
607 views

How do I use mark indices with position in tikz?

I am trying to decorate a curve with some arrowheads, there is a way which you could specify the percentage position with steps % !TEX TS-program = xelatex \documentclass[UTF8]{article} \usepackage{...
4
votes
1answer
253 views

Tikzmark; Tangent arrows

I am happy with this but I'd like to make the two drawn arrows tangent. Here is my minimal example: \documentclass{article} \usepackage{amsmath,tikz} \usetikzlibrary{tikzmark} \begin{document} \...
4
votes
1answer
81 views

Prevent \tikzmark command from introducing additional whitespace

I am using the answer to this question: Drawing tikz line in the margin for multiple pages to draw a colored line on the margin of my document. I would like to have a possibility to comment out the ...
2
votes
0answers
163 views

How to measure the cell width and height in tabular?

I need to draw some arrow marks in the border some cells in a tabular. That arrow should start from the bottom right corner of the cell and end at top right corner of the cell. I have drawn such ...