In addition to Jean's recommendation, there is also another approach.  You
can find some discussion of this here:
https://tex.stackexchange.com/a/251498

Basically, you can use these options (in addition to your other hyperref
options, of course):
\usepackage[pdfencoding=auto, psdextra]{hyperref}

This won't get rid of the "math shift" warnings, however.  You'll need to
follow Jean's recommendation and use \texorpdfstring if you want those math
shift warnings gone completely.  For example:

\section{stuff \texorpdfstring{$\omega$}{w} stuff}


Another approach altogether is to replace the math symbols in your section
headings with ones from the "textgreek" package, like this:

\usepackage{textgreek}

\usepackage[...]{hyperref}

\begin{document}
...
\section{stuff \textomega stuff}% vs. the current \section{stuff $\omega$
stuff} approach
...
\end{document}


On Sat, May 12, 2018 at 6:45 AM, Jean Filleau <jefil...@orange.fr> wrote:

> You should probably use the command \texorpdfstring{TEXstring}{PDFstring}
>
> See Hyperref-manualpdf p. 19 :
>
> hyperref takes the text for bookmarks from the arguments of commands like
> \section, which can contain things like math, colors, or font changes, none
> of which will display in bookmarks as is.
>
> \texorpdfstring{TEXstring}{PDFstring}
> For example,
> \section{Pythagoras:
> \texorpdfstring{$ a^2 + b^2 = c^2 $}{%
> a\texttwosuperior\ + b\texttwosuperior\ =
> c\texttwosuperior
> }%
> }
> \section{\texorpdfstring{\textcolor{red}}{}{Red} Mars}
>
> Jean
>
>
> Le 11/05/2018 à 14:32, Sasho Popov a écrit :
>
>> I use MikTeX 2.9. Now, according to the requirements of an AIMS journal,
>> I should use package hyperref. I obtain 27 warnings of the type
>>
>> Package hyperref Warning: Token not allowed in a PDF string
>> (PDFDocEncoding):
>> (hyperref)                removing `\omega' on input line 512.
>>
>> I do not know what to do and need help. Thank you in advance.
>>
>> Sasho
>>
>>
>> ---
>> This email has been checked for viruses by AVG.
>> http://www.avg.com
>>
>>
>> ------------------------------------------------------------------------------
>>
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Q: How can I leave the mailing list?
>> A: See https://miktex.org/faq/how-can-i-leave-the-mailing-list
>>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Q: How can I leave the mailing list?
> A: See https://miktex.org/faq/how-can-i-leave-the-mailing-list
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Q: How can I leave the mailing list?
A: See https://miktex.org/faq/how-can-i-leave-the-mailing-list

Reply via email to