我正在使用 overleaf 创建使用 PNAS 模板的文档,背景中有显示“草稿”的水印,我无法将其删除。请帮忙。
\documentclass[9pt,twocolumn,twoside]{pnas-new}
% Use the lineno option to display guide line numbers if required.
% Note that the use of elements such as single-column equations
% may affect the guide line number alignment.
\templatetype{pnasresearcharticle} % Choose template
% {pnasresearcharticle} = Template for a two-column research article
% {pnasmathematics} = Template for a one-column mathematics article
% {pnasinvited} = Template for a PNAS invited submission
\title{The role of \textit{egl-1} in programmed cell death in \textit{C. elegans} through inhibition of \textit{ced-9} and the upstream control mechanisms}
% Use letters for affiliations, numbers to show equal authorship (if applicable) and to indicate the corresponding author
\author[a]{Thomas Munro}
\affil[a]{Department of Life Sciences, Imperial College London}
% Please give the surname of the lead author for the running footer
\leadauthor{Munro}
% Keywords are not mandatory, but authors are strongly encouraged to provide them. If provided, please include two to five keywords, separated by the pipe symbol, e.g:
\keywords{Keyword 1 $|$ Keyword 2 $|$ Keyword 3 $|$}
\dates{This manuscript was compiled on \today}
答案1
您的示例文件不可用,但是
http://www.pnas.org/site/misc/pnas-new.cls
表明
\setboolean{displaywatermark}{false}
就是你要找的。
答案2
与卡莱尔的回答相反,水印的来源是.cls 文件(pnas-new.cls)。您可以注释掉以下所有行(Ctrl + /切换所选文本块的注释):
%% Watermark
\newboolean{displaywatermark}
\setboolean{displaywatermark}{true} % Set to false to remove the watermark
\AtBeginDocument{%
\ifthenelse{\boolean{displaywatermark}}{%
\RequirePackage{draftwatermark}
\SetWatermarkAngle{45}
\SetWatermarkColor{gray!20}
\SetWatermarkFontSize{3cm}
\SetWatermarkText{{\fontfamily{bch}\bfseries DRAFT}}
}{}
}
ps 您还可以看到有关如何关闭它而不在代码块中将其全部取出的注释