<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
[non-HTML th017814.txt attached]<BR>
<BR>
I wrote a few minutes ago (about \textsmaller from relsize.sty):<BR>
<BR>
> Again I have a problem with hyperref under pdfTeX:<BR>
> <BR>
>     \pdfstringdefDisableCommands{\let\textsmaller\textrm}<BR>
>     <BR>
> does not avoid the warnings about \textsmaller in section titles, <BR>
> but <BR>
> <BR>
>     \let\acro\textsmaller<BR>
>     \pdfstringdefDisableCommands{\let\acro\textrm}<BR>
> <BR>
> avoids warnings about \acro in section titles. Why?<BR>
<BR>
I did not save those findings, and I rather never had <BR>
\textsmaller in a section title, but I used \acro <BR>
in section titles. I now believe that I again was very <BR>
tired, I hope you enjoy my blunder: <BR>
<BR>
I think I actually had<BR>
<BR>
    \let\acro\textsmaller<BR>
    \pdfstringdefDisableCommands{\let\textsmaller\textrm}<BR>
    <BR>
and wondered about warnings about \textsmaller.<BR>
<BR>
But actually they probably were warnings about the command <BR>
with name `textsmaller ' to which the command with the name <BR>
`textsmaller' expands in typesetting mode. After <BR>
\let\acro\textsmaller and \let\textsmaller\textrm <BR>
(my \pdfstringdefDisableCommands entry), \acro still expands <BR>
to the command with the name `textsmaller ', therefore <BR>
the warnings are the same as without \pdfstringdefDisableCommands.<BR>
<BR>
That changes with<BR>
<BR>
    \newcommand*{\acro}{\textsmaller}<BR>
    <BR>
Now \acro expands to \textsmaller, which after using the <BR>
\pdfstringdefDisableCommands is the same as \textrm <BR>
that hyperref accepts.<BR>
<BR>
That is an example of why \def\foo{\bar} sometimes is <BR>
more appropriate than \let\foo\bar.<BR>
<BR>
But alternatively, I can stick to \let\acro\textsmaller when I use<BR>
<BR>
    \pdfstringdefDisableCommands{%<BR>
        \expandafter\let\csname textsmaller \endcsname}<BR>
        <BR>
because this affects the command to which \acro expands.<BR>
<BR>
(I now have tested all those cases.)<BR>
<BR>
Cheers, <BR>
<BR>
    Uwe.<BR>
    
</BODY>
</HTML>