indigo40123 / NYCU-Thesis-Template

A NYCU thesis template
24 stars 8 forks source link

浮水印問題 #2

Open hong5ui7 opened 2 years ago

hong5ui7 commented 2 years ago

嗨嗨你們好。最近在把論文交給圖書館。不過圖書館針對浮水印的規定好像跟這個版本的設定不太一樣。圖書館規定是說從書名頁開始就要加浮水印。

我目前的設定是這樣:

% Set the source of watermark \newcommand\BackgroundPicture{% %\ifTHESISOPTIONwatermark % for draft mode: print "DRAFT" %\ifTHESISOPTIONdraft %\setlength{\@tempdimb}{.5\paperwidth}% %\setlength{\@tempdimc}{.5\paperheight}% %\setlength{\unitlength}{1pt}% %\put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){% %\makebox(0,0){\rotatebox{45}{\textcolor[gray]{0.75}% %{\fontsize{6cm}{6cm}\selectfont{DRAFT}}}}% %}% %\fi % for final mode: print the watermark specified by \watermark{} \ifTHESISOPTIONfinal \begin{tikzpicture}% \node[minimum width=\paperwidth,minimum height=\paperheight,opacity=0.3]% {\includegraphics[width=0.4\textwidth]{\@watermark}};% \end{tikzpicture}% \fi \fi }

% Update \cleardoublepage to handle watermark % % \chapter{} implicity calls \cleardoublepage first, then starts to print % chapter title and contents \let\oldcleardoublepage\cleardoublepage %\renewcommand{\cleardoublepage}{% % Remove watermark if previous page is a blank even page in twoside mode. % \newpage % \ClearShipoutPicture % \oldcleardoublepage % Add watermark \AddToShipoutPicture{\BackgroundPicture}% %}

但這樣的狀況是第一頁的浮水印會不透明,但其他頁的都正常。想請教大大看有甚麼辦法可以解決QQ

謝謝!

leo27945875 commented 2 years ago

@hong5ui7 你好,我後來把 thesis.cls 中 \usepackage{tikz}\usepackage{eso-pic} 兩行載入套件的指令對調就解決這個問題了,你可以試試看。