Re: [NTG-context] [ntg-context] beta

2011-12-02 Thread Robin.Kirkham
On Friday, 2 December 2011, Ian Lawrence wrote:

 New units are a great improvement. Thanks.
 Ian
 On 29 Nov 2011, at 17:57, Hans Hagen wrote:
 
 Hi,

 I uploaded a new beta. The usual fixes (as reported to/suggested on this 
 list) and an updated unit mechanism. I'll also upload the new (but yet 
 incomplete) units manual.

 http://www.pragma-ade.com/general/manuals/units-mkiv.pdf

 Hans

Thanks from me too. Yes, I think we are pretty close with this. A few problems 
(and possible enhancements) are detailed in the attached (source and pdf). 
(Hans: this supersedes the one I sent you privately).

Robin


units5.tex
Description: units5.tex


units5.pdf
Description: units5.pdf
___
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] [SOLVED] mod_php vs context: tight loop

2011-12-02 Thread Hans Hagen

On 2-12-2011 02:59, Brendan Jurd wrote:


The apache worker process had no such environment variables, so mtxrun
failed. Once I added the following line to my PHP script, everything
started working just fine:

putenv('TEMPDIR=/tmp');


can you that on the wiki? maybe we need a section: running context in 
webservices or so



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


[NTG-context] Lua script not registered

2011-12-02 Thread John Kitzmiller
Hello.

Trying to make my first doc with ConTeXt (Win7, standalone install) I get
the error:

context: The Lua script is not registered
context: Data: context

and I am taken back to the command prompt. Nothing is produced.

Any ideas?

What did I overlook?

After `texing otherwise for years I am really looking forward to diving
into ConTeXt.

Thanks,

John
___
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] Lua script not registered

2011-12-02 Thread luigi scarso
On Fri, Dec 2, 2011 at 5:04 PM, John Kitzmiller jki...@gmail.com wrote:
 Hello.

 Trying to make my first doc with ConTeXt (Win7, standalone install) I get
 the error:

 context: The Lua script is not registered
 context: Data: context

 and I am taken back to the command prompt. Nothing is produced.

 Any ideas?

 What did I overlook?

 After `texing otherwise for years I am really looking forward to diving into
 ConTeXt.

 Thanks,

 John

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


Under linux, save this as test.tex
\starttext \input tufte \stoptext

and the on a shell

$ context test.tex

You should have test.pdf with one page.

Otherwise, we need more infos (OS, which context standalone, test file...)

-- 
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] no color with interaction and reference format

2011-12-02 Thread Hans Hagen

On 30-11-2011 13:28, Wolfgang Schuster wrote:


I quick fix for strc-ref.mkvi but it’s better to change the \dosetXXXattributes 
command in mult-aux.mkiv. The problem is the test for the \colorattributehash 
macros which are never empty because the hold the full name of the namespace 
and not the value of the key.


I changed that attributes handler (I'd also like to change the name but 
that needs some coordination with modules that use it).


I also added some more commandhandler usage (so now we have 4 todo's 
left). In the process related font and color switching has been 
de-mkii'd and sped up a bit.


Another big change is that page-txt is now a mkvi module (quit esome 
rewritten code). As there have been some optimizations the slow down due 
to the new handler mechanism is neglectable (some 0.0003 sec per page) 
and due to some other optimization (footnote checking) the raw pps speed 
is higher now.


Anyhow, a consequence of this is that there will be no beta now as you 
(read: WS) have to do some checking against your module code.


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
___


Re: [NTG-context] [ntg-context] beta

2011-12-02 Thread Hans Hagen

On 2-12-2011 10:51, robin.kirk...@csiro.au wrote:

On Friday, 2 December 2011, Ian Lawrence wrote:


New units are a great improvement. Thanks.
Ian
On 29 Nov 2011, at 17:57, Hans Hagen wrote:


Hi,

I uploaded a new beta. The usual fixes (as reported to/suggested on this list) 
and an updated unit mechanism. I'll also upload the new (but yet incomplete) 
units manual.

http://www.pragma-ade.com/general/manuals/units-mkiv.pdf

Hans


Thanks from me too. Yes, I think we are pretty close with this. A few problems 
(and possible enhancements) are detailed in the attached (source and pdf). 
(Hans: this supersedes the one I sent you privately).


- concerning unicode celsuis and fahrenheit symbols: lm has only one of 
them hence the inconsistent rendering. I now check for both being 
present and fallback in case one of them is missing.


- dB (A) : I've added that feature () sounds ok to me.

- Are succesive per's always to be collapsed? 10 a/b/c or 10 a/bc?

- I'll see what I can do with multiple units.

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
___


Re: [NTG-context] Formatting footnote numbers (in text)

2011-12-02 Thread Chris Lott
On Thu, Dec 1, 2011 at 11:40 AM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 01.12.2011 um 22:02 schrieb Chris Lott:

 I'm new to ConTeXt, but I have searched for this myself... I'm trying
 to format the footnote numbers that appear in the text of my
 documents. I've used this to change them from being blue (there may be
 a better way-- I am generating PDFs for print, so don't need the
 hyperlinks) using the following:
 \setupinteraction[state=start,color=black,contrastcolor=black]

 Why do you enable hyperlinks etc. when you don’t need them?

Because I don't (yet) know how to disable them. I decided to switch
from LaTeX and needed to do so quickly as it appears it will-- in the
long term-- meet my needs more effective. But my workflow at the
moment is Markdown -Pandoc -ConTeXt via context xxx.tex, which spits
out a PDF with blue, hyperlinked bookmarks (which don't work very well
with footnotes on screen anyway) to footnotes.

Thanks for the formatting example, which takes care of the immediate need.

c
___
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] Lua script not registered

2011-12-02 Thread John Kitzmiller
I hope this does not open another thread with the same name, but I did not
find a way to respond directly within the archive--something else I am
missing or will ntg find the reference? Here it goes...

Thank you for response luigi. The story:

OS = Windows7 professional
I also have MikTeX installed which I use routinely for pdfLaTeX and
METAPOST from TeXworks

download 
context-setup-mswin.ziphttp://minimals.contextgarden.net/setup/context-setup-mswin.zip
from
the wiki
unzip to  C:\context
run from shell  C:\contextfirst-setup.bat --modules=all
add to PATH  C:\context\tex\texmf-mswin\bin\
run from shell  C:\contextfirst-setup.bat --keep

Then create tex file \starttext Hello world \stopptext  in different
location.

Navigate shell to that location and  context firstfile.tex

Result is  message
context: The Lua script is not registered.
context: Data: context

Aha! I tried moving firstfile.tex into C:\context and then run and it
works, but takes 11.62 seconds--not so good.

However, I still get Lua script not registered when I try to run from other
file locations, which makes me think it is PATH problem that I will
continue to chase but if anything looks obvious please help.

--johnk
___
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] Lua script not registered

2011-12-02 Thread Hans Hagen

On 2-12-2011 23:42, John Kitzmiller wrote:

I hope this does not open another thread with the same name, but I did not
find a way to respond directly within the archive--something else I am
missing or will ntg find the reference? Here it goes...

Thank you for response luigi. The story:

OS = Windows7 professional
I also have MikTeX installed which I use routinely for pdfLaTeX and
METAPOST from TeXworks

download 
context-setup-mswin.ziphttp://minimals.contextgarden.net/setup/context-setup-mswin.zip
from
the wiki
unzip to  C:\context
run from shell  C:\contextfirst-setup.bat --modules=all
add to PATH  C:\context\tex\texmf-mswin\bin\
run from shell  C:\contextfirst-setup.bat --keep

Then create tex file \starttext Hello world \stopptext  in different
location.

Navigate shell to that location andcontext firstfile.tex

Result is  message
context: The Lua script is not registered.
context: Data: context

Aha! I tried moving firstfile.tex into C:\context and then run and it
works, but takes 11.62 seconds--not so good.


Each run? On my (over 5 years old) machine a Hello world takes less than 
a second.



However, I still get Lua script not registered when I try to run from other
file locations, which makes me think it is PATH problem that I will
continue to chase but if anything looks obvious please help.


Can you install the standalone distribution from the garden and see if 
that one works?


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
___


Re: [NTG-context] beta

2011-12-02 Thread Hans Hagen

On 30-11-2011 06:36, Mikael P. Sundqvist wrote:


is there any chance that the problem with too much space in math
described in [1] will be fixed soon? I tried the latest beta, but it
seems that it is not yet fixed.


i wonder when it first showed up

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
___


Re: [NTG-context] Lua script not registered

2011-12-02 Thread Aditya Mahajan

On Fri, 2 Dec 2011, John Kitzmiller wrote:


I hope this does not open another thread with the same name, but I did not
find a way to respond directly within the archive--something else I am
missing or will ntg find the reference? Here it goes...

Thank you for response luigi. The story:

OS = Windows7 professional
I also have MikTeX installed which I use routinely for pdfLaTeX and
METAPOST from TeXworks

download 
context-setup-mswin.ziphttp://minimals.contextgarden.net/setup/context-setup-mswin.zip
from
the wiki
unzip to  C:\context
run from shell  C:\contextfirst-setup.bat --modules=all
add to PATH  C:\context\tex\texmf-mswin\bin\
run from shell  C:\contextfirst-setup.bat --keep

Then create tex file \starttext Hello world \stopptext  in different
location.

Navigate shell to that location and  context firstfile.tex


Before you run context filename you need to run 
C:\context\tex\setuptex.bat to set all the paths. After that context 
filename should work fine.


If you still get the script not registered error, then run luatools 
--generate after runing setuptex.


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] beta

2011-12-02 Thread Hans Hagen

On 30-11-2011 06:36, Mikael P. Sundqvist wrote:


is there any chance that the problem with too much space in math
described in [1] will be fixed soon? I tried the latest beta, but it
seems that it is not yet fixed.


in char-def.lua, make the mathclass 'ord':

 {
  adobename=slash,
  
  mathclass=ord,
  
 },

Concerning the integral .. it has to do with the engine that need to be 
forced into otf mode for virtual lm which is not yet possible c.q. I 
need to discuss it with Taco.


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
___


Re: [NTG-context] beta

2011-12-02 Thread Aditya Mahajan

On Sat, 3 Dec 2011, Hans Hagen wrote:


On 30-11-2011 06:36, Mikael P. Sundqvist wrote:


is there any chance that the problem with too much space in math
described in [1] will be fixed soon? I tried the latest beta, but it
seems that it is not yet fixed.


in char-def.lua, make the mathclass 'ord':

{
 adobename=slash,
 
 mathclass=ord,
 
},


Thanks to 
http://repo.or.cz/w/context.git/blame/refs/heads/origin:/tex/context/base/char-def.lua 
(warning, takes a long time to load), this was changed on 2011-06-08, 
along with these changes

http://repo.or.cz/w/context.git/blobdiff/b17f22aa285224dcf5b1dbccd795bc73b9a16426..e5fe861660d5cf60cfeb67f7e57f659b309e9613:/tex/context/base/char-def.lua

Actually, the change from rceil - rceiling (and same for lceil) 
will break backward compatibility. Can we have both the macros:


mathspec = {
  {
class=close,
name = rceil,
  },
  {
class=close,
name=rceiling,
  }
},

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] beta

2011-12-02 Thread Hans Hagen

On 3-12-2011 00:47, Aditya Mahajan wrote:


Thanks to
http://repo.or.cz/w/context.git/blame/refs/heads/origin:/tex/context/base/char-def.lua
(warning, takes a long time to load), this was changed on 2011-06-08,
along with these changes
http://repo.or.cz/w/context.git/blobdiff/b17f22aa285224dcf5b1dbccd795bc73b9a16426..e5fe861660d5cf60cfeb67f7e57f659b309e9613:/tex/context/base/char-def.lua


indeed way too slow to load


Actually, the change from rceil - rceiling (and same for lceil)
will break backward compatibility. Can we have both the macros:

mathspec = {
{
class=close,
name = rceil,
},
{
class=close,
name=rceiling,
}
},


added

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
___


Re: [NTG-context] interaction?

2011-12-02 Thread Hans Hagen

Hi,

what was the example that went wrong?

Hans


Am 25.11.2011 um 21:40 schrieb Hans Hagen:


On 25-11-2011 21:15, Wolfgang Schuster wrote:


It’s a bug (maybe wrong default settings) which was introduced with Idris 
request
to have lists which are local to a component, when you refer to the label with
the name of the component as prefix (\getreference[text][part1:label:1]) the 
text
is shown.


Do you have a clue where?


I was wrong, I tried it now with the beta from two days ago and there is also
the same bug, maybe this was introduced when you rewrote the project code.

The odd thing is the following block from the tuc file with the two reference
which are generated with the \reference command. The reference “label:2”
was written in the product file and it has an empty index but the second
reference “label:1” has the index “part1” because this is the name of
the component file where it was set.

utilitydata.structures.references.collected={
  []={
   [label:2]={
[entries]={
 [text]=Outer reference,
},
[metadata]=17,
[references]={
 [block]=frontpart,
 [realpage]=1,
 [section]=0,
},
   },
  },
  [part1]={
   [label:1]={
[entries]={
 [text]=Inner reference,
},
[metadata]=18,
[references]={
 [block]=bodypart,
 [realpage]=4,
 [section]=2,
},
   },
  },
}

Wolfgang



--

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


[NTG-context] Lua script not registered

2011-12-02 Thread John Kitzmiller
Replying to the list in this manner--having to retype the subject--is
unusual to me, and I hope it does not create problems for the list. Please
help me on how to reply within the mail archive to make more efficient.
Many thanks to those who have replied on the topic!

Thank you, Aditya--

I had run C:\context\tex\setuptex.bat and then tried

C:\contextcontext firstfile.tex

which worked (now down to 3+ secs from 11+ at first run--file = \starttext
Hello World \stoptext)

I think I can get this setuptex.bat automated for random context runs but,

for some reason(s) C:context somefile.tex will not work globally on my
personal computer (Lenovo x100e) over which I have admin control (maybe I
am not a good admin?) and I have added C:\context\tex\texmf-mswin\bin to my
PATH

I still get Lua script not registered complaint when I try to compile
outside of C:\context directory

I suppose I could live with keeping all binaries and docs in C:\context,
but that is not so inviting compared to being able to pdfLaTeX a doc over
Dropbox via MikTeX for example.

--John
___
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] interaction?

2011-12-02 Thread Wolfgang Schuster

Am 03.12.2011 um 01:02 schrieb Hans Hagen:

 Hi,
 
 what was the example that went wrong?

I can make a example but not today.

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
___