gonmedare Feb 5th, 2015 193 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2. \usepackage{pdflscape}
  3. \usepackage{tikzpagenodes}
  4. \usepackage{lipsum}
  6. \newcommand{\showboxes}{%
  7. \begin{tikzpicture}[remember picture,overlay]
  8.     \draw [red] (current page text area.south west) rectangle
  9.         (current page text area.north east);
  10.     \draw [green] (current page header area.south west) rectangle
  11.         (current page header area.north east);
  12.     \draw [blue] (current page footer area.south west) rectangle
  13.         (current page footer area.north east);
  14.     \draw [black] (current page marginpar area.south west) rectangle
  15.         (current page marginpar area.north east);
  16. \end{tikzpicture}
  17. }
  19. \begin{document}
  20. \section{Portrait Section}
  21. \showboxes{}
  22. \lipsum[4]
  23. \begin{landscape}
  24. \showboxes{}
  25. \section{Landscape Section}
  26. \lipsum[4]
  27. \end{landscape}
  28. \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