summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/inconsolata/inconsolata.sty
blob: 25443625b07931f98ade1a8df1d9aa2d7e7a0209 (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
% Copyright 2009 Karl Berry.
% You may freely use, modify and/or distribute this file.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{inconsolata}[2009/11/28 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{keyval}

% 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