Re: [NTG-context] ConTeXt MKIV bug: Chinese left aligned does not work as should

2008-11-10 Thread Hans Hagen
Yue Wang wrote:
 Hi, Hans:
 
 It seems that left aligned (flushright) does not work for chinese.
 I attach the minimal test files in the mail.
 To test the file, please download the zhfonts.tex from
 http://code.google.com/p/ctxnotes/downloads/list, and the adobe
 Chinese fonts.
 (I also mailed you these files long ago for other problems)

taco and i looked into this

it has to do with the fact that the intercharacter spacing has more 
stretch than the leftskip and since raggedright is achieved differently 
from raggedleft, there is no easy solution; we could make raggedright 
behave like raggedleft but that would influence hyphenation too much

however, there is a way out ...

\startbuffer
1中%
中%
中%
中%
\stopbuffer

\framedtext
 [align={broad,flushright},width=90mm]
 {\getbuffer}

\framedtext
 [align={broad,flushleft},width=90mm]
 {\getbuffer}

\framedtext
 [align=middle,width=90mm]
 {\getbuffer}

some time in the future we can think of language specific defaults, like

\let\raggedleft\veryraggedleft
\let\raggedleft\veryraggedright

for chinese but first we need to investigate to what extend we need such 
language specific defaults

adapting the leftskip node in the nodelist is also an option, but that 
might have unwanted side effects so best is to keep it under user control

make sure to wikify this ...

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Peter Münster
On Mon, Nov 10 2008, Yue Wang wrote:
 
 
  As to the live, I think a patched Lua file (loslib.c) can solve this 
  problem:
  remove the line
   {execute,   os_execute},
  in the static const luaL_Reg syslib[].
 
 
 Moreover, if we do that, ConTeXt will not adapt to the stripped down LuaTeX.
 For example, mtxrun.lua contains many functions which depend on
 os.execute, and it even created some synonames as well:
if not os.exec  then os.exec  = os.execute end
if not os.spawn then os.spawn = os.execute end
 So, a simple line removal is not sufficient.

LuaTeX (and TeX/ConTeXt in general) is not compatible with security. The
cache for example must be writable for everyone. In my opinion, the only
options for live.contextgarden.net are:
- just don't care, if there is a problem, restore from backup
- chroot jail
- virtual machine with virtual disk in non-persistent mode (at boot time
  the disk is always a fresh installation)
- perhaps some other ideas...

But adding security to LuaTeX seems to me too much work (a lot of
exceptions, heavy security audit, problems with cache, problems with
compatibility, and so on...).

Cheers, Peter

-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pb with verb-pas

2008-11-10 Thread Taco Hoekwater


Eric DÉTREZ wrote:
 Hello
 
 A funny problem
 
 When I use pascal verbatim I've got a curious feature (?)

bug. Here is the fix:

--- verb-pas.tex.orig   2004-09-05 02:34:26.0 +0200
+++ verb-pas.tex   2008-11-10 14:27:19.147979056 +0100
@@ -94,7 +94,8 @@
{\handlenextnextpretty\doPAStypefourthree\PLtypefourtwo}

  \gdef\doPAStypefourthree#1#2%
-  {\ifinPLcomment
+  {\endPLtypesix
+   \ifinPLcomment
   \let\next=\PLtypefourtwo
 \else
   \ifinPLsingle


( verb-pas.tex is in texmf/tex/context/base )

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Hans Hagen
Peter Münster wrote:
 On Mon, Nov 10 2008, Yue Wang wrote:
 As to the live, I think a patched Lua file (loslib.c) can solve this 
 problem:
 remove the line
  {execute,   os_execute},
 in the static const luaL_Reg syslib[].

 Moreover, if we do that, ConTeXt will not adapt to the stripped down 
 LuaTeX.
 For example, mtxrun.lua contains many functions which depend on
 os.execute, and it even created some synonames as well:
if not os.exec  then os.exec  = os.execute end
if not os.spawn then os.spawn = os.execute end
 So, a simple line removal is not sufficient.
 
 LuaTeX (and TeX/ConTeXt in general) is not compatible with security. The
 cache for example must be writable for everyone. In my opinion, the only
 options for live.contextgarden.net are:
 - just don't care, if there is a problem, restore from backup
 - chroot jail
 - virtual machine with virtual disk in non-persistent mode (at boot time
   the disk is always a fresh installation)
 - perhaps some other ideas...
 
 But adding security to LuaTeX seems to me too much work (a lot of
 exceptions, heavy security audit, problems with cache, problems with
 compatibility, and so on...).

there are provisions in mkiv to turn off os.execute etc in a tex run; 
since we have mplib embedded, there is not much reason for os.execute 
anyway so i can consider a --secure switch for mtx-context

-
   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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt MKIV bug: Chinese left aligned does not work as should

2008-11-10 Thread Hans Hagen
Yue Wang wrote:

 adapting the leftskip node in the nodelist is also an option, but that
 might have unwanted side effects so best is to keep it under user control

well, it all depends on hwo one defined raggedleft and raggedright; it
just happens that the context defaults are tuned differently

i'm pretty sure that there are more differences between context and
latex -)

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Happy Single's Day

2008-11-10 Thread Hans Hagen
Yue Wang wrote:
 Hi, all:
 
 Tomorrow is 11/11 single day. (I dont know whether the holiday exists
 in other places, but on 11:11 am, 11/11, (all the numbers are
 single[1]), all the singles will celebrate this moment and dreamed to
 find their Mr. or Miss. Right.) So consider this is a ConTeXt
 mailing list, I made a new card using ConTeXt to all the ConTeXt users
 who are singles. It can be downloaded from
 http://att.newsmth.net/att.php?p.460.279144.453.pdf

link doesn't work (mime type problem)


-
   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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in latest beta?

2008-11-10 Thread Hans Hagen
Chen Shen wrote:
 Hi all,
 
 the following code used to work, but broke in the latest beta. \at
 works well, but \in appears as a math member of set symbol ( ∈ ).
 
 
 \starttext
 \placefigure[here][abc]{xyz}{123}
 
 abc \at[abc].
 abc \in[abc].
 
 \stoptext
 

fixed in current 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Hans Hagen
Yue Wang wrote:
 Hi, Hans:
 
 there are provisions in mkiv to turn off os.execute etc in a tex run;
 since we have mplib embedded, there is not much reason for os.execute
 anyway so i can consider a --secure switch for mtx-context
 
 not that helpful. users can still use io.open(/etc/xxx, r)  to
 read files they want.
 even if io.open is removed (impossible), we can still use \input /etc/xxx.
 so a bsd jail(8)-like solution is indispensable.

that's the same for pdftex/xetex

 btw, virtual machine is also a nice solution. Since each time it down,
 reinstall a minimal operating system (like bsd base system) plus a
 full working ConTeXt minimals won't take more than 3 minutes (1.5
 minute to reinstall the operating system, and 1.5 minute to rsync the
 source).

sure

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Yue Wang
Hi, Hans:

 there are provisions in mkiv to turn off os.execute etc in a tex run;
 since we have mplib embedded, there is not much reason for os.execute
 anyway so i can consider a --secure switch for mtx-context

not that helpful. users can still use io.open(/etc/xxx, r)  to
read files they want.
even if io.open is removed (impossible), we can still use \input /etc/xxx.
so a bsd jail(8)-like solution is indispensable.

btw, virtual machine is also a nice solution. Since each time it down,
reinstall a minimal operating system (like bsd base system) plus a
full working ConTeXt minimals won't take more than 3 minutes (1.5
minute to reinstall the operating system, and 1.5 minute to rsync the
source).

Yue Wang
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in latest beta?

2008-11-10 Thread Chen Shen
Thanks a lot for the insights. I reverted to the 2008.10.31 version
for the moment.

shenchen

On Mon, Nov 10, 2008 at 7:59 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:

 Am 10.11.2008 um 10:55 schrieb Chen Shen:

 Hi all,

 the following code used to work, but broke in the latest beta. \at
 works well, but \in appears as a math member of set symbol ( ∈ ).

 You could use the last stable for the moment.

 
 \starttext
 \placefigure[here][abc]{xyz}{123}

 abc \at[abc].
 abc \in[abc].

 \stoptext
 


 If you still want to use the last beta use the following patch,
 Hans removed a few lines of code from enco-ini.mkiv and this
 breaks the \in command because it is redefined later in the core
 from the math commands.

 \def\definecommand#1 #2 %
   {\setvalue{\string#1}{\dohandlecommand{#1}}%
\setvalue{\characterencoding\string#1}{#2}}

 \def\dohandlecommand#1%
{\csname
   \ifcsname\characterencoding#1\endcsname
 \characterencoding
   \else
 \nocharacterencoding
   \fi
 #1\endcsname}

 \definecommand in{\doinatreference\currenttextreference}

 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Taco Hoekwater


Peter Münster wrote:
 
 LuaTeX (and TeX/ConTeXt in general) is not compatible with security. The

Depends a bit on how you define security but it is true that context
does not 'do well' in restricted environments. The luatex executable
actually has a --safer switch (a la ghostscript) but if it would be
turned on, context mkiv wouldn't work.

 In my opinion, the only options for live.contextgarden.net are:

 a) just don't care, if there is a problem, restore from backup

this is the current approach, and restore hasn't been needed yet
(afaik).

 b) chroot jail

possible new approach, but I suspect it won't be implemented until
after a).

 c) virtual machine with virtual disk in non-persistent mode (at boot time
   the disk is always a fresh installation)

i doubt this could be made to work as-is (contextgarden.net itself
is a fairly limited virtual machine)

 - perhaps some other ideas...

A variation of c) may well be possible. Actually, if we can find funding
we could even move contextgarden.net + context/maps.aanhet.net to a
dedicated server. I could easily arrange hardware and a hosting spot
for that, but we would have to set up some kind of paypal construct
to get the finances sorted out. Patrick, Mojca, Hans, if there is
interest is such a solution, just let me know, and I will investigate
further.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] ConteXt and Eurotex conference 2009

2008-11-10 Thread Taco Hoekwater

L.S.,

The Dutch TeX Language User Group NTG and the ConTeXt task force are
pleased to invite you to the combined EuroTeX 2009 conference and
third international ConTeXt meeting:

 August 24--28, 2009
 Netherlands Defence College (NDC), The Hague
 The Netherlands

See the website for more information and future updates

 http://www.ntg.nl/EuroTeX2009


Call for Papers
===

As usual, proposals for presentations and workshops are welcomed on
just about any topic of interest to \TeX\ users, but the conference
focus will be on

 Educational uses of TeX

such as manuals, courseware and college presentations, so we
especially welcome proposals on subjects in those fields.

 http://www.ntg.nl/EuroTeX2009/programme.html


Registration


The conference is made possible by the Netherlands Defence Academy
(NLDA) that graciously invited us to their facilities, including the
on-site hotel, thereby allowing a very competitive conference fee.

 http://www.ntg.nl/EuroTeX2009/register.html

Participants who complete registration before February 1, 2009 will
benefit from a special early bird discount.


Hope to see you there!

The organisation committee.
PS Please feel free to forward this message to suitable tex-related
lists, I do not know all of those -- 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] small problem with minimals

2008-11-10 Thread Hans Hagen
Thomas A. Schmitz wrote:

 Should this file be added to the minimals or is there a different  
 problem somewhere down the line? If absolutely necessary, I can make a  
 minimal example, but it would take a lot of work...

it's probably the fallback font ... how is it used?

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TABLEs and backgroundcolor

2008-11-10 Thread Alan STONE
On Sun, Nov 9, 2008 at 10:42 AM, Peter Münster [EMAIL PROTECTED] wrote:

 On Sat, Nov 08 2008, Andreas Harder wrote:

  \bTABLE[background=color,backgroundcolor=blue]
  \bTR \bTD[corner=08] left \eTD\bTD[corner=05] right \eTD\eTR
  \bTR \bTD left \eTD\bTD right \eTD\eTR
  \bTR \bTD left \eTD\bTD right \eTD\eTR
  \bTR \bTD[corner=07] left \eTD\bTD[corner=06] right \eTD\eTR
  \eTABLE
 
  Now the first and the last row appear black. Any suggestions?

 No suggestion, but it seems the same bug as in
 http://archive.contextgarden.net/message/20081103.154830.60d22cfa.en.html
 Cheers, Peter


There's indeed something with the rounded corner option...

\setupcolors[state=start]

\starttext
\framed[background=color,backgroundcolor=yellow]{test}  % OK
\framed[background=color,backgroundcolor=yellow,corner=round]{test}  % NOT
OK
\framed[background=color, backgroundcolor=green]{bla}  % OK
\framed[background=color, backgroundcolor=green, corner=00]{bla}  % NOT OK
\stoptext

-- 
Best,
Alan

* TeX engine = LuaTeX
* ConTeXt  minimals ver: 2008.56.06 19:11 MKIV  fmt: 2008.11.10  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Happy Single's Day

2008-11-10 Thread Zhichu Chen
Sounds like a bachelor day. Not for me but thanks and congratulations.

On Mon, Nov 10, 2008 at 11:59 AM, Yue Wang [EMAIL PROTECTED] wrote:
 Hi, all:

 Tomorrow is 11/11 single day. (I dont know whether the holiday exists
 in other places, but on 11:11 am, 11/11, (all the numbers are
 single[1]), all the singles will celebrate this moment and dreamed to
 find their Mr. or Miss. Right.) So consider this is a ConTeXt
 mailing list, I made a new card using ConTeXt to all the ConTeXt users
 who are singles. It can be downloaded from
 http://att.newsmth.net/att.php?p.460.279144.453.pdf

 Wish you a happy Single's Day!

 Yue Wang
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___




-- 
Best Regards
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] small problem with minimals

2008-11-10 Thread Thomas A. Schmitz
Hi all, esp. Mojca,

I have encountered a small problem with the minimals: some metafun  
stuff that Aditya and I use in our presentation module stopped working  
recently (sorry, I can't tell when exactly). The error message is

!luaTeX error (file lm-rmtt.enc): cannot find encoding file for reading
  == Fatal error occurred, no output PDF file produced!
MtxRun | fatal error, code: 70

which is a bit bizarre (I thought luatex didn't use any enc files?).  
Anyway, the same file compiles fine with the same version of ConTeXt  
and luatex under texlive 2008 because there, the enc file is present:

luatools lm-rmtt.enc
/usr/local/texlive/2008/texmf-dist/fonts/enc/dvips/lm/lm-rmtt.enc

Should this file be added to the minimals or is there a different  
problem somewhere down the line? If absolutely necessary, I can make a  
minimal example, but it would take a lot of work...

All best

Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in latest beta?

2008-11-10 Thread Wolfgang Schuster

Am 10.11.2008 um 10:55 schrieb Chen Shen:

 Hi all,

 the following code used to work, but broke in the latest beta. \at
 works well, but \in appears as a math member of set symbol ( ∈ ).

You could use the last stable for the moment.

 
 \starttext
 \placefigure[here][abc]{xyz}{123}

 abc \at[abc].
 abc \in[abc].

 \stoptext
 


If you still want to use the last beta use the following patch,
Hans removed a few lines of code from enco-ini.mkiv and this
breaks the \in command because it is redefined later in the core
from the math commands.

\def\definecommand#1 #2 %
   {\setvalue{\string#1}{\dohandlecommand{#1}}%
\setvalue{\characterencoding\string#1}{#2}}

\def\dohandlecommand#1%
{\csname
   \ifcsname\characterencoding#1\endcsname
 \characterencoding
   \else
 \nocharacterencoding
   \fi
 #1\endcsname}

\definecommand in{\doinatreference\currenttextreference}

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bug in latest beta?

2008-11-10 Thread Chen Shen
Hi all,

the following code used to work, but broke in the latest beta. \at
works well, but \in appears as a math member of set symbol ( ∈ ).


\starttext
\placefigure[here][abc]{xyz}{123}

abc \at[abc].
abc \in[abc].

\stoptext


I am using

$ context --version
MtxRun | main context file:
/opt/home/hash/context/tex/texmf-context/tex/context/base/context.tex
MtxRun | current version: 2008.56.06 19:11

$ luatex -v
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown

any suggestions? Thanks a lot.

best regards,
shenchen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] small problem with minimals

2008-11-10 Thread Mojca Miklavec
On Mon, Nov 10, 2008 at 6:12 PM, Hans Hagen wrote:
 Thomas A. Schmitz wrote:
 On Nov 10, 2008, at 5:16 PM, Hans Hagen wrote:

 it's probably the fallback font ... how is it used?

 Hans

 In a metafun label (which I can't replace with \sometxt):

 label.top(decimal value,origin) ;

 label.top(textext(decimal value),origin) ;

Maybe that's the reason ...
decimal value
will be typeset with metapost, while textext will be typeset with TeX.

I have a feeling that Hans defined lmtt as default (fallback) font
somewhere in metafun code, so that one gets used.

font-ini.mkii:% [texnansi-lmtt10]
font-ini.mkii:% [ec-lmtt10]
font-ini.mkii:% [texnansi-lmtt10]
font-ini.mkiv:% [texnansi-lmtt10]
meta-ini.mkii:  defaultfont:=rm-lmtt10;
meta-ini.mkiv:defaultfont:=rm-lmtt10;
meta-tex.mkii:\definefontsynonym[MPtxtfont][texnansi-lmtt10]

But I have no idea when this has happened. I remember having to add
texnansi-lmtt because of XeTeX complaining of (most probably) exactly
the same thing. There are probably zero benefits if this gets fixed
back.

 forget about sometxt ...

[unless you work with mkii]

 that's mojca's personal hack

Suggestion that I need to forget XeTeX I guess :) :) :)

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] TABLEs and backgroundcolor

2008-11-10 Thread Hans Hagen
Alan STONE wrote:
 On Sun, Nov 9, 2008 at 10:42 AM, Peter Münster [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 On Sat, Nov 08 2008, Andreas Harder wrote:
 
   \bTABLE[background=color,backgroundcolor=blue]
   \bTR \bTD[corner=08] left \eTD\bTD[corner=05] right \eTD\eTR
   \bTR \bTD left \eTD\bTD right \eTD\eTR
   \bTR \bTD left \eTD\bTD right \eTD\eTR
   \bTR \bTD[corner=07] left \eTD\bTD[corner=06] right \eTD\eTR
   \eTABLE
  
   Now the first and the last row appear black. Any suggestions?
 
 No suggestion, but it seems the same bug as in
 http://archive.contextgarden.net/message/20081103.154830.60d22cfa.en.html
 Cheers, Peter
 
 
 There's indeed something with the rounded corner option...

technically this had to with the fact that only glyphs, rules and 
leaders are taken into account when postprocessing the node list for 
special code injection, so i now insert a zero dimension rule

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread Hans Hagen
Aditya Mahajan wrote:

 \starttext
 \typefile{test-aditya-001.tex}
 \stoptext
 
 Ah, this also works here. The error only shows if the file does not have 
 an extension.

this is fixed (hack, awaiting a proper split of supp-fil into mkii and 
mkiv)

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] small problem with minimals

2008-11-10 Thread Thomas A. Schmitz

On Nov 10, 2008, at 5:16 PM, Hans Hagen wrote:

 it's probably the fallback font ... how is it used?

 Hans

In a metafun label (which I can't replace with \sometxt):

label.top(decimal value,origin) ;

Thomas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Happy Single's Day

2008-11-10 Thread luigi scarso
On Mon, Nov 10, 2008 at 3:44 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Yue Wang wrote:
  Hi, all:
 
  Tomorrow is 11/11 single day. (I dont know whether the holiday exists
  in other places, but on 11:11 am, 11/11, (all the numbers are
  single[1]), all the singles will celebrate this moment and dreamed to
  find their Mr. or Miss. Right.) So consider this is a ConTeXt
  mailing list, I made a new card using ConTeXt to all the ConTeXt users
  who are singles. It can be downloaded from
  http://att.newsmth.net/att.php?p.460.279144.453.pdf

 link doesn't work (mime type problem)

 works ok with firefox under ubuntu


-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread luigi scarso
On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Aditya Mahajan wrote:

  \starttext
  \typefile{test-aditya-001.tex}
  \stoptext
 
  Ah, this also works here. The error only shows if the file does not have
  an extension.

 this is fixed (hack, awaiting a proper split of supp-fil into mkii and
 mkiv)

 Hans

\starttext
\typefile{test-aditya-TEST}
\stoptext
where
test-aditya-TEST has
TEST
fails
with

! Undefined control sequence.
argument \filepath

\pathplusfile #1#2-#1
  \f!pathseparator #2
\mktypefileverbatim ...rs.typefile(\readfilename
  )}
\dosometyping ...rt }{\typingparameter \c!stop }}}
  \stopverbatimcolor
\stoppa...
\dotypefile ...else \dodotypefile [\v!file ][]{#3}
  \fi \fi
l.3 \typefile{test-aditya-TEST}

?

minimals-beta
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.42.10 15:11

PS
context --version gives current version: 2008.42.10 15:11

-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] small problem with minimals

2008-11-10 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Nov 10, 2008, at 5:16 PM, Hans Hagen wrote:
 
 it's probably the fallback font ... how is it used?

 Hans
 
 In a metafun label (which I can't replace with \sometxt):
 
 label.top(decimal value,origin) ;

forget about sometxt ... that's mojca's personal hack

\starttext

\startMPpage
 numeric value ; value = 123 ;
 label.top(textext(decimal value),origin) ;
\stopMPpage

\stoptext

maybe i should patch the label macro

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Pb with verb-pas

2008-11-10 Thread Eric DÉTREZ

Le 10 nov. 08 à 14:31, Taco Hoekwater a écrit :



 Eric DÉTREZ wrote:
 Hello

 A funny problem

 When I use pascal verbatim I've got a curious feature (?)

 bug. Here is the fix:

 --- verb-pas.tex.orig 2004-09-05 02:34:26.0 +0200
 +++ verb-pas.tex   2008-11-10 14:27:19.147979056 +0100
 @@ -94,7 +94,8 @@
{\handlenextnextpretty\doPAStypefourthree\PLtypefourtwo}

  \gdef\doPAStypefourthree#1#2%
 -  {\ifinPLcomment
 +  {\endPLtypesix
 +   \ifinPLcomment
   \let\next=\PLtypefourtwo
 \else
   \ifinPLsingle

Waouh
Wonderful !
It works fine.
Thank's, thank's, thank's, thank's, thank's


Eric DÉTREZ
Lycée Faidherbe Lille
Maths PC* : http://sites.google.com/site/pc1faidherbe/
Info MP-MP* : http://sites.google.com/site/infofaidherbe/





___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] pdftex and xetex not working at live.contextgarden.net

2008-11-10 Thread Pablo Rodríguez
Hi there,

LuaTeX seems to have been removed from live.contextgarden.net, but it 
seems that neither the pdftex nor xetex engine is able to compile the 
most basic

\starttext
Hello world!
\stoptext

Just in case it helps and none has noticed it.


Pablo
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pdftex and xetex not working at live.contextgarden.net

2008-11-10 Thread Mojca Miklavec
On Mon, Nov 10, 2008 at 8:56 PM, Pablo Rodríguez wrote:
 Hi there,

 LuaTeX seems to have been removed from live.contextgarden.net, but it
 seems that neither the pdftex nor xetex engine is able to compile the
 most basic

 \starttext
 Hello world!
 \stoptext

 Just in case it helps and none has noticed it.

If Patrick finds no time to fix auto-format-generation, I'll enable
luatex engine again :)

Mojca

... so that users can fix the problem themselves, or maybe the
advanced ones can simply replace the current version of live with
something more fancy; that should be doable :) ...
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread Hans Hagen
luigi scarso wrote:
 
 
 On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Aditya Mahajan wrote:
 
   \starttext
   \typefile{test-aditya-001.tex}
   \stoptext
  
   Ah, this also works here. The error only shows if the file does
 not have
   an extension.
 
 this is fixed (hack, awaiting a proper split of supp-fil into mkii and
 mkiv)
 
 Hans
 
 \starttext
 \typefile{test-aditya-TEST}
 \stoptext
 where
 test-aditya-TEST has
 TEST
 fails
 with
 
 ! Undefined control sequence.
 argument \filepath

bah, i'll fis this asap (when i do the split)


-
   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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-11-10 Thread Aditya Mahajan
On Mon, 10 Nov 2008, Hans Hagen wrote:

 bah, i'll fis this asap (when i do the split)

For me this is not urgent as there is a manual workaround.

\def\filepath{the current working directory}

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Patrick Gundlach
Hi,

 btw, virtual machine is also a nice solution. 

I doubt that it will run on the garden server (no kernel modules etc).
But true, it would be a nice solution!

Patrick
-- 
ConTeXt wiki and more: 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pdftex and xetex not working at live.contextgarden.net

2008-11-10 Thread Patrick Gundlach
Hi,

 LuaTeX seems to have been removed from live.contextgarden.net, but it
 seems that neither the pdftex nor xetex engine is able to compile the
 most basic

 \starttext
 Hello world!
 \stoptext

 Just in case it helps and none has noticed it.

 If Patrick finds no time to fix auto-format-generation, I'll enable
 luatex engine again :)

Then I guess you have to enable luatex again :)

Patrick
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Patrick Gundlach
Hi all,


 In my opinion, the only options for live.contextgarden.net are:

 a) just don't care, if there is a problem, restore from backup

 this is the current approach, and restore hasn't been needed yet
 (afaik).

Right.


 b) chroot jail

 possible new approach, but I suspect it won't be implemented until
 after a).

Well, for the new server I will chroot TeX, I am playing with it. So
until then a) is the approach (keep fingers crossed).


 c) virtual machine with virtual disk in non-persistent mode (at boot time
   the disk is always a fresh installation)

 i doubt this could be made to work as-is (contextgarden.net itself
 is a fairly limited virtual machine)

That is true.

 - perhaps some other ideas...

Maybe I will run live on another machine, but first I will move all the
stuff to the new server (time is so precious these days...).

Patrick

-- 
ConTeXt wiki and more: 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt Live not working

2008-11-10 Thread Diego Depaoli
2008/11/10 Yue Wang [EMAIL PROTECTED]:

 maybe a bsd-like jail(8).
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-intro.html

 It is said that linux-vserver had the same feature. I hadn't tried that yet.
I've done limited tests at home and it worked wery well.
Setup is not so hard, but requires some FreeBSD knowledge.
I think should be the right solution.

Cheers
-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___