xwatermark 和 draftmark 包已停止工作

xwatermark 和 draftmark 包已停止工作

我一直使用xwatermarkdraftmark都没有问题,直到今天,我用它们创建的 LaTeX 文档无法编译为 PDF。我正在使用 TL 2014 运行 Kubuntu 14.04,这是我上周自己安装的。

这是一份测试文档,xwatermark注释掉代码后可以正确编译。编译失败(调用xwatermark)会创建一个.WMX文件,必须先删除该文件,注释掉的版本才能编译。

\documentclass[a4paper, 12pt]{article}


\usepackage{fixltx2e, amsmath, fancyhdr, fancyvrb, lastpage, supertabular, xymtex, chemist, bpchem, graphicx, graphics, longtable, array, setspace, supertabular, epsfig, calc, ifthen, mhchem, chemfig, siunitx, chemmacros} 

 \usepackage[printwatermark]{xwatermark}

 \newwatermark[allpages,fontfamily=pag,color=gray!25,angle=45,scale=5, xpos=-30,ypos=20]{DRAFT}

\fancyhf{}
\lfoot{\vspace{16pt} Attorney Docket No.:~***}
\rfoot{\vspace{16pt} Page \thepage \ of \pageref{LastPage}}
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0pt}
\setlength{\textheight}{9.0in}
\setlength{\topmargin}{0in}
\setlength{\footskip}{0.5in}
\setlength{\topskip}{0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0.1in}
\setlength{\parskip}{0.1in}
\setlength{\parindent}{0pt}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textwidth}{6.0in}

\DeclareSIUnit\cal{cal}
\DeclareSIUnit\Molar{\textsc{M}}

\pagestyle{fancy}

\begin{document}

\begin{spacing}{1.5}

What is claimed:

\begin{enumerate}
  \item  Blah

  \item  Blah blah

  \item Blah blah blah


\end{enumerate}

\end{spacing}
\end{document}

我看到了两个错误。其中一个是这样的:

ERROR: Argument of \Hy@setref@link has an extra }.

--- TeX said ---
<inserted text> 
                \par 
l.49 \end{document}

--- HELP ---
From the .log file...

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

另一个是这样的:

\xwm@secstopagerange {1000}{1}

我很困惑。我今天更新了 TL(2014)。

相关内容