Hi I would like to make a cheat sheet and the contents are inside the boxes for each topic. I would that the width will be fix but the height will automatically adjust based on the length of the content and if it exceeds the page length it will continue to the next column. How can I do this?enter image description here


2 Answers 2


Another solution with tcolorbox, but with its new from version 4.10 poster library.

This library allows to flexibly place different boxes over an array structure. It's possible to say a certain column and/or row, but also make reference to other boxes. It's even possible to break a long tcolorbox in fragments placed over a sequence of places where text flows.



coverage ={spread},
poster = {%showframe, 
    columns=3, rows=3,},
boxes = {colframe=black, colback=white, enhanced, attach boxed title to top left={xshift=5mm, yshift*=-\tcboxedtitleheight/2},
boxed title style={colback=black, sharp corners}}
\posterbox[adjusted title=Biblioteca Random XYZ]{name=A,column=1,below=top}{\lipsum[1]}
\posterbox[adjusted title=Biblioteca Random XYZ]{name=B,column=1,below=A}{\lipsum[2]}

\posterbox[adjusted title=Biblioteca Random XYZ]{name=D,column=3,above=bottom}{\lipsum[2]}

\posterbox[adjusted title=Biblioteca Random XYZ]{name=C,
    sequence=1 between B and bottom then
             2 between top and bottom then
             3 between top and D}{\lipsum[3-8]}


enter image description here


If you really need that the content continues in the next column, you could do it like this (I didn't fine tune the values, e.g. 9cm is not exact):

Create a content document with a paperwidth of 1/3 of your sheet with boxes which use the breakable key of tcolorbox:

\begin{tcolorbox}[title=Stuff 1]
\begin{tcolorbox}[title=Stuff 2]
\begin{tcolorbox}[title=Stuff 3]
\begin{tcolorbox}[title=Stuff 4]
\begin{tcolorbox}[title=Stuff 5]
\begin{tcolorbox}[title=Stuff 6]

Include this document with pdfpages or as graphicx in another one in 3x1 layout:


enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.