daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Dec 9th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section{Differential Equations}
  2.  
  3.     begin{questions}
  4.  
  5.          begin{question}
  6.               ... Question here ...
  7.          end{question}
  8.  
  9.          begin{answer}
  10.               ... Answer here ...
  11.          end{answer}
  12.  
  13.     end{questions}
  14.    
  15. begin{question}
  16. item
  17. end{question}
  18.    
  19. makeatletter
  20. newtoksanswerscollect
  21. newcounter{question}
  22. setcounter{question}{0}
  23. defthequestion{{bfseries{Question arabic{question}. }}\}
  24.  
  25. defanswer#1{%
  26. protected@edefanswertmp{%
  27. theanswerscollectvspace{.5baselineskip}noindentthequestion#1par}%
  28. paranswerscollect=expandafter{answertmp}}
  29. defprintanswers{theanswerscollectanswerscollect={}}
  30. definitbox{answerscollect={parnoindent Answers:par}}
  31.  
  32. newcommand{question}[1]{stepcounter{question}parnoindentthequestion#1}
  33. makeatother
  34.    
  35. documentclass{exam}
  36. %printanswers
  37. begin{document}
  38.  
  39. section{Differential Equations}
  40. begin{questions}
  41. question ... Short question here ... answerline[Short answer]
  42. question ... Question here ...
  43.  
  44. begin{solution}[.2in]
  45. ... Answer here ...
  46. end{solution}
  47.  
  48. question Long descriptive question about everything
  49.  
  50. begin{solutionorlines}[2in]
  51. Long descriptive answer is a long descriptive answer that is a long descriptive answer that is along descriptive answer that is along descriptive answer that is along descriptive answer that is a lie.
  52. end{solutionorlines}
  53.  
  54. question Draw an arrow showing north direction.
  55.  
  56. begin{solutionorbox}[2in]
  57. $uparrow$
  58. end{solutionorbox}
  59.  
  60. end{questions}
  61.  
  62. ifprintanswers
  63. Stuff to appear only when answers textbf{are} being printed.
  64. else
  65. Stuff to appear only when answers textbf{are not} being printed.
  66. fi
  67.  
  68. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top