loopspace / tikzmark

The dread tikzmark arrives on github
14 stars 3 forks source link

The tikzmark Package

This is the official home of the development repository for the tikzmark library for LaTeX. This package is for marking a position on a page or within a tikzpicture which can be referred to in another TikZ drawing.

The current published version can be found on CTAN and the documentation is there as a PDF.

To use the most recent version, download the file tikzmark.dtx. To generate the library files, run tex tikzmark.dtx. To generate the documentation, run pdflatex tikzmark.dtx.

TL;DR

The tikzmark package provides a variety of commands which have evolved over the years since I first defined it in 2009. Much of this has taken place on the TeX-SX Q&A (questions tagged tikzmark and just all posts mentioning tikzmark) site so there are many versions in answers on that site, and there have been a few spin-offs by others. There is much on that site that is useful, but due to this evolution sometimes the command used by older answers is not the right one when used with this library.

The main question to ask is: does the command make a node or just a mark? In brief, the original \tikzmark made a node, but then I simplified it to just make a mark.

Marks

Nodes

Other Features

Additional Libraries

The concept of marking locations for TikZ has inspired a variety of useful routines for particular situations, so are not loaded automatically but can be accessed via \usetikzmarklibrary. These are: