summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fonetika/fonetika.sty
blob: e07f4f04755b1383c0c302889a2f64168caebab3 (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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fonetika}[2006/09/27 Package for the Fonetika Dania fonts]

\def\fonetikashape{n}
\DeclareOption{sans}{\def\fonetikashape{ns}}
\DeclareOption{serif}{\def\fonetikashape{n}}
\ProcessOptions*

\def\fonetika@ti{T1}
\AtBeginDocument{%
  \ifx\encodingdefault\fonetika@ti %% T1 encoding is default
  \RequirePackage[T1]{fontenc}
  \else
  \RequirePackage[T1,\encodingdefault]{fontenc}
  \fi
}

\newcommand*\fonetikafamily{\fontencoding{T1}\fontfamily{fonetika}\fontshape{\fonetikashape}\selectfont}
\DeclareTextFontCommand{\fonetika}{\fonetikafamily}

\newcommand*\fonetikasansfamily{\fontencoding{T1}\fontfamily{fonetika}\fontshape{ns}\selectfont}
\DeclareTextFontCommand{\fonetikasans}{\fonetikasansfamily}

\newcommand*\fonetikaseriffamily{\fontencoding{T1}\fontfamily{fonetika}\fontshape{n}\selectfont}
\DeclareTextFontCommand{\fonetikaserif}{\fonetikaseriffamily}


\endinput