diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty b/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty index 2061d4af150..1a422ed757a 100644 --- a/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty +++ b/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty @@ -7,29 +7,39 @@ %% fixltxhyph.dtx (with options: `style') %% ______________________________________________________ %% The FiXLtxHyph package -%% Copyright (C) 2011 Claudio Beccari +%% Copyright (C) 2011-2012 Claudio Beccari %% All rights reserved %% %% License information appended %% -\ProvidesPackage{fixltxhyph}[2011/12/25 v.0.1 Small fix for hyphenating +\ProvidesPackage{fixltxhyph}[2011/04/02 v.0.4 Small fix for hyphenating emphasized words preceded by vocalic elision] \NeedsTeXFormat{LaTeX2e}[2011/06/27] -\@ifpackageloaded{babel}{}{% -\PackageWarning{FixLtXHyph}{This package must be loaded after babel}% -\endinput} -\RequirePackage{etoolbox} +\@ifpackageloaded{babel}{}{\@ifpackageloaded{polyglossia}{}{% +\PackageWarning{FixLtXHyph}{This package must be loaded after babel + or polyglossia}% +\endinput}} +\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} \newcommand\hz{\nobreak\hskip\z@skip} \letcs{\FLH@originalem}{em } \let\FLH@newem\FLH@originalem \preto\FLH@newem{\hz} -\def\@tempB{catalan,french,italian,romansh} -\@for\@tempA:=\@tempB\do{% +\def\@tempB{catalan,french,italian,romansh,friulan,furlan} +\@ifpackageloaded{polyglossia}% +{\@for\@tempA:=\@tempB\do{% +\expandafter\ifx\csname captions\@tempA\endcsname\relax\else +\expandafter\addto\csname noextras@\@tempA\endcsname{\cslet{em }{\FLH@originalem}}% +\expandafter\addto\csname blockextras@\@tempA\endcsname{\cslet{em }{\FLH@newem}}% +\expandafter\addto\csname inlineextras@\@tempA\endcsname{\cslet{em }{\FLH@newem}}% +\fi}% +}{\@for\@tempA:=\@tempB\do{% \expandafter\ifx\csname captions\@tempA\endcsname\relax\else \expandafter\addto\csname extras\@tempA\endcsname{\cslet{em }{\FLH@newem}}% -\expandafter\addto\csname noextras\@tempA\endcsname{\cslet{em }{\FLH@originalem}}\fi} +\expandafter\addto\csname noextras\@tempA\endcsname{\cslet{em }{\FLH@originalem}}% +\fi}% +} %% -%% Copyright 20112012 Claudio Beccari +%% Copyright 2011-2012 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -42,7 +52,7 @@ emphasized words preceded by vocalic elision] %% documentation fixltxhyph.pdf. %% %% -%% By running pdflatex on fixltxhyph.dtx the user gets the sty file, +%% By running pdflatex on fixltxhyph.dtx the user gets the .sty file, %% and the English documentation file in pdf format. %% %% |