5

I'm going to write a lecture note . I'd like to make create a watermark like this but i don't know how to do it. Can you help me to draw this watermark?

enter image description here

  • 2
    Welcome to TeX.SX. Which part do you define as the watermark? – Johannes_B Dec 8 '19 at 4:46
  • Oh the words on the left hand side of this page. – 129492 Dec 8 '19 at 4:50
  • Do you want this on all pages? – Schrödinger's cat Dec 8 '19 at 4:53
  • Yes, i want this on all pages. – 129492 Dec 8 '19 at 4:58
  • watermarks near the margin are not useful enough for preventing copyright issues. It will be better if you put the watermarks that blends with the contents. – Money Oriented Programmer Dec 8 '19 at 6:45
15

Welcome! You can do that e.g. with eso-pic and tikz. The distance to this watermark to the text is specified in ([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}

enter image description here

For different "watermarks" on even vs. odd pages, you can use

\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}

enter image description here

  • Thank you for helping me. – 129492 Dec 8 '19 at 5:11
  • If i want to make the different between odd pages and even pages, how to do it? – 129492 Dec 8 '19 at 6:08
  • @129492 I added something for that case. – Schrödinger's cat Dec 8 '19 at 6:15
  • @Schrödinger'scat How to draw the sline equal to heigh of paper? – minhthien_2016 Dec 8 '19 at 7:09
  • 1
    @minhthien_2016 Equal to the height of the paper or the text area? In the first case \draw[very thick,pink] (AE.east) -- (AE.east|-current page.north) (AE.west) -- ++ (AE.east|-current page.south); and in the second case \draw[very thick,pink] (AE.east) -- (AE.east|-current page text area.north) (AE.west) -- ++ (AE.east|-current page text area.south);. – Schrödinger's cat Dec 8 '19 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.