Assumed we have this very simple Minimum Working Example (MWE) to draw a straight line:
\documentclass[tikz]{standalone}
\usetikzlibrary{intersections,decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}
\draw[draw=red, line width=5pt] (-10,6) -- (50,6);
\end{tikzpicture}
\end{document}
Screenshot of the result:
As you can see, the line reaches the left and right page borders of the TikZ-layout as desired.
However, if I edit the upper MWE and add a seam allowance to create a second (parallel) line, the left and right page borders will suddenly increase:
\documentclass[tikz]{standalone}
\usetikzlibrary{intersections,decorations.pathmorphing}
\begin{document}
\tikzset{%
seam/.style={double distance=\seamallowance,draw},%
seam allowance/.store in=\seamallowance,%
seam allowance=5cm,%
}
\begin{tikzpicture}
\draw[seam, draw=red, line width=5pt] (-10,6) -- (50,6);
\end{tikzpicture}
\end{document}
Screenshot of the result:
As you can see, those ugly white spaces on the left and right side have appeared.
Question:
How can I avoid this behavior, so the new line won't create any additional white space on the sides anymore?


line cap=rectyou won't get the whitespace, but you will also get a red rectangle, not just red lines on the top and bottom, so that doesn't really help. – Torbjørn T. Jul 20 '19 at 07:29