ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Two problems with lists and definitions
@ 2002-06-08  8:37 Simon Pepping
  2002-06-23 14:32 ` Patrick Gundlach
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Pepping @ 2002-06-08  8:37 UTC (permalink / raw)


Hi,

I have two problems with lists and definitions.

1. indentnext=no does not work with itemize, while it does with
   definitions.

2. I cannot get hang=<number> to work with definitions. Do I do
something wrong?

This is my test text:

\setupindenting[medium]
\setupitemize[each][packed][before=,after=,indentnext=no]
\definedescription[glossentry]%
	[location=serried,headstyle=bold,before=\vskip0pt,after=,%
	 width=broad,distance=1em,hang=10,indentnext=no]

\starttext

Some text to start with. Some text to start with. Some text to start
with. Some text to start with. Some text to start with. Some text to
start with. Some text to start with.
\startitemize
\item First item
\item Second item
\stopitemize
Some text to continue with. Some text to continue
with. Some text to continue with. Some text to continue with. Some
text to continue with. Some text to continue with. Some text to
continue with. Some text to continue with. Some text to continue
with. Some text to continue with. Some text to continue with. Some
text to continue with.
Now follows a gloss list.
\startglossentry{Plain TeX}
The original set of TeX macros written by Don Knuth.
\stopglossentry
\startglossentry{ConTeXt}
A set of TeX macros written by Hans Hagen. Graphical quality is its
outstanding characteristic.
\stopglossentry
\startglossentry{LaTeX}
A set of TeX macros written by Leslie Lamport. Style sheets for
various document classes is its outstanding characteristic.
\stopglossentry
Some text to continue with. Some text to continue with. Some text to
continue with. Some text to continue with. Some text to continue
with. Some text to continue with. Some text to continue with. Some
text to continue with. Some text to continue with. Some text to
continue with. Some text to continue with. Some text to continue
with. Some text to continue with. Some text to continue with.

\stoptext

Regards, Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Two problems with lists and definitions
  2002-06-08  8:37 Two problems with lists and definitions Simon Pepping
@ 2002-06-23 14:32 ` Patrick Gundlach
  2002-06-23 22:52   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2002-06-23 14:32 UTC (permalink / raw)


Simon Pepping <spepping@scaprea.hobby.nl> writes:

Hi,

> I have two problems with lists and definitions.
> 
> 1. indentnext=no does not work with itemize, while it does with
>    definitions.

Here is a workaround, a slightly modified version I have recently
posted to the list. But beware! this will probably introduce new
errors. Hans should make a correct version.

\unprotect
\def\stopitemgroup
  {\iftextitems
     \removeunwantedspaces\space\ignorespaces
   \else
     \par
   \fi
   \ifnum\itemcolumndepth=0 \dolistreference \fi % beware !
   \iffirstlist \else \endgroup \fi % toegevoegd, eerste \som opent groep
   \ifnum\itemcolumndepth=\itemlevel\relax
     \stopkolommen
     \doglobal\newcounter\itemcolumndepth
     \getitemparameter\itemlevel\c!na
   \else
     \ifnum\itemlevel=1                  % !
       \doitembreak\allowbreak           % !
     \fi                                 % !
     \getitemparameter\itemlevel\c!na    % !
     \doif{\getitemparameter\itemlevel\c!springvolgendein}\v!nee\noindentation %!!!
   \fi
   \endgroup
   \doglobal\decrement(\itemlevel,\itemincrement)%
   \egroup}
\protect

Hans: the \doif\@@oospringvolgendein\v!nee\noindentation does not look
at the current \itemlevel, does it??? See line with %!!!

Patrick

-- 
I'll fade into the darkness


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Two problems with lists and definitions
  2002-06-23 14:32 ` Patrick Gundlach
@ 2002-06-23 22:52   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2002-06-23 22:52 UTC (permalink / raw)
  Cc: ntg-context

At 04:32 PM 6/23/2002 +0200, you wrote:

>Here is a workaround, a slightly modified version I have recently
>posted to the list. But beware! this will probably introduce new
>errors. Hans should make a correct version.
>
>\unprotect
>\def\stopitemgroup
>   {\iftextitems
>      \removeunwantedspaces\space\ignorespaces
>    \else
>      \par
>    \fi
>    \ifnum\itemcolumndepth=0 \dolistreference \fi % beware !
>    \iffirstlist \else \endgroup \fi % toegevoegd, eerste \som opent groep
>    \ifnum\itemcolumndepth=\itemlevel\relax
>      \stopkolommen
>      \doglobal\newcounter\itemcolumndepth
>      \getitemparameter\itemlevel\c!na
>    \else
>      \ifnum\itemlevel=1                  % !
>        \doitembreak\allowbreak           % !
>      \fi                                 % !
>      \getitemparameter\itemlevel\c!na    % !
> 
>\doif{\getitemparameter\itemlevel\c!springvolgendein}\v!nee\noindentation %!!!
>    \fi
>    \endgroup
>    \doglobal\decrement(\itemlevel,\itemincrement)%
>    \egroup}
>\protect
>
>
>
>Hans: the \doif\@@oospringvolgendein\v!nee\noindentation does not look
>at the current \itemlevel, does it??? See line with %!!!

no, the \@@oo vars are the ones that count for the whole; it's no problem 
to add more detail and default to the global setting

but, did you look at the \v!voor part and interference with [packed]

[i have to break up this code into smaller pieces]

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-23 22:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-08  8:37 Two problems with lists and definitions Simon Pepping
2002-06-23 14:32 ` Patrick Gundlach
2002-06-23 22:52   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).