我无法创建 PDF 元数据。我尝试使用以下代码,但未创建元数据。
\documentclass[15pt,a4paper]{article}
\usepackage{lipsum}
\usepackage{url}
\usepackage[nochapters]{classicthesis}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage[left=1.5in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage[pdftex,
pdfauthor={nxkryptor},
pdftitle={Lorem ipsum},
pdfsubject={ME},
pdfkeywords={},
pdfproducer={Latex with hyperref, or other system},
pdfcreator={pdflatex, or other tool}]{hyperref}
\graphicspath
{
{Figures/}
}
\begin{document}
\title{\rmfamily\normalfont\spacedallcaps{Title}}
\author{\spacedlowsmallcaps{Lorem Ipsum}}
\date{} % no date
\maketitle
\section*{This is a section}
This is just a metadata test
\end{document}
我如何创建 PDF 元数据?
答案1
classicthesis
已经加载hyperref
,因此您必须使用\hypersetup
来设置元数据(提示:不要使用pdftex
):
\documentclass{article}
\usepackage{lipsum}
\usepackage{url}
\usepackage[nochapters]{classicthesis}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage[left=1.5in,right=1in,top=1in,bottom=1in]{geometry}
\hypersetup{pdfauthor={nxkryptor},
pdftitle={Lorem ipsum},
pdfsubject={ME},
pdfkeywords={},
pdfproducer={Latex with hyperref, or other system},
pdfcreator={pdflatex, or other tool}
}
\begin{document}
\title{Title}
\author{Lorem Ipsum}
\date{} % no date
\maketitle
\section*{This is a section}
This is just a metadata test
\end{document}