我希望 pdftitle 能够正确标记前端窗口标签。代码
% http://tex.stackexchange.com/a/210664/13173 Do not have inputenc, since it is loaded with europecv/... package so defininig utf8 here
\documentclass[english,a4paper]{europasscv}
\usepackage[british,UKenglish,USenglish,english,american]{babel}
\usepackage{graphicx} % Required to draw the logo
% TODO buggy here
\usepackage[pdftitle={Leo - europass},pdfauthor={Leo}]{hyperref} % PDF setup - set your name and the title of the document to be incorporated into the final PDF file meta-information
\ecvname{Leo}
\ecvaddress{New York, USA}
\ecvnationality{American}
\ecvdateofbirth{January 1, 1911}
\ecvbeforepicture{\raggedright}
\ecvemail{[email protected]}
\ecvgender{Male}
\ecvmobile{+358 12345 6789}
\begin{document}
\begin{europasscv}
\ecvpersonalinfo
\end{europasscv}
\end{document}
输出
Package Babel Warning: The package option `english' should not be used
(Babel) with a more specific one (like `american') on input line
5.
! LaTeX Error: Missing \begin{document}.
\usepackage[pdftitle={Leo - europass},pdfauthor={Leo}]{hyperref}
图 1 中不带的输出。
图 1 输出无pdftitle
操作系统:Debian 8.7
TeXLive:2017
答案1
根据 ArTourter 的评论,解决方案如下。删除该行\usepackage[pdftitle ... ]{hyperref}
并添加以下内容,因为hyperref
包已经由europasscv
\hypersetup{pdftitle={Leo - europass}, pdfauthor={Leo}}
输出:符合预期,正确。