[NTG-context] Strange bug in the latest version of ConTeXt

2016-04-26 Thread Jaroslav Hajtmar

Hello ConTeXist.

I have just installed the latest version of ConTeXt standalone. When I 
compiled an my old source code, I received an error:



! You can't use `\Ustopmath' in restricted horizontal mode! You can't 
use `\Ustopmath' in restricted horizontal mode! You can't use 
`\Ustartmath' in restricted horizontal mode! Inline math should end with 
\Ustopmath



This strange error is caused something in my extensive library for 
handling CSV files. I'm not sure why, because in library I am not use 
with any mathematical mode.


I am sorry, but at this moment I am not able to reveal the mistake to be 
able make a minimal example. Some of the older versions (not necessarily 
penultimate) worked without problems. Is there someone who help me start 
look from which point look for a mistake in my code library? Thanks for 
the information.


Jaroslav Hajtmar


___
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] Updating ConTeXt standalone problem on Mac OS X

2016-04-26 Thread Jaroslav Hajtmar

Thanks Monca and Hans for the reply.
I deleted the entire installation tree and I installed again the entire 
ConTeXt and it seems that everything is already OK.


Jaroslav Hajtmar


Dne 26.04.16 v 11:34 Mojca Miklavec napsal(a):

On 26 April 2016 at 11:21, Jaroslav Hajtmar wrote:

Hello ConTeXist
I have a problem with updating ConTeXt on my Mac OS X (El Captain). When you
run the update script to me an error message appears, which surprises me,
since I logged on as the system administrator. Can anyone advise me on what
could be the problem.

Running rsync as an administrator has an ugly consequence that you end
up copying the UID and GUID as-is, so you might end up with files
owned by very strange or perhaps even non-existing users.

Maybe you could play with
 --chown=USER:GROUP
when calling rsync from first-setup.sh to start with.

Who currently owns bin and bin/luatex?

It is not impossible that something changed yesterday though (I was
messing with the server), but the installation works for me. What
happens if you run the installation as a regular user (to a fresh
directory)?

We should look into it, but I need some proper diagnosis first.

Mojca
___
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] Updating ConTeXt standalone problem on Mac OS X

2016-04-26 Thread Meer, Hans van der
I am running the same OSX El Capitan (from a non-administrator account) and I 
have no problems installing the ConTeXt-beta with the following script executed 
inside a fresk and empty directory:

#!/bin/bash
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
chmod a+x first-setup.sh
mkdir tex
cd tex
ln -s ~/Documents/TeX/texmf texmf-local
cd ..
sh ./first-setup.sh --context=beta >first-setup.log
#sh ./first-setup.sh --context=current >first-setup.log
#sh ./first-setup.sh --context=date >first-setup.log
exit


On 26 Apr 2016, at 11:34, Mojca Miklavec 
> wrote:

On 26 April 2016 at 11:21, Jaroslav Hajtmar wrote:
Hello ConTeXist
I have a problem with updating ConTeXt on my Mac OS X (El Captain). When you
run the update script to me an error message appears, which surprises me,
since I logged on as the system administrator. Can anyone advise me on what
could be the problem.

Running rsync as an administrator has an ugly consequence that you end
up copying the UID and GUID as-is, so you might end up with files
owned by very strange or perhaps even non-existing users.

Maybe you could play with
   --chown=USER:GROUP
when calling rsync from first-setup.sh to start with.

Who currently owns bin and bin/luatex?

It is not impossible that something changed yesterday though (I was
messing with the server), but the installation works for me. What
happens if you run the installation as a regular user (to a fresh
directory)?

We should look into it, but I need some proper diagnosis first.

Mojca
___

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] Updating ConTeXt standalone problem on Mac OS X

2016-04-26 Thread Mojca Miklavec
On 26 April 2016 at 11:21, Jaroslav Hajtmar wrote:
> Hello ConTeXist
> I have a problem with updating ConTeXt on my Mac OS X (El Captain). When you
> run the update script to me an error message appears, which surprises me,
> since I logged on as the system administrator. Can anyone advise me on what
> could be the problem.

Running rsync as an administrator has an ugly consequence that you end
up copying the UID and GUID as-is, so you might end up with files
owned by very strange or perhaps even non-existing users.

Maybe you could play with
--chown=USER:GROUP
when calling rsync from first-setup.sh to start with.

Who currently owns bin and bin/luatex?

It is not impossible that something changed yesterday though (I was
messing with the server), but the installation works for me. What
happens if you run the installation as a regular user (to a fresh
directory)?

We should look into it, but I need some proper diagnosis first.

Mojca
___
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] Updating ConTeXt standalone problem on Mac OS X

2016-04-26 Thread Jaroslav Hajtmar

Hello ConTeXist
I have a problem with updating ConTeXt on my Mac OS X (El Captain). When 
you run the update script to me an error message appears, which 
surprises me, since I logged on as the system administrator. Can anyone 
advise me on what could be the problem. I note that I am a beginner on OS X.


Here is problematic report:


Jaroslav-MacBook-Air:context hajtmar$ sh first-setup.sh
receiving file list ... done
rsync: failed to set times on "/Users/hajtmar/context/bin": Operation 
not permitted (1)

bin/
rsync: mkstemp "/Users/hajtmar/context/bin/.luatex.y7B2Zy" failed: 
Permission denied (13)


etc


Thanx
Jaroslav Hajtmar








___
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] useMPgraphic scaling

2016-04-26 Thread Wolfgang Schuster

Meer, Hans van der 
26. April 2016 um 08:50


Sure, is needed. Checked it again.
I define \scalesetting as
\edef\scalesetting{scale=\xmlattdef{#1}{scale}{1000}}
But I am not sure why this needs the expansion..

The enclosing \rotate[rotation=\xmlattdef{#1}{rotation}{0}]{...} does 
not need the\expanded.



The exapnsion is need for this part only:

\scale[\scalesetting]

ConTeXt checks if the argument contains an assignment which isn't the 
case unless you expand \scalesetting and it sees the = in the argument.


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] useMPgraphic scaling

2016-04-26 Thread Meer, Hans van der

On 25 Apr 2016, at 16:34, Hans Hagen > 
wrote:

On 4/25/2016 3:46 PM, Meer, Hans van der wrote:
Thanks,

Your reply popped up here exactly the moment I saw the light! Must be
something
Messed up the order things:

Was:
\scale[\scalesetting]{%
   \expanded{\useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters%

And of course had to be:
\expanded{\scale[\scalesetting]{%
   \useMPgraphic{\xmlatt{#1}{name}}{\xmlatt{#1}{parameters%

is the \expanded really needed?

Sure, is needed. Checked it again.
I define \scalesetting as
\edef\scalesetting{scale=\xmlattdef{#1}{scale}{1000}}
But I am not sure why this needs the expansion..

The enclosing \rotate[rotation=\xmlattdef{#1}{rotation}{0}]{...} does not need 
the \expanded.

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
___