Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-14 Thread Aditya Mahajan

On Sat, 14 May 2016, Hans Åberg wrote:


On 14 May 2016, at 18:41, Aditya Mahajan  wrote:

On Sat, 14 May 2016, Hans Åberg wrote:




On 14 May 2016, at 01:25, Hans Hagen  wrote:



installing and running the garden distribution is quite simple (as is updating) 
.. there are less files too (so no big burden to have it alongside tex live)


With this installation, I get a strange bug:

In the example below, the first integral gets ‘limits' in the displayed 
formula, as though ‘nolimits’ has not been defined. It works if one puts a 
character before the first integral sign. So it seems that the \startformula 
command misses the ∫ definition on the first non-space character.


I haven't debugged this, but my guess is that the int symbol is read before 
\everymathematics is executed (because \startformula is looking ahead for the 
optional arguments in [...] and the only way to do so is read the next symbol 
and check if it is [).

Use
\startformula\relax
...
\stopformula


Just about anything seems to work:
I put in an empty group
\startformula{}
...
\stopformula


Be careful with empty group in math mode:

\startformula{} -a \stopformula
\startformula\relax -a \stopformula

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] Help with configuring Textadept to work with ConTeXt

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

Hi folks,

i am having a hard time to configure Textadept to work with CTX on 
Windows 10. I've also searched around but can't find any usefull tutorial.


What I've done so far:
- I downloaded and installed CTX (first-setup.bat --modules=all) and I 
added "...\texmf-win64\bin" to my system path
- I downloaded and unzipped Textadept and also added the folder to my 
system path.
- I opened a *.tex file with Textadept and pressed "Tools->Compile" but 
I only got an error message:


> pdflatex -file-line-error -halt-on-error "untitled-3.tex"
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64-bit)
entering extended mode
(untitled-3.tex
LaTeX2e <2015/10/01> patch level 2
Babel <3.9n> and hyphenation patterns for 69 languages loaded.
untitled-3.tex:2: Undefined control sequence
untitled-3.tex:2:  ==> Fatal error occurred, no output PDF file produced!
Transcript written on untitled-3.log.
> exit status: 1

Now I am wondering why Textadept does choose MiKTeX as I have placed 
ConTeXt above MiKTeX in my system path.
I also tried to extract the scintillua*** lexers into Textadept's lexer 
folder but still. No pdf can be created.


I also searched Textadept's files for context entries but there is 
nothing i could change to make TA compile a file in MkIV.


Did anybody manage to get Context to work with TA and could provide some 
help? Thanks in advance.

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

2016-05-14 Thread Robert Blackstone

On 14 May 2016, at 20:01, Pablo Rodriguez l wrote:
> 
> On 05/14/2016 11:25 AM, Robert Blackstone wrote:
>> 
>> When I process this with mkiv, the urls in AA and CC are active,
>> while in BB it is not. Why?
> 
> Hi Robert,
> 
> the comma is the problematic character in url:
> 
>\setupinteraction[state=start]
>\starttext
>\goto{http://a,b.c}[url(http://a,b.c)]
>\stoptext
> 
> I’m afraid this might be a bug.

I had not noticed the comma and, yes, you are right, when I remove the comma I 
get an active url which opens a page on the desired site but without contents. 
When I add the comma in the address I get the desired page. I could add this 
instruction to the footnote but that seems to me to be a bit odd.

And Peter Münster  wrote

> 
> Workaround: url(http://a\letterpercent2Cb.c)
> 
> -- 
>   Peter

Incomprehensible for me, this workaround, but it does work !

Thank you both,

Best regards,
Robert
___
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] Nolimits not working with Unicode characters

2016-05-14 Thread Hans Åberg

> On 14 May 2016, at 18:41, Aditya Mahajan  wrote:
> 
> On Sat, 14 May 2016, Hans Åberg wrote:
> 
>> 
>>> On 14 May 2016, at 01:25, Hans Hagen  wrote:
>> 
>>> installing and running the garden distribution is quite simple (as is 
>>> updating) .. there are less files too (so no big burden to have it 
>>> alongside tex live)
>> 
>> With this installation, I get a strange bug:
>> 
>> In the example below, the first integral gets ‘limits' in the displayed 
>> formula, as though ‘nolimits’ has not been defined. It works if one puts a 
>> character before the first integral sign. So it seems that the \startformula 
>> command misses the ∫ definition on the first non-space character.
> 
> I haven't debugged this, but my guess is that the int symbol is read before 
> \everymathematics is executed (because \startformula is looking ahead for the 
> optional arguments in [...] and the only way to do so is read the next symbol 
> and check if it is [).
> 
> Use
> \startformula\relax
> ...
> \stopformula

Just about anything seems to work: I put in an empty group
\startformula{}
...
\stopformula


___
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] Nolimits not working with Unicode characters

2016-05-14 Thread Aditya Mahajan

On Sat, 14 May 2016, Hans Åberg wrote:




On 14 May 2016, at 01:25, Hans Hagen  wrote:



installing and running the garden distribution is quite simple (as is updating) 
.. there are less files too (so no big burden to have it alongside tex live)


With this installation, I get a strange bug:

In the example below, the first integral gets ‘limits' in the displayed 
formula, as though ‘nolimits’ has not been defined. It works if one puts 
a character before the first integral sign. So it seems that the 
\startformula command misses the ∫ definition on the first non-space 
character.


I haven't debugged this, but my guess is that the int symbol is read 
before \everymathematics is executed (because \startformula is looking 
ahead for the optional arguments in [...] and the only way to do so is 
read the next symbol and check if it is [).


Use
\startformula\relax
...
\stopformula

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
___

Re: [NTG-context] definebodyfontenvironment

2016-05-14 Thread Meer, Hans van der
I think I did not state the problem clear enough.
The solution given here supposes that the fontsize is known beforehand.
However, what I am doing is calculating a font size based on the current one 
and than switch to that size.
It is part of a fontsize changing mechanism inside an xmlsetup. In short what I 
am doing is:

\scratchdimen=\the\dimexpr\bodyfontsize\relax
\advance\scratchdimen 'somevalue' \relax
% \definebodyfontenvironment[\the\scratchdimen]
\begingroup
% must keep the change local
\switchtobodyfont[\the\scratchdimen]
...
\endgroup

The commented out \definebodyfontenvironment kills a lot of the font messages 
but I fear that each the time the same work is done as without it. The only 
benefit being the suppression of the font messages in the log ;-)

It might be impossible to accomplish this efficiently -- that is execute the 
font calculations once only for the given size. But at least I would like to 
give it a try.

Hans van der Meer




On 14 May 2016, at 20:00, Wolfgang Schuster 
> wrote:

Meer, Hans van der
14. Mai 2016 um 17:55
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global

Is this definebodyfontenvironment macro fully executed each time it is called 
or does ConTeXt remember and execute it once only?
Just put it at the begin of the document.

\definebodyfontenvironment[18pt]

\starttext

\dorecurse{10}
  {\begingroup
   \switchtobodyfont[18pt]
   \endgroup}

\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] definebodyfontenvironment

2016-05-14 Thread Wolfgang Schuster

Meer, Hans van der 
14. Mai 2016 um 17:55
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global

Is this definebodyfontenvironment macro fully executed each time it is 
called or does ConTeXt remember and execute it once only?

Just put it at the begin of the document.

\definebodyfontenvironment[18pt]

\starttext

\dorecurse{10}
  {\begingroup
   \switchtobodyfont[18pt]
   \endgroup}

\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 urls

2016-05-14 Thread Peter Münster
On Sat, May 14 2016, Pablo Rodriguez wrote:

> the coma is the problematic character in url:
>
> \setupinteraction[state=start]
> \starttext
> \goto{http://a,b.c}[url(http://a,b.c)]
> \stoptext
>
> I’m afraid this might be a bug.

Workaround: url(http://a\letterpercent2Cb.c)

-- 
   Peter
___
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-14 Thread Pablo Rodriguez
On 05/13/2016 04:25 PM, Jean-Pierre Delange wrote:
> 
> I am currently writing in French some ConTeXt documentation. That's
> why I'm looking for some help about coding footnotes within a 'critical
> apparatus' work, like the sample given here below (which is given by
> Maieul Rouquette through its release of reledmac's LaTeX macro). Let me
> know, please, some documentation resources on this topic.
> 
> My question is as follow : how can ConTeXt produce the same printing
> as the one given by LaTeX ? I am not looking for a very translation in
> ConTeXt of this file given in LaTeX ! A similar sample (where different
> levels of notes are managed as in this LaTeX file) will be perfect.

Hi Jean-Pierre,

here you have a basic sample:

\mainlanguage[la]
\setuplayout[header=0cm, footer=0cm]
\setuplinenumbering[step=5]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupbodyfont[palatino, 7.8pt]
\starttext
\start\en
\startlinenumbering
\dorecurse{9}% only to repeat the following paragraph
{Cum defensionum \CNote{laboribus}{first note} senatoriisque
muneribus aut omnino aut magna ex parte essem aliquando liberatus,
rettuli me, Brute, te hortante maxime ad ea studia, quae retenta
animo, remissa temporibus, longo intervallo intermissa revocavi, et
cum omnium artium, quae ad rectam vivendi viam pertinerent,
\ANote{ratio}{second note} et disciplina studio sapientiae, quae
philosophia dicitur, contineretur, hoc mihi Latinis litteris
\DNote{inlustrandum}{third note} putavi, non quia
\BNote{philosophia}{fourth note} Graecis et litteris et doctoribus
percipi non posset, sed meum semper iudicium fuit omnia nostros aut
invenisse per se sapientius quam Graecos aut accepta ab illis
fecisse meliora, quae quidem digna statuissent, in quibus
elaborarent.\par}
\stoplinenumbering
\stoptext

I hope it helps,

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
___

[NTG-context] Latin setupmathematics

2016-05-14 Thread Hans Åberg
In order to align with Unicode, \setupmathematics might have Latin shape 
options, as the Greek ‘lcgreek’ and ‘ucgreek', say ‘lclatin' and ‘uclatin', 
both defaulting to ’italic’. Unicode added the Latin italic symbols to the Math 
Alphanumeric Symbols range, so the upright letters are inaccessible when italic 
is assigned to the Basic Latin (ASCII) range.


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

2016-05-14 Thread Pablo Rodriguez
On 05/14/2016 11:25 AM, Robert Blackstone wrote:
> Dear all,
> 
> Can any of you explain, or, better, suggest a remedy for, the
> following problem:
> 
> I want active urls in footnotes. With the same setups and correct
> urls, some of them become active and some others not.
> [...]
> When I process this with mkiv, the urls in AA and CC are active,
> while in BB it is not. Why?

Hi Robert,

the coma is the problematic character in url:

\setupinteraction[state=start]
\starttext
\goto{http://a,b.c}[url(http://a,b.c)]
\stoptext

I’m afraid this might be a bug.


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
___

[NTG-context] definebodyfontenvironment

2016-05-14 Thread Meer, Hans van der
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global

Is this definebodyfontenvironment macro fully executed each time it is called 
or does ConTeXt remember and execute it once only?

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] Nolimits not working with Unicode characters

2016-05-14 Thread Hans Åberg

> On 14 May 2016, at 01:25, Hans Hagen  wrote:

> installing and running the garden distribution is quite simple (as is 
> updating) .. there are less files too (so no big burden to have it alongside 
> tex live)

With this installation, I get a strange bug:

In the example below, the first integral gets ‘limits' in the displayed 
formula, as though ‘nolimits’ has not been defined. It works if one puts a 
character before the first integral sign. So it seems that the \startformula 
command misses the ∫ definition on the first non-space character.



\setupbodyfont[xits,10pt]

\appendtoks
\catcode`∫=\activecatcode
\letcharcode `∫ \int
\to \everymathematics

\setupmathematics[integral=nolimits]

Nolimits $\int_0^∞ f ω$, and $∫_0^∞ f ω$

\startformula
   ∫_0^∞ f ω, \quad ∫_0^∞ f ω, \quad \int_0^∞ f ω
\stopformula



___
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] Nolimits not working with Unicode characters

2016-05-14 Thread Hans Åberg

> On 13 May 2016, at 12:22, Hans Hagen  wrote:
> 
> in principle one can make ∫ and \int but that has other side effects

What side effect do you have in mind here?


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

2016-05-14 Thread Robert Blackstone
Dear all,
Can any of you explain, or, better, suggest a remedy for, the following problem:

I want active urls in footnotes. With the same setups and correct urls, some of 
them become active and some others not.

See the following ME: 

+
\setupinteraction[state=start,focus=standard,style=,color=blue,contrastcolor=]

\starttext

AA 
\footnote{\goto{http://gallica.bnf.fr/ark:/12148/btv1b90634431.r=Francois+Couperin.langEN}[url(http://gallica.bnf.fr/ark:/12148/btv1b90634431.r=Francois+Couperin.langEN)]}

BB\footnote{\goto{http://imslp.org/wiki/Tuoni_ecclesiastici_con_li_loro_versetti_(Greco,_Gaetano)}[url(http://imslp.org/wiki/Tuoni_ecclesiastici_con_li_loro_versetti_(Greco,_Gaetano))]}

CC 
\footnote{\goto{http://www.saraband.com.au/figured_bass.htm}[url(http://www.saraband.com.au/figured_bass.htm)]}

\stoptext   
++

When I process this with mkiv, the urls in AA and CC are active, while in BB it 
is not. Why? 

Thanks in advance for any help.

Best regards,
Robert Blackstone
___
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] Nolimits not working with Unicode characters

2016-05-14 Thread Hans Åberg

> On 14 May 2016, at 01:25, Hans Hagen  wrote:

> installing and running the garden distribution is quite simple (as is 
> updating) .. there are less files too (so no big burden to have it alongside 
> tex live)

I installed it on OS X 10.11.5 Beta in /Applications/ConTeXt. Then it turns out 
that adding ‘context’ to the PATH by a script
  exec /Applications/ConTeXt/tex/texmf-osx-64/bin/context "$@“
isn’t enough, because it gets hold of the older LuaTeX version from TeX Live 
2015 which is also in the path. However, running ‘setuptex’ works.

One can download a LilyPond binary to /Applications/, and its binaries then has 
lookup paths set properly to itself. Then scripts as those above have the 
advantage of not interfering with other binaries with the same name.


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