Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikzmark]

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

4
votes
2answers
40 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 ...
4
votes
1answer
38 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
85 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 ...
6
votes
1answer
74 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
37 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 ...
4
votes
2answers
313 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
51 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} \...
10
votes
2answers
262 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? MWE: \listfiles ...
7
votes
1answer
239 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
158 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{...
7
votes
2answers
177 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
44 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
85 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
125 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
52 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
49 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
120 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
27 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
67 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
69 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
38 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
78 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 ...
3
votes
1answer
42 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
289 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
121 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
102 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
50 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
60 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
124 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
117 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
49 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
149 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
93 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
145 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
36 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
71 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
91 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
120 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
190 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
222 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
224 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
157 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{...
0
votes
1answer
205 views

Block-like environment in beamer (using tikz's current page coordinates)

I am trying to define an environment that looks like the following (see picture and code below) the environment body is contained in a background rectangle; this rectangle extends to the edges of ...
2
votes
2answers
414 views

Horizontal and vertical braces below and next to a tabular table

I need to reproduce some stuff made in Power Point to Latex beamer. Some of the slides contain braces and text bubbles in various sizes and arrangements. Since I'm new to this whole Latex thing I ...
3
votes
1answer
1k views

Edit scatter plot legend (colors and marks)

I have the following plot: But I can not figure out how to make the colors of the legends match the actual color of their respective series (for some reason the legend is shown in only two colors, ...
3
votes
1answer
237 views

How to draw and highlight text like in the picture?

How to draw like this by tikz package?
3
votes
1answer
133 views

Making tikzmark (or an alternative) work with tikzposter

I'm writing an academic poster using tikzposter. I'd like to draw arrows connecting different points of text (in the same block), and it seems that tikzmark would be a good option for this. However, ...
1
vote
1answer
96 views

Why doesn't \tikzmark work before \multicolumn?

\tikzmark always works both before and after a single cell or a \multirow, and also after a \multicolumn. But before a \multicolumn it gives the error: ! Misplaced \omit. \multispan ->\omit ...
5
votes
2answers
194 views

Use layers when along with tikzmark

I can use layers as: Some \begin{tikzpicture}[baseline] \node [anchor=base,inner sep=0pt] (X) at (0,0) {Highlighted}; \begin{pgfonlayer}{background layer} \draw [fill=orange, fill opacity=0.9, ...
4
votes
2answers
144 views

tikzmark between = and matrix gives wrong spacing

I would like to be able to access the sides of a matrix. My issue is a that a tikzmark placed between a = sign and a matrix gives wrong spacing. I get the first output line spacing when I would like ...