Guest User

Untitled

a guest
Jul 11th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. documentclass[12pt]{article}
  2.  
  3. usepackage[ngerman]{babel}
  4. usepackage[a4paper, text={16.5cm, 25.2cm}, centering]{geometry}
  5. usepackage[sfdefault]{ClearSans}
  6. usepackage[utf8]{inputenc}
  7. setlength{parskip}{1.2ex}
  8. setlength{parindent}{0em}
  9.  
  10.  
  11. usepackage{tikz}
  12. usetikzlibrary{shapes.symbols,shadows}
  13.  
  14. definecolor{bancolor}{RGB}{62,96,111}
  15.  
  16.  
  17. DeclareRobustCommanddatebanner[2]{begin{tikzpicture}
  18. node[
  19. signal,
  20. signal from=north,
  21. signal pointer angle=150,
  22. fill=bancolor!75,
  23. drop shadow={shadow xshift=0pt, color=bancolor},
  24. rotate=-90,
  25. text width=2cm,
  26. text height=1.5cm,
  27. anchor=north west
  28. ] (banner) at (0,0) {};
  29. % the text in the banner
  30. node[
  31. anchor=south,
  32. text width=3cm,
  33. align=center,
  34. font=itshape]
  35. at ([yshift=1cm]banner.east) {#1 \ #2};
  36. end{tikzpicture}}
  37.  
  38. begin{document}
  39.  
  40. tableofcontents
  41.  
  42. section{datebanner{2. April}{2018}}
  43.  
  44.  
  45. vspace{64pt}
  46.  
  47. begin{tikzpicture}
  48. node[
  49. signal,
  50. signal from=north,
  51. signal pointer angle=150,
  52. fill=bancolor!75,
  53. drop shadow={shadow xshift=0pt, color=bancolor},
  54. rotate=-90,
  55. text width=2cm,
  56. text height=1.5cm,
  57. anchor=north west
  58. ] (banner) at (0,0) {};
  59. % the text in the banner
  60. node[
  61. anchor=south,
  62. text width=3cm,
  63. align=center,
  64. font=itshape]
  65. at ([yshift=1cm]banner.east) {28. April \ 2018};
  66. end{tikzpicture}
  67.  
  68. subsection{Vocabulaire}
  69.  
  70. subsection{film}
  71.  
  72.  
  73. subsection{grammaire}
  74.  
  75. subsubsection{Si + ...}
  76.  
  77. subsection{orthographie}
  78.  
  79. end{document}
  80.  
  81. documentclass[12pt]{article}
  82.  
  83. usepackage[ngerman]{babel}
  84. usepackage[a4paper, text={16.5cm, 25.2cm}, centering]{geometry}
  85. %usepackage[sfdefault]{ClearSans}
  86. usepackage[utf8]{inputenc}
  87. setlength{parskip}{1.2ex}
  88. setlength{parindent}{0em}
  89.  
  90. %added
  91. usepackage{titlesec}
  92. titleformat{section}{Largebfseries}{}{0pt}{}{}
  93.  
  94.  
  95. usepackage{tikz}
  96. usetikzlibrary{shapes.symbols,shadows}
  97.  
  98. definecolor{bancolor}{RGB}{62,96,111}
  99.  
  100. % changed, only one argument now
  101. DeclareRobustCommanddatebanner[1]{begin{tikzpicture}
  102. node[
  103. signal,
  104. signal to=south,
  105. signal pointer angle=150,
  106. fill=bancolor!75,
  107. drop shadow={shadow xshift=0pt, color=bancolor},
  108. minimum width=2.5cm,
  109. minimum height=3cm,
  110. align=center,
  111. font=normalsizeitshape
  112. ] (banner) at (0,0) {#1};
  113. end{tikzpicture}}
  114.  
  115. begin{document}
  116.  
  117. tableofcontents
  118.  
  119. section[1. Mai 2018]{datebanner{1. Mai\2018}}
  120.  
  121. section[2. April 2018]{datebanner{2. April\2018}}
  122.  
  123. section[27. September 2018]{datebanner{27. September\2018}}
  124.  
  125.  
  126. subsection{Vocabulaire}
  127.  
  128. subsection{film}
  129.  
  130.  
  131. subsection{grammaire}
  132.  
  133. subsubsection{Si + ...}
  134.  
  135. %subsection{orthographie}
  136.  
  137. end{document}
Add Comment
Please, Sign In to add comment