rtthesis-papers-captions.sty 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. \ProvidesPackage{rtthesis-papers-captions}[2010/02/18 Additional paper captions for the rtthesis class]
  2. %%% Note: It is too dangerous to have a default value for the encoding, so we
  3. %%% must detect if the user fails to select it explicitly.
  4. \newif\ifrtpcap@InputEncUTFUnspecified
  5. \rtpcap@InputEncUTFUnspecifiedtrue
  6. \newif\ifrtpcap@InputEncUTF
  7. \DeclareOption{latin1}{\rtpcap@InputEncUTFfalse\rtpcap@InputEncUTFUnspecifiedfalse}
  8. \DeclareOption{utf8}{\rtpcap@InputEncUTFtrue\rtpcap@InputEncUTFUnspecifiedfalse}
  9. \ProcessOptions\relax
  10. \ifrtpcap@InputEncUTFUnspecified
  11. \PackageError{rtthesis-papers-captions}{%
  12. One of the options `latin1' and\MessageBreak
  13. `utf8' must be given to select the\MessageBreak
  14. character encoding of the loaded\MessageBreak
  15. captions%
  16. }{%
  17. One of the options `latin1' and\MessageBreak
  18. `utf8' must be given to select the\MessageBreak
  19. character encoding of the loaded\MessageBreak
  20. captions%
  21. }
  22. \fi
  23. \RequirePackage[english]{babel}
  24. \ifrtpcap@InputEncUTF
  25. \RequirePackage{rtthesis-papers-caption-defs-utf8}%
  26. \else
  27. \RequirePackage{rtthesis-papers-caption-defs}%
  28. \fi