To save as much space as possible for the date, I use the \tiny font size.
Now in some cases, I even need to give a date range with a starting date and an ending date.
Such a range thereby becomes quite lengthy, thereby making the space available for the section quite small.
To minimise the required space for the date range, I would like to wrap the the date range to two lines, while keeping the alignment on the right.
Any help appreciated.
Code: Select all
\documentclass{book}
\begin{document}
\section*{My new day with a quite lengthy title \hfill {\tiny Jan 1st, 2023 - Jan 10 2023}}
The above date range should be split to two lines both on the right of the section title. The line break should be between the two dates (at the position of the - character)
\section*{This is the next day \hfill {...}}
\end{document}