summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fixltxhyph
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-04-02 23:56:18 +0000
committerKarl Berry <karl@freefriends.org>2012-04-02 23:56:18 +0000
commitea3699c08ce15cc51cb3fb3c02381b6acd11896b (patch)
tree3de48c3c204fcdf4e91542fe4c1cfa173eccb3b5 /Master/texmf-dist/tex/latex/fixltxhyph
parent4f96777e93485d3be29c6c9b1564693d1b7a095e (diff)
fixltxhyph (2apr12)
git-svn-id: svn://tug.org/texlive/trunk@25832 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fixltxhyph')
-rw-r--r--Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty32
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.
%%
%%