summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inconsolata
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-07-05 19:06:11 +0000
committerKarl Berry <karl@freefriends.org>2013-07-05 19:06:11 +0000
commita4d341ae43329bb5bb112644ff349ca39fa5326b (patch)
treeb19467fbe71c1a3505905dbdab7784a7b4befede /Master/texmf-dist/tex/latex/inconsolata
parent5c47124489ae80b6125f67c75fc033d53aca1e68 (diff)
inconsolata (4jul13)
git-svn-id: svn://tug.org/texlive/trunk@31100 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/inconsolata')
-rw-r--r--Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty89
-rw-r--r--Master/texmf-dist/tex/latex/inconsolata/ts1zi4.fd30
2 files changed, 119 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty b/Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty
new file mode 100644
index 00000000000..c8bed851ad4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty
@@ -0,0 +1,89 @@
+% Copyright 2013 Michael Sharpe
+% Based initially on Karl Berry's inconsolata.sty.
+% You may freely use, modify and/or distribute this file.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{inconsolata}[2013/06/09 zi4a]
+
+\RequirePackage{textcomp}
+\RequirePackage{keyval}
+
+\newcount\zifour@ocount
+\newif\ifzifour@altzero
+\newif\ifzifour@noupq
+\define@key{zifour}{scaled}[1.0]{\def\zifour@scaled{s*[#1]}}
+
+\DeclareOption*{%
+ \begingroup
+ \edef\x{\endgroup
+ \noexpand\setkeys{zifour}{\CurrentOption}}%
+ \x}
+
+% by default, change \tt to mean zi4.
+\newcommand*{\zifour@default}{%
+ \renewcommand*{\ttdefault}{zi4}%
+}
+
+% option [nott] to avoid changing tt.
+\DeclareOption{nott}{%
+ \renewcommand*{\zifour@default}{}%
+}
+% option [noupquote] to prevent loading upquote.
+\DeclareOption{noupquote}{%
+ \zifour@noupqtrue}%
+
+% option var0---use unslashed zero (slashed is default)
+\DeclareOption{var0}{%
+ \zifour@altzerotrue\advance\zifour@ocount \tw@ %
+}
+\DeclareOption{varl}{%
+ \advance\zifour@ocount \@ne %
+}
+\DeclareOption{varqu}{%
+ \advance\zifour@ocount 4\relax %
+}
+
+\ProcessOptions*
+\zifour@default
+\edef\zifour@opt{\the\zifour@ocount}
+\ifzifour@altzero
+ \advance\zifour@ocount -\tw@
+\else
+ \advance\zifour@ocount \tw@
+\fi
+\edef\zifour@altopt{\the\zifour@ocount}
+% define an \altzero macro which flips to slashed, unslashed
+\def\altzero{{\fontfamily{zi4}%
+ \fontshape{scit}%
+ \selectfont 0}}
+
+\def\zifour@T@ne@nc{T1}
+\def\zifour@OT@ne@nc{OT1}
+\def\zifour@LY@ne@nc{LY1}
+\def\zifour@QX@nc{QX}
+\def\zifour@TQS{%
+\UndeclareTextCommand{\textquotesingle}{\encodingdefault}
+\DeclareTextSymbol{\textquotesingle}{TS1}{39}}
+
+\ifzifour@noupq% do nothing
+ % Try to correct for wrong slots for QX
+ \ifx\encodingdefault\zifour@QX@nc
+ \zifour@TQS
+ \else
+ \ifx\encodingdefault\zifour@LY@ne@nc
+ \zifour@TQS
+ \fi
+ \fi
+\else
+ \AtBeginDocument{%
+ \ifx\encodingdefault\zifour@T@ne@nc % do nothing
+ \else
+ \ifx\encodingdefault\zifour@OT@ne@nc % do nothing
+ \else
+ \zifour@TQS
+ \fi
+ \fi
+ \usepackage{upquote}}
+\fi
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/inconsolata/ts1zi4.fd b/Master/texmf-dist/tex/latex/inconsolata/ts1zi4.fd
new file mode 100644
index 00000000000..90adb4babd1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/inconsolata/ts1zi4.fd
@@ -0,0 +1,30 @@
+%Filename: ts1zi4.fd
+%Created by: tex zi4-drv
+%Created using fontinst v1.933
+
+%THIS FILE SHOULD BE PUT IN A TEX INPUTS DIRECTORY
+
+\ProvidesFile{ts1zi4.fd}
+ [2013/06/07 Fontinst v1.933 font definitions for TS1/zi4.]
+
+\expandafter\ifx\csname zifour@scaled\endcsname\relax
+ \let\zifour@scaled\@empty
+\fi
+
+\DeclareFontFamily{TS1}{zi4}{}
+
+\DeclareFontShape{TS1}{zi4}{m}{n}{
+ <-> \zifour@scaled ts1-zi4r
+}{}
+\DeclareFontShape{TS1}{zi4}{b}{n}{
+ <-> \zifour@scaled ts1-zi4b
+}{}
+\DeclareFontShape{TS1}{zi4}{m}{scit}{
+ <-> TS1/zi4/m/n
+}{}
+\DeclareFontShape{TS1}{zi4}{b}{scit}{
+ <-> TS1/zi4/b/n
+}{}
+
+
+\endinput