Guest User

Untitled

a guest
Sep 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. documentclass{article}
  2. begin{document}
  3. begin{landscape}
  4. begin{table}
  5. % lot of information, goes over whole page
  6. end{table}
  7. end{landscape}
  8. end{document}
  9.  
  10. documentclass[draft]{article}
  11.  
  12. usepackage{xparse}
  13. ExplSyntaxOn
  14. box_new:N l_benL_rotfloat_box
  15. NewDocumentEnvironment { rotfloat } { m o }
  16. {
  17. vbox_set:Nw l_benL_rotfloat_box
  18. hsizetextheight
  19. cs_set:cpn { @captype } { #1 }
  20. }
  21. {
  22. vbox_set_end:
  23. box_rotate:Nn l_benL_rotfloat_box { -90 }
  24. IfValueTF { #2 }
  25. { begin { #1 } [ #2 ] }
  26. { begin { #1 } }
  27. centering
  28. hbox_unpack:N l_benL_rotfloat_box
  29. end { #1 }
  30. }
  31. ExplSyntaxOff
  32.  
  33. defzz{This is a & line in my & large table & and it looks & great}
  34. defzzz{zz & zz \}
  35. defzzzz{zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz}
  36.  
  37. begin{document}
  38. begin{table}
  39. caption{too wide}
  40. begin{tabular}{*{10}l}
  41. zzzz
  42. zzzz
  43. end{tabular}
  44. end{table}
  45. begin{rotfloat}{table}
  46. caption{it fits}
  47. begin{tabular}{*{10}l}
  48. zzzz
  49. zzzz
  50. end{tabular}
  51. end{rotfloat}
  52. end{document}
Add Comment
Please, Sign In to add comment