This is my title page of my thesis and the code is as below
\documentclass{article}
\begin{document}
\hypersetup{
pdftitle={properties of F\textsubscript{2}},
pdfauthor={xxx},
pdfsubject={Masterthesis},
pdfkeywords={Master Thesis},
pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false}
\end{document}
I get six warnings as below for using a subscript in this hypersetup environment. Is it the subscript causing the warning or something else? Could someone help me understand this better? Thank you.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing '\mathsurround' on input line.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing '\z@' on input line.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing 'subscript' on input line.
Package hyperref Info: Option 'pdfnewwindow' set 'true' on input line.
Package hyperref Info: Option 'plainpages' set 'false' on input line.
bookmarksopenlevelshould be an integer (see example). The rest seems okay at first sight (see here for an authoritative post aboutpdfborder). – frougon Jun 22 '18 at 10:01hyperrefdidn't complain about a\textsuperscript{o}(although the metadata output was "3,52,5o" for it). I came back to the code today and I found not even\texorpdfstring{\textsuperscript{o}}{º}runs without errors :(, so I will have to accept a\texorpdfstring{$^\text{o}$}{º}(although the metadata will read "o" instead of "º"). – Andrestand Jul 09 '22 at 08:52\texorpdfstring{Properties of F\textsubscript{o}}{Properties of Fº}results in apparently correct metadata (displayed bypdfinfoandokular). Tested with TeX Live updated today, after seeing your comment. – frougon Jul 09 '22 at 09:12\edef\mypdftitle{\GetDocumentProperties{hyperref/pdftitle}} \title{\mypdftitle}, I don't think providing LaTeX markup for thepdftitlekey is useful; do you have another use for it? – frougon Jul 09 '22 at 16:473oinstead of3º(which is how3rdis usually written in Spanish). – Andrestand Jul 10 '22 at 11:09pdftitle={Properties of F2}. I have the impression that using\texorpdfstringinside thepdftitleis likely not very useful as the value doesn't get typeset by LaTeX, unless one extracts it like I wrote using\GetDocumentProperties, then uses the result in typesetting. Now regarding your point: looking at §7.19, Option ‘pdfencoding’ in thehyperrefmanual, Unicode seems to be supported by default nowadays for the information dictionary; so, AFAIUI, using°directly here should be fine. – frougon Jul 10 '22 at 12:17