Skip to main content

Questions tagged [tikzmark]

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

Filter by
Sorted by
Tagged with
4 votes
1 answer
34 views

Arrow form word to word in text

i tried something like this, but could not manage. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \newcommand{\markWort}[3]{% \tikz[baseline=(#3.base)]{ \node[...
Patrick's user avatar
  • 149
2 votes
2 answers
58 views

Is decorations.text not properly compatible with the tikzmark library?

I've tried getting this strange error message across 2 different documents so far (that I've tested), and it only happens when I combine the usage of tikzmark with decorations.text, both of which are ...
Atex's user avatar
  • 210
4 votes
3 answers
199 views

How to make text appear in front of fill when using tikzmarknode?

I've produced the following output: Here's the MWE: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, bending, tikzmark, positioning, fit} \tikzset{arrow/.style={red, -{...
Atex's user avatar
  • 210
2 votes
1 answer
54 views

How to achieve consistent vspace between minted environment annotated by tikzpicture and next paragraph?

I am using tikzmark and tikzpicture to annotate code examples. I noticed that there is inconsistent vspace between the next paragraph(or text line) and the code examples. I tried \vspace{-1em} or ...
Pyi Soe's user avatar
  • 330
7 votes
3 answers
322 views

Dectect if using \tikzmark or \tikzmarknode

I would like to be able to detect if a particular mark was made with \tikzmark (which requires the use of pic cs:) or if it was made with \tikzmarknode (which requires that pic cs: is not used). ...
Peter Grill's user avatar
3 votes
0 answers
87 views

How to customize the height highlightings with tikzmark package?

How to customize the height of highlightings with tikzmark package?. In the documentation, page 17-18, you can see the explanation (at lower part in this message) https://ctan.javinator9889.com/...
Mika Ike's user avatar
  • 3,781
3 votes
1 answer
92 views

Save current position without modifying the document layout

Description I would like to add code to the preamble of a document such that I am able to identify and store the vertical position of an environment without modifying the layout. That is to say I ...
overratedclunk's user avatar
2 votes
0 answers
82 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 ...
Stefan Müller's user avatar
1 vote
1 answer
107 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 ...
Stefan Müller's user avatar
3 votes
3 answers
220 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 ...
Enlico's user avatar
  • 2,612
2 votes
1 answer
114 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 ...
Enlico's user avatar
  • 2,612
1 vote
1 answer
71 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[...
ABV's user avatar
  • 451
2 votes
3 answers
176 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 ...
tele's user avatar
  • 33
2 votes
1 answer
102 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, ...
Alan Munn's user avatar
  • 220k
0 votes
0 answers
47 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}{\...
Arne's user avatar
  • 1,390
2 votes
1 answer
61 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{...
Lars Malmsteen's user avatar
0 votes
1 answer
120 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}...
Jerry Feng's user avatar
3 votes
1 answer
242 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 ...
Lars Malmsteen's user avatar
3 votes
1 answer
143 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 =...
dragon_and_dracula's user avatar
3 votes
1 answer
245 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 ...
Black Mild's user avatar
  • 17.9k
1 vote
1 answer
127 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 ...
TeX Apprentice's user avatar
1 vote
1 answer
53 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 ...
Waxler's user avatar
  • 860
1 vote
1 answer
64 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 ...
Waxler's user avatar
  • 860
1 vote
1 answer
578 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 ...
Pyi Soe's user avatar
  • 330
5 votes
1 answer
231 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{...
Abe's user avatar
  • 51
4 votes
2 answers
287 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 ...
Sam's user avatar
  • 310
0 votes
1 answer
155 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. ...
PTTHomps's user avatar
  • 125
1 vote
1 answer
81 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} \...
Cristian David Oliva San Martn's user avatar
0 votes
1 answer
165 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 ...
CBBAM's user avatar
  • 137
2 votes
0 answers
77 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}...
LambdaBeta's user avatar
2 votes
3 answers
629 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/....
concordepi's user avatar
0 votes
1 answer
76 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....
concordepi's user avatar
1 vote
0 answers
285 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 ...
Radek's user avatar
  • 173
3 votes
3 answers
313 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, ...
user avatar
5 votes
1 answer
321 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} ...
Black Mild's user avatar
  • 17.9k
3 votes
1 answer
609 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 ...
Evan Aad's user avatar
  • 11.1k
3 votes
2 answers
277 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]...
Lusian's user avatar
  • 203
2 votes
1 answer
105 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 ...
tobiasBora's user avatar
  • 8,964
3 votes
1 answer
384 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 ...
mmr's user avatar
  • 2,249
0 votes
1 answer
49 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 ...
Legba's user avatar
  • 3
1 vote
1 answer
159 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 ...
tobiasBora's user avatar
  • 8,964
1 vote
2 answers
227 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 ...
ccmullally's user avatar
1 vote
1 answer
174 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} \...
ccmullally's user avatar
2 votes
1 answer
62 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 ...
dedded's user avatar
  • 2,308
1 vote
0 answers
48 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 ...
Andrew Stacey's user avatar
0 votes
1 answer
87 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,...
Puck's user avatar
  • 1,212
0 votes
1 answer
60 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} \...
avi007's user avatar
  • 85
4 votes
2 answers
300 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[...
royer's user avatar
  • 361
1 vote
1 answer
179 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 ...
Leone's user avatar
  • 586
2 votes
1 answer
330 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 ...
Richard Nkhoma's user avatar