Re: [NTG-context] \setbuffer

2009-05-10 Thread Wolfgang Schuster


Am 14.02.2009 um 10:09 schrieb Wolfgang Schuster:


Hi Hans,

why is \setbuffer not defined as \long, I want to use it as part
of a macro and need it to allow paragraphs as content.

Can you change this?

TIA,
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] Multiple letters

2009-05-10 Thread Otared Kavian

Hi all,

I have to write a letter to a few dozens candidates in which some  
parts are not identical. I may have the list of the persons, and the  
changing part for each of them in a file (named for instance list-of- 
candidates.tex) on which each line corresponds to one person and the  
fields are sperated by commas (or any other suitable character). What  
would be the best way of coding this in ConTeXt?


Here is the example I have in mind:

%%% begin the body of the letter

Dear \MmeOrSir\ \FirstName\ \FamilyName,

We have received your application and we thank you for your interest  
in our institution.

\AnswerToApplication.

With our best regards, etc…

%%% end the body of the letter

The four commands \MmeOrSir, \FirstName, \FamilyName,  
\AnswerToApplication should correspond to the columns 1 through 4 of  
each line of the file

list-of-candidates.tex as follows:

%%% begin list-of-candidates.tex
Madam  , Joan , of Arc , {You will be interviewed very soon}
Mr , Groucho , Marx , {We are sorry, but this position is only for non  
smoking candidates}


\endinput
%%% end list-of-candidates.tex

Thank you for help: OK
___
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] Multiple letters

2009-05-10 Thread Wolfgang Schuster


Am 10.05.2009 um 14:32 schrieb Otared Kavian:


Hi all,

I have to write a letter to a few dozens candidates in which some  
parts are not identical. I may have the list of the persons, and the  
changing part for each of them in a file (named for instance list- 
of-candidates.tex) on which each line corresponds to one person and  
the fields are sperated by commas (or any other suitable character).  
What would be the best way of coding this in ConTeXt?


Here is the example I have in mind:

%%% begin the body of the letter

Dear \MmeOrSir\ \FirstName\ \FamilyName,

We have received your application and we thank you for your interest  
in our institution.

\AnswerToApplication.

With our best regards, etc…

%%% end the body of the letter

The four commands \MmeOrSir, \FirstName, \FamilyName,  
\AnswerToApplication should correspond to the columns 1 through 4 of  
each line of the file

list-of-candidates.tex as follows:

%%% begin list-of-candidates.tex
Madam  , Joan , of Arc , {You will be interviewed very soon}
Mr , Groucho , Marx , {We are sorry, but this position is only for  
non smoking candidates}


\endinput
%%% end list-of-candidates.tex

Thank you for help: OK


\unprotect

\definemessageconstant {filecontents}

\startmessages all library: filecontents
title: filecontents
1: Overwriting file --
2: Writing file --
\stopmessages

\def\startfilecontents
  {\begingroup
   \protectbuffersfalse
   \dostartfilecontents}

\def\dostartfilecontents[#1]%
  {\doiffileexistselse{#1}
 {\showmessage\m!filecontents{1}{#1}}
 {\showmessage\m!filecontents{2}{#1}}%
   \beforesplitstring#1\at.\to\filename
   \aftersplitstring #1\at.\to\extension
   \let\f!temporaryextension\extension
   \dostartbuffer[\filename][startfilecontents][stopfilecontents]}

\def\stopfilecontents
  {\doifmode{mkiv}{\savebuffer[\filename]\ctxlua{file.copy(\jobname- 
\filename.tmp,\filename.\f!temporaryextension)}}%

   \endgroup}

\ifx\savebuffer\undefined \def\savebuffer[#1] 
{\ctxlua{buffers.save(#1)}} \fi


\protect

\startfilecontents[data.dat]
Madam, Joan, of Arc, {You will be interviewed very soon}
Mr, Groucho, Marx, {We are sorry, but this position is only for non  
smoking candidates}

\stopfilecontents

\usemodule[database,letter]

\define[4]\createletter
  {\startletter[opening={Dear #1 #2 #3,}]
   We have received your application and we thank you for your  
interest in our institution.\endgraf

   #4
   \stopletter}

\defineseparatedlist
  [LETTER]
  [command=\createletter,
   separator={,}]

\starttext
\processseparatedfile[LETTER][data.dat]
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Multiple letters

2009-05-10 Thread Otared Kavian

Dear Wolfgang,

Many thanks! As usual you are clear and sharp…
Your code works and does exactly what I need… Moreover I learned from  
it several clean tricks in order to use the way one can write macros  
in ConTeXt.
I have just to understand different parts of the code in order to  
wikify it.


Best regards: OK

On 10 mai 09, at 15:01, Wolfgang Schuster wrote:



Am 10.05.2009 um 14:32 schrieb Otared Kavian:


Hi all,

I have to write a letter to a few dozens candidates in which some  
parts are not identical. I may have the list of the persons, and  
the changing part for each of them in a file (named for instance  
list-of-candidates.tex) on which each line corresponds to one  
person and the fields are sperated by commas (or any other suitable  
character). What would be the best way of coding this in ConTeXt?


Here is the example I have in mind:

%%% begin the body of the letter

Dear \MmeOrSir\ \FirstName\ \FamilyName,

We have received your application and we thank you for your  
interest in our institution.

\AnswerToApplication.

With our best regards, etc…

%%% end the body of the letter

The four commands \MmeOrSir, \FirstName, \FamilyName,  
\AnswerToApplication should correspond to the columns 1 through 4  
of each line of the file

list-of-candidates.tex as follows:

%%% begin list-of-candidates.tex
Madam  , Joan , of Arc , {You will be interviewed very soon}
Mr , Groucho , Marx , {We are sorry, but this position is only for  
non smoking candidates}


\endinput
%%% end list-of-candidates.tex

Thank you for help: OK


\unprotect

\definemessageconstant {filecontents}

\startmessages all library: filecontents
   title: filecontents
   1: Overwriting file --
   2: Writing file --
\stopmessages

\def\startfilecontents
 {\begingroup
  \protectbuffersfalse
  \dostartfilecontents}

\def\dostartfilecontents[#1]%
 {\doiffileexistselse{#1}
{\showmessage\m!filecontents{1}{#1}}
{\showmessage\m!filecontents{2}{#1}}%
  \beforesplitstring#1\at.\to\filename
  \aftersplitstring #1\at.\to\extension
  \let\f!temporaryextension\extension
  \dostartbuffer[\filename][startfilecontents][stopfilecontents]}

\def\stopfilecontents
 {\doifmode{mkiv}{\savebuffer[\filename]\ctxlua{file.copy(\jobname- 
\filename.tmp,\filename.\f!temporaryextension)}}%

  \endgroup}

\ifx\savebuffer\undefined \def\savebuffer[#1] 
{\ctxlua{buffers.save(#1)}} \fi


\protect

\startfilecontents[data.dat]
Madam, Joan, of Arc, {You will be interviewed very soon}
Mr, Groucho, Marx, {We are sorry, but this position is only for non  
smoking candidates}

\stopfilecontents

\usemodule[database,letter]

\define[4]\createletter
 {\startletter[opening={Dear #1 #2 #3,}]
  We have received your application and we thank you for your  
interest in our institution.\endgraf

  #4
  \stopletter}

\defineseparatedlist
 [LETTER]
 [command=\createletter,
  separator={,}]

\starttext
\processseparatedfile[LETTER][data.dat]
\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  : 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
___


[NTG-context] texts in \component files are not present

2009-05-10 Thread Wei-Wei Guo

Dear all,

Text in component files are not included in the attached example. I also put 
the log
file in it. The log shows that the component files were found and complied but 
their
texts were not present in the generated pdf file.

I'm not sure whether I did anything wrong in the example or not. I checked many 
time
and didn't find anything.


Best wishes,
Wei-Wei


test.tgz
Description: Binary data
___
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] \setbuffer

2009-05-10 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 14.02.2009 um 10:09 schrieb Wolfgang Schuster:


Hi Hans,

why is \setbuffer not defined as \long, I want to use it as part
of a macro and need it to allow paragraphs as content.

Can you change this?


no need as \dosetbuffer is defined as \long and \setbuffer itself does 
not has any arguments



-
  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] setuptex changes in minimals

2009-05-10 Thread Hans Hagen

Yue Wang wrote:


- It is ugly to produce a paragraph whose last line only consists one
Chinese character. In order to avoid that, tex82 programmers should
write very complicated macros. So many developers here tend to ignore
this problem. However, in LuaTeX, this is quite easy. It is simple to
scan the position before the punctuation and \par in lua, and insert a
line break penalty there.


ok, but it might even be more clever, like minimum number of glyphs on 
last line or so (and words in case of other scripts)



- Punctuation compression. In the past this is not easy to do (a lot
of macros should be defined), and because each Chinese fonts are so
distinctly designed, their punctuations' positions in the character
box are different. So different parameters should be applied when
different fonts are involved in typesetting. However, LuaTeX make it
possible to calculate character bounding box information, so
punctuation compression is as easy as re-setting the punctuation
width.


i had code for that but removes it as fonts are pretty inconsistent; i 
will look into that again when we have (1) a couple of reference fonts 
without bugs in the tex distribution and (2) wiki pages with info about 
the quality of fonts (can later become a database); otherwise we end up 
in messy support situations



But we (me, Li Yanrui, Chen Zhichu) as the board members of the
Chinese TeX Society, will try our best to organized the typesetting
discussion on local forums, taking different opinions into
consideration, and later provide a complete specification as long as
we can.


that would be very helpful


pace, we will have a very prospective solution near luatex 1.0:)


sure


-
  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] texts in \component files are not present

2009-05-10 Thread Hans Hagen

Wei-Wei Guo wrote:

Dear all,

Text in component files are not included in the attached example. I also 
put the log
file in it. The log shows that the component files were found and 
complied but their

texts were not present in the generated pdf file.

I'm not sure whether I did anything wrong in the example or not. I 
checked many time

and didn't find anything.


runs ok here; i see cache filling in the log; does that happen each run?

-
  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] rscale in latest beta

2009-05-10 Thread Thomas A. Schmitz


On May 9, 2009, at 3:05 PM, Thomas A. Schmitz wrote:

maybe Hans can say which files are likely to be the culprit so I  
can run a diff between these two versions?


most likely font-ini.mkiv

Hans


Thanks Hans, I'll see if I can find anything!

Thomas


OK, first result: if I simply put my old font-ini.mkiv (2009.04.21) in  
place of the new one and regenerate the formats, rscale works again.  
I'll say if I can nail it down further.


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] rscale in latest beta

2009-05-10 Thread Hans Hagen

Thomas A. Schmitz wrote:


On May 9, 2009, at 3:05 PM, Thomas A. Schmitz wrote:

maybe Hans can say which files are likely to be the culprit so I can 
run a diff between these two versions?


most likely font-ini.mkiv

Hans


Thanks Hans, I'll see if I can find anything!

Thomas


OK, first result: if I simply put my old font-ini.mkiv (2009.04.21) in 
place of the new one and regenerate the formats, rscale works again. 
I'll say if I can nail it down further.


ok


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


[NTG-context] Capital number when onum=yes?

2009-05-10 Thread Corsair
Hi all,

I have `onum=yes' in my font features and it works great.  But how can
I type a capital number in this case?  I want to use capital numbers
in pagenumbers.

Thanks!

Corsair Sun

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgp1ZuaiWNP5X.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] texts in \component files are not present

2009-05-10 Thread Wolfgang Schuster


Am 10.05.2009 um 17:29 schrieb Wei-Wei Guo:


Dear all,

Text in component files are not included in the attached example. I  
also put the log
file in it. The log shows that the component files were found and  
complied but their

texts were not present in the generated pdf file.

I'm not sure whether I did anything wrong in the example or not. I  
checked many time

and didn't find anything.


Works OK for me but I found a few you could/should change.

1. Don't use project files as top level file for your document, use  
product and
   components (which can be nested) files only, projects are meta  
file when you

   have many document with the same topic (e.g. a magazine etc.)

2. You can write \usepath[kaka,leasure] in your environment files and  
write

   in test.tex

 \component leasure
 \component kaka

   ConTeXt looks now in both directories for the files leasure.tex  
and kaka.tex

   but take care to use unique filenames.

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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)

2009-05-10 Thread Amaël Broustet
Dear context users,
at first a lot of warm thanks for help and comments on using
t-simpleslides.

On a different matter, I now have the following problem :
I do a lot of testing trying compiling my slides (using the following
command : context essai.tex). Sometimes, I get errors and an
interactive prompt that I kill with either ctrl+C or ctrl+Z (at random).

I noticed that my computer was swapping (2Go RAM). 
With ps xa  | grep lua I get 34 process.

Using top and sorting by memory used the processes, I noticed 7
instances of luatex and 5 of texlua on the first page for a total of
800MB of resident memory.

Did I miss something using context (I do context essai.tex each time
that I want compile changes) ?

killall luatex and kill -15 PID does nothing.


Best,
Amaël  

___
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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)

2009-05-10 Thread Arthur Reutenauer
 Sometimes, I get errors and an
 interactive prompt that I kill with either ctrl+C or ctrl+Z (at random).

  You shouldn't do that.  Type 'x' at the error prompt, it makes
(Lua)TeX terminate.  Ctrl+C sometimes isn't enough to kill LuaTeX,
though I have no idea why; as for Ctrl+Z, it never kills anything, it
sends the suspend signal (you should see the process status with top).

 killall luatex and kill -15 PID does nothing.

  kill -1 is usually enough.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)

2009-05-10 Thread Mohamed Bana
I've also noticed something along those lines.  I've also found that 
CTRL+Z/C doesn't really exit the program --- there are stale processes 
still lying around.


What I described is general, it tends to happen across big documents.

Is this a known problem?

� Broustet wrote:

Dear context users,
at first a lot of warm thanks for help and comments on using
t-simpleslides.

On a different matter, I now have the following problem :
I do a lot of testing trying compiling my slides (using the following
command : context essai.tex). Sometimes, I get errors and an
interactive prompt that I kill with either ctrl+C or ctrl+Z (at random).

I noticed that my computer was swapping (2Go RAM). 
With ps xa  | grep lua I get 34 process.


Using top and sorting by memory used the processes, I noticed 7
instances of luatex and 5 of texlua on the first page for a total of
800MB of resident memory.

Did I miss something using context (I do context essai.tex each time
that I want compile changes) ?

killall luatex and kill -15 PID does nothing.


Best,
Amaël  


___
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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)

2009-05-10 Thread Amaël Broustet
Thank you !
it's ok now.

Le dimanche 10 mai 2009 à 20:14 +0200, Arthur Reutenauer a écrit :
  Sometimes, I get errors and an
  interactive prompt that I kill with either ctrl+C or ctrl+Z (at random).
 
   You shouldn't do that.  Type 'x' at the error prompt, it makes
 (Lua)TeX terminate.  Ctrl+C sometimes isn't enough to kill LuaTeX,
 though I have no idea why; as for Ctrl+Z, it never kills anything, it
 sends the suspend signal (you should see the process status with top).
 
  killall luatex and kill -15 PID does nothing.
 
   kill -1 is usually enough.
 
   Arthur
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)

2009-05-10 Thread Amaël Broustet
On a small example : ctrl+C works, ctrl+Z leaves unkillable (either -15
or -1) luatex and texlua process. kill -9 leaves zombies.
killing the parent shell clean everything. 


Le dimanche 10 mai 2009 à 19:25 +0100, Mohamed Bana a écrit :
 I've also noticed something along those lines.  I've also found that 
 CTRL+Z/C doesn't really exit the program --- there are stale processes 
 still lying around.
 
 What I described is general, it tends to happen across big documents.
 
 Is this a known problem?
 
 � Broustet wrote:
  Dear context users,
  at first a lot of warm thanks for help and comments on using
  t-simpleslides.
  
  On a different matter, I now have the following problem :
  I do a lot of testing trying compiling my slides (using the following
  command : context essai.tex). Sometimes, I get errors and an
  interactive prompt that I kill with either ctrl+C or ctrl+Z (at random).
  
  I noticed that my computer was swapping (2Go RAM). 
  With ps xa  | grep lua I get 34 process.
  
  Using top and sorting by memory used the processes, I noticed 7
  instances of luatex and 5 of texlua on the first page for a total of
  800MB of resident memory.
  
  Did I miss something using context (I do context essai.tex each time
  that I want compile changes) ?
  
  killall luatex and kill -15 PID does nothing.
  
  
  Best,
  Amaël  
  
  ___
  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
 ___

___
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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)

2009-05-10 Thread Arthur Reutenauer
 On a small example : ctrl+C works, ctrl+Z leaves unkillable (either -15
 or -1) luatex and texlua process.

  Again, that's because Ctrl+Z, in a normal Unix environment, only
suspends the process, it never kills it.  Try kill -19 first (SIGCONT),
then kill -15 or -1.

  You can try the following experiment: run a small example file with an
error and type Ctrl+Z.  You may think you exited the process, but now
type fg.  You should recover the LuaTeX run in the exact state you
left it.  It has not been killed.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rscale in latest beta

2009-05-10 Thread Hans Hagen

Thomas A. Schmitz wrote:


On May 9, 2009, at 3:05 PM, Thomas A. Schmitz wrote:

maybe Hans can say which files are likely to be the culprit so I can 
run a diff between these two versions?


most likely font-ini.mkiv

Hans


Thanks Hans, I'll see if I can find anything!

Thomas


OK, first result: if I simply put my old font-ini.mkiv (2009.04.21) in 
place of the new one and regenerate the formats, rscale works again. 
I'll say if I can nail it down further.


how do you use rscale?

\definetypeface [] [rm] [serif] [times] [default]
\definetypeface [] [ss] [sans]  [helvetica] [default] [rscale=5]

\starttext
\setupbodyfont[] \rm test \ss test
\stoptext

works ok



-
  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] lots of luatex process/instances (ps xa| grep lua / top -----sort by memory)

2009-05-10 Thread Martin Schröder
2009/5/10, Amaël Broustet cont...@amael.net:
  killall luatex and kill -15 PID does nothing.

Don't use killall. Linux != Unix.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Capital number when onum=yes?

2009-05-10 Thread Hans Hagen

Corsair wrote:

Hi all,

I have `onum=yes' in my font features and it works great.  But how can
I type a capital number in this case?  I want to use capital numbers
in pagenumbers.


can you be a bit more explicit?

to what extend smallcaps are implemented is font dependent



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


[NTG-context] mframed (mkiv) bug

2009-05-10 Thread Alan BRASLAU
\mframed misbehaves under mkiv (latest minimals)
minimal example:

\setupcolors[state=start]
\starttext
\mframed[frame=off,background=color,backgroundcolor=yellow]{k_2 \propto \langle 
N \rangle^{\alpha}}
\stoptext

- framed text, white background
(works correctly under mkii: no frame, yellow background).

Thanks,

Additional question: might it be more general, syntactically, to replace 
\mframed{} by $\framed{}$ or \startformula\framed{}\stopformula (although I 
completely ignore the difficulties in modifying \framed{} to detect math 
mode...)?

Alan

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \setupinteractions[option=max] (mkiv)

2009-05-10 Thread Alan BRASLAU
\setupinteractionscreen[option=max] no longer works under mkiv.

Thanks,

Alan

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rscale in latest beta

2009-05-10 Thread Thomas A. Schmitz


On May 10, 2009, at 9:38 PM, Hans Hagen wrote:


how do you use rscale?

\definetypeface [] [rm] [serif] [times] [default]
\definetypeface [] [ss] [sans]  [helvetica] [default] [rscale=5]

\starttext
\setupbodyfont[] \rm test \ss test
\stoptext

works ok


I think I have found the problem and a test file: the problem occurs  
when I define two fonts with different rscales. In this case, only the  
last defined rscale is taken into account, the other one is discarded.  
Here's the file:


\usetypescript[times]
\setupbodyfont[times,12pt]

\definetypeface [one] [rm] [serif] [palatino]   [default] [rscale=2]
\definetypeface [two] [rm] [serif] [schoolbook] [default] [rscale=0.5]

\starttext

Hello world! \switchtobodyfont[one] One \switchtobodyfont[two] Two

\stoptext

If you switch the two \definetypeface lines, you'll see what I mean.  
And since my module defines both a font greek and altgreek, each  
with its own rscale, that's why I was seeing it in my files and  
couldn't reproduce the error at first.


Not easy to find...

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] texts in \component files are not present

2009-05-10 Thread Wei-Wei Guo

Hans Hagen 写道:

Text in component files are not included in the attached example. I 
also put the log
file in it. The log shows that the component files were found and 
complied but their

texts were not present in the generated pdf file.

I'm not sure whether I did anything wrong in the example or not. I 
checked many time

and didn't find anything.


runs ok here; 


It runs ok here too, but the texts, like Text of leasure., are not present.
Actually the whole contents of \component files are missing. Do your generated
pdf has lines like Text of leasure. or Text of kaka.?


 i see cache filling in the log; does that happen each run?

Do you mean the info in the log? The log info seems the same in each run.


Best wishes,
Wei-Wei
___
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] texts in \component files are not present

2009-05-10 Thread Wei-Wei Guo

Wolfgang Schuster 写道:

Text in component files are not included in the attached example. I 
also put the log
file in it. The log shows that the component files were found and 
complied but their

texts were not present in the generated pdf file.

I'm not sure whether I did anything wrong in the example or not. I 
checked many time

and didn't find anything.


Works OK for me but I found a few you could/should change.

1. Don't use project files as top level file for your document, use 
product and
   components (which can be nested) files only, projects are meta file 
when you

   have many document with the same topic (e.g. a magazine etc.)



A magazine is really one of my purposes. :)


2. You can write \usepath[kaka,leasure] in your environment files and write
   in test.tex

 \component leasure
 \component kaka

   ConTeXt looks now in both directories for the files leasure.tex and 
kaka.tex

   but take care to use unique filenames.



After adding \usepath[kaka,leasure], the texts in \component present, but, as 
the
caution you mentioned, since I have two files with the same name, i.e. 
mytime.tex,
only the file in kaka/ is added and is added twice. Although \usepath can partly
solve my problem, it limits flexibility.


Best wishes,
Wei-Wei
___
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] Capital number when onum=yes?

2009-05-10 Thread Corsair
On Sun, May 10, 2009 at 09:44:58PM +0200, Hans Hagen wrote:
 Corsair wrote:
  Hi all,
  
  I have `onum=yes' in my font features and it works great.  But how can
  I type a capital number in this case?  I want to use capital numbers
  in pagenumbers.
 
 can you be a bit more explicit?
 
 to what extend smallcaps are implemented is font dependent

Ok.  Sorry for the vagueness.  I use Adobe Caslon Pro as my body font,
with XeTeX.  And I enable the `onum' feature so that all numbers in my
document appear as old-style numbers, which is good.  But I also
prefer some of them use the normal capital number glyphs, for example,
in page numbers.  How can I do that?

-- 
There is no emotion; there is peace.
There is no ignorance; there is knowledge.
There is no passion; there is serenity.
There is no death; there is the Force.


pgpOtl2Tqe55f.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___