Guest User

Untitled

a guest
Aug 25th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. %=====================================================================
  2. % jhwhw.cls
  3. % Provide jhwhw.cls class
  4. %=====================================================================
  5.  
  6. %=====================================================================
  7. % Identification
  8. %=====================================================================
  9. \NeedsTeXFormat{LaTeX2e}
  10. \ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class]
  11.  
  12. \LoadClass[letterpaper, 12pt]{report}
  13. %\RequirePackage{jhwmath} Personal style file I use.
  14.  
  15. \RequirePackage{fancyhdr}
  16. \RequirePackage[top=1in,bottom=1in,left=1in,right=1in]{geometry}
  17. \RequirePackage{graphicx}
  18. \RequirePackage{empheq}
  19. \RequirePackage{ifthen}
  20. %\RequirePackage{jhwgraphics} Another personal style file I use.
  21.  
  22.  
  23. %=====================================================================
  24. % Commands
  25. %=====================================================================
  26.  
  27. \setlength{\headheight}{15pt}
  28. \lhead{\@author}\chead{\@title}\rhead{\today}
  29. \lfoot{}\cfoot{\thepage}\rfoot{}
  30. \pagestyle{fancy}
  31.  
  32. \ifx\pdfoutput\undefined %LaTeX
  33. \RequirePackage[ps2pdf,bookmarks=true]{hyperref}
  34. \hypersetup{ %
  35. pdfauthor = {\@author},
  36. pdftitle = {\@title},
  37. pdfcreator = {LaTeX with hyperref package},
  38. pdfproducer = {dvips + ps2pdf}
  39. }
  40. \else %PDFLaTeX
  41. \RequirePackage[pdftex,bookmarks=true]{hyperref}
  42. \hypersetup{ %
  43. pdfauthor = {\@author},
  44. pdftitle = {\@title},
  45. pdfcreator = {LaTeX with hyperref package},
  46. pdfproducer = {dvips + ps2pdf}
  47. }
  48. \pdfadjustspacing=1
  49. \fi
  50.  
  51. % Set up counters for problems and subsections
  52.  
  53. \newcounter{ProblemNum}
  54. \newcounter{SubProblemNum}[ProblemNum]
  55.  
  56. \renewcommand{\theProblemNum}{\arabic{ProblemNum}}
  57. \renewcommand{\theSubProblemNum}{\alph{SubProblemNum}}
  58.  
  59.  
  60. \newcommand*{\anyproblem}[1]{\newpage\subsection*{#1}}
  61. \newcommand*{\problem}[1]{\stepcounter{ProblemNum} %
  62. \anyproblem{Problem \theProblemNum. \; #1}}
  63. \newcommand*{\soln}[1]{\subsubsection*{#1}}
  64. \newcommand*{\solution}{\soln{Solution}}
  65. \renewcommand*{\part}{\stepcounter{SubProblemNum} %
  66. \soln{Part (\theSubProblemNum)}}
  67.  
  68. \renewcommand{\theenumi}{(\alph{enumi})}
  69. \renewcommand{\labelenumi}{\theenumi}
  70. \renewcommand{\theenumii}{\roman{enumii}}
  71.  
  72. % \def\problemmark{}
  73.  
  74. % % Typesetting problems
  75.  
  76. % % \newcommand*{\prob}[1]{\newpage \noindent \textbf{\Large #1}}
  77. % % \newcommand*{\problem}[1]{\stepcounter{ProblemNum} \prob{Problem %
  78. % % \theProblemNum.}}
  79. % % \newcommand*{\soln}[1]{\\ \noindent \textbf{\Large #1}}
  80. % % \newcommand*{\solution}{\soln{Solution}}
  81. % % \renewcommand*{\part}{\\ \noindent \stepcounter{SubProblemNum} %
  82. % % \textbf{\Large Part (\theSubProblemNum)}}
  83.  
  84. % \newcommand\problem{\@startsection{problem}{1}{\z@}%
  85. % {-3.25ex \@plus -1ex \@minus -.2ex}%
  86. % {1.5ex \@plus .2ex}%
  87. % {\normalfont\large\bfseries}}
Add Comment
Please, Sign In to add comment