summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/newtxtt
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-05-04 21:35:34 +0000
committerKarl Berry <karl@freefriends.org>2014-05-04 21:35:34 +0000
commitd14c2b8b85a2d293f88f66729a7ddae211daedf7 (patch)
tree77e13b6854829efecc3de3edf088bee21d5405ab /Master/texmf-dist/tex/latex/newtxtt
parentf9822caf9ce5ac6d46ea90d6c8ceff29a96a4fb3 (diff)
newtxtt (4may14)
git-svn-id: svn://tug.org/texlive/trunk@33819 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/newtxtt')
-rw-r--r--Master/texmf-dist/tex/latex/newtxtt/newtxtt.sty39
-rw-r--r--Master/texmf-dist/tex/latex/newtxtt/t1newtxtt.fd65
-rw-r--r--Master/texmf-dist/tex/latex/newtxtt/ts1newtxtt.fd57
3 files changed, 161 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/newtxtt/newtxtt.sty b/Master/texmf-dist/tex/latex/newtxtt/newtxtt.sty
new file mode 100644
index 00000000000..c19ec5c6209
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/newtxtt/newtxtt.sty
@@ -0,0 +1,39 @@
+\NeedsTeXFormat{LaTeX2e}
+\def\filedate{2014/04/28}
+\def\fileversion{1.0}
+\ProvidesPackage{newtxtt}[\filedate\space v\fileversion]
+\message{`newtxtt' v\fileversion, \filedate\space Typewriter text macros based on txfonts (msharpe)}
+
+\RequirePackage[T1]{fontenc}
+\RequirePackage{textcomp}
+\DeclareEncodingSubset{TS1}{newtxtt}{0}
+
+\edef\newtxtt@fig{a}
+\IfFileExists{xkeyval.sty}{
+ \RequirePackage{xkeyval}
+ \define@choicekey*+{newtxtt.sty}{zerostyle}[\val\nr]{a,b,c,d}[a]{%
+ \ifcase\nr\relax
+ \edef\newtxtt@fig{a}
+ \or
+ \edef\newtxtt@fig{b}
+ \or
+ \edef\newtxtt@fig{c}
+ \or
+ \edef\newtxtt@fig{d}
+ \fi
+ }{%
+ \PackageWarning{newtxtt}{Option zerostyle must be one of a,b,c,d. Using `a'.}%
+ }
+ \newcommand*{\newtxtt@scale}{1}
+ \DeclareOptionX{scale}{\renewcommand*{\newtxtt@scale}{##1}}
+ \DeclareOptionX{scaled}{\renewcommand*{\newtxtt@scale}{##1}}
+}{
+ \let\DeclareOptionX\DeclareOption
+ \let\ExecuteOptionsX\ExecuteOptions
+ \let\ProcessOptionsX\ProcessOptions
+}
+\ProcessOptionsX<newtxtt.sty>
+
+\renewcommand*{\ttdefault}{newtxtt}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/newtxtt/t1newtxtt.fd b/Master/texmf-dist/tex/latex/newtxtt/t1newtxtt.fd
new file mode 100644
index 00000000000..1d93922e57e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/newtxtt/t1newtxtt.fd
@@ -0,0 +1,65 @@
+\ProvidesFile{t1newtxtt.fd}
+ [2014/04/28 Font definitions for T1/newtxtt.]
+
+\expandafter\ifx\csname newtxtt@scale\endcsname\relax
+ \let\newtxtt@@scale\@empty
+\else
+ \edef\newtxtt@@scale{s*[\csname newtxtt@scale\endcsname]}%
+\fi
+
+\expandafter\ifx\csname newtxtt@fig\endcsname\relax
+ \def\newtxtt@@fig{a}
+\else
+ \let\newtxtt@@fig\newtxtt@fig
+\fi
+
+\DeclareFontFamily{T1}{newtxtt}{\hyphenchar \font\m@ne}
+
+\DeclareFontShape{T1}{newtxtt}{m}{n}{
+ <-> \newtxtt@@scale newtxtt\newtxtt@@fig
+}{}
+\DeclareFontShape{T1}{newtxtt}{b}{n}{
+ <-> \newtxtt@@scale newtxbtt\newtxtt@@fig
+}{}
+\DeclareFontShape{T1}{newtxtt}{bx}{n}{
+ <-> ssub * newtxtt/b/n
+}{}
+
+\DeclareFontShape{T1}{newtxtt}{m}{sc}{ %cap & small cap
+ <-> \newtxtt@@scale newtxttsc\newtxtt@@fig
+}{}
+\DeclareFontShape{T1}{newtxtt}{m}{sl}{ %slanted
+ <-> \newtxtt@@scale newtxttsl\newtxtt@@fig
+}{}
+\DeclareFontShape{T1}{newtxtt}{m}{it}{ %italic
+ <-> ssub * newtxtt/m/sl%
+}{}
+\DeclareFontShape{T1}{newtxtt}{m}{ui}{ %unslanted italic
+ <-> ssub * newtxtt/m/sl%
+}{}
+\DeclareFontShape{T1}{newtxtt}{b}{sc}{ %bold extended cap & small cap
+ <-> \newtxtt@@scale newtxbttsc\newtxtt@@fig
+}{}
+\DeclareFontShape{T1}{newtxtt}{b}{sl}{ %bold extended slanted
+ <-> \newtxtt@@scale newtxbttsl\newtxtt@@fig
+}{}
+\DeclareFontShape{T1}{newtxtt}{b}{it}{ %bold extended italic
+ <-> ssub * newtxtt/b/sl%
+}{}
+\DeclareFontShape{T1}{newtxtt}{bx}{ui}{ %bold extended unslanted italic
+ <-> ssub * newtxtt/b/sl%
+}{}
+\DeclareFontShape{T1}{newtxtt}{bx}{sc}{ %bold cap & small cap
+ <-> ssub * newtxtt/b/sc%
+}{}
+\DeclareFontShape{T1}{newtxtt}{bx}{sl}{ %bold slanted
+ <-> ssub * newtxtt/b/sl%
+}{}
+\DeclareFontShape{T1}{newtxtt}{b}{it}{ %bold italic
+ <-> ssub * newtxtt/b/sl%
+}{}
+\DeclareFontShape{T1}{newtxtt}{b}{ui}{ %bold unslanted italic
+ <-> ssub * newtxtt/b/sl%
+}{}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/newtxtt/ts1newtxtt.fd b/Master/texmf-dist/tex/latex/newtxtt/ts1newtxtt.fd
new file mode 100644
index 00000000000..9734a20248d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/newtxtt/ts1newtxtt.fd
@@ -0,0 +1,57 @@
+\ProvidesFile{ts1newtxtt.fd}
+ [2014/04/29]
+
+\expandafter\ifx\csname newtxtt@scale\endcsname\relax
+ \let\newtxtt@@scale\@empty
+\else
+ \edef\newtxtt@@scale{s*[\csname newtxtt@scale\endcsname]}%
+\fi
+
+\DeclareFontFamily{TS1}{newtxtt}{\hyphenchar \font\m@ne}
+\DeclareFontShape{TS1}{newtxtt}{m}{n}{ %medium
+ <-> \newtxtt@@scale tcxtt%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{m}{sc}{ %cap & small cap
+ <->ssub * newtxtt/m/n%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{m}{sl}{ %slanted
+ <-> \newtxtt@@scale tcxttsl%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{m}{it}{ %italic
+ <->ssub * newtxtt/m/sl%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{m}{ui}{ %unslanted italic
+ <->ssub * newtxtt/m/it%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{bx}{n}{ %bold extended
+ <-> \newtxtt@@scale tcxbtt%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{bx}{sc}{ %bold extended cap & small cap
+ <->ssub * newtxtt/bx/n%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{bx}{sl}{ %bold extended slanted
+ <-> \newtxtt@@scale tcxbttsl%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{bx}{it}{ %bold extended italic
+ <->ssub * newtxtt/bx/sl%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{bx}{ui}{ %bold extended unslanted italic
+ <->ssub * newtxtt/bx/it%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{b}{n}{ %bold
+ <->ssub * newtxtt/bx/n%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{b}{sc}{ %bold cap & small cap
+ <->ssub * newtxtt/bx/sc%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{b}{sl}{ %bold slanted
+ <->ssub * newtxtt/bx/sl%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{b}{it}{ %bold italic
+ <->ssub * newtxtt/bx/it%
+}{}
+\DeclareFontShape{TS1}{newtxtt}{b}{ui}{ %bold unslanted italic
+ <->ssub * newtxtt/bx/ui%
+}{}
+
+\endinput