Re: hyperref, \%, umlaut and a difference between xelatex and pdflatex

Pétiard François <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>
Le 09/10/2013 11:14, Niemann, Hartmut a écrit :
> Hello!
>
> I have trouble with a fragile command in a headline, and a subtle difference between pdflatex and xelatex.
>
> I need a percent sign in a headline.
> When switching from pdflatex to xelatex, hyperref breaks in an interesting way:
> If I have an "ü" umlaut (\"u) and  a \% in a headline, the hyperref bookmark file
> can not be parsed in the next pass.
> I thought \protect was meant to solve such problems, but for a reason I do not know
> the \protect has no effect.
> The translation of special characters to \0xx must be disabled somehow.
>
> (this is a fairly recent MiKTeX 2.9 on Win7)
>
> Does anybody have an idea what is going on here and who could/should fix what?

Hello

With the package bookmark, there is no problem :

\documentclass{article}
\usepackage{hyperref}%
\usepackage{bookmark}
\begin{document}
\tableofcontents
\section{Hallo}
\section*{Meldung 541: Level \protect\textgreater{} 95 \protect\%}
\addcontentsline{toc}{section}{Meldung 541: Level \protect\textgreater{} 
95 \protect\%}
\section*{Meldung 542: Fullstand \protect\textgreater{} 95 \protect\%}
\addcontentsline{toc}{section}{Meldung 542: Fullstand 
\protect\textgreater{} 95 \protect\%}
\section*{Meldung 543: F\"ullstand \protect\textgreater{} 95 \protect\%}
\addcontentsline{toc}{section}{Meldung 543: F\"ullstand 
\protect\textgreater{} 95 \protect\%}
\end{document}


François


-- 
[email protected]


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.