SHARE
TWEET

Untitled

a guest Aug 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{article}
  2. usepackage{datatool}
  3. usepackage{filecontents}
  4. usepackage[strict]{changepage}
  5.  
  6. begin{filecontents*}{test2.csv}
  7. Acol, Bcol, NoCol
  8. Ax,Bx,1
  9. Ay,By,3
  10. A1,B22,2
  11. A2,B44,4
  12. A3,B11,5
  13. end{filecontents*}
  14.  
  15. DTLloaddb{mydata}{test2.csv}
  16.  
  17. newcommand*{pageDependent}{ifoddpage 5cmelse 10cmfirelax}
  18.  
  19. begin{document}
  20.  
  21. DTLforeach*{mydata}{A=Acol,B=Bcol}%
  22. {%
  23.  A checkoddpagehspace{pageDependent} B
  24.  newpage
  25. }%
  26.  
  27. 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