Generalhyperref interferes with \raisebox ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Zardoz
Posts: 8
Joined: Tue Apr 22, 2008 6:59 am

hyperref interferes with \raisebox ?

Post by Zardoz »

I've attached a MWE showing a bad interaction between hyperref and the command

\newcommand{\smalltilde}[0]{\raisebox{-1.5mm}{\~}}

Is hyperref redefining \raisebox ? How do I fix this?

Cheers,

Steve
Attachments
hyperref-smalltilde-debug.tex
(839 Bytes) Downloaded 331 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

hyperref interferes with \raisebox ?

Post by Stefan Kottwitz »

Hi Steve,

try

Code: Select all

\newcommand*\smalltilde{\raisebox{-1.5mm}{\~{}}}
Stefan
Zardoz
Posts: 8
Joined: Tue Apr 22, 2008 6:59 am

hyperref interferes with \raisebox ?

Post by Zardoz »

Stefan_K wrote:Hi Steve,

try

Code: Select all

\newcommand*\smalltilde{\raisebox{-1.5mm}{\~{}}}
Stefan
Thank you, that worked beautifully -- can you tell me why?

Steve
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: hyperref interferes with \raisebox ?

Post by Stefan Kottwitz »

Hi Steve,

\~ is also used for accents like \~{a} for ã. This may cause that error, \~{} prevents that.

Stefan
LaTeX.org admin
Post Reply