1

I would like to insert the "lesser or equal" symbol (\leq in latex) inside a TextField from the hypperref package. Is this possible ? And how ?

I get the error : "Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing `\leq' on input line 11."

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{Form}

$\leq$ \\

\TextField[value= $\leq$]{} % how to input this symbol here ?

\end{Form}
\end{document}

1 Answer 1

3

You can insert the unicode symbol:

\documentclass{article}
\usepackage[unicode]{hyperref}
\begin{document}
\begin{Form}

%\TextField[name=box,value=^^^^2264]{} % luatex
\TextField[name=box,value=\000\040\042\144]{} % pdftex

\end{Form}
\end{document}

enter image description here

3
  • I get the value "fi" inside the form instead of the symbol. I'm actually using pdfLaTex. Does that changes anything ?
    – A.Du
    Jan 20, 2019 at 17:39
  • My screenshot is from a pdflatex compilation. Did you try exactly my example? Jan 20, 2019 at 17:45
  • My bad, I looked at the wrong output.. Thanks a lot ! Would you have a link to find the different unicode values for different symbols for pdftex ?
    – A.Du
    Jan 20, 2019 at 17:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .