mirror of
https://github.com/cupcakearmy/master-thesis.git
synced 2026-04-02 11:55:30 +00:00
21 lines
489 B
TeX
21 lines
489 B
TeX
% Copied from: https://ghost.tweakblogs.net/blog/720/requirement-list-in-latex.html
|
|
|
|
\newcommand{\reqitem}[1]{
|
|
$R_{#1}$
|
|
}
|
|
|
|
\newcommand{\reqinit}{
|
|
\newcounter{reqcountbackup}
|
|
\newcounter{reqcount}
|
|
\renewcommand{\thereqcount}{\reqitem{\arabic{reqcount}}}
|
|
}
|
|
|
|
\newcommand{\reqlist}[1]{
|
|
\begin{list}{\thereqcount}{\usecounter{reqcount}}
|
|
\setcounter{reqcount}{\value{reqcountbackup}}
|
|
#1
|
|
\setcounter{reqcountbackup}{\value{reqcount}}
|
|
\end{list}
|
|
}
|
|
|