Questions tagged [tikzmark]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
36 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
64 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
26 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
0answers
65 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
98 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
54 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
46 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
66 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
58 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
57 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
107 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
151 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
57 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
486 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
102 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
412 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
274 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
190 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
243 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
66 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
148 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
141 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
69 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
59 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
148 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
30 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
78 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
167 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
61 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
129 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 ...
4
votes
2answers
79 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
338 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
235 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
130 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
55 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
85 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 ...
3
votes
1answer
157 views

How to change the background color of a page?

I want to get the color as the following example, I was trying the package tikz and tikzmark. Thank you very much for your contributions
4
votes
2answers
165 views

tikzmark not working as expected

I'm trying to strike out a column and a row from a matrix, and I get it to work if I define the tikzmark myself (from I post I found on the internet). I understand, however, that tikzmark is now ...
2
votes
1answer
62 views

pgfplots: annotating some line segment outside the grid on the right or upper borders

I have the following plot for which I would rather prefer to display the marks of the 3 line segments outside the grid: . the 1 and 3 should be to the right of the right border, close to the ...
0
votes
1answer
220 views

Arrows between adjustbox minted blocks in two columns using tikzmarks?

I'd like to put two minted source code blocks in two beamer columns with arrows pointing between the two (tikzmark-based) and use adjustbox to scale the code blocks down to columnwidth This ...
2
votes
1answer
130 views

tikzmark — suffix use fails

I try to put tikzmarks in tabulars and to prevent to have tikzmarks with the smae name, I use a different prefix in each tabular to create the tikzmarks, but how use them after ? \documentclass[10pt]{...
1
vote
1answer
214 views

How to shift a tikzmark?

I'd like the tikzmark to be centered on the line of the tabular, the optional argument seems not working or I missuse it : \documentclass{article} \usepackage{tikz,array} \usetikzlibrary{tikzmark} \...
1
vote
1answer
38 views

Misplaced \tikzmark

In the next code, I hoped the tikzmark should be placed on the tabular black lines, but there is a drift. The main goal is to put a phantom tikz mark in each corner of each cell of a table. \...
1
vote
1answer
106 views

\tikzmark in \foreach loop problem

The use of \tikzmark in a \foreach loop leads to this error message : ! Undefined control sequence. \tikzmark ...reid \@undefined \let \tikzmark@next ...
2
votes
1answer
95 views

Underbraces using tikzmark

I'm trying to get some sort of nesting braces for some math notes that I'm typing, this is the code that I'm using: \documentclass[11pt, oneside, french]{article} \usepackage{tikz} \usetikzlibrary{...
2
votes
1answer
157 views

Align tikz arrow heads with cells of a table - tikzmark overrides

I'm wondering how to move the arrow heads so that they don't intersect the text. Would be ideal to be able to align the lower arrow head with the top of the second line of numbers instead that with ...
2
votes
2answers
244 views

Putting a vertical line through text in a table

I am trying to strike through both vertically and horizontally in a table when working horizontally most methods work as row heights are all the same, however, a vertical strikethrough always ends up ...
2
votes
1answer
319 views

PGFPlots: Plot color from one column and plot shape from another?

I'm trying to represent 4 dimensions of data using a scatter plot. Question: Is it possible to plot the color from one column, and the shape from another? What I'm able to do For example, I can use ...
1
vote
1answer
271 views

Typesetting trees and connecting nodes and subnodes within AVMs in forest

For typesetting LFG analyses one has to connect nodes in a tree with parts of Attribute-Value Matrices (AVMs). I used tcolorboxfor this. (See http://tex.stackexchange.com/questions/218417/replacing-...
2
votes
1answer
167 views

Where does the white space comes from (tikzmark)?

I am coming from this answer of mine: https://tex.stackexchange.com/a/394628/120578 The code is: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{...