I'm receiving a ton of warnings á la "token not allowed in a pdf string", since most of my section titles contain math (see this post here: Hyperref - Token not allowed or here: Hyperref warning - Token not allowed in a PDF string).
I want to apply the solution provided to previous questions, i.e. write \texorpdfstring{\(math\)}{Lg}. However, I would rather want this to be done automatically. Could the math environment (within section titles) be changed to automatically add \textorpdfstring.
MWE:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{\(I\) cast warnings but I wish I wouldnt}
\section{\texorpdfstring{\(I\)}{I} dont}
\section{Of course me neither}
\end{document}

\(\alpha=\sum_{i=0}^n \beta_i\)? – egreg Apr 29 '16 at 10:07