On the StackExchange-chat, I received quickly-made MWE's which answered parts of my question; yet remarkably show the experience and knowledge of the person who fabricated them.
For example, when I asked how to create a code which would automatically right-align a vertically stacked series of numbers (from 2 to 50), I got the following answers, which worked perfectly:
Answer 1:
\documentclass{article}
\newcounter{loopcounter}
\begin{document}
\setcounter{loopcounter}{50}
\loop\unless\ifnum\value{loopcounter}=1
\llap{\theloopcounter}
\addtocounter{loopcounter}{-1}
\repeat
\end{document}
Answer 2:
\documentclass{article}
\newcounter{loopcounter}
\makeatletter
\newcommand{\loopdown}[2]{%
\c@loopcounter=#1%
\loop\unless\ifnum\value{loopcounter}=#2
\llap{\theloopcounter}%
\advance \c@loopcounter by -1
\repeat
}
\makeatother
\begin{document}
\loopdown{50}{1}
\end{document}
What I am wondering about, is how to regulate the vertical spacing between the different lines of numbers? In other words: the line-spacing.
setspace
's\setstretch{<num>}
, as suggested here: Change line spacing inside the document (possible duplicate).