Guest User

Untitled

a guest
Jun 13th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. col1 col2
  2. 100 200 <- known 100 and 200
  3. 300 400 <- known 400 and 600
  4. --------- <- LaTeX decides to page break
  5. 500 600 <- known 900 and 1200
  6.  
  7. col1 col2
  8. 100 200
  9. 300 400
  10. [400][600] <- use known
  11. -----------
  12. [400][600]
  13. 500 600
  14. {900}{1200}
  15. {sum}
  16.  
  17. documentclass[a4paper]{scrartcl}
  18. usepackage{longtable}
  19. begin{document}
  20. newcommand{uebertrag1}{0}
  21. newcommand{uebertrag2}{0}
  22. newcommand{summe}{0}
  23. begin{longtable}{cc}
  24. col1 & col2\endfirsthead
  25. col1 & col2\
  26. Übertrag: uebertrag1 & uebertrag2\endhead %<- dynamic binding?
  27. Übertrag: uebertrag1 & uebertrag2\endfoot
  28. gesamt: uebertrag1 & uebertrag2\
  29. Summe: summe\endlastfoot
  30.  
  31. renewcommand{uebertrag1}{100}
  32. renewcommand{uebertrag2}{200}
  33. renewcommand{summe}{300}
  34.  
  35. 100 & 200 \newpage
  36.  
  37. renewcommand{uebertrag1}{400}
  38. renewcommand{uebertrag2}{600}
  39. renewcommand{summe}{1000}
  40.  
  41. 300 & 400 \
  42.  
  43. end{longtable}
  44. end{document}
Add Comment
Please, Sign In to add comment