# \lipsum to yield, by default, a different paragraph in each application

I write a template latex file for students. In this file, I use \lipsum commands as place holders for section. Below you will see a not-absolutely-minimal example, but a quite trimmed version of the template. The request is for some magic that would make each \lipsum generate a different paragraph

\title{My First Article}
\author{First Last\\
\url{mailto:First.Last@cs.technion.ac.il}\\
Department of Computer Science\\
Technion---Israel Institute of Technology\\
}

% Only one of the following lines should be uncommented:
% \documentclass[10pt,twocolumn]{article} % Uncomment this line for 10pt/double column
\documentclass{article}                 % Uncomment this line for 12t/single column

\usepackage{lipsum}
\setlipsumdefault{1}

\begin{document}
\maketitle

\begin{flushright}
\begin{minipage}{2.5in}
\normalsize \rmfamily\scshape\bfseries
\color{red}{%
Thou Mortal, Be Warned. \newline
Thou Shallt Not Remove \newline
This Commandment \newline
While There Are Signs of Haste \newline
in This Document!!!!\newline
}
\end{minipage}
\end{flushright}

\begin{abstract}
\lipsum
\end{abstract}

\section{Introduction}
Something short: \lipsum
\subsection{Background}
\lipsum

\subsection{Motivation}
\lipsum

\subsection{Contribution}
\lipsum

\paragraph{Outline} \lipsum

\end{document}


Use a counter and generate \lipsum[<value>-<value+y>], where y is one less than the number of paragraphs you want.

\documentclass{article}
\usepackage{lipsum}

\newcounter{yolipsum}
\newcommand{\yolipsum}{%
\stepcounter{yolipsum}%
\lipsum[\value{yolipsum}-\numexpr\value{yolipsum}+\yomany\relax]%
}

% change to the number of paragraphs you want;
% the number of generated paragraphs is \yomany+1
\newcommand{\yomany}{2} % can be 0

\begin{document}

\section{Three pars}

\yolipsum

\section{Three pars}

\yolipsum

\section{Three pars}

\yolipsum

\end{document}