Re: [NTG-context] smaller size for particular style

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 20:01, Meer, Hans van der  wrote:
> 
> 
>> On 22 May 2016, at 18:08, Wolfgang Schuster  
>> wrote:
>> 
>>> Meer, Hans van der 22. Mai 2016 um 10:33
>>> As usual I do a setup for the font with for example: 
>>> \setupbodyfont[cambria].
>>> For most style variants this is fine, but for \tt I find the size too big.
>>> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
>>> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) 
>>> should have the size as if the bodyfont had been setup with 
>>> \setupbodyfont[cambria,small].
>>> 
>>> How to effectuate this?
>> You can define your own typeface where you change the scaling.
>> 
>> \definetypeface [hans] [rm] [serif] [cambria] [default]
>> \definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
>> \definetypeface [hans] [mm] [math]  [cambria] [default]
>> 
>> \setupbodyfont[hans]
>> 
>> \starttext
>> a{\tt a} e{\tt e} A{\tt A}
>> \stoptext
>> 
>> Wolfgang
> 
> Am I right that to change nothing more than the size of \tt it is sufficient 
> to just redefine that one only:
> 
> \setupbodyfont[afont]
> \definetypeface [hans][tt][mono][\fontclass][default][rscale=0.85]
> \setupbodyfont[hans]
> 
> and leaving everything else as is?
> 
> Hans van der Meer
> 
> 

No I already guess I am wrong here: in order to keep cambria for rm etc I 
should add also:
\definetypeface [hans][rm][serif][\fontclass][default]
etc.
Right?

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] smaller size for particular style

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 18:08, Wolfgang Schuster  
> wrote:
> 
>> Meer, Hans van der 22. Mai 2016 um 10:33
>> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
>> For most style variants this is fine, but for \tt I find the size too big.
>> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
>> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should 
>> have the size as if the bodyfont had been setup with 
>> \setupbodyfont[cambria,small].
>> 
>> How to effectuate this?
> You can define your own typeface where you change the scaling.
> 
> \definetypeface [hans] [rm] [serif] [cambria] [default]
> \definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
> \definetypeface [hans] [mm] [math]  [cambria] [default]
> 
> \setupbodyfont[hans]
> 
> \starttext
> a{\tt a} e{\tt e} A{\tt A}
> \stoptext
> 
> Wolfgang

Am I right that to change nothing more than the size of \tt it is sufficient to 
just redefine that one only:

\setupbodyfont[afont]
\definetypeface [hans][tt][mono][\fontclass][default][rscale=0.85]
\setupbodyfont[hans]

and leaving everything else as is?

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in \definefallbackfamily?

2016-05-22 Thread Pablo Rodriguez
On 05/21/2016 09:18 AM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 20. Mai 2016 um 20:42
>> [...]
>> From what I read in i-context.pdf, "force=yes" is the default setting
>> for \definefallbackfamily.
> 
> The document is wrong, the values for force and check should be the same
> as the default values (no for both) for \definefontfallback.

Wolfgang,

would it be possible that the default values were yes in both cases?

Otherwise, the default would break compatibility with many already
existing documents.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] smaller size for particular style

2016-05-22 Thread Wolfgang Schuster

Meer, Hans van der 
22. Mai 2016 um 10:33
As usual I do a setup for the font with for example: 
\setupbodyfont[cambria].

For most style variants this is fine, but for \tt I find the size too big.
Thus I would like to keep the sizes as setup by the \setupbodyfont for 
everything except for \tt: there all variants (like \tt, \ttx, \ttxx) 
should have the size as if the bodyfont had been setup with 
\setupbodyfont[cambria,small].


How to effectuate this?

You can define your own typeface where you change the scaling.

\definetypeface [hans] [rm] [serif] [cambria] [default]
\definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
\definetypeface [hans] [mm] [math]  [cambria] [default]

\setupbodyfont[hans]

\starttext
a{\tt a} e{\tt e} A{\tt A}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Framing multiline equations

2016-05-22 Thread Hans Hagen

On 5/22/2016 11:36 AM, L.S.-Soc wrote:

Hello together,

I'm having trouble framing multiline equations. Problem is that either I
get an error or the equation gets framed while the multiline is
converted into a single line. Here is my code:

-
\starttext

\startformula <- works like a charm
\mframed[offset=1mm,loffset=3mm,roffset=3mm]
{a + b = c}
\stopformula

\startformula \startalign <- that's an example
multiline equation
\NC c - a = \NC b \NR<- unframed it works
\NC d + c - b = \NC a \NR
\stopalign \stopformula

\startformula \framed{\startalign <- \mframed gives an error. \framed
works, but then the eq
\NC c - a = \NC b \NR   <- gets converted into a single line eq.
\NC d + c - b = \NC a \NR
\stopalign} \stopformula

\stoptext
-

I tried to place \mframed at different locations. But the example above
is the only one that doesn't give an error.
How would an experienced CTX user frame multiline equations?
I think it would work with natural TABLES. But i would only use that
way, when nothing else works...


next beta:

\starttext

xxx

\startformula \startalign
\NC c - a = \NC b \NR
\NC d + c - b = \NC a \NR
\stopalign \stopformula

xxx

\startformula
\mframed
[offset=1mm,loffset=3mm,roffset=3mm] {
a + b = c
}
\stopformula

xxx

\startformula
\mframed
[offset=1mm,loffset=3mm,roffset=3mm] {
\startalign
\NC c - a = \NC b \NR
\NC d + c - b = \NC a \NR
\stopalign
}
\stopformula

xxx

\stoptext

i'll sort out spacing later


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \page[header]

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 17:44, Wolfgang Schuster  
> wrote:
> 
>> Meer, Hans van der 22. Mai 2016 um 17:40
>> 
>> It is not clear as yet.
>> \starttext
>> \input knuth
>> \page[header,yes]
>> \input knuth
>> \page[header,yes]
>> \input knuth
>> \stoptext
>> Here I get three pages, the first two without the last with header. That I 
>> understand.
>> 
>> \starttext
>> \input knuth
>> \page[header]
>> \page
>> \input knuth
>> \stoptext
>> Both pages keep their header.
>> 
>> \starttext
>> \input knuth
>> \page
>> \page[header]
>> \input knuth
>> \stoptext
>> Both pages keep their header.
>> 
>> Should I conclude that the state change occurs if and onlyif when in the 
>> same macrocall a real pagebreak is realize?
>> Because otherwise I do not observe a state change.
> Change the order of the keywords (yes before header).
> 
> The header and footer keywords can be used when you want to hide header and 
> footer texts
> on empty left pages before a chapter etc. in a doublesided document.

That is clear to me. But my question was: why do neither \page\page[header] nor 
\page[header]\page make any difference unless in these cases \page[haeder] is 
effectively a noop.

> 
> \setuppagenumbering[alternative=doublesided]
> \setuphead[chapter][page={yes,header,right}]
> \starttext
> \chapter{First chapter}
> \chapter{Second chapter}
> \stoptext
> 
> Wolfgang


Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] name current font

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 17:32, Aditya Mahajan  wrote:
> 
> On Sun, 22 May 2016, Meer, Hans van der wrote:
> 
>> How do I get the name of the currently set font?
>> macro \currentfont does not exist.
> 
> \fontclass?
> 
> Also see: http://tex.stackexchange.com/a/287123/323
> 
> Aditya

Thanks. I had guessed at \currentfont and not thought of \fontclass.

After \setupbodyfont{...} with \fontname{}, \fontfamily{}, \truefontname{}, 
\fontsize{} existing, how do I pass the fontparameter in there?

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \page[header]

2016-05-22 Thread Wolfgang Schuster

Meer, Hans van der 
22. Mai 2016 um 17:40

It is not clear as yet.
\starttext
\input knuth
\page[header,yes]
\input knuth
\page[header,yes]
\input knuth
\stoptext
Here I get three pages, the first two without the last with header. 
That I understand.


\starttext
\input knuth
\page[header]
\page
\input knuth
\stoptext
Both pages keep their header.

\starttext
\input knuth
\page
\page[header]
\input knuth
\stoptext
Both pages keep their header.

Should I conclude that the state change occurs if and onlyif when in 
the same macrocall a real pagebreak is realize?

Because otherwise I do not observe a state change.

Change the order of the keywords (yes before header).

The header and footer keywords can be used when you want to hide header 
and footer texts

on empty left pages before a chapter etc. in a doublesided document.

\setuppagenumbering[alternative=doublesided]
\setuphead[chapter][page={yes,header,right}]
\starttext
\chapter{First chapter}
\chapter{Second chapter}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \page[header]

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 16:32, Hans Hagen  wrote:
> 
> On 5/22/2016 2:32 PM, Meer, Hans van der wrote:
>> According to the description of \page in the contextgarden:
>> "header - set header off temporarily"
>> 
>> But although this gives two pages numbered 1 and 2:
>> \starttext
>> \input knuth
>> \page
>> \input knuth
>> \stoptext
>> 
>> This one does not honour the new page but typesets everything on page 1:
>> \starttext
>> \input knuth
>> \page[header]
>> \input knuth
>> \stoptext
>> 
>> Is that as intended?
> 
> yes, it just changes a state, but you can use \page[header,yes]

It is not clear as yet.
\starttext
\input knuth
\page[header,yes]
\input knuth
\page[header,yes]
\input knuth
\stoptext
Here I get three pages, the first two without the last with header. That I 
understand.

\starttext
\input knuth
\page[header]
\page
\input knuth
\stoptext
Both pages keep their header.

\starttext
\input knuth
\page
\page[header]
\input knuth
\stoptext
Both pages keep their header.

Should I conclude that the state change occurs if and onlyif when in the same 
macrocall a real pagebreak is realize?
Because otherwise I do not observe a state change.

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] name current font

2016-05-22 Thread Aditya Mahajan

On Sun, 22 May 2016, Meer, Hans van der wrote:


How do I get the name of the currently set font?
macro \currentfont does not exist.


\fontclass?

Also see: http://tex.stackexchange.com/a/287123/323

Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] name current font

2016-05-22 Thread Meer, Hans van der
How do I get the name of the currently set font?
macro \currentfont does not exist.

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \page[header]

2016-05-22 Thread Hans Hagen

On 5/22/2016 2:32 PM, Meer, Hans van der wrote:

According to the description of \page in the contextgarden:
"header - set header off temporarily"

But although this gives two pages numbered 1 and 2:
\starttext
\input knuth
\page
\input knuth
\stoptext

This one does not honour the new page but typesets everything on page 1:
\starttext
\input knuth
\page[header]
\input knuth
\stoptext

As that as intended?


yes, it just changes a state, but you can use \page[header,yes]



Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typing environment on non-ASCII

2016-05-22 Thread Hans Åberg

> On 22 May 2016, at 15:15, Hans Hagen  wrote:
> 
> On 5/21/2016 8:39 PM, Hans Åberg wrote:

>> The code below works. One can alternatively put it on the \starttyping 
>> command, admitting mixing with traditional monospace code at other places. 
>> The idea here is to display Unicode input files as is, so finding a 
>> monospace font for all those characters may be difficult. Just changing to 
>> sans did not work though.
>> 
>> \setupbodyfont[xits,10pt]
>> \setuptyping[style=normal]
>> 
>> \starttyping %[style=normal]
>> ∀(i, k) ∈ I×K: C(i, k) ≔ ∑_(j∈J) A(i, j)·B(j, k)
>> \stoptyping
> 
> in the near future there will be a monospaced font with math for this purpose 
> (the tex gyre project has it on it's agenda, but it all depends on funding 
> and time)

For me, the above without translation suffices, as one did not necessarily use 
monospace in the past, which worked fine: keywords might be in bold, and that 
and indentation was handled automatically in one Pascal editor (on MacOS 9).

One could think though of several different translations:

Monospace only on a range, like ASCII, or translate ASCII letters and numbers 
to the Math Alphanumeric range, with keywords optionally in bold. But then 
copy-paste from the PDF into a computer program will not work.


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] new features

2016-05-22 Thread Hans Hagen

On 5/22/2016 3:33 PM, Meer, Hans van der wrote:



On 22 May 2016, at 15:11, Hans Hagen > wrote:


Finally, when \definemode makes testing a lot faster why than not
implement this always? That is, using \enablemode or \disablemode the
first time implies a \definemode for that mode. Doing so avoids
another macro to remember: less clutter for my brain ;-)


because one property of modes is that one doesn't have to define them,
you'd be quite unhappy if you would have to define all possible modes
that could be introduced in styles


The idea was not to have the user define the mode, but let ConTeXt
automatically do the defining when it encounters a specific mode the
first time. The work is done by ConTeXt then (would make me even more
happy ;-)


it does define them when undefined but even then it gets a special state 
(modes can be in enable, disable or prevent state)


normnally it's not something a user need to worry about

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-22 Thread Hans Hagen

On 5/20/2016 11:02 PM, Pablo Rodriguez wrote:

On 05/20/2016 09:51 PM, Jean-Pierre Delange wrote:

Hi Pablo,

Thanks to have correct my mistake. It works !
If you take this sample and place the number 8 in \dorecurse{4} in
place of 4, you'll see something which is better than our first
attempts. Now, it's only the last paragraph of the first page, which is
messed up. After a somehow puzzled or erratic Wille zu Macht in the
location of this last paragraph, ConTeXt locates very fine the last ones
and does what it has to do ! But it's better to say that my code is weak ...


Hi Jean-Pierre,

there is something weird with columns and the last paragraph.


i uploaded a beta with somewhat better multiple node class handling in 
mixed columns



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] new features

2016-05-22 Thread Meer, Hans van der

On 22 May 2016, at 15:11, Hans Hagen > 
wrote:

Finally, when \definemode makes testing a lot faster why than not implement 
this always? That is, using \enablemode or \disablemode the first time implies 
a \definemode for that mode. Doing so avoids another macro to remember: less 
clutter for my brain ;-)

because one property of modes is that one doesn't have to define them, you'd be 
quite unhappy if you would have to define all possible modes that could be 
introduced in styles

The idea was not to have the user define the mode, but let ConTeXt 
automatically do the defining when it encounters a specific mode the first 
time. The work is done by ConTeXt then (would make me even more happy ;-)

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-22 Thread Hans Hagen

On 5/21/2016 12:16 PM, Jean-Pierre Delange wrote:

Hi Pablo,

I'm trying to find a path through the 2 columns set greek-latin with 'criticus 
apparatus'.


i'm surprised that you something with columnsets at all (the notes part)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-22 Thread Hans Hagen

On 5/22/2016 9:20 AM, Jean-Pierre Delange wrote:

Hi Pablo,

Reading the documentation again (i.e. columnsets.pdf), I see that the module 
\definecolumnset[example][n=2] allow how to define how many pages we want a set 
of columns, each of one being define with its own number of lines and so on. 
Therefore, the behaviour of the first page will be different of the second, 
etc. Further, one have to imagine a first recto (odd) page blank, followed by 
an even page (even, left page) with a double columns (greek-latin text) and the 
next third page (odd one) with commentaries. Then, one have to define the 
layout, because the number of lines of the greek-latin text on left page has to 
fit with the commentaries on the right page (and because it is not the same 
layout). Moreover, one can imagine for the moment a printed odd page (on left 
page) and a blank one (on the right page).
Maybe it is this behaviour (when a page is filled)- and necessary there is 
another behaviour to deal with when context parse for the even page - about 
which we have to scrutinize.

The purpose of columnset module is to set how many column for a single page and 
how to fit this columns to a number of defined pages (with titles and 
pictures). Its goal is not to make separate columns on the same page. At least 
as far as I can understand the process.


indeed .. meant for magazine like typesetting or other special purposes 
(often a mix between automatic and handcrafted)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Typing environment on non-ASCII

2016-05-22 Thread Hans Hagen

On 5/21/2016 8:39 PM, Hans Åberg wrote:



On 21 May 2016, at 20:03, Wolfgang Schuster  wrote:



OK. There are two different issues involved: if one wants to use a monospace 
font, and if one wants it verbatim, without TeX translation. For me, the latter 
would suffice. The typing environment, it seems, combines the two, and the 
monospace part cannot be turned off.


The typing environment uses only a monospaced font as default style but you can 
also
use it with a serif or sans serif font, e.g. \setuptyping[style=sans].


The code below works. One can alternatively put it on the \starttyping command, 
admitting mixing with traditional monospace code at other places. The idea here 
is to display Unicode input files as is, so finding a monospace font for all 
those characters may be difficult. Just changing to sans did not work though.

\setupbodyfont[xits,10pt]
\setuptyping[style=normal]

\starttyping %[style=normal]
∀(i, k) ∈ I×K: C(i, k) ≔ ∑_(j∈J) A(i, j)·B(j, k)
\stoptyping


in the near future there will be a monospaced font with math for this 
purpose (the tex gyre project has it on it's agenda, but it all depends 
on funding and time)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] bibliography tool

2016-05-22 Thread Hans Hagen

On 5/22/2016 10:25 AM, Meer, Hans van der wrote:



On 30 Jun 2014, at 17:33, Wolfgang Schuster  wrote:


Am 30.06.2014 um 17:29 schrieb Gour :


Hans Hagen  writes:


beware: the mkii derived bibliograpic support for mkiv is replaced so
that page is kind of obsolete (the new manual is in the distribution)


You mean this one http://wiki.contextgarden.net/Bibliography_mkiv is
also obsolete?

Where is the new manual and is the manual going to be published in paper
form?






There should be a pdf named mkiv-publications.pdf in your context directory.



This no longer seems to be true. I cannot find such a document in directory
   /tex/texmf-context/doc/context/documents/general/manuals
nor have I found the sources in the corresponding directory.
I presume this is "Bibliographies the ConTeXt Way" by Hans Hagen and Alan 
Braslau I got from somewhere (and alas forgot wherefrom).


because it's awaiting an update ...


It would be nice to have it there, because if time permits I intend to play 
with the new bib-macros in order to familiarize with them.


it will be there once alan and i catched up

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] new features

2016-05-22 Thread Hans Hagen

On 5/22/2016 10:07 AM, Meer, Hans van der wrote:



On 26 Jun 2014, at 12:08, Hans Hagen  wrote:

Another addition is that

\definemode[something][keep]

define an undefined mode; the keep makes sure that the already set value is 
kept (another option is 'yes').

Using defined modes (that is, set with: \enablemode, \disablemode or 
\definemode) can be tested about twice as fast as undefined modes which can 
make a small difference



I do not understand this fully:
- if the mode is undefined, how can "define an undefined mode" for a mode that has 
already been given a value with either \enablemode or \disablemode keep a value? Must not 
\enablemode, \disablemode do some sort of 'defining' in order to facilitate testing? Does 
"define" here implements some other mechanism than the 'defining' done by \enablemod, 
\disablemode?


it's more an internal issue. less checking at the tex end and so .. it's 
only relevant when you check modes tens of thousands of times in a run



Is this what happens:
- if \enablemode or \disablemode has been used before to set a value for the 
mode, than \definemode[themode][keep] stashes some special definition of that 
mode and does not change c.q. transfers its value;
- \definemode[themode][yes] and \definemode[themode][no] always set that value 
for the mode in case, regardless of what has been done by a preceding 
\enablemode or \disablemode.

Is that the correct interpretation? Just to make sure I understand.

Finally, when \definemode makes testing a lot faster why than not implement 
this always? That is, using \enablemode or \disablemode the first time implies 
a \definemode for that mode. Doing so avoids another macro to remember: less 
clutter for my brain ;-)


because one property of modes is that one doesn't have to define them, 
you'd be quite unhappy if you would have to define all possible modes 
that could be introduced in styles


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \page[header]

2016-05-22 Thread Meer, Hans van der
According to the description of \page in the contextgarden:
"header - set header off temporarily"

But although this gives two pages numbered 1 and 2:
\starttext
\input knuth
\page
\input knuth
\stoptext

This one does not honour the new page but typesets everything on page 1:
\starttext
\input knuth
\page[header]
\input knuth
\stoptext

As that as intended?

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Thick border of one side of TR/TD

2016-05-22 Thread Lukáš Procházka

Hello,

thanks for the answers.

So my solution now is:


\startuseMPgraphic{MP:ThickBtm}
  draw bottomboundary OverlayBox withpen pensquare scaled 1mm withcolor black;
  clip currentpicture to OverlayBox;
\stopuseMPgraphic

\installbottomframerenderer{Thick}{\useMPgraphic{MP:ThickBtm}}

\starttext
  \bTABLE[width=.4\textwidth,frame=on,align={middle,lohi}]
\bTR[bottomframe=Thick]
  \bTD a \eTD\bTD b \eTD
\eTR
\bTR
  \bTD A \eTD\bTD B \eTD
\eTR
  \eTABLE
\stoptext


Best regards,

Lukas


On Wed, 18 May 2016 00:25:26 +0200, Wolfgang Schuster 
 wrote:


Alan BRASLAU 
18. Mai 2016 um 00:17
On Tue, 17 May 2016 23:09:16 +0200

In case Wolfgang's answer was not clear: use "extreme" tables
(\startxtable) rather than "natural" tables (\bTABLE). This mechanism
uses 'framed' and is more flexible.

There is no need to switch from natural to extreme tables because both
tables uses framed for the cells. What is necessary to create individual
borders for a cell is either a metapost background where you can solid,
dashed etc. lines or custom frame types which can be defined with
the \install(left|right|top|bottom)framerenderer command.

Wolfgang




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

TabThick2.mkiv
Description: Binary data


TabThick2.pdf
Description: Adobe PDF document
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] flushleft and startplacefigure

2016-05-22 Thread Meer, Hans van der
\startplacefigure inherits a lot of location settings but among these flushleft 
and flushright are missing.
Thus the \setupfloat in the example cannot be omitted. Wouldn't it be a logical 
step to make possible also:
\startplacefigure[location=flushleft] 
dito for flushright?

\starttext
% example to extend figure into the left margin (Hans Hagen, 2014-07-25)
\setupfloat[figure][location=flushleft]
\startplacefigure
   \framed[width=1.1\textwidth]{location=flushleft}
\stopplacefigure
\stoptext

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] smaller size for particular style

2016-05-22 Thread Meer, Hans van der

> On 22 May 2016, at 12:07, L.S.-Soc  wrote:
> 
> Did you try\setupbodyfontenvironment?
> 
> http://wiki.contextgarden.net/Command/setupbodyfontenvironment

Didn't help, because I cannot deduce from this how to systematically change the 
series of fontsizes for one style (tt) only.

> 
> I hope that helps.
> 
> Greetings, Seba
> 
> Am 22.05.2016 um 10:33 schrieb Meer, Hans van der:
>> As usual I do a setup for the font with for example: \setupbodyfont[cambria].
>> For most style variants this is fine, but for \tt I find the size too big.
>> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
>> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should 
>> have the size as if the bodyfont had been setup with 
>> \setupbodyfont[cambria,small].
>> 
>> How to effectuate this?
>> 
>> Hans van der Meer
>> 

met vriendelijke groet
Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] smaller size for particular style

2016-05-22 Thread L.S.-Soc

Did you try\setupbodyfontenvironment?

http://wiki.contextgarden.net/Command/setupbodyfontenvironment

I hope that helps.

Greetings, Seba

Am 22.05.2016 um 10:33 schrieb Meer, Hans van der:

As usual I do a setup for the font with for example: \setupbodyfont[cambria].
For most style variants this is fine, but for \tt I find the size too big.
Thus I would like to keep the sizes as setup by the \setupbodyfont for 
everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should 
have the size as if the bodyfont had been setup with 
\setupbodyfont[cambria,small].

How to effectuate this?

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Framing multiline equations

2016-05-22 Thread L.S.-Soc

Hello together,

I'm having trouble framing multiline equations. Problem is that either I 
get an error or the equation gets framed while the multiline is 
converted into a single line. Here is my code:


-
\starttext

\startformula <- works like a charm
\mframed[offset=1mm,loffset=3mm,roffset=3mm]
{a + b = c}
\stopformula

\startformula \startalign <- that's an example 
multiline equation

\NC c - a = \NC b \NR<- unframed it works
\NC d + c - b = \NC a \NR
\stopalign \stopformula

\startformula \framed{\startalign <- \mframed gives an error. \framed 
works, but then the eq

\NC c - a = \NC b \NR   <- gets converted into a single line eq.
\NC d + c - b = \NC a \NR
\stopalign} \stopformula

\stoptext
-

I tried to place \mframed at different locations. But the example above 
is the only one that doesn't give an error.

How would an experienced CTX user frame multiline equations?
I think it would work with natural TABLES. But i would only use that 
way, when nothing else works...



Greetings, Seba
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Support for Optional Content Groups

2016-05-22 Thread Meer, Hans van der

> On 03 Jul 2014, at 19:54, Hans Hagen  wrote:
> 
> I tried this in acrobat:
> 
> \defineviewerlayer[visibleandprint]  [printable=yes,state=start]
> \defineviewerlayer[visibleandnotprint]   [printable=no, state=start]
> \defineviewerlayer[notvisibleandprint]   [printable=yes,state=stop]
> \defineviewerlayer[notvisibleandnotprint][printable=no, state=stop]
> 
> \setupinteraction[state=start]
> 
> \starttext
> 
> \startviewerlayer[visibleandprint]   visible and print \stopviewerlayer 
> \blank
> \startviewerlayer[visibleandnotprint]visible and not print 
> \stopviewerlayer \blank
> \startviewerlayer[notvisibleandprint]not visible and print 
> \stopviewerlayer \blank
> \startviewerlayer[notvisibleandnotprint] not visible and not print 
> \stopviewerlayer \blank
> 
> \stoptext
> 
> and found out that we need an extra piece of info for acrobat to be happy. 
> I'll upload a beta with that addition.
> 
> I wonder if other viewers handle layers well.

I tried this today and report the results, curious to see how on my Apple 
Macintosh the following readers cope with this:

- Adobe Acrobat Reader DC version 15.016.20041 (most recent): does as is 
intended
- Apple Preview: shows all four, definitely a bad score for Apple here. 

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] smaller size for particular style

2016-05-22 Thread Meer, Hans van der
As usual I do a setup for the font with for example: \setupbodyfont[cambria].
For most style variants this is fine, but for \tt I find the size too big.
Thus I would like to keep the sizes as setup by the \setupbodyfont for 
everything except for \tt: there all variants (like \tt, \ttx, \ttxx) should 
have the size as if the bodyfont had been setup with 
\setupbodyfont[cambria,small].

How to effectuate this?

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] bibliography tool

2016-05-22 Thread Meer, Hans van der

> On 30 Jun 2014, at 17:33, Wolfgang Schuster  
> wrote:
> 
> 
> Am 30.06.2014 um 17:29 schrieb Gour :
> 
>> Hans Hagen  writes:
>> 
>>> beware: the mkii derived bibliograpic support for mkiv is replaced so
>>> that page is kind of obsolete (the new manual is in the distribution)
>> 
>> You mean this one http://wiki.contextgarden.net/Bibliography_mkiv is
>> also obsolete?
>> 
>> Where is the new manual and is the manual going to be published in paper
>> form?
> 


> There should be a pdf named mkiv-publications.pdf in your context directory.
> 

This no longer seems to be true. I cannot find such a document in directory
   /tex/texmf-context/doc/context/documents/general/manuals
nor have I found the sources in the corresponding directory.
I presume this is "Bibliographies the ConTeXt Way" by Hans Hagen and Alan 
Braslau I got from somewhere (and alas forgot wherefrom).

It would be nice to have it there, because if time permits I intend to play 
with the new bib-macros in order to familiarize with them.

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] new features

2016-05-22 Thread Meer, Hans van der

> On 26 Jun 2014, at 12:08, Hans Hagen  wrote:
> 
> Another addition is that
> 
> \definemode[something][keep]
> 
> define an undefined mode; the keep makes sure that the already set value is 
> kept (another option is 'yes').
> 
> Using defined modes (that is, set with: \enablemode, \disablemode or 
> \definemode) can be tested about twice as fast as undefined modes which can 
> make a small difference 


I do not understand this fully: 
- if the mode is undefined, how can "define an undefined mode" for a mode that 
has already been given a value with either \enablemode or \disablemode keep a 
value? Must not \enablemode, \disablemode do some sort of 'defining' in order 
to facilitate testing? Does "define" here implements some other mechanism than 
the 'defining' done by \enablemod, \disablemode?

Is this what happens:
- if \enablemode or \disablemode has been used before to set a value for the 
mode, than \definemode[themode][keep] stashes some special definition of that 
mode and does not change c.q. transfers its value;
- \definemode[themode][yes] and \definemode[themode][no] always set that value 
for the mode in case, regardless of what has been done by a preceding 
\enablemode or \disablemode.

Is that the correct interpretation? Just to make sure I understand.

Finally, when \definemode makes testing a lot faster why than not implement 
this always? That is, using \enablemode or \disablemode the first time implies 
a \definemode for that mode. Doing so avoids another macro to remember: less 
clutter for my brain ;-)

Hans van der Meer




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-22 Thread Jean-Pierre Delange
Hi Pablo and others columns addicts !
I answer to myself, trying to understand why there is a mismatch when trying to 
parse a bunch of pages with 2 columns. It seems to have a problem with filling 
the page, even on the first page. I get back to basics and to the 
documentation, testing an explicit sample (sample 901, page 45, on numbering 
lines on 2 columns set).

I change the section title and I copy/paste the first paragraph of an english 
translation of an Aristotelian text. I put 'regular' instead of 'bold' for 
numbering lines.
Please, would you mind to test this following code ?
JP



\usemodule[newcolumnsets]
\definecolumnset[example][n=2,page=middle,distance=1cm]
\setupcolumnset
[example]
[background=contrast]
% \definecolor[fakerulecolor][white] \faketriggertrue
\setuphead
[section]
[style=\bfd]
\setuplinenumbering
[style=regular,
distance=0pt,
align=inner]
\starttext
\startcolumnset[example]
\dorecurse{30}{
\startsection[title=Things are said to be named #1]
\startlinenumbering
Things are said to be named 'equivocally' when, though they have a common name, 
the definition corresponding with the name differs for each. Thus, a real man 
and a figure in a picture can both lay claim to the name 'animal'; yet these 
are equivocally so named, for, though they have a common name, the definition 
corresponding with the name differs for each. For should any one define in what 
sense each is an animal, his definition in the one case will be appropriate to 
that case only.\par
\stoplinenumbering
\stopsection}
\stopcolumnset
\stoptext





- Mail original -
De: "Jean-Pierre Delange" 
À: "mailing list for ConTeXt users" 
Envoyé: Dimanche 22 Mai 2016 09:20:16
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

Hi Pablo,

Reading the documentation again (i.e. columnsets.pdf), I see that the module 
\definecolumnset[example][n=2] allow how to define how many pages we want a set 
of columns, each of one being define with its own number of lines and so on. 
Therefore, the behaviour of the first page will be different of the second, 
etc. Further, one have to imagine a first recto (odd) page blank, followed by 
an even page (even, left page) with a double columns (greek-latin text) and the 
next third page (odd one) with commentaries. Then, one have to define the 
layout, because the number of lines of the greek-latin text on left page has to 
fit with the commentaries on the right page (and because it is not the same 
layout). Moreover, one can imagine for the moment a printed odd page (on left 
page) and a blank one (on the right page).
Maybe it is this behaviour (when a page is filled)- and necessary there is 
another behaviour to deal with when context parse for the even page - about 
which we have to scrutinize.

The purpose of columnset module is to set how many column for a single page and 
how to fit this columns to a number of defined pages (with titles and 
pictures). Its goal is not to make separate columns on the same page. At least 
as far as I can understand the process.
JP

- Mail original -
De: "Jean-Pierre Delange" 
À: "mailing list for ConTeXt users" 
Envoyé: Samedi 21 Mai 2016 12:16:44
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

Hi Pablo,

I'm trying to find a path through the 2 columns set greek-latin with 'criticus 
apparatus'.

1. If you put a bigger text for avoid the \dorecurse command, with 
\definecolumnset[example][n=2, balance=yes] in the preamble, then the following 
coding (note: \startcolumnset and \stopcolumnset commands), all is well as ends 
well IF ONLY the text's length is less than a page. If the text length is 
larger than one page, there is a mismatch as a result, where the latin text 
goes is overprinted on the French text and the footnotes are overprinted by the 
Greek text.

2. Moreover, if you comment the \dorecurse command, with a short Greek and 
Latin text (only a paragraph each), all the notes are well printed, the same 
for the numbering line, but the French text is overprinted by the right column 
Latin ! (Points 1., and 2. without  ConteXt complaining or any error in the log 
file.

3. Now, return to the \dorecurse command, as follow : 
\dorecurse{8}{
\startcolumnset[example]{
\Stephanus{1a} [1a] Ὁμώνυμα [...greek text...]
etc.
The result is the same as point 2.
I conclude there is a problem with the columnset command...

4. Now, I wonder if there is not a problem with brackets around the Greek-Latin 
text...
Jp



\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop

% \dorecurse{8}{

Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

2016-05-22 Thread Jean-Pierre Delange
Hi Pablo,

Reading the documentation again (i.e. columnsets.pdf), I see that the module 
\definecolumnset[example][n=2] allow how to define how many pages we want a set 
of columns, each of one being define with its own number of lines and so on. 
Therefore, the behaviour of the first page will be different of the second, 
etc. Further, one have to imagine a first recto (odd) page blank, followed by 
an even page (even, left page) with a double columns (greek-latin text) and the 
next third page (odd one) with commentaries. Then, one have to define the 
layout, because the number of lines of the greek-latin text on left page has to 
fit with the commentaries on the right page (and because it is not the same 
layout). Moreover, one can imagine for the moment a printed odd page (on left 
page) and a blank one (on the right page).
Maybe it is this behaviour (when a page is filled)- and necessary there is 
another behaviour to deal with when context parse for the even page - about 
which we have to scrutinize.

The purpose of columnset module is to set how many column for a single page and 
how to fit this columns to a number of defined pages (with titles and 
pictures). Its goal is not to make separate columns on the same page. At least 
as far as I can understand the process.
JP

- Mail original -
De: "Jean-Pierre Delange" 
À: "mailing list for ConTeXt users" 
Envoyé: Samedi 21 Mai 2016 12:16:44
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

Hi Pablo,

I'm trying to find a path through the 2 columns set greek-latin with 'criticus 
apparatus'.

1. If you put a bigger text for avoid the \dorecurse command, with 
\definecolumnset[example][n=2, balance=yes] in the preamble, then the following 
coding (note: \startcolumnset and \stopcolumnset commands), all is well as ends 
well IF ONLY the text's length is less than a page. If the text length is 
larger than one page, there is a mismatch as a result, where the latin text 
goes is overprinted on the French text and the footnotes are overprinted by the 
Greek text.

2. Moreover, if you comment the \dorecurse command, with a short Greek and 
Latin text (only a paragraph each), all the notes are well printed, the same 
for the numbering line, but the French text is overprinted by the right column 
Latin ! (Points 1., and 2. without  ConteXt complaining or any error in the log 
file.

3. Now, return to the \dorecurse command, as follow : 
\dorecurse{8}{
\startcolumnset[example]{
\Stephanus{1a} [1a] Ὁμώνυμα [...greek text...]
etc.
The result is the same as point 2.
I conclude there is a problem with the columnset command...

4. Now, I wonder if there is not a problem with brackets around the Greek-Latin 
text...
Jp



\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop

% \dorecurse{8}{
\startcolumnset[example]{
\Stephanus{1a} [1a] Ὁμώνυμα [...greek text...]
\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{première note} solum
commune est, secundum nomen vero \ANote{substantiae}{seconde note}
\ANote{ratio}{seconde note} diversa, ut animal
\DNote{homo}{troisième note} et quod pingitur. Horum enim solum nomen 
commune est [...Latin text...]
\stoplinenumbering

\stopcolumnset}
\stoptext

- Mail original -
De: "Pablo Rodriguez" 
À: "mailing list for ConTeXt users" 
Envoyé: Vendredi 20 Mai 2016 23:02:34
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

On 05/20/2016 09:51 PM, Jean-Pierre Delange wrote:
> Hi Pablo,
> 
> Thanks to have correct my mistake. It works !
> If you take this sample and place the number 8 in \dorecurse{4} in
> place of 4, you'll see something which is better than our first
> attempts. Now, it's only the last paragraph of the first page, which is
> messed up. After a somehow puzzled or erratic Wille zu Macht in the
> location of this last paragraph, ConTeXt locates very fine the last ones
> and does what it has to do ! But it's better to say that my code is weak ...

Hi Jean-Pierre,

there is something weird with columns and the last paragraph.

Even using exactly the same text for both left and right columns (as
shown in https://mailman.ntg.nl/pipermail/ntg-context/2016/085544.html),
the paragraph on the left fits on the first page, but the paragraph on
the right doesn’t.

Well, if that isn’t a bug, I’d like to know what I’m missing there.


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