Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. documentclass[12pt,a4paper]{book}
  2. usepackage{enumitem,calc}
  3. setlist[enumerate]{labelsep=10pt,leftmargin=45pt}
  4. setlist[enumerate,1]{label= $arabic*.$}
  5. setlist[enumerate,2]{leftmargin=*,label=theenumi$arabic*$),ref=theenumi$arabic*$}
  6. usepackage{amsmath,amsthm,amssymb}
  7. newtheorem{exer}{Exercise}[section]
  8. usepackage{answers}
  9. Newassociation{solution}{Solution}{ans}
  10. renewcommand{Solutionlabel}[1]{#1}
  11. usepackage{multicol}
  12. begin{document}
  13. Opensolutionfile{ans}[exer1.1]
  14. begin{exer}label{exer1.1}mbox{ }
  15. begin{enumerate}
  16. item First problem
  17. begin{solution}
  18. Sol. of first problem
  19. end{solution}
  20. item Second problem
  21. begin{enumerate}
  22. begin{multicols}{2}
  23. item Sub second problem
  24. begin{solution}
  25. Sol. of 2.1
  26. end{solution}
  27. item Sub second problem
  28. begin{solution}
  29. Sol. of 2.2
  30. end{solution}
  31. item Sub second problem
  32. begin{solution}
  33. Sol. of 2.3
  34. end{solution}
  35. item Sub second problem
  36. begin{solution}
  37. Sol. of 2.4
  38. end{solution}
  39. end{multicols}
  40. end{enumerate}
  41. end{enumerate}
  42. end{exer}
  43. Closesolutionfile{ans}
  44.  
  45. bigskip
  46.  
  47. section*{centering Solutions of Chapter thechapter}
  48.  
  49. subsection*{Solutions of Exercise ref{exer1.1}}
  50. input{exer1.1}
  51. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement