이 워터마크를 만드는 방법은 무엇입니까?

이 워터마크를 만드는 방법은 무엇입니까?

강의노트를 쓰려고 합니다. 이런 워터마크를 만들고 싶은데 어떻게 해야 할지 모르겠습니다. 이 워터마크를 그리는 것을 도와주실 수 있나요?

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

답변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}

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

관련 정보