rtmsc.sty 1.0 KB

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