summaryrefslogtreecommitdiff
path: root/macros/generic/tracklang/samples/animals/animals.sty
blob: 6d26c98621b49c28d2516cfe9566060a3a0add84 (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
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{animals}[2019/11/30 v1.2.1 (NLCT) Sample package to test tracklang.sty]

\RequirePackage{tracklang}[2019/11/30]

\DeclareOption*{%
 \TrackIfKnownLanguage{\CurrentOption}%
 {\PackageInfo{animals}{Tracking language `\CurrentOption'}}% successful
 {% failed
   \PackageError{animals}%
   {Unknown language specification `\CurrentOption'}%
   {You need to supply either a known dialect label or a valid language tag}%
 }%
}
\ProcessOptions


% default definitions
\newcommand\catname{cat}
\newcommand\dogname{dog}
\newcommand\ladybirdname{bishy-barney-bee}

\AnyTrackedLanguages
{%
  \ForEachTrackedDialect{\this@dialect}{%
    \TrackLangRequireDialect{animals}{\this@dialect}%
  }%
}
{% no tracked languages, default already set up
}

\endinput