Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{amsmath, amssymb, mathtools, tikz, enumitem, fancyhdr, mleftright, wrapfig}
  3. \usetikzlibrary{calc}
  4. \usepackage[margin=1in]{geometry}
  5.  
  6. \usepackage{fontspec,xltxtra,xunicode}
  7. \defaultfontfeatures{Mapping=tex-text}
  8. \setromanfont[Mapping=tex-text]{Linux Libertine O}
  9. \setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Linux Libertine O}
  10. \setmonofont[Scale=MatchLowercase]{Linux Libertine O}
  11.  
  12. \newfontfamily{\IPA}[Scale=1]{Linux Libertine O}
  13.  
  14. \def\class{CS70}
  15. \def\header{HW #}
  16. \def\first{Kyle}
  17. \def\last{Tse}
  18.  
  19. \fancypagestyle{first}
  20. {
  21. \fancyhf{}
  22. \setlength{\headsep}{\baselineskip}
  23. \lhead{\class{}}
  24. \chead{\header}
  25. \rhead{\last, \first}
  26. \cfoot{\thepage}
  27. }
  28.  
  29. \thispagestyle{first}
  30.  
  31. %%%%%%%%%%%%Commands%%%%%%%%%%%%
  32. \newcommand{\diff}[1]{\mathrm{d}#1} % Upright differential
  33. \newcommand{\paren}[1]{\mleft( #1 \mright)}
  34. \newcommand{\zerospace}
  35. {
  36. \setlength{\abovedisplayskip}{0pt}
  37. \setlength{\belowdisplayskip}{0pt}
  38. \setlength{\abovedisplayshortskip}{0pt}
  39. \setlength{\belowdisplayshortskip}{0pt}
  40. }
  41. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  42.  
  43. %%%%%%%%%%Environments%%%%%%%%%%
  44. \newenvironment{Question} % Problem environment
  45. {
  46. \section
  47. }{}
  48. \newenvironment{Parts}
  49. {
  50. \begin{enumerate}[leftmargin = *, align = left, label = {\alph*.}, topsep = 0pt]
  51. }
  52. {
  53. \end{enumerate}
  54. }
  55. \newenvironment{Part}{\item}{}
  56. %%%%
  57. \newenvironment{solution} % Solution environment
  58. {
  59. \begin{enumerate}[leftmargin=0in]
  60. \item[\bfseries{Solution}]
  61. }
  62. {
  63. \end{enumerate}
  64. }
  65. %%%%
  66. \newenvironment{nospaceflalign*} % No extra vertical space before flalign* environment
  67. {
  68. \setlength{\abovedisplayskip}{-\baselineskip}
  69. \csname flalign*\endcsname
  70. }
  71. {
  72. \csname endflalign*\endcsname
  73. }
  74. %%%% MATH DEFINITIONS %%%%
  75. \let\Pr\relax
  76. \DeclareMathOperator{\Pr}{\mathbb{P}}
  77. \DeclareMathOperator{\Z}{\mathbb{Z}}
  78. \DeclareMathOperator{\E}{\mathbb{E}}
  79. \DeclareMathOperator{\R}{\mathbb{R}}
  80. \DeclareMathOperator{\D}{\mathrm{d}}
  81. \DeclareMathOperator{\var}{var}
  82. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  83.  
  84. %%%%%%%%%%%Homework%%%%%%%%%%%%%
  85. \begin{document}
  86. \section*{Sundry}
  87.  
  88. Text \\
  89. \fbox{\begin{minipage}{6.4in}\textit{I certify that all solutions are entirely in my words and that I have not looked at another student's solutions. I have credited all external sources in this write up.}\hfill\vspace{0.75in}\end{minipage}}
  90.  
  91. \bigskip%%%%%%%%%%%%%%%%%%%%%%%%%
  92.  
  93. \section{Section 1}
  94.  
  95. \begin{solution}
  96. Solution
  97. \end{solution}
  98.  
  99. \hrule %%%%%%%%%%%%%%%%%%%%%%%%%
  100.  
  101. \section{Section 2}
  102.  
  103. \begin{solution}
  104. Solution
  105. \end{solution}
  106.  
  107. \hrule %%%%%%%%%%%%%%%%%%%%%%%%%
  108.  
  109. \section{Section 3}
  110.  
  111. \begin{solution}
  112. Solution
  113. \end{solution}
  114.  
  115. \hrule %%%%%%%%%%%%%%%%%%%%%%%%%
  116.  
  117. \section{Section 4}
  118.  
  119. \begin{solution}
  120. Solution
  121. \end{solution}
  122.  
  123. \hrule %%%%%%%%%%%%%%%%%%%%%%%%%
  124.  
  125. \section{Section 5}
  126.  
  127. \begin{solution}
  128. Solution
  129. \end{solution}
  130.  
  131. \hrule %%%%%%%%%%%%%%%%%%%%%%%%%
  132.  
  133. \section{Section 6}
  134.  
  135. \begin{solution}
  136. Solution
  137. \end{solution}
  138.  
  139. \hrule %%%%%%%%%%%%%%%%%%%%%%%%%
  140.  
  141. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement