ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* more itemization:-)
@ 2002-06-21 19:38 Idris S Hamid
  2002-06-21 19:52 ` Idris S Hamid
  0 siblings, 1 reply; 5+ messages in thread
From: Idris S Hamid @ 2002-06-21 19:38 UTC (permalink / raw)


Dear gang,

How can I set up the itemization so that indentation is cut off completely 
immediately following a deeper level of itemization? Consider the following 
example (from my actual work since the subject matter may be of interest to 
readers). The expression beginning with ` In other words, each expression' 
should be unindented since it is logically part of the par containing the 
level-3 itemization. And no, an explicit \noindent is a workaround, not a 
solution.

Is this a bug?

Best wishes
Idris

===================test.tes===============
\setupindenting[medium]
\starttext
\startitemize[m]

\item Matter. This process involves the expression of thoughts and ideas
to be communicated to the reader, viz., the composition of the actual words 
and sentences. This is entirely the responsibility of the author of the text;

\item Form. The form of the text in turn involves three elements:

  \startitemize [KA]

  \item Logical structure. This involves the organization of the textual
  material into various logical divisions, from 

    \startitemize[KR]

    \item the more global level of divisions such as parts, chapters, 
    appendices, preface, index, and bibiography; to

    \item the more mid-level divisions such as sections and subsections; to 

    \item the lower level paragraphs, quoted paragraphs, itemized  lists, 
    parenthetical text, notes, right down to which expressions to emphasize.

    \stopitemize
  In other words, each expression  in a given text has a 
  role to play in communicating the ideas of the author and it is generally 
  the responsibility of the author to determine the role of each such
  textual element;

  \item Typographical structure. Given the document matter, the types of
  logical division to be employed, and the identification of each textual 
  element with a particular logical division, issues such as the following 
  must be decided:

  \noindent Traditionally this has been the responsibility 
  of a specialist; 

  \item Typesetting. It is the job of the typesetting machine to implement the 
  chosen typographical structure.

  \stopitemize
\stopitemize
\stoptext

-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


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

* Re: more itemization:-)
  2002-06-21 19:38 more itemization:-) Idris S Hamid
@ 2002-06-21 19:52 ` Idris S Hamid
  2002-06-23 13:12   ` Patrick Gundlach
  0 siblings, 1 reply; 5+ messages in thread
From: Idris S Hamid @ 2002-06-21 19:52 UTC (permalink / raw)


One more thing,

I need to set some space after the level-3 itemization before the rest of the 
paragraph. I tried

\startitemize[KR][after={\blank[medium]}]

but this did not change things.

>     \startitemize[KR]
>
>     \item the more global level of divisions such as parts, chapters,
>     appendices, preface, index, and bibiography; to
>
>     \item the more mid-level divisions such as sections and subsections; to
>
>     \item the lower level paragraphs, quoted paragraphs, itemized  lists,
>     parenthetical text, notes, right down to which expressions to
> emphasize.
>
>     \stopitemize %%% need space here!!!
>   In other words, each expression  in a given text has a
>   role to play in communicating the ideas of the author and it is generally
>   the responsibility of the author to determine the role of each such
>   textual element;

-- 
Dr. Idris S Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80526


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

* Re: more itemization:-)
  2002-06-21 19:52 ` Idris S Hamid
@ 2002-06-23 13:12   ` Patrick Gundlach
  2002-06-23 14:24     ` Truncated ouput with m-bib Michael Hallgren
  2002-06-23 22:49     ` more itemization:-) Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Patrick Gundlach @ 2002-06-23 13:12 UTC (permalink / raw)


Idris S Hamid <ishamid@attbi.com> writes:

Hi,

> One more thing,
> 
> I need to set some space after the level-3 itemization before the rest of the 
> paragraph. I tried
> 
> \startitemize[KR][after={\blank[medium]}]
> 
> but this did not change things.

right, because context does not check for this  :)

\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\@@oospringvolgendein\v!nee\noindentation
   \fi
   \endgroup
   \doglobal\decrement(\itemlevel,\itemincrement)%
   \egroup}
\protect

should fix this, but Hans should look over it again, since
indentnext=yes does not do anything except when you say after=\par,
which you can't. Why is there a comparison beetween \itemcolumndepth
and \itemlevel? This code above is really obscure...

Patrick

-- 
I'll fade into the darkness


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

* Truncated ouput with m-bib
  2002-06-23 13:12   ` Patrick Gundlach
@ 2002-06-23 14:24     ` Michael Hallgren
  2002-06-23 22:49     ` more itemization:-) Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Hallgren @ 2002-06-23 14:24 UTC (permalink / raw)


Hi,

I'm moving some notes and papers from TeX to ConText, and I see truncated
(mainly authors) in my biblio's (using m-bib). Any known bib-related
current problems?

Cheers

mh

--
Michael Hallgren, http://m.hallgren.free.fr/, MH2198-RIPE


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

* Re: more itemization:-)
  2002-06-23 13:12   ` Patrick Gundlach
  2002-06-23 14:24     ` Truncated ouput with m-bib Michael Hallgren
@ 2002-06-23 22:49     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2002-06-23 22:49 UTC (permalink / raw)
  Cc: ntg-context

At 03:12 PM 6/23/2002 +0200, Patrick Gundlach wrote:
>Idris S Hamid <ishamid@attbi.com> writes:
>
>Hi,
>
> > One more thing,
> >
> > I need to set some space after the level-3 itemization before the rest 
> of the
> > paragraph. I tried
> >
> > \startitemize[KR][after={\blank[medium]}]
> >
> > but this did not change things.
>
>
>right, because context does not check for this  :)
>
>\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\@@oospringvolgendein\v!nee\noindentation
>    \fi
>    \endgroup
>    \doglobal\decrement(\itemlevel,\itemincrement)%
>    \egroup}
>\protect
>
>should fix this, but Hans should look over it again, since
>indentnext=yes does not do anything except when you say after=\par,

hm, \endgraf maybe, have to look into that

>which you can't. Why is there a comparison beetween \itemcolumndepth
>and \itemlevel? This code above is really obscure...

well, it's part of the oldest context code ... kind of prehistoric

your patch spoils the packed option; in itemize the before/after keys are 
ignores at level>1

so, fixing this will need a bit more work, like patching the packed handler 
and also the 'before' handling,

so i'll put it on the to do list

for the moment, adding a \blank is the best solution

(or \defineblank[hack][medium]  \blank[hack] so that later you can say 
\defineblank[hack][none])

remind me to fix this

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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-21 19:38 more itemization:-) Idris S Hamid
2002-06-21 19:52 ` Idris S Hamid
2002-06-23 13:12   ` Patrick Gundlach
2002-06-23 14:24     ` Truncated ouput with m-bib Michael Hallgren
2002-06-23 22:49     ` more itemization:-) 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).