[NTG-context] Strange problem related to \usemodule

2011-10-09 Thread Hongwen Qiu
Hi,

I have access to three machines both running GNU/Linux x86-64, I call
them "Laptop", "Desktop" and "Remote" respectively here on.

The "Laptop" has full access to the internet, so I always install and
upgrade my ConTeXt Standalone on it when I'm home.

At workplace, I can surfer the internet with the "Desktop" while the
RSYNC port is blocked.

I only can access the "Remote" through ssh from the "Desktop" without
root privilege and can not access the internet.

So, I always copied the ConTeXt standalone from my "Laptop" onto my
"Desktop", and from my "Desktop" onto "Remote" if necessary. Then, I'll
delete the cache before I set the PATH to the appropriate location and
run context --make and mtxrun --generate.

So the ConTeXt standalones are almost identical on both my "Desktop" and
"Remote". And the following minimal example just works fine on my
"Desktop" but failed on the "Remote",
=== Minimal Example 
\usemodule[vim]

\definevimtyping[RUBY][syntax=ruby]

\starttext

\startRUBY
puts "Hello"
\stopRUBY

\stoptext
=
Actually, on "Remote", whatever module I use, it will prompt the
Undefined Control Sequence error regarding the first command I used from
that module with the module loaded correctly. Attached is the error log
accompany the above minimal example.

So, what can be the problem with my "Remote".

TIA. for any help. 
(b.tex

ConTeXt  ver: 2011.10.08 11:42 MKIV  fmt: 2011.10.10  int: english/english

system  > cont-new.mkiv loaded
(/ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > b.top loaded

system  > options > start used options

used options> % runtime options files (command line driven)
used options> \unprotect
used options> % feedback and basic job control
used options> % handy for special styles
used options> \startluacode
used options> document = document or { }
used options> document.arguments={
used options> }
used options> document.files={
used options>  "b.tex",
used options> }
used options> \stopluacode
used options> % process info
used options> \setupsystem[inputfile=b.tex]
used options> \setupsystem[\c!n=1,\c!m=1]
used options> % modes
used options> % options (not that important)
used options> \startsetups *runtime:options
used options> \stopsetups
used options> % styles and modules
used options> \startsetups *runtime:modules
used options> \stopsetups
used options> % done
used options> \protect \endinput

system  > options > stop used options

(b.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
resolvers   > modules > loaded: 'vim'
! Undefined control sequence.

system  > tex > error on line 3 in file b.tex: Undefined control sequence ...

 1 \usemodule[vim]
 2 
 3 >>  \definevimtyping[RUBY][syntax=ruby]
 4 
 5 \starttext
 6 
 7 \startRUBY
 8 puts "Hello"
 9 \stopRUBY
10 
11 \stoptext
12 

l.3 \definevimtyping
[RUBY][syntax=ruby]
? X

system  > files > start used files

used files  >1: filename=mult-mps.lua | filetype=tex | format=tex | foundname=/ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-context/tex/context/base/mult-mps.lua | usedmethod=database
used files  >2: filename=b.tex | foundname=b.tex | usedmethod=direct
used files  >3: filename=cont-new.mkiv | filetype=tex | foundname=/ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-context/tex/context/base/cont-new.mkiv | usedmethod=database
used files  >4: filename=b.top | foundname=b.top | usedmethod=direct
used files  >5: filename=lang-us.lua | filetype=lua | foundname=/ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-context/tex/context/patterns/lang-us.lua | usedmethod=database
used files  >6: filename=t-vim.tex | filetype=tex | foundname=/ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-modules/tex/context/third/vim/t-vim.tex | usedmethod=database

system  > files > stop used files


system  > structure > start used structure

used structure  > text: b

system  > structure > stop used structure

mkiv lua stats  > used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path   - /ifs2/S2PH/qiuhw/opt/context-1008/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats  > resource resolver - loadtime 0.016 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 6 found files, scanned paths: 
mkiv lua stats  > stored bytecode data  - 295 modules, 63 tables, 358 chunks
mkiv lua stats  > cleaned up reserved nodes - 32 nodes, 9 lists of 424
mkiv lua stats  > node memory usage - 18 glue_spec, 1 dir
mkiv lua stats  > node lis

Re: [NTG-context] metapost not adding picture

2011-10-09 Thread Peter Rolf
Am 09.10.2011 22:01, schrieb Meer, H. van der:
> I have this question on the implementation of metapost.
> The following program ends in an error:
> 
> \startMPpage
> picture v;
> draw origin--(1cm,1cm);
> v = currentpicture;
> clearit;
> draw (1cm,0)--(0,1cm);
> currentpicture := currentpicture + v;

use

addto currentpicture also v;

> \stopMPpage
> 
> The error is: ! Not implemented: (picture)+(picture).
> Yet Knuth's metafont book in Chapter 13 tells me, quote: "Pictures can be 
> added or subtracted;"
> Is the current metafont implementation lacking this feature? Will it be 
> implemented in the near future?
>
Just another notation, that's all.

Best wishes, 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
___


[NTG-context] metapost not adding picture

2011-10-09 Thread Meer, H. van der
I have this question on the implementation of metapost.
The following program ends in an error:

\startMPpage
picture v;
draw origin--(1cm,1cm);
v = currentpicture;
clearit;
draw (1cm,0)--(0,1cm);
currentpicture := currentpicture + v;
\stopMPpage

The error is: ! Not implemented: (picture)+(picture).
Yet Knuth's metafont book in Chapter 13 tells me, quote: "Pictures can be added 
or subtracted;"
Is the current metafont implementation lacking this feature? Will it be 
implemented in the near future?

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] vertically aligned side margin footnotes

2011-10-09 Thread Alexandre Leray

Hi,

Would it be possible to typeset the text on the left page and the 
comments on the right page?


Thanks

Alex

There is an experimental stream feature but I haven't looked into that
one for a while.

___
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] jump to PDF page

2011-10-09 Thread Steffen Wolfrum

Am 28.09.2010 um 16:38 schrieb Hans Hagen:
> 
> I'll upload a beta that supports
> 
> \setupinteraction[state=start]
> 
> \starttext
>\startstandardmakeup
>no page
>\stopstandardmakeup
>one \goto{page 2}[page(2)]
>one \goto{realpage 2}[realpage(2)]
>one \goto{userpage 2}[userpage(2)]
>\page
>two \goto{page 1}[page(1)]
>two \goto{realpage 1}[realpage(1)]
>two \goto{userpage 1}[userpage(1)]
> \stoptext



The last one 

\goto{...}[userpage(...)] 

doesn't work anymore!


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