
답변1
환영! 예를 들어 eso-pic
및 를 사용하여 그렇게 할 수 있습니다 tikz
. 이 워터마크에서 텍스트까지의 거리는 에 지정됩니다 ([xshift=-1ex]current page text area.west)
.
\documentclass{article}
\usepackage{tikzpagenodes}
\usepackage{eso-pic}
\usepackage{lipsum}%<- only to add some text
\AddToShipoutPicture{\begin{tikzpicture}[overlay,remember picture]
\node[anchor=south,rotate=90,pink,font=\sffamily\Huge]
(AE) at ([xshift=-1ex]current page text area.west){Albert Einstein};
\draw[very thick,pink] (AE.east) -- ++ (0,4)
(AE.west) -- ++ (0,-4);
\end{tikzpicture}}
\begin{document}
\section{Blub}
\lipsum[1-10]
\end{document}
짝수 페이지와 홀수 페이지의 서로 다른 "워터마크"에 대해 다음을 사용할 수 있습니다.
\documentclass{article}
\usepackage{tikzpagenodes}
\usepackage{eso-pic}
\usepackage{lipsum}%<- only to add some text
\AddToShipoutPicture{\begin{tikzpicture}[overlay,remember picture]
\ifodd\value{page}
\node[anchor=south,rotate=90,pink,font=\sffamily\Huge]
(AE) at ([xshift=-1em]current page text area.west){Albert Einstein};
\draw[very thick,pink] (AE.east) -- ++ (0,4)
(AE.west) -- ++ (0,-4);
\else
\node[anchor=south,rotate=-90,pink,font=\sffamily\Huge]
(CFG) at ([xshift=1em]current page text area.east){Carl Friedrich Gauss};
\draw[very thick,pink] (CFG.west) -- ++ (0,4)
(CFG.east) -- ++ (0,-4);
\fi
\end{tikzpicture}}
\begin{document}
\section{Blub}
\lipsum[1-20]
\end{document}