I am making some section divisions in a style sheet using tikz
. However, even though I start drawing the line at (0,0)
it has an offset from the actual page content border. I also set \parindent
and it still is not perfectly aligned. How can I force the line to start (and end) exactly at the borders?
Here's a minimal example of the problem:
\documentclass{article}
\usepackage[a4paper, left=14.111mm,right=14.111mm,top=14.111mm,bottom=14.111mm, showframe]{geometry}
\usepackage{tikz}
\newcommand{\linehalfhalf}{\begin{tikzpicture}[]%
\draw [line width=1.5mm ] (0,0) -- ({0.5\textwidth},0);
\draw [line width=0.5mm] ([yshift=+0.5mm]{0.5\textwidth},0) -- ([yshift=+0.5mm]{\textwidth},0) ;
\end{tikzpicture}}
\begin{document}
\setlength\parindent{0pt}
\linehalfhalf
\end{document}
\setlength\parindent{0pt}
.