diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikz-imagelabels')
-rw-r--r-- | Master/texmf-dist/tex/latex/tikz-imagelabels/tikz-imagelabels.sty | 27 |
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 %% |