Re[4]: [NTG-context] Displayed material, again

2003-03-13 Thread Hans Hagen
At 06:04 PM 3/11/2003 +0100, you wrote:

HH \def\synchronizeindentation
HH{%
HH \doifvalue{\??dd#1\c!springvolgendein}\v!nee\noindentation
HH \doifvalue{\??dd#1\c!springvolgendein}\v!auto\noindent}
HH}%
HH
HH saves keying and also provides a hook
Right :) I expect to see it in the core for the next release! ;)
Ha, i found out that i already had a \checknextindentation in my cont-loc 
(for different purposes -)

anyhow, i'll provide you the hook

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[3]: [NTG-context] Displayed material, again

2003-03-13 Thread Hans Hagen
At 12:47 PM 3/11/2003 +0100, you wrote:

=== BEGIN PATCH ===
\startvariables all
auto: auto
\stopvariables
ok, added, does not hurt to have that key (althougj in this case 'display' 
i smore adequate

\def\@@stopdefinitie#1%
\def\stopitemgroup
\def\dostopformula
\def\dostoptyping#1%
simple test replaced by \(do)checknextindentation

CORE-ITM.TEX:
CORE-MAT.TEX:
CORE-MIS.TEX:
CORE-SEC.TEX:
CORE-SPA.TEX:
CORE-VER.TEX:
PAGE-ONE.TEX:
PAGE-SET.TEX:
before that). Hans, can we hope for this to go into the core for
the next beta?
i'll upload a beta for you to test

Note: while I think it should be done for quotations as well, this
seems to be a feature in development so I won't touch it for
now.
added anyway

also, auto invokes \autoindentation, so for the moment you have to hook you 
rown code in there (\relax by default)

[later i will look into a proper display something; needs to work ok with 
the nex par hooks in cont-new]

happy indenting

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[4]: [NTG-context] Displayed material, again

2003-03-13 Thread Giuseppe Bilotta
Wednesday, March 12, 2003 Hans Hagen wrote:

HH At 12:47 PM 3/11/2003 +0100, you wrote:

=== BEGIN PATCH ===
\startvariables all
 auto: auto
\stopvariables

HH ok, added, does not hurt to have that key (althougj in this case 'display'
HH i smore adequate

I don't think so. The material is displayed anyway. The key value
should simply make a different from yes/no (i.e. decide
automatically), it doesn't change the logical nature of the
block ... but anyway :)

HH i'll upload a beta for you to test

Thanks :)

-- 
Giuseppe Oblomov Bilotta

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[5]: [NTG-context] Displayed material, again

2003-03-13 Thread Hans Hagen
At 10:36 AM 3/13/2003 +0100, you wrote:
Wednesday, March 12, 2003 Hans Hagen wrote:

Right :) I expect to see it in the core for the next release! ;)

HH Ha, i found out that i already had a
HH \checknextindentation in my cont-loc
HH (for different purposes -)
HH anyhow, i'll provide you the hook

Even better, put the indentnext=auto code in the core :)
don't hurry too much, if you define yourself a \autoindentation macro 
you'll have indentnext=auto

Hans

-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[2]: [NTG-context] Displayed material, again

2003-03-11 Thread Hans Hagen
At 11:08 AM 3/11/2003 +0100, you wrote:
Tuesday, March 11, 2003 Hans Hagen wrote:
HH btw, here are shorter defs:
HH \def\startdisplay
HH{\relax\ifvmode\else\endgraf\noindent\fi\ignorespaces}
HH \def\stopdisplay
HH{\par\doifnextcharelse\par\donothing\noindent}
HH watch the \relax (prevents lookahead) and \doifnextcharelse

Good to know, thanks. BTW, have you had a look at the patches I
submitted to the list around 10pm yesterday? What do you think of
them?
What patch? Yesterday around 10 i was deparately trying to figure out why 
our (linux) mail server was infected by a spammer (some kind of sendmail 
bug combined with pop3 things) and in the process (took me the whole 
morning) probably lost some mails.

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re[3]: [NTG-context] Displayed material, again

2003-03-11 Thread Hans Hagen
At 12:47 PM 3/11/2003 +0100, you wrote:

\def\synchronizeindentation
  {%
  \doifvalue{\??dd#1\c!springvolgendein}\v!nee\noindentation
   \doifvalue{\??dd#1\c!springvolgendein}\v!auto\noindent}
  }%

saves keying and also provides a hook

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Displayed material, again

2003-03-10 Thread Giuseppe Bilotta
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


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Displayed material, again

2003-03-10 Thread Hans Hagen
At 05:25 PM 3/10/2003 +0100, you wrote:
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:
well it's on my todo list to provide this option, but first i need to 
finish a couple of grid things; actually live would be much easier if there 
wer \bpar \epar commands -)

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Displayed material, again

2003-03-10 Thread Hans Hagen
At 05:25 PM 3/10/2003 +0100, you wrote:

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:
btw, here are shorter defs:

\def\startdisplay
  {\relax\ifvmode\else\endgraf\noindent\fi\ignorespaces}
\def\stopdisplay
  {\par\doifnextcharelse\par\donothing\noindent}
watch the \relax (prevents lookahead) and \doifnextcharelse

anyway,

isn't a \stopdisplay followed by an empty line still supposed to be a 
display?, so the full model is:

\startparagraph

  text or not

  \startdisplay

  \stopdisplay

   text or not

\stopparagraph

the startparagraph and stopparagraph can be kind of automatic, but that's 
just an added bonus for those who want to use empty lines as signals 
(something which is not common, for instance in xml where proper tagging 
takes place).

Hans
-
  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
  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
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context