diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/fixltxhyph')
-rw-r--r-- | Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty b/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty index a74cf987c48..2061d4af150 100644 --- a/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty +++ b/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty @@ -18,17 +18,18 @@ emphasized words preceded by vocalic elision] \@ifpackageloaded{babel}{}{% \PackageWarning{FixLtXHyph}{This package must be loaded after babel}% \endinput} +\RequirePackage{etoolbox} \newcommand\hz{\nobreak\hskip\z@skip} -\let\originalem\em -\let\newem\em -\addto\newem{\hz} +\letcs{\FLH@originalem}{em } +\let\FLH@newem\FLH@originalem +\preto\FLH@newem{\hz} \def\@tempB{catalan,french,italian,romansh} \@for\@tempA:=\@tempB\do{% \expandafter\ifx\csname captions\@tempA\endcsname\relax\else -\expandafter\addto\csname extras\@tempA\endcsname{\let\em\newem}% -\expandafter\addto\csname noextras\@tempA\endcsname{\let\em\originalem}\fi} +\expandafter\addto\csname extras\@tempA\endcsname{\cslet{em }{\FLH@newem}}% +\expandafter\addto\csname noextras\@tempA\endcsname{\cslet{em }{\FLH@originalem}}\fi} %% -%% Copyright 2011 Claudio Beccari +%% Copyright 20112012 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of |