From 3b67ea9ad4e326adb5ceefd4b1043d545dde8058 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 27 Jun 2019 20:58:38 +0000 Subject: tikz-imagelabels (27jun19) git-svn-id: svn://tug.org/texlive/trunk@51490 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/tikz-imagelabels/tikz-imagelabels.sty | 27 +++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/latex/tikz-imagelabels') diff --git a/Master/texmf-dist/tex/latex/tikz-imagelabels/tikz-imagelabels.sty b/Master/texmf-dist/tex/latex/tikz-imagelabels/tikz-imagelabels.sty index 8f5e8d46298..25d864458d5 100644 --- a/Master/texmf-dist/tex/latex/tikz-imagelabels/tikz-imagelabels.sty +++ b/Master/texmf-dist/tex/latex/tikz-imagelabels/tikz-imagelabels.sty @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesPackage{tikz-imagelabels} - [2019/01/29 v0.1 put labels on images using TikZ] + [2019/06/27 v0.2 put labels on images using TikZ] \RequirePackage{tikz} \RequirePackage{xifthen} \usetikzlibrary{ @@ -51,6 +51,13 @@ image label text/.store in = \imagelabeltext, } +\imagelabelset{ + coordinate label font/.store in = \coordinatelabelfont, + coordinate label distance/.store in = \coordinatelabelsep, + coordinate label back/.store in = \coordinatelabelback, + coordinate label text/.store in = \coordinatelabeltext, +} + \imagelabelset{ annotation font/.store in = \annotationfont, arrow distance/.store in = \arrowdistance, @@ -66,6 +73,10 @@ image label distance = 2mm, image label back = black, image label text = white, + coordinate label font = \sffamily\bfseries\scriptsize, + coordinate label distance = 2mm, + coordinate label back = black, + coordinate label text = white, annotation font = \normalfont\small, arrow distance = 1.5mm, border thickness = 0.6pt, @@ -159,12 +170,26 @@ text = \imagelabeltext, font = \imagelabelfont, }, + coordinate label style/.style = { + rectangle, + minimum width = 3mm, + minimum height = 3mm, + fill = \coordinatelabelback, + text = \coordinatelabeltext, + font = \coordinatelabelfont, + }, image label/.style args = {#1 at #2}{ insert path = { (image.#2) node[outer sep = \imagelabelsep, anchor=#2, image label style] {#1} } }, + coordinate label/.style args = {#1 at (#2)}{ + insert path = { + node[outer sep = \coordinatelabelsep, + anchor=center, coordinate label style] at (#2) {#1} + } + }, } \endinput %% -- cgit v1.2.3