I was trying to get a hanging indentation, so an indentation from second line. There are multiple answers for how to achieve this in general texts or lists. But I could not transfer them to the curve
package in a rubric
environment.
MWE:
% doc.tex
\documentclass[a4paper,11pt]{curve}
\begin{document}
\makerubric{history}
\end{document}
% history.tex
\begin{rubric}{History}
\entry*[2018]%
\textbf{That's now}.
\entry*[2016 -- \rlap{$\:\:\dots$}\phantom{2016}]
\textbf{Last two years}. Great times.
\entry*[2012 -- 2016]%
\textbf{A few years before}. If there is a long entry like this one
I would like to have a hanging indentation (i.\,e. indentation from second line).
\end{rubric}
I was trying to look into curve.cls
, but this is way beyond my understanding of tex. I think it has to do with the \entry
command from there:
\newcommand\@entry[2][]{%
\gdef\@nextentry{}\@key{#1}%
\egroup% end of \noalign opened in \entry.
\@@key&\@prefix\\\par}
\newcommand\@sentry[1][]{%
\gdef\@nextentry{\\\par}\@key{#1}%
\egroup% end of \noalign opened in \entry.
\@@key&\@prefix&}
\newcommand\entry{%
\@nextentry
\noalign\bgroup\gdef\@beforespace{\subrubricbeforespace}%
\@ifstar{\@sentry}{\@entry}}
It looks like there is just one paragraph with the bullet point on the left. I tried the hanging
package, the built-in commands (see e.g. https://stackoverflow.com/questions/3254054/), but I'm a bit lost now.
\parbox
has a smaller spacing to the next entry though...\@entry[2][]
. Do you want to post an answer, or would it be ok if I answer my working solution with corrected spaces now?