summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-05 23:45:52 +0000
committerKarl Berry <karl@freefriends.org>2009-06-05 23:45:52 +0000
commitbcf8a283f49f11085e8fa38f2dd47905a8e9b060 (patch)
tree732b21e3d29bae4e7aa5969e6357047657dd3402 /Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty
parenta833487de83417141e1037d2f4ba3878fd63f37b (diff)
new font inconsolata
git-svn-id: svn://tug.org/texlive/trunk@13639 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty')
-rw-r--r--Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty39
1 files changed, 39 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..c2f6526b7b3
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty
@@ -0,0 +1,39 @@
+% Copyright 2009 Karl Berry.
+% You may freely use, modify and/or distribute this file.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{inconsolata}[2009/05/30 Inconsolata]
+
+% Without this, \texteuro and the like simply fail, so we may as well
+% always include it.
+\RequirePackage{textcomp}
+
+% How we parse our options.
+\RequirePackage{xkeyval}
+
+% option [scaled=R] to scale font at loading.
+\define@key{fifour}{scaled}[1.0]{\def\fifour@scaled{s*[#1]}}
+
+\DeclareOption*{%
+ \begingroup
+ \edef\x{\endgroup
+ \noexpand\setkeys{fifour}{\CurrentOption}}%
+ \x}
+\newcommand*{\fifour@style}{}
+
+% by default, change \tt to mean Inconsolata.
+\newcommand*{\fifour@default}{%
+ \renewcommand*{\ttdefault}{fi4\fifour@style}%
+}
+
+% option [nott] to avoid changing tt.
+\DeclareOption{nott}{%
+ \renewcommand*{\fifour@default}{}%
+}
+
+% has to be after fontenc, too much trouble.
+%\DeclareTextSymbol{\j}{LY1}{17}
+
+\ProcessOptions*
+\fifour@default
+\endinput