Guest User

Untitled

a guest
Dec 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. %%%%%%%%%%%%%%%
  2. % central.tex %
  3. %%%%%%%%%%%%%%%
  4. saveContent{A}{this is content "A"}
  5. saveContent{B}{this is content "B"}
  6. saveContent{C}{this is content "C"}
  7. saveContent{D}{this is content "D"}
  8. % vdots
  9.  
  10. %%%%%%%%%%%%%%%%
  11. % document.tex %
  12. %%%%%%%%%%%%%%%%
  13. documentclass{article}
  14. input{central.tex}
  15.  
  16. useContent{A}
  17. useContent{B}
  18. useContent{C}
  19.  
  20. begin{document}
  21. displayUsableContent
  22. end{document}
  23.  
  24. +---+ +---+ +---+ +---+
  25. | A | | B | | C | | C |
  26. | | | B | | C | | D | % (breaking D onto its own page would be acceptable)
  27. |(1)| |(2)| |(3)| |(4)|
  28. +---+ +---+ +---+ +---+
  29.  
  30. +---+ +---+ +---+ +---+
  31. | A | | B | | C | | D |
  32. | | | B | | C | | | % where is my C :(
  33. |(1)| |(2)| |(3)| |(4)|
  34. +---+ +---+ +---+ +---+
  35.  
  36. +---+ +---+ +---+ +---+
  37. | A | | B | | C | | D |
  38. | B | | C | | C | | | % B is broken but doesn't need to be :(
  39. |(1)| |(2)| |(3)| |(4)|
  40. +---+ +---+ +---+ +---+
  41.  
  42. documentclass{article}
  43. usepackage[most]{tcolorbox}
  44. usepackage{lipsum}
  45.  
  46. tcbset{enhanced, breakable, height fixed for=all}
  47.  
  48. begin{document}
  49. begin{tcolorbox}[height fill, title=Problem A]
  50. lipsum[1]
  51. end{tcolorbox}
  52. begin{tcolorbox}[height fill, title=Problem B]
  53. lipsum[1-3]
  54. end{tcolorbox}
  55. begin{tcolorbox}[title=Problem C]
  56. lipsum[1-5]
  57. end{tcolorbox}
  58. begin{tcolorbox}[height fixed for=none, title=Problem D]
  59. lipsum[1-5]
  60. end{tcolorbox}
  61. begin{tcolorbox}[height fill, title=Problem E]
  62. lipsum[1]
  63. end{tcolorbox}
  64. end{document}
Add Comment
Please, Sign In to add comment