Advertisement
Guest User

lvuhbijonshoooop

a guest
Jun 21st, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.31 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{mwe} % new package from Martin scharrer
  3. \usepackage{lipsum,caption,mathtools}
  4. \usepackage{comment}
  5. \usepackage{mdframed}
  6. \usepackage[dvipsnames*,svgnames]{xcolor}
  7. \includecomment{Answer}
  8.  
  9. \mdfdefinestyle{mystyle}{leftmargin=0pt,%
  10. linecolor=Lavender,backgroundcolor=Ivory}
  11.  
  12. \setlength{\parindent}{0in}
  13. \begin{document}
  14.  
  15. \section*{Problem 1}
  16.  
  17. \paragraph*{a) } Prove that donkeys can fly if and only if they have more arms than penguins. \medskip
  18.  
  19. \begin{mdframed}[style=mystyle]
  20. \lipsum[1]
  21. %
  22.  \begin{figure}[!htbp]
  23. \centering
  24.        \includegraphics[width=3.0in]{example-image-a}
  25.        \caption{Caption for image}
  26.        \label{fig:some figure to accompany the answers}
  27. \end{figure}
  28. %
  29.  \lipsum[2]
  30. Q.E.D
  31. \end{mdframed}
  32.  
  33. \newpage
  34.  
  35. \section*{Problem 2}
  36.  
  37. \paragraph*{a) } If $(x+y)^2=99$ and $x^2+y^2 = 11$ what is $x\cdot y$? \medskip
  38.  
  39. \begin{Answer}
  40. \begin{mdframed}[style=mystyle]
  41. \lipsum[2]
  42. \begin{align*}
  43. (x+y)^2 & = 99 \\
  44. x^2 + y^2 + 2x\cdot y & = 99 \\
  45. x\cdot y & = 44 \\
  46. \end{align*}
  47. \lipsum[3]
  48. Q.E.D
  49. \end{mdframed}
  50. \end{Answer}
  51. \medskip
  52. Now is it posible finding $x-y$ from the information above? \medskip
  53.  
  54. \begin{Answer}
  55. \lipsum[6]
  56. Therefore it is not possible finding $x-y$ from the information given.
  57. \end{Answer}
  58.  
  59. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement