Skip to content

Commit

Permalink
Fix protocol sizing
Browse files Browse the repository at this point in the history
The macro `\pgf@protocolsizes` needs its arguments as dimensions for
when there are hooks into its code (such as when a local bounding box is
in effect).

See https://tex.stackexchange.com/q/719125/86
  • Loading branch information
loopspace committed May 28, 2024
1 parent 2bf1293 commit 3af5d33
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions spath3_code.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ and the derived files spath3.ins,
%</driver>
% \fi
%
% \CheckSum{10189}
% \CheckSum{10272}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
Expand Down Expand Up @@ -6540,10 +6540,14 @@ manipulating PGF soft paths}
\cs_new_protected_nopar:Npn \spath_protocol_path:n #1
{
\spath_minbb:Nn \l_@@_tmpa_tl {#1}
\exp_last_unbraced:NV \pgf@protocolsizes\l_@@_tmpa_tl
\dim_set:Nn \l_@@_tmpa_dim {\tl_item:Nn \l_@@_tmpa_tl {1}}
\dim_set:Nn \l_@@_tmpb_dim {\tl_item:Nn \l_@@_tmpa_tl {2}}
\pgf@protocolsizes\l_@@_tmpa_dim\l_@@_tmpb_dim
\spath_maxbb:Nn \l_@@_tmpa_tl {#1}
\exp_last_unbraced:NV \pgf@protocolsizes\l_@@_tmpa_tl
\dim_set:Nn \l_@@_tmpa_dim {\tl_item:Nn \l_@@_tmpa_tl {1}}
\dim_set:Nn \l_@@_tmpb_dim {\tl_item:Nn \l_@@_tmpa_tl {2}}
\pgf@protocolsizes\l_@@_tmpa_dim\l_@@_tmpb_dim
}
\cs_generate_variant:Nn \spath_protocol_path:n {V}
% \end{macrocode}
Expand Down

0 comments on commit 3af5d33

Please sign in to comment.