summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-10.tex
blob: ad0d6fabccd0ced585ad3cca0707d5268b349479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
\documentclass{article}
\newcounter{num}
\newenvironment{varlist}[2]
   {\begin{list}{\textrm{#1 #2{num}:}}{\usecounter{num}%
       \setlength{\labelsep}{5mm}
       \settowidth{\leftmargin}{\textrm{#1 #2{num}:}}
       \addtolength{\leftmargin}{1cm}}}
   {\end{list}}
\begin{document}
\noindent Previous outer text
\begin{varlist}{Sample}{\Alph}
   \item without any value
   \item with an enclosed voucher
\end{varlist}
\end{document}