summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyphenat/hyphenat.sty
blob: 8d4824e6f944a28d2fd40d1220d6aa773ec3c02f (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
%%
%% This is file `hyphenat.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hyphenat.dtx  (with options: `usc')
%% 
%% -----------------------------------------------------------------
%%   Author: Peter Wilson, Herries Press
%%   Maintainer: Will Robertson (will dot robertson at latex-project dot org)
%%   Copyright 2001, 2002, 2003, 2004 Peter R. Wilson
%% 
%%   This work may be distributed and/or modified under the
%%   conditions of the LaTeX Project Public License, either
%%   version 1.3c of this license or (at your option) any
%%   later version: <http://www.latex-project.org/lppl.txt>
%% 
%%   This work has the LPPL maintenance status "maintained".
%%   The Current Maintainer of this work is Will Robertson.
%% 
%%   This work consists of the files listed in the README file.
%% -----------------------------------------------------------------
%% 

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hyphenat}[2009/09/02 v2.3c hyphenation utilities]
\DeclareOption{none}%
    {\hyphenpenalty=10000\exhyphenpenalty=10000\relax}
\DeclareOption{htt}{%
  \PackageWarningNoLine{hyphenat}{%
      *******************************\MessageBreak
      * You have used the htt option.\MessageBreak
      * You are likely to get many Font Warning messages.\MessageBreak
      * These can usually be ignored.\MessageBreak
      *******************************}
  \AtBeginDocument{\touchttfonts\touchextrattfonts\normalfont}}
\ProcessOptions
\newlanguage\langwohyphens
\newcommand{\prw@zbreak}{\nobreak\hskip\z@skip}
\newcommand{\BreakableUnderscore}{\leavevmode%
  \prw@zbreak\textunderscore\discretionary{-}{}{}\prw@zbreak}
\DeclareRobustCommand{\_}{%
  \ifmmode\nfss@text{\textunderscore}\else\BreakableUnderscore\fi}
\newcommand{\BreakableBackslash}{\leavevmode%
  \prw@zbreak\textbackslash\discretionary{-}{}{}\prw@zbreak}
\newcommand{\BreakableSlash}{\leavevmode%
  \prw@zbreak/\discretionary{-}{}{}\prw@zbreak}
\newcommand{\BreakablePeriod}{\leavevmode%
  \prw@zbreak.\discretionary{-}{}{}\prw@zbreak}
\newcommand{\BreakableColon}{\leavevmode%
  \prw@zbreak:\discretionary{-}{}{}\prw@zbreak}
\DeclareRobustCommand{\bshyp}{%
  \ifmmode\backslash\else\BreakableBackslash\fi}
\DeclareRobustCommand{\fshyp}{%
  \ifmmode/\else\BreakableSlash\fi}
\DeclareRobustCommand{\dothyp}{%
  \ifmmode.\else\BreakablePeriod\fi}
\DeclareRobustCommand{\colonhyp}{%
  \ifmmode:\else\BreakableColon\fi}
\newcommand{\BreakableHyphen}{\leavevmode%
  \prw@zbreak-\discretionary{}{}{}\prw@zbreak}
\DeclareRobustCommand{\hyp}{%
  \ifmmode-\else\BreakableHyphen\fi}
\DeclareTextFontCommand{\textnhtt}{\nhttfamily}
\DeclareRobustCommand{\nhttfamily}
  {\not@math@alphabet\nhttfamily\mathtt
   \fontfamily\ttdefault\selectfont\language\langwohyphens}
\newcommand{\nohyphens}[1]{{\language\langwohyphens #1}}
\newcommand{\touchttfonts}{%
  \fontfamily{\ttdefault}\fontseries{m}\fontshape{n}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{m}\fontshape{it}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{m}\fontshape{sl}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{m}\fontshape{sc}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{b}\fontshape{n}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{b}\fontshape{it}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{b}\fontshape{sl}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{b}\fontshape{sc}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{bx}\fontshape{n}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{bx}\fontshape{it}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{bx}\fontshape{sl}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{bx}\fontshape{sc}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{sb}\fontshape{n}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{sb}\fontshape{it}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{sb}\fontshape{sl}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{sb}\fontshape{sc}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{c}\fontshape{n}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{c}\fontshape{it}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{c}\fontshape{sl}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{c}\fontshape{sc}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{l}\fontshape{n}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{l}\fontshape{it}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{l}\fontshape{sl}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{l}\fontshape{sc}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{m}\fontshape{ui}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{bx}\fontshape{ui}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
  \fontfamily{\ttdefault}\fontseries{m}\fontshape{In}\selectfont%
    \hyphenchar\font=\defaulthyphenchar
}
\newcommand{\touchextrattfonts}{}
\endinput
%%
%% End of file `hyphenat.sty'.