오프셋 없이 페이지 하단에서 수평 그리드를 추가하려면 어떻게 해야 합니까?

오프셋 없이 페이지 하단에서 수평 그리드를 추가하려면 어떻게 해야 합니까?

페이지 하단에서 시작하여 100pt 간격으로 상단으로 올라가는 수평선만 추가하려고 합니다. 단계가 페이지의 높이나 상단과 일치할 필요는 없습니다.

나는 다음을 시도하고 있습니다.

\documentclass[parskip=true]{scrartcl}
\usepackage[automark,headsepline=true,footsepline=false]{scrlayer-scrpage}
\usepackage{tikz}
\usepackage[]{geometry}
\usepackage{blindtext}
\usetikzlibrary{arrows,shapes,backgrounds}
\begin{document}
\KOMAoptions{paper=432pt:329pt,paper=landscape}
\recalctypearea
\newgeometry{left=0mm,right=0mm,top=0mm, bottom=0mm}
    \begin{tikzpicture}[overlay][x=1pt,y=1pt]
        \noindent\draw[step=90pt,gray,very thick] (0,-329pt) grid (432pt,0pt);
    \end{tikzpicture}
\noindent\blindtext
\end{document}

내가 얻는 것은

여기에 이미지 설명을 입력하세요

답변1

두 번의 컴파일 실행이 괜찮다면 왼쪽 하단을 쉽게 참조한 current page.south west다음 . 코드는 다음과 같습니다:\foreach100pt

\documentclass[parskip=true]{scrartcl}
\usepackage[automark,headsepline=true,footsepline=false]{scrlayer-scrpage}
\usepackage{tikz}
\usepackage[]{geometry}
\usepackage{blindtext}
\usetikzlibrary{arrows,shapes,backgrounds,calc}
\begin{document}
\KOMAoptions{paper=432pt:329pt,paper=landscape}
\recalctypearea
\newgeometry{left=0mm,right=0mm,top=0mm, bottom=0mm}
    \begin{tikzpicture}[remember picture,overlay,x=1pt,y=1pt]
        \foreach \position in {0,100,...,500}
        {
            \draw[cyan,thick] ($(current page.south west)+(0,\position)$) -- ++(432,0);
        }
    \end{tikzpicture}
\noindent\blindtext
\end{document}

결과는 다음과 같습니다. 여기에 이미지 설명을 입력하세요

관련 정보