diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:56:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:56:58 +0000 |
commit | 047f0df803e28a06551e2697417ff6ae381ef329 (patch) | |
tree | 3907dae4f14532d587fb83f6255d6d20ee7afe94 /Master/texmf-dist/tex/latex/hyphenat | |
parent | a95a5bf857bfe763e22fc8d0b9b9279f9291d7da (diff) |
hyphenat
git-svn-id: svn://tug.org/texlive/trunk@986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyphenat')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyphenat/hyphenat.sty | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/hyphenat/hyphenat.sty b/Master/texmf-dist/tex/latex/hyphenat/hyphenat.sty new file mode 100644 index 00000000000..2e9f72f66af --- /dev/null +++ b/Master/texmf-dist/tex/latex/hyphenat/hyphenat.sty @@ -0,0 +1,120 @@ +%% +%% This is file `hyphenat.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% hyphenat.dtx (with options: `usc') +%% +%% Author: Peter Wilson (CUA and NIST) +%% now at: peter.r.wilson@boeing.com +%% Copyright 1998, 1999 Peter R. Wilson +%% +%% This program is provided under the terms of the +%% LaTeX Project Public License distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{hyphenat}[2001/01/02 v2.3a 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'. |