如何让水印大小自适应页面尺寸

2020-03-10 14:26发布

除了手动改变scale的值,还有别的方式能让不同长度水印自己去适应页面大小吗? ```tex \documentclass{article} %-------------------- Add...

除了手动改变scale的值,还有别的方式能让不同长度水印自己去适应页面大小吗? ```tex \documentclass{article} %-------------------- Add package in here--------------------- \usepackage{transparent} \usepackage[left=2cm, right=2cm, top=3cm, bottom=3cm]{geometry} \usepackage{fancyhdr}%頁首 ;頁尾 \pagestyle{fancy}%頁首 ;頁尾 \usepackage[printwatermark]{xwatermark} \usepackage{titlesec} \usepackage{titletoc} \usepackage{tabu} \usepackage{tikz} %------------------- set global format -------------------------- \newwatermark*[allpages,color=gray!100,angle=45,scale=2,xpos=0,ypos=0]{\transparent{0.2}{Released to Xiongmai Silicon under NDA}} %-- Add watermark %-------------------- Header and footer settings -------------------------------- \lhead{APM} %頁首左邊 \rhead{ APS3208K-OKx DDR OPI PSRAM} \lfoot{\footnotesize {APM OPI PSRAM Datasheet.pdf \\ Rev. 2.4 Feb.14,2020 }} \rfoot{\footnotesize{AP Memory reserves the right to change products \\ and/or specifications without notice \\@2020 AP Memory. All rights reserved}}%頁尾右邊 \renewcommand{\footrulewidth}{0.4pt} % 設定頁尾多一條粗細是 0.4 pt 的水平線 \begin{document} \vspace*{0.5cm} \begin{center} \huge \textbf{Double-Data-Rate OPI PSRAM} \vspace{1cm} \end{center} \noindent\rule{\textwidth}{2pt} \end{document} ```
2条回答
麻烦用代码块

一周热门 更多>

相关问答