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

2016-05-21 Thread Hans Åberg

> 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


___
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-21 Thread Wolfgang Schuster

Hans Åberg 
21. Mai 2016 um 19:06

On 21 May 2016, at 18:31, Wolfgang Schuster  wrote:



You need a font which has the necessary symbols or you take the missing one 
from another font but in this case you should look for one which has a similar 
style as the main font (which is not the case in my example).

\definefallbackfamily [moremath] [tt] [DejaVu Sans Mono] 
[range=mathematicaloperators]
\definefontfamily [moremath] [tt] [Latin Modern Mono]
%\definefontfamily [moremath] [mm] [Latin Modern Math]


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

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] Typing environment on non-ASCII

2016-05-21 Thread Hans Åberg

> On 21 May 2016, at 18:31, Wolfgang Schuster  
> wrote:

> You need a font which has the necessary symbols or you take the missing one 
> from another font but in this case you should look for one which has a 
> similar style as the main font (which is not the case in my example).
> 
> \definefallbackfamily [moremath] [tt] [DejaVu Sans Mono] 
> [range=mathematicaloperators]
> \definefontfamily [moremath] [tt] [Latin Modern Mono]
> %\definefontfamily [moremath] [mm] [Latin Modern Math]

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.


___
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-21 Thread Wolfgang Schuster

Hans Åberg 
21. Mai 2016 um 16:09
The typing environment does not seem to work on non-ASCII characters: 
below, ∀, ≔ and ∈ drop out. Perhaps not available in monospace, 
substituting nothing.


\setupbodyfont[xits,10pt]

\starttyping
∀(i, k) ∈ I×K: C(i, k) ≔ ∑_(j∈J) A(i, j)·B(j, k)
\stoptyping
You need a font which has the necessary symbols or you take the missing 
one from another font but in this case you should look for one which has 
a similar style as the main font (which is not the case in my example).


\definefallbackfamily [moremath] [tt] [DejaVu Sans Mono] 
[range=mathematicaloperators]

\definefontfamily [moremath] [tt] [Latin Modern Mono]
%\definefontfamily [moremath] [mm] [Latin Modern Math]

\setupbodyfont[moremath,10pt]

\starttext

\starttyping
∀(i, k) ∈ I×K: C(i, k) ≔ ∑_(j∈J) A(i, j)·B(j, k)
\stoptyping

\stoptext

PS. Your example is missing the \starttext and \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] Problem with \blackboard{} command

2016-05-21 Thread Wolfgang Schuster

cryo shock 
21. Mai 2016 um 17:37
Hi together,

I've experienced a problem with \blackboard{} command. Please paste 
the following code and compile it (I have newest CTX beta version 
(updating daily)):



\starttext

Variation 1:
$\forall n \in \blackboard{Z} \neq 0$: should be $0$

Variation 2:
$\forall n \in \integers \neq 0$: is $0$

\stoptext


When the first variation is used, CTX seems to convert every folowing 
letter into blackboard characters within the rest of the math 
environment no matter where \blackboard brackets are placed.
Only when the second variation with \integers is used, CTX propely 
converts every following letter. But imagine you need blackboard G for 
some reason for example. Then the same bug will appear. I hope this 
can be fixed easily.
The \blackboard command changes the math alphabet and is used like a 
normal font switch, to limit its scope you have to use it in this form:


{\blackboard Z}

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
___

[NTG-context] Problem with \blackboard{} command

2016-05-21 Thread cryo shock
Hi together,

I've experienced a problem with \blackboard{} command. Please paste the
following code and compile it (I have newest CTX beta version (updating
daily)):


\starttext

Variation 1:
$\forall n \in \blackboard{Z} \neq 0$: should be $0$

Variation 2:
$\forall n \in \integers \neq 0$: is $0$

\stoptext


When the first variation is used, CTX seems to convert every folowing
letter into blackboard characters within the rest of the math environment
no matter where \blackboard brackets are placed.
Only when the second variation with \integers is used, CTX propely converts
every following letter. But imagine you need blackboard G for some reason
for example. Then the same bug will appear. I hope this can be fixed easily.


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
___

[NTG-context] Typing environment on non-ASCII

2016-05-21 Thread Hans Åberg
The typing environment does not seem to work on non-ASCII characters: below, ∀, 
≔ and ∈ drop out. Perhaps not available in monospace, substituting nothing.

\setupbodyfont[xits,10pt]

\starttyping
∀(i, k) ∈ I×K: C(i, k) ≔ ∑_(j∈J) A(i, j)·B(j, k)
\stoptyping


___
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-21 Thread Jean-Pierre Delange
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!

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
___

Re: [NTG-context] Group list is down.

2016-05-21 Thread Wolfgang Schuster

Henman 
20. Mai 2016 um 20:40
It seems that my messages are not appropriately getting onto the list?
Have  you been to busy to forward them to the list?

Question now is "how to stop "repeat" in enumerations that give item 
numbers such as 1   1.1  1.1.1     but at a certain depth I just 
want a simple alpha, such a   a.  b.  c.  Hot to do?

- https://mailman.ntg.nl/pipermail/ntg-context/2016/085405.html
- https://mailman.ntg.nl/pipermail/ntg-context/2016/085408.html

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
___

[NTG-context] Group list is down.

2016-05-21 Thread Henman

It seems that my messages are not appropriately getting onto the list?
Have  you been to busy to forward them to the list?

Question now is "how to stop "repeat" in enumerations that give item 
numbers such as 1   1.1  1.1.1     but at a certain depth I just 
want a simple alpha, such a   a.  b.  c.  Hot to do?

___
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-21 Thread Wolfgang Schuster

Pablo Rodriguez 
20. Mai 2016 um 20:42
Dear list,

I have the following sample:

\definefallbackfamily
[mainface]
[serif]
[DejaVu Serif]
[preset=range:greek]

\definefontfamily
[mainface]
[serif]
[TeX Gyre Pagella]

\setupbodyfont
[mainface, 100pt]

\starttext
χαλεπὰ τὰ καλά
\stoptext

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
___
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
___