summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/hypbmsec.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/hypbmsec.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/hypbmsec.sty25
1 files changed, 20 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/hypbmsec.sty b/Master/texmf-dist/tex/latex/oberdiek/hypbmsec.sty
index f5d1ca01c1e..e82e65ba7ab 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/hypbmsec.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/hypbmsec.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 1998-2000, 2006 by
+%% Copyright (C) 1998-2000, 2006, 2007 by
%% Heiko Oberdiek <oberdiek@uni-freiburg.de>
%%
%% This work may be distributed and/or modified under the
@@ -29,7 +29,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hypbmsec}%
- [2006/02/20 v2.2 Bookmarks in sectioning commands (HO)]
+ [2006/03/05 v2.3 Bookmarks in sectioning commands (HO)]
\@ifundefined{hbs@do}{}{%
\PackageInfo{hypbmsec}{Package 'hypbmsec' is already loaded}
\endinput
@@ -75,13 +75,28 @@
\ifx\hbs@bmstring\relax
\hbs@seccmd{#1}%
\else
- \hbs@seccmd{\texorpdfstring{#1}\hbs@bmstring}%
+ \begingroup
+ \def\x##1{\endgroup
+ \hbs@seccmd{\texorpdfstring{#1}{##1}}%
+ }%
+ \expandafter\x\expandafter{\hbs@bmstring}%
\fi
\else
\ifx\hbs@bmstring\relax
- \hbs@seccmd[\hbs@tocstring]{#1}%
+ \expandafter\hbs@seccmd\expandafter[%
+ \expandafter{\hbs@tocstring}%
+ ]{#1}%
\else
- \hbs@seccmd[\texorpdfstring\hbs@tocstring\hbs@bmstring]{#1}%
+ \expandafter\expandafter\expandafter
+ \hbs@seccmd\expandafter\expandafter\expandafter[%
+ \expandafter\expandafter\expandafter
+ \texorpdfstring
+ \expandafter\expandafter\expandafter{%
+ \expandafter\hbs@tocstring\expandafter
+ }\expandafter{%
+ \hbs@bmstring
+ }%
+ ]{#1}%
\fi
\fi
}