Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!mcsun!hp4nl!alchemy!ruunfs!spit From: spit@fys.ruu.nl (Werenfried Spit) Newsgroups: comp.text.tex Subject: Re: linguistics examples Message-ID: <1991May28.125950.7903@fys.ruu.nl> Date: 28 May 91 12:59:50 GMT References: <1698@irit.irit.fr> Organization: Physics Department, University of Utrecht Lines: 83 In <1698@irit.irit.fr> hathout@irit.irit.fr (hathout) writes: >Hello, >I have been using LaTeX for few months and I have problems with >writing linguistics examples. I would like them to be numbered, >labelled, and displayed as follow: >(1) a. Bla, bla, bla... > b. Bla, bla, bla... > c. Bla, bla, bla... I wrote the following for someone wanting the same sort of thing. It is called `voorbeelden' (Dutch for examples), but the name could be changed. Use it as \begin{voorbeelden} \item \begin{voorbeelden} \item Bla, bla, bla ... \item Bla, bla, bla ... \item Bla, bla, bla ... \end{voorbeelden} \item More bla bla \end{voorbeelden} -------------------------------------------------------------------- Werenfried Spit R.J. v.d. Graafflaboratorium +31-(0)30-53-2330 Postbus 80.000 3508 TA Utrecht spit@fys.ruu.nl The Netherlands spit@hutruu51.bitnet -------------------------------------------------------------------- %%%%%%%%%cut here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%% voorbeeldomgeving %%%%%%%% %% (C) Werenfried Spit 08-01-90 %% \newenvironment{voorbeelden}{\thevoorbeelden}{\endthevoorbeelden} \newcount\@vbdepth \@vbdepth = 0 \@definecounter{vbcounti} \@definecounter{vbcountii} \@definecounter{vbcountiii} \@definecounter{vbcountiv} \@addtoreset{vbcounti}{section} \def\thevoorbeelden{\ifnum \@vbdepth >3 \@toodeep\else \advance\@vbdepth \@ne \edef\@vbctr{vbcount\romannumeral\the\@vbdepth}\list {\csname label\@vbctr\endcsname}{\ifnum \@vbdepth >1 \usecounter {\@vbctr}\else \@nmbrlisttrue\def \@listctr{vbcounti}\fi\def\makelabel##1{\hss\llap{##1}}}\fi} \let\endthevoorbeelden =\endlist \def\labelvbcounti{\bf\arabic{vbcounti}} \def\thevbcounti{\arabic{vbcounti}} \def\p@vbcountii{\thevbcounti} \def\labelvbcountii{\bf\alph{vbcountii}} \def\thevbcountii{\alph{vbcountii}} \def\labelvbcountiii{\roman{vbcountiii}} \def\thevbcountiii{\roman{vbcountiii}} \def\p@vbcountiii{\thevbcounti(\thevbcountii)} \def\labelvbcountiv{\alph{vbcountiv}} \def\thevbcountiv{\alph{vbcountiv}} \def\p@vbcountiv{\p@vbcountiii\thevbcountiii} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%cut here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%