diff options
author | Norbert Preining <norbert@preining.info> | 2022-09-27 03:02:45 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-09-27 03:02:45 +0000 |
commit | 358efc294299fa1b336a63da305121fb8b71447b (patch) | |
tree | 0c0b70e0c71feb835e4645799d4d9b4eba1fdd3a /macros/latex/contrib/wargame/source/util/core.dtx | |
parent | 3416c5679e9cfa1ebba2296ecf401319a9f1cfe6 (diff) |
CTAN sync 202209270302
Diffstat (limited to 'macros/latex/contrib/wargame/source/util/core.dtx')
-rw-r--r-- | macros/latex/contrib/wargame/source/util/core.dtx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/macros/latex/contrib/wargame/source/util/core.dtx b/macros/latex/contrib/wargame/source/util/core.dtx index 506cb19ece..1d95aa38c6 100644 --- a/macros/latex/contrib/wargame/source/util/core.dtx +++ b/macros/latex/contrib/wargame/source/util/core.dtx @@ -1225,6 +1225,23 @@ \@rbchar, } %\message{^^JZone point \the\mk@point\space ##1: ##2,##3 -> \px,\py} }, + zone oob point/.code n args={3}{ + \pgf@xa=##2 cm + \pgf@ya=##3 cm + \advance\pgf@xa.1cm + \advance\pgf@ya.1cm + \pgfpointtransformed{\pgfpoint{\pgf@xa}{\pgf@ya}} + % \pgfpointtransformed{\pgfpoint{0pt}{0pt}} + \pgf@xa=\pgf@x + \pgf@ya=\pgf@y + \pt@to@cm{\the\pgf@xa}\edef\px{\pgfmathresult} + \pt@to@cm{\the\pgf@ya}\edef\py{\pgfmathresult} + \advance\mk@point1 + \global\mk@point=\mk@point + \mk@w{ \mk@i "point\the\mk@point": \@lbchar "name": "##1", "type": "point", "coords": [\px,\py] + \@rbchar, } + %\message{^^JZone point \the\mk@point\space ##1: ##2,##3 -> \px,\py} + }, zone global point/.code n args={3}{ \advance\mk@point1 \global\mk@point=\mk@point |