ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Displayed material, again
@ 2003-03-10 16:25 Giuseppe Bilotta
  2003-03-10 16:50 ` Bruce D'Arcus
                   ` (2 more replies)
  0 siblings, 3 replies; 46+ messages in thread
From: Giuseppe Bilotta @ 2003-03-10 16:25 UTC (permalink / raw)


Hello list,

I wish to bring the discussion again on displayed material.
Display material is material that conceptually belongs to a
paragraphs but typographically breaks it. After the display, the
paragraph can continue or not. In ConTeXt, there are many things
which should be considered displayed material: formulas,
enumerations and other itemgroups, quotations, etc. Every
start/stop pair that begins a new paragraph should actually be a
displayed area. In ConTeXt, one can achieve such result by using
[intentnext=yes] or [indentnext=no] on a case-by-case basis,
depending on whether the start/stop pair is supposed to start a
new paragraph or not. Of course, this "manual" way to do the thing
goes against the general principle that the computer is supposed
to do as much of the job as possible, by itself. I therefore wish
to urge Hans to implement a new indentnext option, "auto", which
should give a behaviour similar to the one shown on this example:

=== BEGIN displayed.tex ===

\setupindenting[medium]

\definestartstop[display][before=\initdisplay,after=\terminatedisplay,style=italic]

\def\initdisplay{\ifvmode\else\endgraf\noindent\fi
  \bgroup\advance\leftskip2\parindent\advance\rightskip2\parindent\ignorespaces}
\def\terminatedisplay{\par\egroup\afterassignment\checkifpar\let\ispar=}
\def\checkifpar{\ifx\ispar\par\else\noindent\expandafter\ispar\fi}

\starttext

The purpouse of this document is to practically show how display
material should behave: display material is material that
conceptually belongs to a paragraphs but typographically breaks it
After the display, the paragraph can continue or not.

We now quote Knuth:
\startdisplay
\input knuth
\stopdisplay
and continue the paragraph right after. The following quote will
instead end the paragraph:
\startdisplay
\input tufte
\stopdisplay

This text belongs to a different paragraph: note that it's being
indented (differently from the previous snippet). This paragraph
has no quotations. Instead, the next paragraph will start with
a quotation (display material at the beginning of the paragraph)
and have some text after~it.

\startdisplay
\input knuth
\stopdisplay
is again a quote from Knuth. Observe that this way the source
obeys the \TeX\ convention of empy lines to terminate paragraphs,
and that it is not necessary to manually specify the intentnext
option for the single cases.

\stoptext

=== END displayed.tex ===

The paragraph-wise behaviour of \initdisplay and
\terminatedisplay+\checkifpar (i.e. excluding the left-/rightskip
adaptments, which have only a visual purpouse) should be the
behaviour in case indentnext=auto.

-- 
Giuseppe "Oblomov" Bilotta

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

end of thread, other threads:[~2003-03-22 11:10 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-10 16:25 Displayed material, again Giuseppe Bilotta
2003-03-10 16:50 ` Bruce D'Arcus
2003-03-10 20:22   ` Re[2]: " Giuseppe Bilotta
2003-03-10 22:15     ` s-mag-01 Bruce D'Arcus
2003-03-11  8:00       ` s-mag-01 Hans Hagen
2003-03-11 14:11         ` s-mag-01 Bruce D'Arcus
2003-03-11 14:31           ` s-mag-01 Hans Hagen
2003-03-11 14:34         ` s-mag-01 Bruce D'Arcus
2003-03-11 14:46           ` Fonts again in ConTeXt Patrick Gundlach
2003-03-11 15:10             ` Bruce D'Arcus
2003-03-12 13:04               ` Maarten Sneep
2003-03-12 13:23                 ` Bruce D'Arcus
2003-03-12 13:26                   ` Maarten Sneep
2003-03-12 14:05                     ` Patrick Gundlach
2003-03-12 15:11                       ` Hans Hagen
2003-03-12 15:43                         ` Patrick Gundlach
2003-03-12 19:35                           ` Jens-Uwe Morawski
2003-03-13  8:31                             ` Patrick Gundlach
2003-03-14  8:27                               ` Hans Hagen
2003-03-12 20:26                           ` Hans Hagen
2003-03-13  8:54                             ` Patrick Gundlach
2003-03-13 12:37                               ` Hans Hagen
2003-03-13 15:07                                 ` John Culleton
2003-03-13 15:52                                   ` Hans Hagen
2003-03-21 18:05                                 ` Patrick Gundlach
2003-03-22 11:10                                   ` Hans Hagen
2003-03-14 21:34                             ` Henning Hraban Ramm
2003-03-14 21:24                           ` Henning Hraban Ramm
2003-03-21 18:06                             ` Patrick Gundlach
2003-03-12 15:09                 ` Hans Hagen
2003-03-11 15:02           ` s-mag-01 Adam Lindsay
2003-03-11 20:52             ` s-mag-01 Hans Hagen
2003-03-11  9:13       ` s-mag-01 Patrick Gundlach
2003-03-10 17:00 ` Displayed material, again Hans Hagen
2003-03-10 23:24 ` Hans Hagen
2003-03-11 10:08   ` Re[2]: " Giuseppe Bilotta
2003-03-11 10:52     ` Hans Hagen
2003-03-11 11:47       ` Re[3]: " Giuseppe Bilotta
2003-03-11 14:57         ` Hans Hagen
2003-03-11 17:04           ` Re[4]: " Giuseppe Bilotta
2003-03-12 20:36             ` Hans Hagen
2003-03-13  9:36               ` Re[5]: " Giuseppe Bilotta
2003-03-13 12:23                 ` Hans Hagen
2003-03-11 15:12         ` Re[3]: " Hans Hagen
2003-03-12 21:07         ` Hans Hagen
2003-03-13  9:38           ` Re[4]: " Giuseppe Bilotta

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).