10

The not equal sign ($\neq$) becomes equal sign(=) in hyperref's bookmark. I know that \texorpdfstring will work for this, but I can not find \textneq, maybe another name?

Thanks in advance.

SamB
  • 2,837
Ma Ming
  • 2,306

2 Answers2

11

Just use the actual ≠ symbol:

\texorpdfstring{$A\neq B$}{A ≠ B}

You need to load hyperref with the [unicode] option for this to work.

Your source file also needs to be UTF-8 encoded.

Alan Munn
  • 218,180
  • pdflatex get mojibake, xelatex OK. – Ma Ming Jan 09 '11 at 18:25
  • 1
    @Ma Ming: I don't understand your comment. You don't need xelatex for this solution to work. What does 'pdflatex get mojibake' mean? Did the solution work for you? If so, please accept the answer. – Alan Munn Jan 09 '11 at 18:37
  • 2
    @Ma Ming: you need to make sure that the encoding of your input file is UTF-8 (it seems that 'mojibake'=unintelligible characters). – Alan Munn Jan 09 '11 at 19:45
  • Thanks, I figued out it. xelatex uses unicode by default. – Ma Ming Jan 09 '11 at 22:03
3

\texorpdfstring is OK. \neq is ≠ (unicode 0x2260)

Leo Liu
  • 77,365