-
Notifications
You must be signed in to change notification settings - Fork 0
/
rtthesis-papers-captions.sty
33 lines (28 loc) · 1.07 KB
/
rtthesis-papers-captions.sty
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
\ProvidesPackage{rtthesis-papers-captions}[2010/02/18 Additional paper captions for the rtthesis class]
%%% Note: It is too dangerous to have a default value for the encoding, so we
%%% must detect if the user fails to select it explicitly.
\newif\ifrtpcap@InputEncUTFUnspecified
\rtpcap@InputEncUTFUnspecifiedtrue
\newif\ifrtpcap@InputEncUTF
\DeclareOption{latin1}{\rtpcap@InputEncUTFfalse\rtpcap@InputEncUTFUnspecifiedfalse}
\DeclareOption{utf8}{\rtpcap@InputEncUTFtrue\rtpcap@InputEncUTFUnspecifiedfalse}
\ProcessOptions\relax
\ifrtpcap@InputEncUTFUnspecified
\PackageError{rtthesis-papers-captions}{%
One of the options `latin1' and\MessageBreak
`utf8' must be given to select the\MessageBreak
character encoding of the loaded\MessageBreak
captions%
}{%
One of the options `latin1' and\MessageBreak
`utf8' must be given to select the\MessageBreak
character encoding of the loaded\MessageBreak
captions%
}
\fi
\RequirePackage[english]{babel}
\ifrtpcap@InputEncUTF
\RequirePackage{rtthesis-papers-caption-defs-utf8}%
\else
\RequirePackage{rtthesis-papers-caption-defs}%
\fi