答案1
使用overlay,remember picture
和页面的锚点。
\documentclass{article}
% not relevant for the solution
\usepackage{geometry}
\newgeometry{top=0cm,bottom=0.0cm,left=1cm,right=0cm}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[overlay,remember picture]
\fill[red] (current page.north west) rectangle ([xshift=1cm]current page.south west);
\end{tikzpicture}
blub
\end{document}
答案2
使用\noindent
:
\newgeometry{top=0cm,bottom=0.0cm,left=0.0cm,right=0cm}
\noindent
\begin{tikzpicture}
\fill[red] (0,0) rectangle (1,29.7);
\end{tikzpicture}