summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty
blob: 1a422ed757a6d7a0615f2d6cc19664556a37c188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%%
%% This is file `fixltxhyph.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% fixltxhyph.dtx  (with options: `style')
%%   ______________________________________________________
%%   The FiXLtxHyph package
%%   Copyright (C) 2011-2012 Claudio Beccari
%%   All rights reserved
%% 
%%   License information appended
%% 
\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}{}{\@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,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}%
}
%% 
%% Copyright 2011-2012 Claudio Beccari
%% 
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%% 
%% This work is "author-maintained"
%% 
%% This work consists of this file .dtx, a README file
%% the derived file fixltxhyph.sty, and the English
%% documentation fixltxhyph.pdf.
%% 
%% 
%% By running pdflatex on fixltxhyph.dtx the user gets the .sty file,
%% and the English documentation file in pdf format.
%% 
%%
%% End of file `fixltxhyph.sty'.