summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fixltxhyph/fixltxhyph.sty
blob: 2061d4af150ac9dca24127d5e559b3a93941745a (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
%%
%% 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 Claudio Beccari
%%   All rights reserved
%% 
%%   License information appended
%% 
\ProvidesPackage{fixltxhyph}[2011/12/25 v.0.1 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}
\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{%
\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 20112012 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'.