Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. NeedsTeXFormat{LaTeX2e}
  2. ProvidesClass{myclass}
  3. RequirePackage{kvoptions}
  4.  
  5. DeclareBoolOption{foo}
  6.  
  7. ProcessKeyvalOptions*
  8.  
  9. ifmyclass@foo
  10. def@title{foo}
  11. else
  12. def@title{bar}
  13. fi
  14.  
  15. ProcessOptionsrelax
  16.  
  17. LoadClass{article}
  18.  
  19. documentclass[foo]{myclass}
  20.  
  21. begin{document}
  22.  
  23. maketitle
  24. end{document}
  25.  
  26. LaTeX Warning: Unused global option(s):
  27. [foo].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement