rtphd.sty 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. \ProvidesPackage{rtphd}[2010/03/24 rtphd Style v. 0.02a]
  2. \NeedsTeXFormat{LaTeX2e}
  3. % Some suff that must be declared
  4. \DeclareOption{nophdlist}{%
  5. \AtEndOfPackage{\let\phdlist=\relax}}
  6. \DeclareOption{noextras}{%
  7. \ExecuteOptions{nophdlist}}
  8. %%% Note: It is too dangerous to have a default value for the encoding, so we
  9. %%% must detect if the user fails to select it explicitly.
  10. \newif\ifrtphd@InputEncUTFUnspecified
  11. \rtphd@InputEncUTFUnspecifiedtrue
  12. \newif\ifrtphd@InputEncUTF
  13. \DeclareOption{latin1}{\rtphd@InputEncUTFfalse\rtphd@InputEncUTFUnspecifiedfalse}
  14. \DeclareOption{utf8}{\rtphd@InputEncUTFtrue\rtphd@InputEncUTFUnspecifiedfalse}
  15. \ProcessOptions\relax
  16. \ifrtphd@InputEncUTFUnspecified
  17. \PackageError{rtphd}{%
  18. One of the options `latin1' and `utf8' must\MessageBreak
  19. be given to select the character encoding\MessageBreak
  20. of the loaded captions%
  21. }{%
  22. One of the options `latin1' and `utf8' must\MessageBreak
  23. be given to select the character encoding\MessageBreak
  24. of the loaded captions%
  25. }
  26. \fi
  27. \ifrtphd@InputEncUTF
  28. \RequirePackage{rtphd-defs-utf8}%
  29. \else
  30. \RequirePackage{rtphd-defs}%
  31. \fi