Re: [NTG-context] mathmatrix and grid: followup

2016-11-27 Thread Henri Menke
Bump

On 11/22/2016 02:18 PM, Henri Menke wrote:
> Dear list,
> 
> some time ago I asked about the interplay of mathmatix with grid typesetting: 
> https://mailman.ntg.nl/pipermail/ntg-context/2016/087018.html
> 
> I noticed that when the grid is enabled, the height of a mathmatrix is 
> rounded down which leaves less space above than below.  In my opinion either 
> the height should be rounded up or the depth rounded down here.  In the 
> original thread Wolfgang proposed using \setupformula[grid=tolerant] and 
> adding a blank line before the formula (otherwise grid=tolerant is applied to 
> the paragraph before).  This workaround leads to the depth being rounded down 
> in the example below which produces a more balanced output.  Could this 
> somehow be made the default behaviour or something?  Currently it requires 
> the user to notice that vertical spacing is off and correct it manually, 
> including adding a blank line before the formula to prevent grid=tolerant 
> being applied to the paragraph.
> 
> Cheers, Henri
> 
> ---
> 
> \setuplayout[grid=yes]
> \showgrid
> 
> \starttext
> 
> \input knuth
> \startformula
>   \vrule % make lineheight and depth visible
>   \startmathmatrix
> \NC A \NR
> \NC B \NR
> \NC C \NR
>   \stopmathmatrix
> \stopformula
> \input tufte
> 
> \stoptext
> 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Different text versions in columns?

2016-11-27 Thread Henning Hraban Ramm
Am 2016-11-27 um 14:13 schrieb Wolfgang Schuster :

> Yes, you can use it to create paragraphs of equal height in different streams.
>>> Only the mechanism to create pages/columns for the stream content is
>>> missing.
> You can save text and flush it afterwards but there is no command which
> places the content side by side (or in columns). Below is a simple example
> but I had to write the splitter myself.

Thank you, I wikified your examples.
http://wiki.contextgarden.net/Columns#Examples_of_MkIV_streams

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Different text versions in columns?

2016-11-27 Thread Jean-Pierre Delange
Hi Wolfgang,

Thank you very much to clarify the use of \pushoutputstream.
I'm going to work with your two examples, in order to elaborate a sample of 
parallel texts in two different language on alternate pages...
JP

- Mail original -
De: "Wolfgang Schuster" 
À: "Mailing list for ConTeXt users" 
Envoyé: Dimanche 27 Novembre 2016 14:13:57
Objet: Re: [NTG-context] Different text versions in columns?

> Arthur Reutenauer 
> 26. November 2016 um 00:14
>> 1. Streams work in MkIV
>> 2. The MkIV version has a command to set sync points.
>
>That’s \pushoutputstreams, I presume.
Yes, you can use it to create paragraphs of equal height in different 
streams.

\setupbodyfont[tt]

\starttext

\startoutputstream[one]
 \setupalign[flushleft]
 \dorecurse{3}{Line \recurselevel\par}\pushoutputstream
 \blank
 \dorecurse{6}{Line \recurselevel\par}\pushoutputstream
 \blank
 \dorecurse{4}{Line \recurselevel\par}\pushoutputstream
\stopoutputstream

\startoutputstream[two]
 \setupalign[flushright]
 \dorecurse{5}{Line \recurselevel\par}\pushoutputstream
 \blank
 \dorecurse{2}{Line \recurselevel\par}\pushoutputstream
 \blank
 \dorecurse{7}{Line \recurselevel\par}\pushoutputstream
\stopoutputstream

\synchronizestreams[one,two]

\startoverlay
 {\outputstreambox[one]}
 {\raise2\strutdp\outputstreambox[two]}
\stopoverlay

\stoptext

>> Only the mechanism to create pages/columns for the stream content is
>> missing.
>
>Can you elaborate a bit?  I’m having the following use case in mind:
> exactly two streams, one on even-numbered pages, the other on the
> odd-numbered ones, with infrequent synchronisations.  The two streams
> could run in parallel, facing each other on the spread, and only be
> resynchronised every 5 or 10 pages, say.  Is that currently not
> possible?
You can save text and flush it afterwards but there is no command which
places the content side by side (or in columns). Below is a simple example
but I had to write the splitter myself.

\starttext

\startoutputstream[one]
 \startcolor[red]
 \dorecurse{10}{\input knuth\par}
 \stopcolor
\stopoutputstream

\startoutputstream[two]
 \startcolor[green]
 \dorecurse{10}{\input zapf\par}
 \stopcolor
\stopoutputstream

\synchronizestreams[one,two]

\setbox\scratchboxone\outputstreambox[one]
\setbox\scratchboxtwo\outputstreambox[two]

\doloop
   {\ifvoid\scratchboxone
  \exitloop
\else
  \setbox\scratchboxfour\vsplit\scratchboxone to \textheight
  \vbox to \vsize{\box\scratchboxfour\vss}%
  \setbox\scratchboxfive\vsplit\scratchboxtwo to \textheight
  \vbox to \vsize{\box\scratchboxfive\vss}%
\fi}

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-27 Thread Jean-Pierre Delange
Dear List,

I've made 2 mistakes : 
1) a false link to a PDF text;
2) Giving a large PDF text.
There is the link to Petr Březina paper on TeX and bilingual editions, that 
I've previously mentionned :
http://mujweb.cz/petr-brezina/libelli/bilingue.pdf

Certainly, as Wolfgang put it, there is probably some ways to achieve the goal 
mentionned in the title of this thread : 2 parallel texts synchronized on the 
same page, in 2 different languages. Maybe through the "stream" macros.

JP

- Mail original -
De: "Jean-Pierre Delange" 
À: "mailing list for ConTeXt users" 
Envoyé: Dimanche 27 Novembre 2016 12:27:31
Objet: Re: [NTG-context] TwoColumns in two different languages, with alternate 
text on even and odd page.


Dear List,
I fear I made a mistake with this paper's address : 
https://zimbra.free.fr/service/home/~/bilingue.pdf?auth=co=fr=253997=2
Please, read it as attached file.
Best,
JP
- Mail original -
De: "Jean-Pierre Delange" 
À: "mailing list for ConTeXt users" 
Envoyé: Samedi 26 Novembre 2016 18:51:11
Objet: Re: [NTG-context] TwoColumns in two different languages, with alternate 
text on even and odd page.


Hi Arthur, Hans, Pablo and other brave ConteXT users !

The only development I've found on the subject matter of this thread is from 
Petr Březina (but in French), with some examples of historical printing 
material (like Novum Testamentum Graece et Latine and M. Tullius Cicero, Pro A. 
Licinio Archia poeta oratio. Rede für den Dichter A. Licinius Archias. 
Lateinisch / Deutsch. Übersetzt und herausgegeben von Otto Schönberger, 
bibliographisch ergänzte Ausgabe 1990, printed in Germany 1996, Reclam, 
Stuttgart, ISBN 3-15-001268-6.

Petr Březina works with pure TeX, in order to imitate F. Didot in printing a 
bilingual text on 2 parallel paragraphs (see "Tâche n° 4", within his test, 
page 12).
At the end of this file, there are some examples (see specially pages 26,27,28) 
: 
https://zimbra.free.fr/service/home/~/bilingue.pdf?auth=co=fr=253997=2

  
- Mail original -
De: "Arthur Reutenauer" 
À: "Mailing list for ConTeXt users" 
Envoyé: Vendredi 25 Novembre 2016 23:33:59
Objet: Re: [NTG-context] TwoColumns in two different languages, with alternate 
text on even and odd page.

On Fri, Nov 18, 2016 at 01:16:28PM +0100, Jean-Pierre Delange wrote:
> I make a statement on a part of the Arthur's reply (" there are no real-life 
> examples of documents that use it") : in fact, there are rare examples of 
> such printing materials : scholar editing and printing of Ancient texts are 
> mainly (if I am right) such printing material (including Ancient Armenian or 
> Georgian liturgic hymns). 

  That’s not what I meant.  There is an experimental mechanism in
ConTeXt called streams that could be part of the solution to your
problem, but there are no publicly available documents that make use of
it.  The commands for creating and managing streams are in the file
page-str.mkiv; there are short examples at the end.

  I mention this because this is typically the kind of issue that need
serious input from users in order to become a meaningful feature.

Best,

Arthur
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 

[NTG-context] question about \setupitemgroup

2016-11-27 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupwhitespace[5em]
\startsetups[smallwspa]
\setupwhitespace[small]
\setupblank[small]
\stopsetups
\setupitemize[each][indenting=no, setups=smallwspa]
\starttext
\input knuth

\startitemize
\dorecurse{5}{\item this is my item\par
second paragraph\par
third paragraph
}
\stopitemize
\stoptext

I’m trying to get a \blank[small] separation for paragraphs inside items
and a \blank[medium] separation between items.

I’m afraid that neither the after, inbetween and setups keys are working?

How could I get these different separations for items and for paragraphs
inside them?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Different text versions in columns?

2016-11-27 Thread Wolfgang Schuster

Arthur Reutenauer 
26. November 2016 um 00:14

1. Streams work in MkIV
2. The MkIV version has a command to set sync points.


   That’s \pushoutputstreams, I presume.
Yes, you can use it to create paragraphs of equal height in different 
streams.


\setupbodyfont[tt]

\starttext

\startoutputstream[one]
\setupalign[flushleft]
\dorecurse{3}{Line \recurselevel\par}\pushoutputstream
\blank
\dorecurse{6}{Line \recurselevel\par}\pushoutputstream
\blank
\dorecurse{4}{Line \recurselevel\par}\pushoutputstream
\stopoutputstream

\startoutputstream[two]
\setupalign[flushright]
\dorecurse{5}{Line \recurselevel\par}\pushoutputstream
\blank
\dorecurse{2}{Line \recurselevel\par}\pushoutputstream
\blank
\dorecurse{7}{Line \recurselevel\par}\pushoutputstream
\stopoutputstream

\synchronizestreams[one,two]

\startoverlay
{\outputstreambox[one]}
{\raise2\strutdp\outputstreambox[two]}
\stopoverlay

\stoptext


Only the mechanism to create pages/columns for the stream content is
missing.


   Can you elaborate a bit?  I’m having the following use case in mind:
exactly two streams, one on even-numbered pages, the other on the
odd-numbered ones, with infrequent synchronisations.  The two streams
could run in parallel, facing each other on the spread, and only be
resynchronised every 5 or 10 pages, say.  Is that currently not
possible?

You can save text and flush it afterwards but there is no command which
places the content side by side (or in columns). Below is a simple example
but I had to write the splitter myself.

\starttext

\startoutputstream[one]
\startcolor[red]
\dorecurse{10}{\input knuth\par}
\stopcolor
\stopoutputstream

\startoutputstream[two]
\startcolor[green]
\dorecurse{10}{\input zapf\par}
\stopcolor
\stopoutputstream

\synchronizestreams[one,two]

\setbox\scratchboxone\outputstreambox[one]
\setbox\scratchboxtwo\outputstreambox[two]

\doloop
  {\ifvoid\scratchboxone
 \exitloop
   \else
 \setbox\scratchboxfour\vsplit\scratchboxone to \textheight
 \vbox to \vsize{\box\scratchboxfour\vss}%
 \setbox\scratchboxfive\vsplit\scratchboxtwo to \textheight
 \vbox to \vsize{\box\scratchboxfive\vss}%
   \fi}

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___