Re: [NTG-context] Pstricks and Asymptote

2009-11-19 Thread Mojca Miklavec
On Wed, Nov 18, 2009 at 21:49, Hans Hagen wrote:
 luigi scarso wrote:
 On Wed, Nov 18, 2009 at 5:10 PM, Alan BRASLAU wrote:

 There are lots of differences between the latest tikz
 and the version distributed with tex live.
 I compare the minimals tex/generic/pgf/
 with that installed under /usr/share/texmf (pgf v.2.00-1 debian 7 May
 2008).
 I suppose that the minimals use a more recent svn version.

 yes it looks so.
 minimals ChangeLog should be Revision 1.363

 http://pgf.cvs.sourceforge.net/viewvc/pgf/pgf/doc/generic/pgf/ChangeLog?view=log

It is being updated daily on the garden.

 i sent mojca a patched pgf file so it's in her hands now

I forwarded it to Till and the other most active developer (who does
not dare to patch anything before Till Tantau checks it). I did some
tests and it seems to work (I found a few problems, but they were
there already before).

If there will be no reply for the next couple of days, you may remind
me and I'll freeze updates of TikZ and patch the version in minimals.
(I don't like patching official versions too much, so I'll wait for a
few more days if Till replies.)

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] osx-64-binaries/minimals

2009-11-19 Thread Mojca Miklavec
On Thu, Nov 19, 2009 at 07:59, Taco Hoekwater wrote:

 Mojca Miklavec wrote:

 Hans, Taco - does LuaTeX itself know if it's 64-bit or not?

 Only internally at the moment, but I could add a variable
 in the os library (after I figure out which of the sizeof()'s
 is the best one to use).

When outside the binary one can run file for example:

 file osx-intel/current/luatex/beta-0.45.0/luatex
osx-intel/current/luatex/beta-0.45.0/luatex: Mach-O executable i386

 file osx-ppc/current/luatex/beta-0.45.0/luatex
osx-ppc/current/luatex/beta-0.45.0/luatex: Mach-O executable ppc

 file osx-64/current/luatex/beta-0.45.0/luatex
osx-64/current/luatex/beta-0.45.0/luatex: Mach-O 64-bit executable x86_64

 file linux/current/luatex/beta-0.44.0/luatex
linux/current/luatex/beta-0.44.0/luatex: ELF 32-bit LSB executable,
Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked
(uses shared libs), stripped

 file linux-64/current/luatex/beta-0.44.0/luatex
linux-64/current/luatex/beta-0.44.0/luatex: ELF 64-bit LSB executable,
x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked
(uses shared libs), stripped

But I have no idea if there is some simple way to hardcode the target
architecture into LuaTeX itself. (Apart from compiling hello world,
running file on it, doing a platform-dependent regular expression
and passing that value to luatex at compile time. But that would be
really really ugly.)

gcc could be as kind as returning the architecture on request.

Yes, I know, I should be dreaming at night, not in the middle of day.
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] osx-64-binaries/minimals

2009-11-19 Thread Arthur Reutenauer
 But I have no idea if there is some simple way to hardcode the target
 architecture into LuaTeX itself.

  You could check the first few bytes of the LuaTeX binary itself, it has to
tell you something about the architecture it was compiled for.  That's what
file uses in most cases anyway (the magic numbers).  By compiling a stupid C
program on both 10.5 and 10.6, I see that the first 16 bytes of the executable
are, respectively:

  10.5: cefa edfe 0700  0300  0200 

  10.6: cffa edfe 0700 0001 0300 0080 0200 

Arthur
___
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] verbatim, reserved words, Python, MkII

2009-11-19 Thread R. Bastian
Hello,

I wish to write Python code with highlighted reserved words, but I dont find
any modell in the context-garden: all verb-.tex are 'Unknown'

http://source.contextgarden.net/verb-c.tex
Unknown file or directory: verb-c.tex

Thanks for your tips,

-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org


___
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] verbatim, reserved words, Python, MkII

2009-11-19 Thread luigi scarso
On Thu, Nov 19, 2009 at 11:45 AM, R. Bastian rbast...@free.fr wrote:
 Hello,

 I wish to write Python code with highlighted reserved words, but I dont find
 any modell in the context-garden: all verb-.tex are 'Unknown'

 http://source.contextgarden.net/verb-c.tex
 Unknown file or directory: verb-c.tex

http://source.contextgarden.net/verb-c.mkii
-- 
luigi
___
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] rotate a figure

2009-11-19 Thread Alan BRASLAU
On Tuesday 17 November 2009 16:48:45 Hans Hagen wrote:
 Peter Münster wrote:
  On Tue, Nov 17 2009, R. Bastian wrote:
  \rotate[rotation=90]{\externalfigure[filename]}
 
  \externalfigure[filename][orientation=90] ;)
 
 \placefigure[here,90]{}{}

Yes! However, sometimes we want to turn an externalfigure
that is one part of a combination. Here, \externalfigure
[orientation=90] is broken (incorrect bounding box).
Minimal example:

\setupexternalfigures[location={local,default}]

\starttext
\externalfigure [cow] [frame=on,width=.5\textwidth]
\rotate [rotation=90] {\externalfigure [cow] [frame=on,width=.5\textwidth]}
\placefigure [force,90]
{A turned cow}
{\externalfigure [cow] [frame=on,width=.5\textwidth]}

broken:\crlf
\externalfigure [cow] [frame=on,width=.5\textwidth,orientation=90]
\externalfigure [cow] [frame=on,height=.5\textwidth,orientation=90]
\stoptext


% Alan
___
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] rotate a figure

2009-11-19 Thread luigi scarso
On Thu, Nov 19, 2009 at 12:07 PM, Alan BRASLAU alan.bras...@cea.fr wrote:
 On Tuesday 17 November 2009 16:48:45 Hans Hagen wrote:
 Peter Münster wrote:
  On Tue, Nov 17 2009, R. Bastian wrote:
  \rotate[rotation=90]{\externalfigure[filename]}
 
  \externalfigure[filename][orientation=90] ;)

 \placefigure[here,90]{}{}

 Yes! However, sometimes we want to turn an externalfigure
 that is one part of a combination. Here, \externalfigure
 [orientation=90] is broken (incorrect bounding box).
 Minimal example:

 \setupexternalfigures[location={local,default}]

 \starttext
 \externalfigure [cow] [frame=on,width=.5\textwidth]
 \rotate [rotation=90] {\externalfigure [cow] [frame=on,width=.5\textwidth]}
 \placefigure [force,90]
        {A turned cow}
        {\externalfigure [cow] [frame=on,width=.5\textwidth]}

 broken:\crlf
 \externalfigure [cow] [frame=on,width=.5\textwidth,orientation=90]
 \externalfigure [cow] [frame=on,height=.5\textwidth,orientation=90]
 \stoptext

I always thought that orientation was related to textual flow
while  rotate to rectangular object
\starttext
 \framed[width=12cm,height=3cm,orientation=0]{\input ward\relax}
 \framed[width=12cm,height=3cm,orientation=90]{\input ward\relax}
 \framed[width=12cm,height=3cm,orientation=180]{\input ward\relax}
 \framed[width=12cm,height=3cm,orientation=270]{\input ward\relax}
 \framed[width=12cm,height=3cm,orientation=-90]{\input ward\relax}
 \framed[width=12cm,height=3cm,orientation=-180]{\input ward\relax}
 \framed[width=12cm,height=3cm,orientation=-270]{\input ward\relax}
\stoptext

-- 
luigi
___
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] \usemodule doesn't complain when module is not found?

2009-11-19 Thread Matthijs Kooijman
Hi all,

I've been trying my first steps into the land of ConTeXt modules, without much
success. What has been particularly annoying is that the \usemodule command
seems to give no error or other indication that a particular module was not
found. Consider below example:

  \usemodule{foobar}

  \starttext
Foo
  \stoptext

I would highly appreciate it if the above would fail with a Module foobar not
found error (possibly even with locations where the module was looked for,
but I'm not sure how that works exactly).

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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] rotate a figure

2009-11-19 Thread Alan BRASLAU
On Thursday 19 November 2009 12:26:40 luigi scarso wrote:
 On Thu, Nov 19, 2009 at 12:07 PM, Alan BRASLAU alan.bras...@cea.fr wrote:
  On Tuesday 17 November 2009 16:48:45 Hans Hagen wrote:
  Peter Münster wrote:
   On Tue, Nov 17 2009, R. Bastian wrote:
   \rotate[rotation=90]{\externalfigure[filename]}
  
   \externalfigure[filename][orientation=90] ;)
 
  \placefigure[here,90]{}{}
 
  Yes! However, sometimes we want to turn an externalfigure
  that is one part of a combination. Here, \externalfigure
  [orientation=90] is broken (incorrect bounding box).
  Minimal example:
 
  \setupexternalfigures[location={local,default}]
 
  \starttext
  \externalfigure [cow] [frame=on,width=.5\textwidth]
  \rotate [rotation=90] {\externalfigure [cow]
  [frame=on,width=.5\textwidth]} \placefigure [force,90]
 {A turned cow}
 {\externalfigure [cow] [frame=on,width=.5\textwidth]}
 
  broken:\crlf
  \externalfigure [cow] [frame=on,width=.5\textwidth,orientation=90]
  \externalfigure [cow] [frame=on,height=.5\textwidth,orientation=90]
  \stoptext
 
 I always thought that orientation was related to textual flow
 while  rotate to rectangular object
 \starttext
  \framed[width=12cm,height=3cm,orientation=0]{\input ward\relax}
  \framed[width=12cm,height=3cm,orientation=90]{\input ward\relax}
  \framed[width=12cm,height=3cm,orientation=180]{\input ward\relax}
  \framed[width=12cm,height=3cm,orientation=270]{\input ward\relax}
  \framed[width=12cm,height=3cm,orientation=-90]{\input ward\relax}
  \framed[width=12cm,height=3cm,orientation=-180]{\input ward\relax}
  \framed[width=12cm,height=3cm,orientation=-270]{\input ward\relax}
 \stoptext
 

This explains the use of the keyword orientation,
inherited from \framed by \externalfigure
(also the use of width and height).

Should \externalfigure have an additional keyword
rotation to be interpreted independently of orientation?

Alan
___
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] \usemodule doesn't complain when module is not found?

2009-11-19 Thread Matthijs Kooijman
   \usemodule{foobar}
Right, this should have been \usemodule[foobar] (square brackets instead of
curlies...). It would been nice if this would error out, but well...

When fixing this, there is a module foobar not found message, though it
doesn't error out.

So, never mind and sorry for the noise...

Gr.

Matthijs


signature.asc
Description: Digital signature
___
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] mtx-texworks.lua can't find TeXworks on linux

2009-11-19 Thread Khaled Hosny
Running it gives:

$ mtxrun -script texworks -start
MTXrun | unable to locate TeXworks

Though I've texworks on my path:

$ which texworks 
/usr/bin/texworks

I found that the file.split_path(os.getenv(PATH)) call returns a table
with single member containing the full PATH variable (it assumes it is a
semicolon separated list, but on linux it is a colon separated list). 

Even after getting around this, the executable name it is looking for is
'TeXworks' while it should be 'texworks'.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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] \getfiguredimensions again in mkiv

2009-11-19 Thread Aditya Mahajan

Hi,

This request was lost in traffic.

On Mon, 9 Nov 2009, Aditya Mahajan wrote:


Hans,

Something is also wrong with getting the width and height of a figure in 
mkiv. Minimal example:


\starttext
\getfiguredimensions[filename]
\figurewidth
\figureheight
\stoptext


To be precise, I get 0sp 0sp as output, rather than the correct dimensions 
of the figure.


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] mtx-texworks.lua can't find TeXworks on linux

2009-11-19 Thread Hans Hagen

Khaled Hosny wrote:

Running it gives:

$ mtxrun -script texworks -start
MTXrun | unable to locate TeXworks

Though I've texworks on my path:

$ which texworks 
/usr/bin/texworks


I found that the file.split_path(os.getenv(PATH)) call returns a table
with single member containing the full PATH variable (it assumes it is a
semicolon separated list, but on linux it is a colon separated list). 


hm, that should be detected automatically; i'll check it


Even after getting around this, the executable name it is looking for is
'TeXworks' while it should be 'texworks'.


oh, so they changed it? good, as this mixed uppercase lowercase is annoying

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] mtx-texworks.lua can't find TeXworks on linux

2009-11-19 Thread Hans Hagen

Hans Hagen wrote:

Khaled Hosny wrote:

Running it gives:

$ mtxrun -script texworks -start
MTXrun | unable to locate TeXworks

Though I've texworks on my path:

$ which texworks /usr/bin/texworks

I found that the file.split_path(os.getenv(PATH)) call returns a table
with single member containing the full PATH variable (it assumes it is a
semicolon separated list, but on linux it is a colon separated list). 


here the splitter works , can you send me the path string?


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] mtx-texworks.lua can't find TeXworks on linux

2009-11-19 Thread Khaled Hosny
On Thu, Nov 19, 2009 at 06:40:07PM +0100, Hans Hagen wrote:
 Hans Hagen wrote:
 Khaled Hosny wrote:
 Running it gives:

 $ mtxrun -script texworks -start
 MTXrun | unable to locate TeXworks

 Though I've texworks on my path:

 $ which texworks /usr/bin/texworks

 I found that the file.split_path(os.getenv(PATH)) call returns a table
 with single member containing the full PATH variable (it assumes it is a
 semicolon separated list, but on linux it is a colon separated list). 
 

 here the splitter works , can you send me the path string?

$ echo $PATH
/opt/texlive/2009/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/khaled/bin:/home/khaled/.local/bin


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
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] osx-64-binaries/minimals

2009-11-19 Thread Martin Schröder
2009/11/19 Taco Hoekwater t...@elvenkind.com:
 Hans, Taco - does LuaTeX itself know if it's 64-bit or not?

 Only internally at the moment, but I could add a variable
 in the os library (after I figure out which of the sizeof()'s
 is the best one to use).

How about exposing uname(2)? Or is that too much information?

Best
Martin
___
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] t-vim / minimals

2009-11-19 Thread Renaud AUBIN
Hi,

I have just reinstalled ConTeXt after an HD crash with ./first_setup
--extras=all and t-vim seems to contain an error since I obtain (with MKII):

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 30 2009 16:02:52)
arguments en trop apr?s l'option: -u NONE -e -C -n -c set tabstop=8 -c 
syntax on -c set syntax=rnc -c let contextstartline=1 -c let 
contextstopline=0 -c source 
/usr/local/ConTeXt/tex/texmf-context/tex/context/third/vim/2context.vim -c 
wqa prd_note_rex_ngc-vimsyntax.tmp 
Plus d'info avec: vim -h

! I can't find file `prd_note_rex_ngc-vimsyntax.tmp-vimsyntax.tmp'.
to be read again 
   \relax 
\dodotypevimfile ...\input #2-vimsyntax.tmp\relax 
  \egroup \@@vsafter 
l.142 \stopRNC
  
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 
! I can't find file `prd_note_rex_ngc-vimsyntax.tmp-vimsyntax.tmp'.
to be read again 
   \relax 
\dodotypevimfile ...\input #2-vimsyntax.tmp\relax 
  \egroup \@@vsafter 
l.142 \stopRNC
  
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 

It seems to be known since I have already found some topics on this
issue.

Using --noquotes for the mtxrun call used within the \runvimsyntax
definition fixes the matter here. Does anybody could reupload for
minimals?

Best regards,

Renaud
___
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] texutil --purgeallfiles

2009-11-19 Thread Renaud AUBIN
Hi,

Trying to use the good old days texutil --purgeallfiles, I obtain:
ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles
/usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1:in 
`require': no such file to load -- base/file (LoadError)
from 
/usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1

My ruby dist seems to work well in a nominal context. Is texutil fully
functional for other debian 64 / minimals users?

Renaud
___
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] t-vim / minimals

2009-11-19 Thread Peter Münster
On Thu, Nov 19 2009, Renaud AUBIN wrote:
 
 I have just reinstalled ConTeXt after an HD crash with ./first_setup
 --extras=all and t-vim seems to contain an error since I obtain (with MKII):

Hello Renaud,

The latest version of the t-vim module seems to be here:

http://www.ntg.nl/pipermail/ntg-context/2009/042527.html

I suppose, that it will be integrated soon into the minimals.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] texutil --purgeallfiles

2009-11-19 Thread Aditya Mahajan

On Thu, 19 Nov 2009, Renaud AUBIN wrote:


Hi,

Trying to use the good old days texutil --purgeallfiles, I obtain:
ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles
/usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1:in 
`require': no such file to load -- base/file (LoadError)
from 
/usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1

My ruby dist seems to work well in a nominal context. Is texutil fully
functional for other debian 64 / minimals users?


Does ctxtools --purgeall work?

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] t-vim / minimals

2009-11-19 Thread Aditya Mahajan

On Thu, 19 Nov 2009, Peter Münster wrote:


On Thu, Nov 19 2009, Renaud AUBIN wrote:


I have just reinstalled ConTeXt after an HD crash with ./first_setup
--extras=all and t-vim seems to contain an error since I obtain (with MKII):


Hello Renaud,

The latest version of the t-vim module seems to be here:

http://www.ntg.nl/pipermail/ntg-context/2009/042527.html

I suppose, that it will be integrated soon into the minimals.


Yes, I need to clean it up and upload to the minimals. That will most 
likely not happen until next year.


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] Notepad++ calltips

2009-11-19 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Richard,

On Wed, 18 Nov 2009 09:58:26 -0700, richard.steph...@converteam.com  
wrote:


Does anyone use Notepad++ with the function calltips feature? Checking  
the
context.xml definition file, there are calltips defined for  
\startitemize, but
they never appear when I'm typing, even though the auto-completion works  
fine.


Trying a .cpp file gives calltips okay, so it seems to be something to  
do with

the Context implementation.


I did some experimenting with calltips about a year ago... it took me a  
while to figure it out though...


In context.xml I implemented only one:

KeyWord name=startitemize func=yes
Overload retVal= 
Param name=[.1.] n a A KA r R KR m g G -number- 
each /
/Overload   
Overload retVal= 
Param name=[..,.2.,..] standard -n-*broad -n-*serried packed  
unpacked stopper joinedup atmargin inmargin autointro loose section  
intext/

/Overload   
Overload retVal= 
Param name=margin = no standard -dimension- 
/
/Overload   
/KeyWord


It used to work, in my present Npp 5.5.1 it seems broken; even cpp  
calltips don't work -- although normal autocompletion works fine. Does  
this one calltip work for you? What version of Npp are you running?


In any case, it will be a major task to fill out all calltips for  
context.xml, unless there is a minimally structured source file for all  
context command options that can be sorted by text-processing [beyond my  
skill set].


Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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] texutil --purgeallfiles

2009-11-19 Thread Alan BRASLAU
On Thursday 19 November 2009 20:46:40 Renaud AUBIN wrote:
 Hi,
 
 Trying to use the good old days texutil --purgeallfiles, I obtain:
 ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles
 /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1
 :in `require': no such file to load -- base/file (LoadError) from
  /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:
 1
 
 My ruby dist seems to work well in a nominal context. Is texutil fully
 functional for other debian 64 / minimals users?

texutil --purgeallfiles
works fine here: debian sid amd64
under latest context minimals

Alan
___
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] mtx-texworks.lua can't find TeXworks on linux

2009-11-19 Thread Hans Hagen

Khaled Hosny wrote:

On Thu, Nov 19, 2009 at 06:40:07PM +0100, Hans Hagen wrote:

Hans Hagen wrote:

Khaled Hosny wrote:

Running it gives:

$ mtxrun -script texworks -start
MTXrun | unable to locate TeXworks

Though I've texworks on my path:

$ which texworks /usr/bin/texworks

I found that the file.split_path(os.getenv(PATH)) call returns a table
with single member containing the full PATH variable (it assumes it is a
semicolon separated list, but on linux it is a colon separated list). 


here the splitter works , can you send me the path string?


$ echo $PATH
/opt/texlive/2009/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/khaled/bin:/home/khaled/.local/bin


ok, i see the problem (it's not just splitting at : or ; as in tex 
config files specs can bw much more complex); will be solved in next beta



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] texutil --purgeallfiles

2009-11-19 Thread Renaud AUBIN
ctxtools --purgeall doesn't exist but ctxtools --purgefiles works well.
Besides, context --purge(all) works but from your question I realize
that context --purge certainly wraps a ctxtools' call.

 Aditya == Aditya Mahajan adit...@umich.edu writes:

Aditya On Thu, 19 Nov 2009, Renaud AUBIN wrote:
 Hi,
 
 Trying to use the good old days texutil --purgeallfiles, I obtain:
 ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles
 /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1:in
 `require': no such file to load -- base/file (LoadError) from
 /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1
 
 My ruby dist seems to work well in a nominal context. Is texutil
 fully functional for other debian 64 / minimals users?

Aditya Does ctxtools --purgeall work?

Aditya 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] texutil --purgeallfiles

2009-11-19 Thread Renaud AUBIN
Ouch, bad news for me, perhaps my ruby is buggy: ruby 1.8.7 (2009-06-12 
patchlevel 174) [x86_64-linux]

 Alan == Alan BRASLAU alan.bras...@cea.fr writes:

Alan On Thursday 19 November 2009 20:46:40 Renaud AUBIN wrote:
 Hi,
 
 Trying to use the good old days texutil --purgeallfiles, I obtain:
 ren...@daneel:~/ConTeXt/notes/src$ texutil --purgeallfiles
 /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:1
 :in `require': no such file to load -- base/file (LoadError) from
 /usr/local/ConTeXt/tex/texmf-context/scripts/context/ruby/base/texutil.rb:
 1
 
 My ruby dist seems to work well in a nominal context. Is texutil
 fully functional for other debian 64 / minimals users?

Alan texutil --purgeallfiles works fine here: debian sid amd64 under
Alan latest context minimals

Alan Alan
Alan 
___
Alan If your question is of interest to others as well, please add an
Alan entry to the Wiki!

Alan maillist : ntg-context@ntg.nl /
Alan http://www.ntg.nl/mailman/listinfo/ntg-context webpage :
Alan http://www.pragma-ade.nl / http://tex.aanhet.net archive :
Alan http://foundry.supelec.fr/projects/contextrev/ wiki :
Alan http://contextgarden.net
Alan 
___
___
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] texutil --purgeallfiles

2009-11-19 Thread Wolfgang Schuster

Am 19.11.2009 um 22:32 schrieb Renaud AUBIN:

 ctxtools --purgeall doesn't exist

ctxtools --purge --all

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] \getfiguredimensions again in mkiv

2009-11-19 Thread Hans Hagen

Aditya Mahajan wrote:

Hi,

This request was lost in traffic.

On Mon, 9 Nov 2009, Aditya Mahajan wrote:


Hans,

Something is also wrong with getting the width and height of a figure 
in mkiv. Minimal example:


\starttext
\getfiguredimensions[filename]
\figurewidth
\figureheight
\stoptext


To be precise, I get 0sp 0sp as output, rather than the correct 
dimensions of the figure.


fixed in next beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] grid snapping (mkiv)

2009-11-19 Thread Hans Hagen

Peter Rolf wrote:

Hi,

is the 'grid={line,??pt}' functionality already implemented in mkiv? I 
use it in a multicolumn environment and all I get is snapping to the 
'full' baseline.


\setuphead[section]
 [%style={\SectionHeaderFont},
  style={\switchtobodyfont[12.3pt]\ss\bf\setupinterlinespace},
%   grid={high}, % ok
  grid={line,3pt}, % snaps to 'second' baseline
  after=,
 ]


grid support is partially reimplemented and will differ in some aspects 
from mkii


i have no time now to discuss it in detail (will probably explain a few 
things in a chapter of hybrid.pdf or the style manual)


we have now grid definitions, with predefined:

\definegridsnapping[normal]   [maxheight,maxdepth,strut]
\definegridsnapping[standard] [maxheight,maxdepth,strut]
\definegridsnapping[yes]  [maxheight,maxdepth,strut]

\definegridsnapping[strict]   [maxdepth:0.8,maxheight:0.8,strut]
\definegridsnapping[tolerant] [maxdepth:1.2,maxheight:1.2,strut]

\definegridsnapping[top]  [minheight,maxdepth,strut]
\definegridsnapping[bottom]   [maxheight,mindepth,strut]
\definegridsnapping[both] [minheight,mindepth,strut]

\definegridsnapping[broad][maxheight,maxdepth,strut,0.8] 
\definegridsnapping[fit]  [maxheight,maxdepth,strut,1.2]

\definegridsnapping[first][first]
\definegridsnapping[last] [last]
\definegridsnapping[high] [minheight,maxdepth,none]
\definegridsnapping[low]  [maxheight,mindepth,none]
\definegridsnapping[line] [line]
\definegridsnapping[strut][strut]

\definegridsnapping[max]  [maxdepth,maxheight,strut]
\definegridsnapping[min]  [mindepth,minheight,strut]

so we have height/depth snapping, tolerance factors, strut or line based 
distribution, and some more; also there will be more strategies, like


\setuplayout[grid=tolerant] \showgrid

most structural elements will have a grid key (if it makes sense)

\setuphead[chapter][grid=strut] \startchapter[title={Test: 
strut}]   test \par test \par test \stopchapter
\setuphead[chapter][grid={local,strut}] \startchapter[title={Test: 
local,strut}] test \par test \par test \stopchapter
\setuphead[chapter][grid={strut,top:3}] \startchapter[title={Test: 
strut,top:3}] test \par test \par test \stopchapter


multi columns are not touched yet (i will do that as soon as we've 
opened up a it more of tex in luatex)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] texutil --purgeallfiles

2009-11-19 Thread Vyatcheslav Yatskovsky

On 19.11.2009 22:28, ntg-context-requ...@ntg.nl wrote:

My ruby dist seems to work well in a nominal context. Is texutil fully
functional for other debian 64 / minimals users?
   

Please, try texexec --purgeall or context --purgeall.

Reagards,
Vyatcheslav
___
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] \getfiguredimensions again in mkiv

2009-11-19 Thread Aditya Mahajan

On Thu, 19 Nov 2009, Hans Hagen wrote:


Aditya Mahajan wrote:

Hi,

This request was lost in traffic.

On Mon, 9 Nov 2009, Aditya Mahajan wrote:


Hans,

Something is also wrong with getting the width and height of a figure in 
mkiv. Minimal example:


\starttext
\getfiguredimensions[filename]
\figurewidth
\figureheight
\stoptext


To be precise, I get 0sp 0sp as output, rather than the correct dimensions 
of the figure.


fixed in next beta


Thanks.

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] osx-64-binaries/minimals

2009-11-19 Thread Taco Hoekwater


Martin Schröder wrote:
 2009/11/19 Taco Hoekwater t...@elvenkind.com:
 Hans, Taco - does LuaTeX itself know if it's 64-bit or not?
 Only internally at the moment, but I could add a variable
 in the os library (after I figure out which of the sizeof()'s
 is the best one to use).
 
 How about exposing uname(2)? Or is that too much information?

It is exposed already, but (if I understand correctly) Snow Leopard
returns the same uname information for both 32bit and 64bit modes.

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