Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加水印 #35

Closed
shaodongtang opened this issue Oct 13, 2018 · 0 comments
Closed

添加水印 #35

shaodongtang opened this issue Oct 13, 2018 · 0 comments

Comments

@shaodongtang
Copy link

利用 TikZ 在 LaTeX 文档中制作水印效果
https://liam0205.me/2014/04/22/LaTeX-watermark/
\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{eso-pic}
\newcommand{\watermark}[3]{\AddToShipoutPictureBG{
\parbox[b][\paperheight]{\paperwidth}{
\vfill%
\centering%
\tikz[remember picture, overlay]%
\node [rotate = #1, scale = #2] at (current page.center)%
{\textcolor{gray!80!cyan!30}{#3}};
\vfill}}}
\usepackage{blindtext}
\begin{document}
\watermark{60}{10}{DRAFT}
\blinddocument
\clearpage
\end{document}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants