Skip to main content
Advanced number in boxes.
Source Link
Οὖτις
  • 3.1k
  • 1
  • 7
  • 19

MadyYuvi already pointed you to a suitable package, I'll simply expand on this.

\documentclass{article} \usepackage{multicol,tcolorbox} \newtcolorbox{mybox}{colframe=red,colback=white} \begin{document} \begin{multicols}{3} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} % I think you can imagine how to go on... \end{multicols} \end{document} 

enter image description here

Edit: Advancing the number.

As requested in a comment, you can advance the number displayed in the box. The simplest way is of course to advance the number manually, so

\begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 2\end{mybox} 

and so on. This is of course not the best way to go.

Then you have the idea of adding a counter which does the numbering for you, see MadyYuvi's answer (+1). This will still require to repeat the code \begin{mybox}The Day \theboxcounter\end{mybox} over and over again.

This is why IMHO the best solution involves a for loop (forloop package):

\documentclass{article} \usepackage{multicol,tcolorbox,forloop} \newtcolorbox{mybox}{colframe=red,colback=white} \begin{document} \begin{multicols}{3} \newcounter{boxcounter} \forloop{boxcounter}{1}{\value{boxcounter} < 25}{% \begin{mybox}The Day \theboxcounter\end{mybox} } \end{multicols} \end{document} 

Result with advancing numbers BTW this answer is completely applicable if you need more than one page of these boxes.

MadyYuvi already pointed you to a suitable package, I'll simply expand on this.

\documentclass{article} \usepackage{multicol,tcolorbox} \newtcolorbox{mybox}{colframe=red,colback=white} \begin{document} \begin{multicols}{3} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} % I think you can imagine how to go on... \end{multicols} \end{document} 

enter image description here

MadyYuvi already pointed you to a suitable package, I'll simply expand on this.

\documentclass{article} \usepackage{multicol,tcolorbox} \newtcolorbox{mybox}{colframe=red,colback=white} \begin{document} \begin{multicols}{3} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} % I think you can imagine how to go on... \end{multicols} \end{document} 

enter image description here

Edit: Advancing the number.

As requested in a comment, you can advance the number displayed in the box. The simplest way is of course to advance the number manually, so

\begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 2\end{mybox} 

and so on. This is of course not the best way to go.

Then you have the idea of adding a counter which does the numbering for you, see MadyYuvi's answer (+1). This will still require to repeat the code \begin{mybox}The Day \theboxcounter\end{mybox} over and over again.

This is why IMHO the best solution involves a for loop (forloop package):

\documentclass{article} \usepackage{multicol,tcolorbox,forloop} \newtcolorbox{mybox}{colframe=red,colback=white} \begin{document} \begin{multicols}{3} \newcounter{boxcounter} \forloop{boxcounter}{1}{\value{boxcounter} < 25}{% \begin{mybox}The Day \theboxcounter\end{mybox} } \end{multicols} \end{document} 

Result with advancing numbers BTW this answer is completely applicable if you need more than one page of these boxes.

Source Link
Οὖτις
  • 3.1k
  • 1
  • 7
  • 19

MadyYuvi already pointed you to a suitable package, I'll simply expand on this.

\documentclass{article} \usepackage{multicol,tcolorbox} \newtcolorbox{mybox}{colframe=red,colback=white} \begin{document} \begin{multicols}{3} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} \begin{mybox}The Day 1\end{mybox} % I think you can imagine how to go on... \end{multicols} \end{document} 

enter image description here