Re: [NTG-context] \synctex=1 ignored in mkiv

2011-03-11 Thread 李延瑞
2011/3/11 Mojca Miklavec mojca.miklavec.li...@gmail.com:
 Dear Hans,

 subject says it all: when I use \synctex=1 in mkiv, I don't get any
 .synctex.gz file. The --synctex switch works however (which is exactly
 the opposite of what used to be the case a while ago :).


Hi Mojca,

\enabledirectives[system.synctex] is instead of \synctex=1 in mkiv.


-- 
Best regards,

Li Yanrui (李延瑞)
___
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] \synctex=1 ignored in mkiv

2011-03-11 Thread Hans Hagen

On 11-3-2011 3:38, Mojca Miklavec wrote:

Dear Hans,

subject says it all: when I use \synctex=1 in mkiv, I don't get any
..synctex.gz file. The --synctex switch works however (which is exactly
the opposite of what used to be the case a while ago :).


\synctex is a nop in mkiv, use a proper directive instead:

\enabledirectives[system.synctex]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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] \synctex=1 ignored in mkiv

2011-03-11 Thread Mojca Miklavec
On Fri, Mar 11, 2011 at 18:31, Hans Hagen wrote:
 On 11-3-2011 3:38, Mojca Miklavec wrote:

 Dear Hans,

 subject says it all: when I use \synctex=1 in mkiv, I don't get any
 ..synctex.gz file. The --synctex switch works however (which is exactly
 the opposite of what used to be the case a while ago :).

 \synctex is a nop in mkiv, use a proper directive instead:

 \enabledirectives[system.synctex]

Thank you. What exactly was the reason to disable the old syntax? Why
not maybe defining it to give at least a warning (or even error)
printing out a message saying what to do. It is a bit weird to see the
code compile fine without ever noticing that something went wrong.

Is there any chance that a single command would be provided that would
work both in mkii and mkiv (in mkii it would call \synctex=1 and in
mkiv it would call \enabledirectives[system,synctex])?

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
___


Re: [NTG-context] \synctex=1 ignored in mkiv

2011-03-11 Thread Hans Hagen

On 11-3-2011 7:12, Mojca Miklavec wrote:


Thank you. What exactly was the reason to disable the old syntax? Why
not maybe defining it to give at least a warning (or even error)
printing out a message saying what to do. It is a bit weird to see the
code compile fine without ever noticing that something went wrong.


there are a few more primitives disabled (and an overload with message 
is no option as there is no way to intercept the parser)


reasons: more consistency, less error prone, better tracing etc


Is there any chance that a single command would be provided that would
work both in mkii and mkiv (in mkii it would call \synctex=1 and in
mkiv it would call \enabledirectives[system,synctex])?


 ^ period !

i'm not going to bother about mkii in this respect, in mkiv we move away 
from variables in favor of directives, trackers and experiments


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___