Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. DeclareOption{test}{%
  2. fancypagestyle{aSix}{%
  3. }
  4. }
  5. ProcessOptions
  6. newenvironment{test2}{%
  7. fancypagestyle{aSix2}{
  8. %Takes the pagestyle aSix and update it with additional values}
  9.  
  10. ProvidesClass{ishouldgivemoreinformation}
  11.  
  12. newififaSix
  13. DeclareOption{aSix}{globalaSixtrue}
  14.  
  15.  
  16. ProcessOptions
  17.  
  18. LoadClass{article}
  19.  
  20. RequirePackage{fancyhdr}
  21.  
  22. fancypagestyle{aSix}{%
  23. fancyhead[C]{Foo}
  24. renewcommand{headrulewidth}{5pt}
  25. }
  26.  
  27. ifaSix
  28. fancypagestyle{aSix2}{%
  29. pagestyle{aSix}%
  30. fancyfoot[c]{Foobar}%
  31. % Some updates here
  32. }
  33. else
  34. fancypagestyle{aSix2}{%
  35. pagestyle{aSix}%
  36. }
  37. fi
  38.  
  39. endinput
  40.  
  41. documentclass[aSix]{ishouldgivemoreinformation}
  42.  
  43.  
  44. pagestyle{aSix2}
  45. begin{document}
  46. FOO
  47. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement