我想要的是
每页都使用方格纸作为背景,并留有一个边距:
- 奇数页的页边距应在右侧
- 在偶数页上,页边距应位于左侧
我得到了什么
到目前为止,我已设法在每一页的右侧留出边距。
平均能量损失
\documentclass{article}
\usepackage{tikz}
\usepackage{eso-pic}
\AddToShipoutPicture{%
\begin{tikzpicture}[remember picture, overlay]
\tikzset{normal lines/.style={black!20, very thin}}
\tikzset{margin lines/.style={black!20, thick}}
\node at (current page.south west){
\begin{tikzpicture}[remember picture, overlay]
\draw[style=normal lines,step=0.5cm] (0,0) grid +(210mm,297mm);
\draw[style=margin lines] (180mm,0)--(180mm,297mm); % odd page
\end{tikzpicture}
};
\end{tikzpicture}
}
\usepackage{blindtext}
\begin{document}
\blindtext[20]
\end{document}