hathout@irit.irit.fr (hathout) (05/27/91)
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've tried a \newtheorem environment, but it's too constrained. But
\newenvironment doesn't allow the use of \label and \ref. I've hacked
something I'm not very proud of. (By the way, I've got another reason
not to be satisfied: the number is centered, and I want it to appear
on the first line.) I`m looking for a more elegant solution.
Thanks.
%My solution:
\newenvironment{test}%
{\begin{equation} $}%
{$ \end{equation}}
NH.
--
Nabil Hathout (hathout@irit.fr)
IRIT - Universite Paul Sabatier
118, route de Narbonne F-31062 Toulouse Cedex France
tel : (+33) 61.55.66.11 ext. 73.14 * fax : (+33) 61.55.62.58spit@fys.ruu.nl (Werenfried Spit) (05/28/91)
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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%