像研究论文一样,我想在正文之间添加“正在发表的文章”之类的内容。如何实现?
答案1
也许这有帮助:
\documentclass[11pt]{article}
\title{This will be a great article}
\author{The author}
\usepackage{draftwatermark} % one of the packages that can be used for watermarks, as shown below
\begin{document}
\maketitle
\SetWatermarkText{Article in Press} % Text to be printed across the page
\SetWatermarkScale{3} % Size of the watermark text
% further options include
% \SetWatermarkColor[rgb]{0,0,1} % choose color of watermark, default is 80% grey
%
% For more information see https://www.ctan.org/pkg/draftwatermark
%
\abstract{An article that has not been printed yet.}
\section{Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
\end{document}
答案2
另一个选择是使用background
包裹:
\documentclass{article}
\usepackage[scale=5,opacity=0.75,color=gray]{background}
\backgroundsetup{contents={\sffamily Article in Press}}
\usepackage{lipsum}% just to generate filler text
\begin{document}
\lipsum[1-20]
\end{document}
生成的文档:
如果你想叠加图像,这里有一个使用 TikZ 的选项,xwatermark
:
\documentclass{article}
\usepackage[printwatermark]{xwatermark}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{lipsum}
\newsavebox\mybox
\savebox\mybox{\tikz\node[opacity=0.75,scale=6,text=gray,font=\sffamily]{Article in Press};}
\newwatermark*[allpages,angle=60,xpos=0,ypos=0]{\usebox\mybox}
\begin{document}
\lipsum[1-2]
\begin{figure}[!ht]
\centering
\includegraphics[width=3cm]{example-image-a}
\end{figure}
\lipsum[1-15]
\end{document}
结果: