Guest User

Untitled

a guest
Mar 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. documentclass[11pt]{memoir}
  2. usepackage[T1]{fontenc}
  3. usepackage{lmodern}
  4. usepackage{titlesec}
  5. usepackage[version=0.96]{pgf}
  6. usepackage{tikz}
  7. usepackage{blindtext}
  8. usetikzlibrary{arrows,shapes,snakes,
  9. automata,backgrounds,
  10. petri,topaths} %To use diverse features from tikz
  11.  
  12. % Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
  13. % Styles document
  14. usepackage{calc,soul,fourier}
  15. makeatletter
  16. newlengthdlf@normtxtw
  17. setlengthdlf@normtxtw{textwidth}
  18. newsavebox{feline@chapter}
  19. newcommandfeline@chapter@marker[1][4cm]{%
  20. sboxfeline@chapter{%
  21. resizebox{!}{#1}{fboxsep=1pt%
  22. colorbox{gray}{color{white}thechapter}%
  23. }}%
  24. rotatebox{90}{%
  25. resizebox{%
  26. heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
  27. {!}{scshapeso@chapapp}}quad%
  28. raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
  29. }
  30. newcommandfeline@chm[1][4cm]{%
  31. sboxfeline@chapter{feline@chapter@marker[#1]}%
  32. makebox[0pt][c]{% aka rlap
  33. makebox[1cm][r]{useboxfeline@chapter}%
  34. }}
  35. makechapterstyle{daleifmodif}{
  36. renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
  37. renewcommandchaptitlefont{normalfontLargebfseriesscshape}
  38. renewcommandchapternamenum{} renewcommandprintchaptername{}
  39. renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
  40. renewcommandafterchapternum{parvskipmidchapskip}
  41. renewcommandprintchaptertitle[1]{color{gray}chaptitlefontraggedleft ##1par}
  42. }
  43. makeatother
  44. chapterstyle{daleifmodif}
  45. %
  46. begin{document}
  47. blinddocument
  48. end{document}
Add Comment
Please, Sign In to add comment