Consider this example:
\documentclass{article}
\usepackage{tikz}
\usepackage[showframe]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\noindent\begin{tikzpicture}
\draw (0,0)--(\linewidth,0);
\end{tikzpicture}
\end{document}
It gets a warning
Overfull \hbox (0.4pt too wide) in paragraph at lines 8--11
On my viewer, I can't even see the "too wide" part
Of course, it is very difficult to see it, because it is only 0.4pt! However, I don't like having such warnings pop-up, so how to make sure that the line perfectly fits the margin, i.e. set the "inner sep
" of the "node" TikZ picture to exactly 0pt?
I know I can use \rule
, etc. for this, but I have to draw something more in TikZ, so I use TikZ in the whole picture.
Thank you in advance!
Bonus question: You can see that I am using \noindent
. Without modifications to \parindent
, are there any better ways to do that?