Questions tagged [tikzmark]
A {tikz-pgf} library for remembering positions on a page for later use.
191
questions
2
votes
0
answers
45
views
Using `\subnode` in a tikzpicture with xelatex
My ultimate goal is to have some portion of text in a tikz node within a tikzpicture and be able to draw arrows to it. I am struggeling with this for over ten years now. cfr suggested I ask the ...
1
vote
1
answer
63
views
Drawing lines between parts of nodes in forest trees
I am struggeling with one particular problem for years now. I try to draw arrows from a part of a node in a forest tree. Due to a bug in xelatex this does not work with the tikzmark package and the ...
2
votes
2
answers
70
views
How can I put an overlay tikz picture below and ordinary text?
The following code
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\begin{document}
This is some text: \tikzmarknode{Foo}{foo}.
And this is some text in between that the filling ...
1
vote
1
answer
74
views
Error when using TikZ external and tikzmark libraries together
(Possibly related to this, but the example and the error are very different from what I've come up with. Plus it's a question from 2015, and the answers have been updated in 2017 and no later, so I ...
1
vote
1
answer
50
views
Package pgfkeys Error: I do not know the key '/tikz/10mm)'
When try to shift vertically a Tikz node that use pgfkeys coordinates it shows an error message:
Package pgfkeys Error: I do not know the key '/tikz/10mm)'
The basic code is as follow:
\documentclass[...
2
votes
3
answers
131
views
How to draw a simple angled arrow inside of an equation?
I am wondering what the code is for a simple arrow that points from one part of an equation to another, like so. I have spent a few hours looking for ways to do this and unfortunately have not made ...
2
votes
1
answer
79
views
Incorrect TikZ output when used with tikzmark
Consider the following MWE. The code of \mypic positions a line between two nodes. When I try to use \mypic with the tikzmark library, the positioning of the line is incorrect. Why is this happening, ...
0
votes
0
answers
39
views
Tikzmark and Forest package is not working in XeLaTeX?
See the following MWE:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\usepackage{forest}
\begin{document}
\begin{forest}
[\subnode{15}{15}\ 18
[\subnode{13}{\...
2
votes
1
answer
36
views
Drawing a path from a tikzmarknode to a node concisely and using the plus-sign line-to operation
I'm editing a 50 pages long article in which I'd like to mark texts using tikzmarknode and then draw a path from it into a node like this:
I wrote this this code.
\documentclass{article}
\usepackage{...
0
votes
1
answer
88
views
how to implement the equation counters of box in box
I'm trying to make a box in box with equation counters in the outside. The first image could be obtained by my code as follows,
\documentclass[a4paper]{article}
\usepackage{amsmath,amssymb,array,cases}...
3
votes
1
answer
147
views
Connecting nodes with the text marked by tikzmark
I'm editing a text where I need to mark words (or short sentences i.e. not multiple lines of text) by encircling them in boxes and connect those boxes with the text I will add on later. tikzmark seems ...
3
votes
1
answer
102
views
tikzmark with equation, subsequent text got overlapped
I am trying to use tikzmark library to annotate equations. I have the following MWE
\documentclass{article}
\usepackage{tikz,amsmath}
\usetikzlibrary{tikzmark}
\begin{document}
\[
\text{Regret}_T =...
3
votes
1
answer
178
views
Calculating scheme for a particular solution of a linear differential equation (UCM)
The following is calculating scheme for a particular solution of a linear differential equation via the undetermined coefficient method. The result is quite okay, using the library tikzmark of TikZ.
I ...
1
vote
1
answer
89
views
Annotating an equation - differences
In trying to annotate an equation with the package annotate-equations. Most of the time things work all right and every once in a while it dislocates a piece of the equation inapropriately, like the ...
1
vote
1
answer
43
views
Position adjustment of tikzboxes in columns environment [Beamer slide]
I am trying to adjust some elements of a frame and I keep having some problems that I don't understand.
I am displaying 2 boxes of equations by using \columns to split the frame and add some titles ...
1
vote
1
answer
50
views
2 boxes on each other with \columns
I would like to display 2 boxes : one on each other beside a figure on a template. I am using the \column environment since it seems to be the most appropriate.
For the creation of the boxes, I am ...
1
vote
1
answer
282
views
How to use listing, tikz and tikzmark packages together to annotate source code listing?
I'd like to annotate code listing something like this:
Below is what I've attempted so far. I am a little worried about having to use raisebox so that the arrow tip doesn't point to the base of the ...
5
votes
1
answer
184
views
tikzmark no shape named a21 known
I am not able to compile the following. I get an error no shape named a21 is known. What is the mistake I am making?
\documentclass{article}
\usepackage{array}
\usepackage{tikz}
\usetikzlibrary{...
4
votes
2
answers
224
views
How to make beamer, tikzmark and tabularray compatible?
Problem Description
beamer and tikzmark works correctly inside a matrix environment. But when they are used within a tblr environment, a large gap occurs. How can this be fixed? The use of ...
0
votes
1
answer
133
views
How to balance two columns with two tables in revtex 4.2
I am using revtex 4.2 as a basis for company documents (until I learn enough to write my own class). In a particular document, I have an appendix which has a couple tables in it, as well as some text. ...
1
vote
1
answer
49
views
How to put a picture side to the multiple alternatives using the exam class?
I want to put a picture right next to the multiple choices using the exam class, but I can only get it above or below the choices.
Here my code:
\documentclass[12pt,a4paper,addpoints]{exam}
\...
0
votes
1
answer
97
views
Adding arrows pointing to subfigures in figure
I am working in a two-column format and have a figure that contains multiple subfigures. What I would like to do is to create arrows outside the subfigures which point to specific things within each ...
2
votes
0
answers
66
views
Using tikzmark in leaflet
There seems to be some problems when using tikzmark (or similar) in a leaflet document. I'm guessing this has to do with the strange positioning leaflet performs.
Here is a MWE:
\documentclass{leaflet}...
2
votes
3
answers
507
views
Node positions in Tikzpicture for using tikzmark
I wish to create a diagram like this.
My attempt is shown below:
Output
Code
\documentclass{article}
\usepackage{tikz-cd}
\usetikzlibrary{tikzmark,shapes.geometric,shapes.symbols}
\tikzset{elnode/....
0
votes
1
answer
70
views
Error using tikzmark with multiple tikzcd's
I wish to create a figure like the one shown below.
I am getting the error above with the following code. Can someone tell me where I may be going wrong?
\begin{tikzcd}[arrows={-latex, outer sep=-1....
1
vote
0
answers
252
views
An alternative to tcolorbox - how to specify vertical skips?
EDIT This question was edited and made more precise.
Background
This is a question related to my other one. In a desperate effort made to avoid some of tcolorbox pitfalls described there, I have ...
3
votes
3
answers
227
views
Color diagonal of a matrix
I would like to color the diagonal and off diagonal elements of a matrix:
I have:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsmath,amsthm,enumitem}
\usepackage[a4paper, ...
5
votes
1
answer
232
views
fill and overlay do not work well together
In trying to answer the question in here with tikzmark, it seems that [overlay] and \fill are not good enough to use simultaneously.
I have a question - see in the below code.
\documentclass{article}
...
3
votes
1
answer
407
views
How to position a TikZ picture relative to a \tikzmark?
This is a follow-up to this question. I'd like to achieve the same output as described in the question, namely a 1cm wide square that is 1cm below and 1cm to the right of the red dot in the following ...
3
votes
2
answers
215
views
Arrows with tikz between words in beamer
I would like, ideally, to reproduce the following picture.
I am using the tikz package at the moment and my code is as follows (all packages and the frame I would like to modify):
\documentclass[10pt]...
2
votes
1
answer
95
views
Tikzcd: point to specific line using tikzmark
I'd like to add in tikzcd some arrows pointing to a specific line (here the line JKL). However my code always point to the top of the cell (when it's even producing a meaningfull output):
I'm not ...
2
votes
1
answer
255
views
Tikz node or TikZmark Node, which fits for the figure?
I want to draw the following picture:
But I got stuck where to start? What should I use normal TikZ node (\node) or TikZmark Node (\tikzmarknode)? I am not expert in tikz-pgf package. Your help is ...
0
votes
1
answer
46
views
Checking if tikzmark exists on page inside datatool dtlforeach
I would like to check that a list of nodes loaded in a DTL database exist on the current page, where each node has a tikzmark. Including a \iftikzmarkoncurrentpage inside a \DTLforeach returns a ...
1
vote
1
answer
110
views
Get position of a tikzmark
In order to solve this question, I'd like to obtain the absolute y position of a tikzmark (actually I want the distance from the border of the text area, but I guess it's not too hard to convert ...
1
vote
2
answers
174
views
Using \tikzmarkin and \tikzmarkend twice in one presentation breaks highlighting in one of the tables
In the code below, highlighting works just fine for the first table if the second is commented out, but breaks when the code for the second table is not commented out. It's always the first table in ...
1
vote
1
answer
88
views
\tikzmarkin not highlighting whole row in table (beamer)
For some reason, when I try to highlight table rows using \tikzmarkin, the last character is not included in the highlight. See the example below.
\documentclass[notes,11pt, aspectratio=169]{beamer}
\...
2
votes
1
answer
56
views
Localized TiKZ marks
The following code, adapted from the first answer here , works the way I want.
But it is not what I expected. I'm reusing the tikzmark labels a..e, and the \makebrace use after the first placement of ...
1
vote
0
answers
45
views
What could go wrong with putting a tikzmark node around an existing box just before unboxing it?
I've an idle thought on how to use the dastardly tikzmark TikZ library to put nodes around pre-packaged boxes, specifically (but not limited to) the boxes that the awesome AMSMath packages use when ...
0
votes
1
answer
73
views
Better vertical spacing between boxes and chapter in tableofcontents
About this code, I'd like to personalize spacing between boxes and chapter in tableofcontents
\documentclass{book}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[a4paper,top=3cm,...
0
votes
1
answer
57
views
Multiple Pointing arrows in a slide unable to find the location
I am new to tikz just able to draw some arrows but going to complex part unable to find the location and technique to do so.
\documentclass[xcolor=dvipsnames, aspectratio=169, 11pt]{beamer}
\...
4
votes
2
answers
272
views
tikzmark error in itemize
I am trying to create nodes using tikzmark but for some reason it is generating an error, supposedly I am copying from the example of the manual offered by the package.
Objective
\documentclass[...
1
vote
1
answer
144
views
Problem with `current axis` node and `externalize` and `tikzmark` packages
Abstract
I use current axis for drawing my axes and add labels to them but, if tikzmarks are used on a tikzpicture, current axis doesn't behave well in the next ones.
My main goal is to find out why ...
2
votes
1
answer
179
views
How to include lines in an equation
I am a newbie to latex and I am trying to compile notes. I came across an equation and I am wondering how it was produced. I haven't tried any method as I have no clue. Please help particularly with ...
2
votes
1
answer
186
views
Tikzmark at beginning and end of environment
TL;DR: how can I place a tikzmark at the actual beginning or end of a piece of text, ignoring spurious newlines added by other environments (see the pictures below)?
For the sake of simplicity, ...
3
votes
1
answer
100
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
1
answer
168
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
1
answer
140
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
2
answers
280
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
1
answer
152
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
2
answers
319
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 = ??? ...