Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. documentclass[a4paper,12pt, twoside, bibliography=totocnumbered]{scrreprt}
  2.  
  3. usepackage{ngerman}
  4. usepackage[utf8]{inputenc}
  5. usepackage{xspace}
  6. usepackage{mdframed}
  7. usepackage{xifthen}
  8. usepackage{enumitem}
  9. usepackage{xcolor}
  10. usepackage{lipsum}
  11.  
  12. usepackage[math]{iwona}
  13.  
  14. textwidth165mm
  15. setlength{marginparsep}{0cm}
  16. setlength{marginparwidth}{1.5cm}
  17. setlength{oddsidemargin}{-0.5cm}
  18. setlength{evensidemargin}{-1.5cm}
  19. setlength{topmargin}{-2cm}
  20. setlength{textheight}{25cm}
  21.  
  22. mdfdefinestyle{plainstyle}{%
  23. backgroundcolor=lightgray,
  24. hidealllines=true,
  25. }
  26.  
  27. setcounter{secnumdepth}{1}
  28. setcounter{tocdepth}{1}
  29.  
  30. newcommand{negation}[1]{underline{textbf{#1}}}
  31. newcommand{highlightened}[1]{textit{#1}}
  32. newcommand{examIntroduction}[0]{}
  33. newcommand{sectionDescription}[0]{}
  34. newcommand{itemVignette}[0]{}
  35. newcommand{questionVignette}[1]{ifthenelse{isempty{#1}}{#1}{#1vspace{3mm}}}
  36. newcommand{questionText}[0]{}
  37.  
  38. newcounter{itemobject}
  39. renewcommandtheitemobject{arabic{itemobject}}
  40.  
  41. newcounter{questionobjectcase}[itemobject]
  42. renewcommandthequestionobjectcase{
  43. stepcounter{questionobject}
  44. hfilltextbf{arabic{questionobject}} newline
  45. {normalfontfootnotesize{ (Fall arabic{itemobject})}}
  46. }
  47.  
  48. newcounter{questionobject}
  49. renewcommandthequestionobject{arabic{questionobject}}
  50.  
  51. newcommandtestquestion{
  52. begin{minipage}[t]{15mm}
  53. begin{flushright}
  54. textbf{stepcounter{questionobject}
  55. thequestionobject} hspace{3mm}
  56. end{flushright}
  57. end{minipage}
  58. hfill
  59. begin{minipage}[t]{15cm}
  60. questionVignette{The quick brown fox jumps over the lazy dog. Jeder wackere Bayer vertilgt bequem zwo Pfund Kalbshaxen. Heavy boxes perform waltzes and jigs. The five boxing wizards jump quickly. Five quacking Zephyrs jolt my wax bed. A quick movement of the enemy will jeopardize six gunboats. Portez ce vieux whisky au juge blond qui fume. Zornig und gequält rügen jeweils Pontifex und Volk die maßlose bischöfliche Hybris. Die heiße Zypernsonne quälte Max und Victoria ja böse auf dem Weg bis zur Küste.}par
  61. questionText{What is the correct answer?}par
  62.  
  63. begin{enumerate}[label=(Alph*)]
  64. item Nothing
  65. item Everything
  66. item Nearly nothing
  67. item All of them
  68. item I don't know
  69. end{enumerate}
  70. vspace{10mm}
  71. end{minipage}
  72. }
  73.  
  74. begin{document}
  75.  
  76. testquestion
  77. testquestion
  78. testquestion
  79.  
  80. pagebreak
  81. begin{addmargin}{1.5cm}
  82. setcounter{questionobjectcase} {0}
  83. Fallstudie Nr. stepcounter{itemobject}
  84. theitemobject
  85. begin{mdframed}[style=plainstyle,userdefinedwidth=15cm]
  86. itemVignette{lipsum}
  87. end{mdframed}
  88. end{addmargin}
  89.  
  90. testquestion
  91. testquestion
  92. testquestion
  93.  
  94. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement