On Wed, Aug 05, 2026 at 09:05:46AM +0100, David Carlisle wrote:
> On Wed, 5 Aug 2026 at 08:50, Patrice Dumas <[email protected]> wrote:
> 
> > On Sat, Jul 25, 2026 at 08:46:56PM +0100, David Carlisle wrote:
> > > the pdftitle and  alt text in includegraphics in the end have to be a PDF
> > > encoded string with no markup, so
> > > over the years latex has got better at "cleaning up text" basically now
> > any
> > > unicode text should work, the only characters that you need to quote are
> > %
> > > { }
> >
> > Seems like _ needs to be quoted too.  Maybe general text protection
> > needs to be done, so also protecting $#, or even ~.
> >
> 
> _ does not need to be quoted as you are making a string not typesetting

Indeed, I had an error because I use the following in tests to avoid
errors for image files not found:

\renewcommand{\includegraphics}[1]{\fbox{FIG \detokenize{#1}}}

When I protect everything there is no error even with the above
redefinition, so maybe it is more robust to protect.

-- 
Pat

Reply via email to