LaTeX forum ⇒ Graphics, Figures & TablesAdjustbox on a landscape page does not scale correct

Information and discussion about graphics, figures & tables in LaTeX documents.
Tobias_Denmark
Posts: 18
Joined: Sun Jun 06, 2010 1:59 pm

Adjustbox on a landscape page does not scale correct

Postby Tobias_Denmark » Mon Apr 14, 2014 6:38 pm

Following the question here:
http://tex.stackexchange.com/questions/ ... -too-small

I have a table which is to tall and would like it scaled using "max totalheight=\textheight". This just don't take the caption into account. What can I do then?

  1. \documentclass[letterpaper,12pt,oneside]{article}
  2. \usepackage{booktabs,pdflscape,adjustbox}
  3. \begin{document}
  4. \begin{landscape}
  5. \begin{table}[t]
  6. \caption{Text text text text text text.}
  7. \begin{adjustbox}{max totalheight=\textheight}
  8. \begin{tabular}{*{5}{l}} \toprule
  9. & \multicolumn{2}{c}{Women} & \multicolumn{2}{c}{Men} \\ \cmidrule(lr){2-3}\cmidrule(lr){4-5}
  10. & Person- & & Person- & \\
  11. & month & Unique & month & Unique \\
  12. Sample restrictions & records & individuals & records & individuals \\ \midrule
  13. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  14. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  15. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  16. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  17. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  18. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  19. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  20. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  21. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  22. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  23. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  24. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  25. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  26. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  27. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  28. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  29. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  30. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  31. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  32. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  33. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  34. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  35. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  36. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  37. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  38. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  39. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  40. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  41. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  42. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  43. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  44. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  45. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  46. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  47. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  48. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  49. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  50. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  51. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\
  52. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxx & xxxxxx & xxxxx & xxxxx & xxxxx \\ \bottomrule
  53. \end{tabular}
  54. \end{adjustbox}
  55. \end{table}
  56. \end{landscape}
  57. \end{document}

Tags:

Tobias_Denmark
Posts: 18
Joined: Sun Jun 06, 2010 1:59 pm

Postby Tobias_Denmark » Mon Apr 28, 2014 1:38 pm

Any ideas guys? :geek:


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests