I have been away of Beamer for a few years and I am coming back to my old notes (samples of code) that I put together and build a few new presentations.
While I was compiling the code I got the following warning:
hyperref: Token not allowed in a PDF string (PDFDocEncoding): sample.tex
I know that this warning has been asked and answered here "Hyperref warning - Token not allowed in a PDF string" and also here "Hyperref - Token not allowed [duplicate]".
I am raising the question on the same warning because I can not find an answer on how to include the date with the function \today and not produce the warning.
On my sample of code if I include the function \today I get the warning, if I remove the function and I add manually the date (e.g. 23-04-2018) the code compiles just fine.
sample.tex (Update 2: Minimal working example)
\documentclass[xcolor=pdftex,dvipsnames,table]{beamer}
\usepackage{lmodern}% http://ctan.org/pkg/lm (For special Fonts)
\author[First Last Name]{Date: \today} % (optional, for multiple authors)
\begin{document}
\titlepage
\end{document}
So my question, is there any way to include the \today function without getting the warning? I do not want to supress the warning I know that there is there for a reason. I am asking if anyone sees if I am doing something wrong and know any work around other than updating manual the date.
\todayfunction inside the author. The only reason that I am doing so, is because the auto produced date is really far in the page and by removing vertical white space it destroys the rest of the alignments. – Thanos Apr 23 '18 at 11:44beamerloads alsohyperrefby default, so you can delete one more line:-)– campa Apr 23 '18 at 11:45