I try to set dynamicaly pdf metadata with:
\def\date#1{\def\@date{#1}}
\def\author#1{\def\@author{#1}}
\def\title#1{\def\@title{#1}}
\def\subtitle#1{\def\@subtitle{#1}}
\def\location#1{\def\@location{#1}}
\def\thesisdirector#1{\def\@thesisdirector{#1}}
\def\thesiscodirector#1{\def\@thesiscodirector{#1}}
\def\discipline#1{\def\@discipline{#1}}
\def\doctoralschool#1{\def\@doctoralschool{#1}}
\def\doctoralschoolnumber#1{\def\@doctoralschoolnumber{#1}}
\def\nationalthesisnumber#1{\def\@nationalthesisnumber{#1}}
\makeatletter
\hypersetup{
final = true,
colorlinks = true,
urlcolor = blue,
citecolor = blue,
linkcolor = MidnightBlue,
unicode = true,
linktoc = section,
pdfauthor = {\@author},
pdfkeywords = {biocomputing, biotechnology, software , scientific},
pdftitle = {\@title},
pdfsubject = {Genomic expert annotation}
}
\makeatother
or this
\makeatletter
\def\date#1{\def\@date{#1}}
\def\author#1{\gdef\@author{#1}\gdef\@@author{#1}}
\let\@@author\@empty
\def\title#1{\gdef\@title{#1}\gdef\@@title{#1}}
\let\@@title\@empty
\def\subtitle#1{\def\@subtitle{#1}}
\def\location#1{\def\@location{#1}}
\def\thesisdirector#1{\def\@thesisdirector{#1}}
\def\thesiscodirector#1{\def\@thesiscodirector{#1}}
\def\discipline#1{\def\@discipline{#1}}
\def\doctoralschool#1{\def\@doctoralschool{#1}}
\def\doctoralschoolnumber#1{\def\@doctoralschoolnumber{#1}}
\def\nationalthesisnumber#1{\def\@nationalthesisnumber{#1}}
\hypersetup{
final = true,
colorlinks = true,
urlcolor = blue,
citecolor = blue,
linkcolor = MidnightBlue,
unicode = true,
linktoc = section,
pdfauthor = {\@@author},
pdfkeywords = {biocomputing, biotechnology, software , scientific},
pdftitle = {\@@title},
pdfsubject = {Genomic expert annotation}
}
\makeatother
This piece of code is put right after required package into my cls file.
But that do not build:
You can't use `\spacefactor' in internal vertical mode. \maketitle
I agree with you is a common error. I found lot of report (some ref: 1, 2)
But each time the answer do not have a MWE or do not works
Thanks for your light