Re: [NTG-context] Metapost and mkiv

2009-11-29 Thread Taco Hoekwater

Alan BRASLAU wrote:

On Friday 27 November 2009 14:54:53 Willi Egger wrote:

Hi Alan,

I run in this myself. A possible solution is:

\startuniqueMPgraphic{test}
for i = 0 upto 10 :
draw thelabel(textext(\color[red]  decimal i ), (i, -1)
scaled 1cm);
endfor ;
\stopuniqueMPgraphic

\setupcolors[state=start]

\starttext
\uniqueMPgraphic{test}
\stoptext

KR
Willi


Yes, Thanks.
I thought of this as a work-around, but the first is clearly a bug.


iirc, Hans says this is an intentional difference between mkii and mkiv,
but it is not yet on the wiki page because I am not sure what to write
down.

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
___


[NTG-context] Problem with the 'scrp-cjk.lua'

2009-11-29 Thread Yanrui Li
Hi Hans,

In the *hanzi* part of scrp-cjk.lua, there is:

local injectors = { -- [previous] [current]
... ... ...
full_width_close = {
... ... ...
chinese  = nobreak_shrink_break_stretch,
... ... ...

This causes that lines can not be broken after some Chinese punctuations in
'full_width_close' category. I think it should be:

local injectors = { -- [previous] [current]
... ... ...
full_width_close = {
... ... ...
chinese  = stretch_break,
... ... ...


The same problem also arises here:

local injectors = { -- [previous] [current]
... ... ...
half_width_close = {
... ... ...
chinese  = nobreak_shrink_break_stretch,
... ... ...

It seems like it should be:

local injectors = { -- [previous] [current]
... ... ...
full_width_close = {
... ... ...
chinese  = stretch_break,
... ... ...

-- 
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] Metapost label - Truncating digits after decimal point

2009-11-29 Thread Taco Hoekwater

Curiouslearn wrote:

Hi,

Is it possible to truncate the digits after decimal point in Metapost
when using textext()? Please see the minimal example below which
produces 1.84375. Can I just keep the first digit and have it produce
1.8 ?


Here is a helper macro for you:

def trunc_digits(expr n, origs) =
  hide(
string s, tmp;
numeric ii, e;
e := -1;
for i=1 upto length(origs):
  ii := i;
  tmp := substring (i-1,i) of origs;
  if tmp = .: if n=0: ii:=ii-1; exitif true; fi e:=0; fi
  if e=0: e := e+1; exitif en;  fi
endfor;
s:=substring(0,ii) of origs; )
  s
enddef;


When run this macro with the result of decimal() as second argument,
it will create a new string as many fractional digits as you specify
in the first argument:

  label.lft(textext(trunc_digits(1,decimal f(5))),(0,f(5)) scaled u);   

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
___


Re: [NTG-context] Verbatim problem in mkiv

2009-11-29 Thread Taco Hoekwater

Chen Shen wrote:

Hi,

I'm having problem with verbatim typing with linenumber under mkiv.
The following code works fine without location=text turned off, but fails
when it's turned on.
The text 0279699410 appears at the beginning of every alternate line.
Thanks a lot.


For Hans: the problem seems to be that \mkaddtextlinenumbers does not
redefine \makenumber for the location=text case (numerical 5), but
later on arguments are passed using the convention for \mkleftlinenumber
etc. This results in extra, ignored and thus typeset, arguments.

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
___


[NTG-context] New exe stubs for Windows XP

2009-11-29 Thread Mojca Miklavec
On Sat, Nov 28, 2009 at 17:19, Andreas Schneider wrote:
 Hans Hagen wrote:
 Mojca Miklavec wrote:

 I just came back. I guess that I should start fixing the (already
 broken?) windows installation :)

 no need for fixing, it's just stubs .. just make sure that you copy the
 dll and exe files from the stub paths (and get rid of cmd/bat files when
 an exe is there)

 Doesn't work all too well here. I always get Unsupported 16-Bit
 Application - The program or feature [..]\luatools.exe cannot start or run
 due to incompatibility with 64-bit versions of Windows. Please contact
 [...] and so on.

Hello,

Can any other experienced user please also test if these new
executables inside
scripts/context/stubs/mswin/
run fine on XP? Since the arrival of this complaint I didn't dare to
touch anything yet.

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] Troubles with columnsets and MacTeX 2009

2009-11-29 Thread Mojca Miklavec
On Sun, Nov 15, 2009 at 20:19, No? wrote:
 Hi,
 I've been having issues with columns and \start(stop)bodymatter statements
 since I updated MacTeX to 2009.
 Here is a sample of code which works fine on MacTeX 2008 (tlmgr update'ed)
 version, and which crashes on MacTeX 2009.

Here's a simplified example that doesn't work with the latest ConTeXt
version either. It seems like bug in balance=yes inside columnsets
(might be just a missing \egroup) that only affects mkii (mkiv works
fine, but not on TL 2009 :)

\definecolumnset
[deuxcolonnes]
[balance=yes]

\starttext
%\startbodymatter

\startcolumnset[deuxcolonnes]
\input tufte
\stopcolumnset

%\stopbodymatter
\stoptext

I leave it as an exercise to the others to spot the missing delimiter
in mkii sources.

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

2009-11-29 Thread Hans Hagen

Andreas Schneider wrote:

Hans Hagen wrote:


Mojca Miklavec wrote:


I just came back. I guess that I should start fixing the (already
broken?) windows installation :)

no need for fixing, it's just stubs .. just make sure that you copy the
dll and exe files from the stub paths (and get rid of cmd/bat files when
an exe is there)


Doesn't work all too well here. I always get Unsupported 16-Bit 
Application - The program or feature [..]\luatools.exe cannot start or run 
due to incompatibility with 64-bit versions of Windows. Please contact 
[...] and so on.


hm, interesting ... i have no 64 bit windows so it's hard to test ... 
maybe there is some magic gcc flag that prevents these problems


does a luatex 32 bit run on 64 bit windows?

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

2009-11-29 Thread Mojca Miklavec
On Sun, Nov 29, 2009 at 11:53, Hans Hagen wrote:
 Andreas Schneider wrote:

 Doesn't work all too well here. I always get Unsupported 16-Bit
 Application - The program or feature [..]\luatools.exe cannot start or run
 due to incompatibility with 64-bit versions of Windows. Please contact
 [...] and so on.

 hm, interesting ... i have no 64 bit windows so it's hard to test ... maybe
 there is some magic gcc flag that prevents these problems

 does a luatex 32 bit run on 64 bit windows?

Sorry. I thought the problem showed up in old Windows, not in the new
one. I can confirm that the binaries fail to run on 64-bit Windows 7.
LuaTeX and other binaries (from Akira) run just fine. But context.exe
seems to be 16-bit binary, not 32-bit. At least this is what the error
report says.

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] Problem with the 'scrp-cjk.lua'

2009-11-29 Thread Hans Hagen

Yanrui Li wrote:

Hi Hans,

In the *hanzi* part of scrp-cjk.lua, there is:

local injectors = { -- [previous] [current]
... ... ...
full_width_close = {
... ... ...
chinese  = nobreak_shrink_break_stretch,
... ... ...

This causes that lines can not be broken after some Chinese punctuations 
in 'full_width_close' category. I think it should be:


local injectors = { -- [previous] [current]
... ... ...
full_width_close = {
... ... ...
chinese  = stretch_break,
... ... ...


The same problem also arises here:

local injectors = { -- [previous] [current]
... ... ...
half_width_close = {
... ... ...
chinese  = nobreak_shrink_break_stretch,
... ... ...

It seems like it should be:

local injectors = { -- [previous] [current]
... ... ...
full_width_close = {
... ... ...
chinese  = stretch_break,
... ... ...


i have no problem patching that but can you also make a test file then 
so that we have some benchmark / reference?


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] Verbatim problem in mkiv

2009-11-29 Thread Hans Hagen

Taco Hoekwater wrote:

Chen Shen wrote:

Hi,

I'm having problem with verbatim typing with linenumber under mkiv.
The following code works fine without location=text turned off, but fails
when it's turned on.
The text 0279699410 appears at the beginning of every alternate line.
Thanks a lot.


For Hans: the problem seems to be that \mkaddtextlinenumbers does not
redefine \makenumber for the location=text case (numerical 5), but
later on arguments are passed using the convention for \mkleftlinenumber
etc. This results in extra, ignored and thus typeset, arguments.


ok, will be fixed, thanks for the analysis

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] Troubles with columnsets and MacTeX 2009

2009-11-29 Thread Hans Hagen

Mojca Miklavec wrote:

On Sun, Nov 15, 2009 at 20:19, No? wrote:

Hi,
I've been having issues with columns and \start(stop)bodymatter statements
since I updated MacTeX to 2009.
Here is a sample of code which works fine on MacTeX 2008 (tlmgr update'ed)
version, and which crashes on MacTeX 2009.


Here's a simplified example that doesn't work with the latest ConTeXt
version either. It seems like bug in balance=yes inside columnsets
(might be just a missing \egroup) that only affects mkii (mkiv works
fine, but not on TL 2009 :)

\definecolumnset
[deuxcolonnes]
[balance=yes]

\starttext
%\startbodymatter

\startcolumnset[deuxcolonnes]
\input tufte
\stopcolumnset

%\stopbodymatter
\stoptext

I leave it as an exercise to the others to spot the missing delimiter
in mkii sources.


balancing in columnsets does not work anyway


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


[NTG-context] Frutiger Typescript

2009-11-29 Thread Renaud AUBIN

Hello,

I know almost nothing of typescript but it seems to me that, for
Frutiger, type-buy.tex should contains:
% frutiger

\starttypescript [sans] [frutiger] [name]
\definefontsynonym [Sans][Frutiger-Roman]
\definefontsynonym [SansCaps][Frutiger-Roman]
\definefontsynonym [SansItalic]  [Frutiger-Italic]
\definefontsynonym [SansSlanted] [Frutiger-Italic]
\definefontsynonym [SansBold][Frutiger-Bold]
\definefontsynonym [SansBoldItalic]  [Frutiger-BoldItalic]
\definefontsynonym [SansBoldSlanted] [Frutiger-BoldItalic]
\stoptypescript

\starttypescript [sans] [frutiger] [ec,8r,texnansi]
\definefontsynonym[Frutiger-Bold]   [\typescriptthree-ftb]  
[encoding=\typescriptthree]
\definefontsynonym[Frutiger-BoldItalic] [\typescriptthree-ftbi] 
[encoding=\typescriptthree]
\definefontsynonym[Frutiger-Black]  [\typescriptthree-ftbl] 
[encoding=\typescriptthree]

\definefontsynonym[Frutiger-BlackItalic][\typescriptthree-ftbli][encoding=\typescriptthree]
\definefontsynonym[Frutiger-Italic] [\typescriptthree-fti]  
[encoding=\typescriptthree]
\definefontsynonym[Frutiger-Light]  [\typescriptthree-ftl]  
[encoding=\typescriptthree]
\definefontsynonym[Frutiger-LightItalic][\typescriptthree-ftli] 
[encoding=\typescriptthree]
\definefontsynonym[Frutiger-Roman]  [\typescriptthree-ftr]  
[encoding=\typescriptthree]
\definefontsynonym[Frutiger-UltraBlack] 
[\typescriptthree-ftubl][encoding=\typescriptthree]
%\loadmapfile[\typescriptthree-adobe-frutiger.map] % COMMENT THIS ONE
\stoptypescript

% ADD THESE
\starttypescript [frutiger] [texnansi,ec,8r,uc]
\definetypeface [frutiger] [ss] [sans][frutiger] [default] 
[encoding=\typescripttwo]
\loadmapfile [\typescripttwo-adobe-frutiger.map]
\stoptypescript

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
___


Re: [NTG-context] Troubles with columnsets and MacTeX 2009

2009-11-29 Thread Hans Hagen

Mojca Miklavec wrote:

On Sun, Nov 15, 2009 at 20:19, No? wrote:

Hi,
I've been having issues with columns and \start(stop)bodymatter statements
since I updated MacTeX to 2009.
Here is a sample of code which works fine on MacTeX 2008 (tlmgr update'ed)
version, and which crashes on MacTeX 2009.


Here's a simplified example that doesn't work with the latest ConTeXt
version either. It seems like bug in balance=yes inside columnsets
(might be just a missing \egroup) that only affects mkii (mkiv works
fine, but not on TL 2009 :)

\definecolumnset
[deuxcolonnes]
[balance=yes]

\starttext
%\startbodymatter

\startcolumnset[deuxcolonnes]
\input tufte
\stopcolumnset

%\stopbodymatter
\stoptext

I leave it as an exercise to the others to spot the missing delimiter
in mkii sources.


ok, i figured it out

- when i split the code in mkii and mkiv i merged page-new.tex into 
page-set without noticing that the balancing code was just experimental 
and not even working currently


- so, the balancing code in page-set is just a hook

- in mkiv i had actually nilled the code so no error there

we can do some manual balancing, like:


\setupcolumnset [test-1] [balance=yes]
\setupcolumnset [test-2] [balance=yes]

\setupcolumnsetlines[test-1][1][1] [8]
\setupcolumnsetlines[test-1][1][2][10]

\startcolumnset [test-1] \dorecurse {1}{\input tufte \par} \stopcolumnset
\startcolumnset [test-2] \dorecurse {2}{\input ward  \par} \stopcolumnset



-
  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] Metapost label - Truncating digits after decimal point

2009-11-29 Thread Curiouslearn
Thanks so much, Taco. I will try out the code below. Good to know that
Metapost has functions such as substring.




On Sun, Nov 29, 2009 at 3:32 AM, Taco Hoekwater t...@elvenkind.com wrote:
 Curiouslearn wrote:

 Hi,

 Is it possible to truncate the digits after decimal point in Metapost
 when using textext()? Please see the minimal example below which
 produces 1.84375. Can I just keep the first digit and have it produce
 1.8 ?

 Here is a helper macro for you:

 def trunc_digits(expr n, origs) =
  hide(
    string s, tmp;
    numeric ii, e;
    e := -1;
    for i=1 upto length(origs):
      ii := i;
      tmp := substring (i-1,i) of origs;
      if tmp = .: if n=0: ii:=ii-1; exitif true; fi e:=0; fi
      if e=0: e := e+1; exitif en;  fi
    endfor;
    s:=substring(0,ii) of origs; )
  s
 enddef;


 When run this macro with the result of decimal() as second argument,
 it will create a new string as many fractional digits as you specify
 in the first argument:

  label.lft(textext(trunc_digits(1,decimal f(5))),(0,f(5)) scaled u);

 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
 ___

___
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] Problem with the 'scrp-cjk.lua'

2009-11-29 Thread Hans Hagen

Yanrui Li wrote:

Oh, sorry for my attachment file is too big. I deleted the 
'no-patched-test.pdf'. Please see this attachment.


ok. patched 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
___


[NTG-context] \inputfilename

2009-11-29 Thread Wolfgang Schuster
Hi Hans,

has the defintion for \inputfilename changed, when i used it in the past i got
the filename without extension but now i get the filename plus extension.

\starttext
\inputfilename
\stoptext

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] \inputfilename

2009-11-29 Thread Wolfgang Schuster

Am 29.11.2009 um 18:41 schrieb Wolfgang Schuster:

 has the defintion for \inputfilename changed, when i used it in the past i got
 the filename without extension but now i get the filename plus extension.
 
 \starttext
 \inputfilename
 \stoptext

i found now the answer to my problem in core-sys.mkiv

%D There are a couple of system states avaiable:
%D
%D \starttabulate [|T|T|]
%D \NC \type{\jobname}   \NC \jobname   \NC \NR
%D \NC \type{\jobfilename}   \NC \jobfilename   \NC \NR
%D \NC \type{\jobfilesuffix} \NC \jobfilesuffix \NC \NR
%D \NC \type{\inputfilename} \NC \inputfilename \NC \NR
%D \NC \type{\inputfilebarename} \NC \inputfilebarename \NC \NR
%D \NC \type{\inputfilesuffix}   \NC \inputfilesuffix   \NC \NR
%D \NC \type{\outputfilename}\NC \outputfilename\NC \NR
%D \NC \type{\operatingsystem}   \NC \operatingsystem   \NC \NR
%D \stoptabulate

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

2009-11-29 Thread Vyatcheslav Yatskovsky

Hi,

I just updated to the latest beta on Windows XP 32bit.

mtxrun.exe is broken, saying cannot be run in DOS mode.

So, the context doesn't launch.

regards,
Vaytcheslav


___
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] setupbibtex produces empty bbl file

2009-11-29 Thread Bernhard Rosensteiner
Hello all,

when i try to compile a document with citations i get an empty .bbl file. log 
is attached. 

Handout.log
Description: Binary data

Interestingly it says (Handout.topThis is BibTeX, Version 0.99c (TeX Live 
2009), but paths must be set correct because LuaTeX in my minimals folder is 
working and there is the file: 
/Applications/ConTeXt/tex/texmf-osx-64/bin/bibtex.
Do i make something wrong

best regards
Bernhard___
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] Math Alignment - start equation at left margin

2009-11-29 Thread Curiouslearn
Hi,
Can someone please help with the alignment of  the equation so that it
starts at left. I tried flushleft and other options (such as without
\NC \NR, with align=left etc.). None of them result in the equation
starting at the left margin. The equation is either placed in the
middle or is aligned to the right. I want it to start at the left.

Thanks.

\setuppapersize[letter][letter]

\starttext

\startformula\startalign[align={left}]
\NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 
4
\frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
\stopalign\stopformula

\stoptext
___
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] new beta

2009-11-29 Thread Wader
2009/11/30 Vyatcheslav Yatskovsky yatskov...@gmail.com

 Hi,

 I just updated to the latest beta on Windows XP 32bit.

 mtxrun.exe is broken, saying cannot be run in DOS mode.

 So, the context doesn't launch.

 regards,
 Vaytcheslav


I have the same problem as you days before.

When I delete the files below under dir $ConTeXt\tex\texmf-mswin\bin
context.exe
luatools.exe
metatex.exe
mtxrun.exe
mtxworks.exe
texexec.exe
texmfstart.exe

My ConTeXt begun to work again.
___
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] Math Alignment - start equation at left margin (Bug in latest beta)

2009-11-29 Thread Curiouslearn
Just wanted to mention that I tried to achieve left alignment of
single equation using:

 \setupformulas[align=flushleft]
  \startformula
\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4 
\frac{dx^{2}}{dx} = 4
(2x) = 8x.\NC\NR
   \stopformula

But that does not work with the latest beta -- (This is LuaTeX,
Version beta-0.46.0-2009112820
ConTeXt  ver: 2009.11.27 21:24 MKIV  fmt: 2009.11.29  int:
english/english). It, however, works with MKII.

I suppose, my question is, whether is another way of doing it, or
should I wait until the bug is fixed.

Thanks.



On Sun, Nov 29, 2009 at 6:45 PM, Curiouslearn curiousle...@gmail.com wrote:
 Hi,
 Can someone please help with the alignment of  the equation so that it
 starts at left. I tried flushleft and other options (such as without
 \NC \NR, with align=left etc.). None of them result in the equation
 starting at the left margin. The equation is either placed in the
 middle or is aligned to the right. I want it to start at the left.

 Thanks.

 \setuppapersize[letter][letter]

 \starttext

 \startformula\startalign[align={left}]
                                \NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} 
 = 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
 \stopalign\stopformula

 \stoptext

___
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] problem with texmf-local on Vista

2009-11-29 Thread Christopher G D Tipper

Hi,

I am a user of Context from the old days, and usually don't need much 
help installing the software. However, I am needing to use 
Contextminimals for the first time, as Miktex 2.8 has dropped Context 
support.


My problem is that I have a lot of my own setups and personal fonts and 
Contextminimals seems to have some problem dealing with local setups. I 
am using MkII by the way but these problems seem to exist in MkIV also.


I have a font, Univers, installed to texmf-local with texfont and 
Context claims it cannot find the font definitions.


running texexec I get the following:

!pdfTeX error: pdftex.exe (file 8r-raw-punr8a): Font 8r-raw-punr8a at 
432 not found

 == Fatal error occurred, no output PDF file produced!
TeXExec | runtime: 10.311

ConTeXt Full finished at Sun Nov 29 21:58:36

Then from command prompt, I type:
C:\Users\Christopherkpsewhich 8r-raw-punr8a.tfm
c:/context/texmf-local/fonts/tfm/adobe/univers/8r-raw-punr8a.tfm

I know this is not strictly relevant to MkII, but for comparison:
C:\Users\Christopherluatools --expand-path TEXMFLOCAL
c:/context/texmf-local

Also
C:\Users\Christophertexexec --version
TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD

C:\Users\Christophercontext --version
MTXrun | main context file: 
c:/context/texmf-context/tex/context/base/context.te

x
MTXrun | current version: 2009.10.27 16:35

How do I get Context to recognise the local setup?

Christopher


___
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] setupbibtex produces empty bbl file

2009-11-29 Thread Taco Hoekwater


Bernhard Rosensteiner wrote:
 Hello all,
 
 when i try to compile a document with citations i get an empty .bbl
 file. log is attached.
 
 Interestingly it says (Handout.topThis is BibTeX, Version 0.99c (TeX
 Live 2009), but paths must be set correct because LuaTeX in my
 minimals folder is working and there is the file:
 /Applications/ConTeXt/tex/texmf-osx-64/bin/bibtex. Do i make
 something wrong

Bibtex can be found, but bibtex itself cannot find its input files.

It needs to find the cont-no.bst (bibtex style file) and the
database Literatur.bib.

The problem with the bst file probably comes from a bad or missing
settings of BSTINPUTS in texmf.cnf. Here is what is my texmf.cnf:

  BSTINPUTS = .;$TEXMF/bibtex/{bst,csf}//

The problem with the not found Literatur.bib file is something you
will have to figure out yourself. There is a texmf.cnf variable for
that (BIBINPUTS) but bibtex is able to find bib databases in the
current directory without it.

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
___


Re: [NTG-context] Math Alignment - start equation at left margin

2009-11-29 Thread Otared Kavian
Hi,

Is this what you want to achieve:

%% begin
\starttext

From Aditya's \type{mathalign.pdf}, where he defines in fact a 
\type{\definemathalignment[flalign]}, 
(but I prefer \type{FLalign]…) one has

\definemathalignment[FLalign] [m=2, distance=5em plus 1 fil] %We need to set a 
default value for m

Curiouslearn'  input was:
\startformula
\startalign
\NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4
\frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
\stopalign
\stopformula

\startformula
\startFLalign %% here you can add [m=2] or [m=3] if you need more columns
\NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4
\frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC \NC \NR %% note twice \NC
\stopFLalign
\stopformula

\stoptext
%% end

Best regards: OK

On 30 nov. 2009, at 00:45, Curiouslearn wrote:

 Hi,
 Can someone please help with the alignment of  the equation so that it
 starts at left. I tried flushleft and other options (such as without
 \NC \NR, with align=left etc.). None of them result in the equation
 starting at the left margin. The equation is either placed in the
 middle or is aligned to the right. I want it to start at the left.
 
 Thanks.
 
 \setuppapersize[letter][letter]
 
 \starttext
 
 \startformula\startalign[align={left}]
   \NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 
 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
 \stopalign\stopformula
 
 \stoptext
 ___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



___
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] Math Alignment - start equation at left margin

2009-11-29 Thread Otared Kavian
Sorry for sending this again: I forgot a closing } in  \type{FLalign]…)}…

Hi,

Is this what you want to achieve:

%% begin
\starttext

From Aditya's \type{mathalign.pdf}, where he defines in fact a 
\type{\definemathalignment[flalign]}, 
(but I prefer \type{FLalign]…)} one has

\definemathalignment[FLalign] [m=2, distance=5em plus 1 fil] %We need to set a 
default value for m

Curiouslearn'  input was:
\startformula
\startalign
\NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4
\frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
\stopalign
\stopformula

\startformula
\startFLalign %% here you can add [m=2] or [m=3] if you need more columns
\NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 4
\frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC \NC \NR %% note twice \NC
\stopFLalign
\stopformula

\stoptext
%% end

Best regards: OK

On 30 nov. 2009, at 00:45, Curiouslearn wrote:

 Hi,
 Can someone please help with the alignment of  the equation so that it
 starts at left. I tried flushleft and other options (such as without
 \NC \NR, with align=left etc.). None of them result in the equation
 starting at the left margin. The equation is either placed in the
 middle or is aligned to the right. I want it to start at the left.
 
 Thanks.
 
 \setuppapersize[letter][letter]
 
 \starttext
 
 \startformula\startalign[align={left}]
   \NC\text{\bf Example: }  \frac{d(4x^{2})}{dx} = 
 4
 \frac{dx^{2}}{dx} = 4 (2x) = 8x.\NC{ }\NR
 \stopalign\stopformula
 
 \stoptext
 ___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



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