Skip to content

Commit

Permalink
Briding code adds space
Browse files Browse the repository at this point in the history
Comment in the documentation about avoiding inserted space if defining a
path in the `atbegindocument` section.
  • Loading branch information
loopspace committed Mar 23, 2022
1 parent 458efd0 commit 8fcb4cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spath3.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1083,8 +1083,8 @@ \section{Examples}
}

% If used in the preamble, this needs surrounding in \AtBeginDocument
%\AtBeginDocument{
\tikz[overlay] { \path[spath/save global=arc] (0,0) arc[radius=1cm, start angle=180, delta angle=-180]; }
%\AtBeginDocument{%
\tikz[overlay] { \path[spath/save global=arc] (0,0) arc[radius=1cm, start angle=180, delta angle=-180]; }%
%}
\begin{tikzpicture}
\path[spath/save=over] (0,0) -| ++(1,1) -| ++(-1,1) -| ++(1,1) -| ++(-1,1);
Expand All @@ -1095,5 +1095,8 @@ \section{Examples}
\end{tikzpicture}
\end{example}

The command defining the arc does introduce a box which can introduce additional spacing.
The syntax above, with the \% at the end of the lines, shouldn't add space but if for some reason it does then more sophisticated solutions to this are detailed at \href{https://tex.stackexchange.com/q/605800/86}{How to save or define a TikZ path for spath3 without introducing artifacts?}.

\end{enumerate}
\end{document}

0 comments on commit 8fcb4cb

Please sign in to comment.