Guest User

Untitled

a guest
Dec 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. documentclass[a5paper,twoside]{article}
  2. usepackage{tikz}
  3. usepackage{geometry}
  4.  
  5. geometry{a5paper}
  6. geometry{portrait}
  7. geometry{inner=18mm,outer=10mm,top=10mm,bottom=10mm}
  8. pagestyle{empty}
  9.  
  10. begin{document}
  11.  
  12. section{graph}
  13. begin{tikzpicture}
  14. draw [step=0.5cm,very thin, gray] (0,0) grid (12.5,17.5);
  15. end{tikzpicture}
  16.  
  17. end{document}
  18.  
  19. section{graph}
  20. newdimenspaceleft
  21. spaceleft=dimexprtextheight-pagetotal-14ptrelax
  22. % not sure why I need to subtract 14pt here. Without it, the content is
  23. % pushed down to the next page.
  24. begin{tikzpicture}
  25. draw [step=0.5cm,very thin, gray] (0,0) grid (textwidth,spaceleft);
  26. end{tikzpicture}
  27.  
  28. pgfmathparse{textwidth - mod(textwidth,0.5cm)}
  29. Textwidth: thetextwidth\
  30. Modified width: pgfmathresult pt
Add Comment
Please, Sign In to add comment