SHARE
TWEET

Untitled

a guest Jun 26th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[a4paper]{article}
  2.  
  3. usepackage[margin=1.0cm,noheadfoot]{geometry}
  4. usepackage{atbegshi,tikz,lipsum}
  5. pagestyle{empty}
  6.  
  7. AtBeginShipout{ifnumvalue{page}>0%
  8. begin{tikzpicture}[remember picture,overlay]%
  9. fill[gray] (current page.north west) rectangle %
  10. ++(5.0cm,-paperheight);%
  11. end{tikzpicture}%
  12. fi}
  13.  
  14. begin{document}
  15.  
  16. % Dummy code for first template page with vertical bar
  17. begin{tikzpicture}[remember picture,overlay]%
  18. fill[gray] (current page.north west) rectangle %
  19. ++(5.0cm,-paperheight);%
  20. end{tikzpicture}%
  21. vspace*{fill}
  22. begin{center}
  23. LARGE{Template page with vertical bar}
  24. end{center}
  25. vspace*{fill}
  26. %clearpage
  27.  
  28. % Additional pages with sidebar and dummy text
  29. newgeometry{left=6.0cm,right=1.0cm,top=1.0cm,bottom=1.0cm,noheadfoot}
  30. begin{center}
  31. LARGE{Additional pages with vertical bar}
  32. end{center}
  33. lipsum[1-20]
  34. restoregeometry
  35. %clearpage
  36.  
  37. % Dummy code for last template page with horizontal bar
  38. begin{tikzpicture}[remember picture,overlay]%
  39. fill[gray] (current page.north west) rectangle %
  40. ++(paperwidth,-6.0cm);%
  41. end{tikzpicture}%
  42. vspace*{fill}
  43. begin{center}
  44. LARGE{Template pages with horizontal bar}
  45. end{center}
  46. vspace*{fill}
  47.  
  48. end{document}
  49.      
  50. documentclass[a4paper]{article}
  51.  
  52. usepackage[margin=1.0cm,noheadfoot]{geometry}
  53. usepackage{atbegshi,tikz,lipsum,ifthen}
  54. pagestyle{empty}
  55.  
  56. newboolean{drawSidebar}
  57. setboolean{drawSidebar}{false}
  58. AtBeginShipout{ifthenelse{boolean{drawSidebar}}{
  59. begin{tikzpicture}[remember picture,overlay]%
  60. fill[gray] (current page.north west) rectangle %
  61. ++(5.0cm,-paperheight);%
  62. end{tikzpicture}%
  63. }{}}
  64.  
  65. begin{document}
  66.  
  67. % Dummy code for template page with vertical bar
  68. begin{tikzpicture}[remember picture,overlay]%
  69. fill[gray] (current page.north west) rectangle %
  70. ++(5.0cm,-paperheight);%
  71. end{tikzpicture}%
  72. vspace*{fill}
  73. begin{center}
  74. LARGE{Template page with vertical bar}
  75. end{center}
  76. vspace*{fill}
  77. %clearpage
  78.  
  79. % Additional pages with sidebar and dummy text
  80. setboolean{drawSidebar}{true}
  81. newgeometry{left=6.0cm,right=1.0cm,top=1.0cm,bottom=1.0cm,noheadfoot}
  82. begin{center}
  83. LARGE{Additional pages with vertical bar}
  84. end{center}
  85. lipsum[1-20]
  86. setboolean{drawSidebar}{false}
  87. restoregeometry
  88. %clearpage
  89.  
  90. % Dummy code for template page with horizontal bar
  91. begin{tikzpicture}[remember picture,overlay]%
  92. fill[gray] (current page.north west) rectangle %
  93. ++(paperwidth,-6.0cm);%
  94. end{tikzpicture}%
  95. vspace*{fill}
  96. begin{center}
  97. LARGE{Template pages with horizontal bar}
  98. end{center}
  99. vspace*{fill}
  100.  
  101. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top