File: exer10-10.tex

package info (click to toggle)
texlive-doc 2009-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 192,004 kB
  • ctags: 4,774
  • sloc: perl: 12,760; xml: 11,870; makefile: 1,033; lisp: 394; sh: 229; awk: 205; java: 159; sed: 4
file content (16 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (12)
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}