summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikz-imagelabels
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-06-27 20:58:38 +0000
committerKarl Berry <karl@freefriends.org>2019-06-27 20:58:38 +0000
commit3b67ea9ad4e326adb5ceefd4b1043d545dde8058 (patch)
tree9c712dc6e638cd65dcbf77d85a9f45a8e44c925b /Master/texmf-dist/tex/latex/tikz-imagelabels
parente79ccbb041045e467e9bae3ba9e4b6490c1b9110 (diff)
tikz-imagelabels (27jun19)
git-svn-id: svn://tug.org/texlive/trunk@51490 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikz-imagelabels')
-rw-r--r--Master/texmf-dist/tex/latex/tikz-imagelabels/tikz-imagelabels.sty27
1 files changed, 26 insertions, 1 deletions
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{
@@ -52,6 +52,13 @@
}
\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,
arrow thickness/.store in = \arrowthickness,
@@ -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
%%