Re: [NTG-context] can't find file `core-swd'

2008-11-12 Thread luigi scarso


 One error cancels the other:
 - first error: there is no more core-swd.tex but it's needed by the
  \loadmkiifile command
 - second error: the installer for the minimals only adds new files but
  never removes obsolete ones (no --del switch for rsync).

 So you're lucky, because there is still an old core-swd.tex in your tree
 that will never be removed automatically.


yes, I suppose that.
There are some differences between *zip and minimals,
but actually I prefear  minimals .

-- 
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] \definefont problem with latest beta (mkiv)

2008-11-12 Thread Hans Hagen
Peter Rolf wrote:
 Taco Hoekwater schrieb:
 Peter Rolf wrote:
 I followed that one. But my problem is more the *wrong strut height*,
 e.g. using a \totalstrut value of 12pt with a 8pt font. The strut height
 is simply not adapted to the actual font size anymore (even if I use
 \setstrut).
 I can understand why you think this is a different problem, but both
 struts and interline spaces depend on the value of 1ex, which has
 changed in an incompatible way. Perhaps you should post a complete
 minimal example.

 But (unless the font data is really bad) we are talking about slight
 differences. And you can't call a 12.6pt strut for a 8pt font a slight
 change. :)
 
 I will (try to) make a minimal example...

\showstruts
 \start
 \tf  \setstrut tf:\strut
 \tfa \setstrut tfa:\strut
 \tfb \setstrut tfb:\strut
 \tfc \setstrut tfc:\strut
 \tfd \setstrut tfd:\strut
 \stop
 \start
 \small
 \tf  \setstrut tf:\strut
 \tfa \setstrut tfa:\strut
 \tfb \setstrut tfb:\strut
 \tfc \setstrut tfc:\strut
 \tfd \setstrut tfd:\strut
 \stop

looks ok to me (at least on my machine)



-
   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] mkiv and \recycleMPslotstrue

2008-11-12 Thread Otared Kavian
Hi all,

With the minimals (ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt:  
2008.11.12  int: english/english) and mkiv, I get from time to time:
(cont-sys.tex
! Undefined control sequence. l.123
\recycleMPslotstrue
but, despite this, a correct PDF is produced, when I hit return in  
order to ignore the error.
For instance this happens with the example given by Hans:
\starttext
\showstruts
 \start
 \tf  \setstrut tf:\strut
 \tfa \setstrut tfa:\strut
 \tfb \setstrut tfb:\strut
 \tfc \setstrut tfc:\strut
 \tfd \setstrut tfd:\strut
 \stop
 \start
 \small
 \tf  \setstrut tf:\strut
 \tfa \setstrut tfa:\strut
 \tfb \setstrut tfb:\strut
 \tfc \setstrut tfc:\strut
 \tfd \setstrut tfd:\strut
 \stop
\stoptext

I guess this is a dormant (conflicting?) thing from mkii…

Best regards: 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] mkiv and \recycleMPslotstrue

2008-11-12 Thread Hans Hagen
Otared Kavian wrote:
 Hi all,
 
 With the minimals (ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt:  
 2008.11.12  int: english/english) and mkiv, I get from time to time:
   (cont-sys.tex
   ! Undefined control sequence. l.123
   \recycleMPslotstrue
 but, despite this, a correct PDF is produced, when I hit return in  
 order to ignore the error.
 For instance this happens with the example given by Hans:
 \starttext
 \showstruts
  \start
  \tf  \setstrut tf:\strut
  \tfa \setstrut tfa:\strut
  \tfb \setstrut tfb:\strut
  \tfc \setstrut tfc:\strut
  \tfd \setstrut tfd:\strut
  \stop
  \start
  \small
  \tf  \setstrut tf:\strut
  \tfa \setstrut tfa:\strut
  \tfb \setstrut tfb:\strut
  \tfc \setstrut tfc:\strut
  \tfd \setstrut tfd:\strut
  \stop
 \stoptext
 
 I guess this is a dormant (conflicting?) thing from mkii…

indeed, just remove the line from your cont-sys.tex

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

2008-11-12 Thread Bart C. Wise
I am trying to change the spacing of a chapter title head.  I found the 
\kern command; however, I could not get that to work over a string of text.

Then I found the following code:
\def\dolist{\afterassignment\dodolist\let\next= }
\def\dodolist{\ifx\next\endlist \let\next\relax
   \else \\\let\next\dolist \fi
   \next}
\def\endlist{\endlist}
\def\track#1\by#2{\def\\{\next\kern#2}%
   \leavevmode \hbox{\expandafter\dolist#1\endlist}}

Then I tried:

def\MyChapterCommand#1#2{
\framed[align=center,frame=off,width=\textwidth]{
\vbox{
\track{This is a Test} \by{.2em}
\track #2  \by{.2em}
}
}
\setuphead[chapter][
command=\MyChapterCommand
}

The output from the \track{This is a Test} \by{.2em} works.  However, the 
second track command (\track #2 \by{0.2em}) fails.

I spent many hours last night trying to change the kerning.  What I want is 
something like: \kern{TEXT}{KERNING AMOUNT}.  

What's available, or how do I fix the track command above.  By the way,I'm 
running mkii.

Thanks,
Bart
___
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] Kerning

2008-11-12 Thread Wolfgang Schuster

Am 12.11.2008 um 16:48 schrieb Bart C. Wise:

 I am trying to change the spacing of a chapter title head.  I found  
 the
 \kern command; however, I could not get that to work over a string  
 of text.

 Then I found the following code:
 \def\dolist{\afterassignment\dodolist\let\next= }
 \def\dodolist{\ifx\next\endlist \let\next\relax
   \else \\\let\next\dolist \fi
   \next}
 \def\endlist{\endlist}
 \def\track#1\by#2{\def\\{\next\kern#2}%
   \leavevmode \hbox{\expandafter\dolist#1\endlist}}

 Then I tried:

 def\MyChapterCommand#1#2{
\framed[align=center,frame=off,width=\textwidth]{
   \vbox{
   \track{This is a Test} \by{.2em}
   \track #2  \by{.2em}
   }
   }
 \setuphead[chapter][
command=\MyChapterCommand
 }

 The output from the \track{This is a Test} \by{.2em} works.   
 However, the
 second track command (\track #2 \by{0.2em}) fails.

 I spent many hours last night trying to change the kerning.  What I  
 want is
 something like: \kern{TEXT}{KERNING AMOUNT}.

 What's available, or how do I fix the track command above.  By the  
 way,I'm
 running mkii.


Search for \stretched and \stretchednormalcase.

http://archive.contextgarden.net/message/20080815.074940.ae67f770.en.html

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

2008-11-12 Thread Bart C. Wise
Wolfgang,

It works!

Thanks,
Bart

On Wednesday 12 November 2008 08:54:49 am Wolfgang Schuster wrote:
 Am 12.11.2008 um 16:48 schrieb Bart C. Wise:
  I am trying to change the spacing of a chapter title head.  I found
  the
  \kern command; however, I could not get that to work over a string
  of text.
 
  Then I found the following code:
  \def\dolist{\afterassignment\dodolist\let\next= }
  \def\dodolist{\ifx\next\endlist \let\next\relax
\else \\\let\next\dolist \fi
\next}
  \def\endlist{\endlist}
  \def\track#1\by#2{\def\\{\next\kern#2}%
\leavevmode \hbox{\expandafter\dolist#1\endlist}}
 
  Then I tried:
 
  def\MyChapterCommand#1#2{
 \framed[align=center,frame=off,width=\textwidth]{
  \vbox{
  \track{This is a Test} \by{.2em}
  \track #2  \by{.2em}
  }
  }
  \setuphead[chapter][
 command=\MyChapterCommand
  }
 
  The output from the \track{This is a Test} \by{.2em} works.
  However, the
  second track command (\track #2 \by{0.2em}) fails.
 
  I spent many hours last night trying to change the kerning.  What I
  want is
  something like: \kern{TEXT}{KERNING AMOUNT}.
 
  What's available, or how do I fix the track command above.  By the
  way,I'm
  running mkii.

 Search for \stretched and \stretchednormalcase.

 http://archive.contextgarden.net/message/20080815.074940.ae67f770.en.html

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

2008-11-12 Thread Bart C. Wise
Okay, it works until I place an an argument in the stretched command.

def\MyChapterCommand#1#2{
   \framed[align=center,frame=off,width=\textwidth]{
\vbox{
fails--\stretched{#2}
works--\stretched{This is a Test}
}
}
\setuphead[chapter][
   command=\MyChapterCommand
}


I get the following error when I run texexec:

! Missing \endcsname inserted.
to be read again
   \let
\nextprocessedtoken ...oup \ifincolor \ifcsname #1
  #3\endcsname \let 
\dostopa...

\dodoprocesstokens ...token \let \before \between
  \fi \let \nextprocessedtok...
argument This is a test: \dostartattributes
  {\??ko \v!title }\c!style 
\c!c...

\processtokens ...fore \before \doprocesstokens #5
  \lastcharacter \endgroup
\stretched ... \relax \hss \relax {\hss \hss }{#1}
  \egroup
...

How can I use the #1  #2 arguments in the stretched command?

On Wednesday 12 November 2008 09:28:39 am Bart C. Wise wrote:
 Wolfgang,

 It works!

 Thanks,
 Bart

 On Wednesday 12 November 2008 08:54:49 am Wolfgang Schuster wrote:
  Am 12.11.2008 um 16:48 schrieb Bart C. Wise:
   I am trying to change the spacing of a chapter title head.  I found
   the
   \kern command; however, I could not get that to work over a string
   of text.
  
   Then I found the following code:
   \def\dolist{\afterassignment\dodolist\let\next= }
   \def\dodolist{\ifx\next\endlist \let\next\relax
 \else \\\let\next\dolist \fi
 \next}
   \def\endlist{\endlist}
   \def\track#1\by#2{\def\\{\next\kern#2}%
 \leavevmode \hbox{\expandafter\dolist#1\endlist}}
  
   Then I tried:
  
   def\MyChapterCommand#1#2{
  \framed[align=center,frame=off,width=\textwidth]{
 \vbox{
 \track{This is a Test} \by{.2em}
 \track #2  \by{.2em}
 }
 }
   \setuphead[chapter][
  command=\MyChapterCommand
   }
  
   The output from the \track{This is a Test} \by{.2em} works.
   However, the
   second track command (\track #2 \by{0.2em}) fails.
  
   I spent many hours last night trying to change the kerning.  What I
   want is
   something like: \kern{TEXT}{KERNING AMOUNT}.
  
   What's available, or how do I fix the track command above.  By the
   way,I'm
   running mkii.
 
  Search for \stretched and \stretchednormalcase.
 
  http://archive.contextgarden.net/message/20080815.074940.ae67f770.en.html
 
  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
 ___


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

2008-11-12 Thread Wolfgang Schuster

Am 12.11.2008 um 18:03 schrieb Bart C. Wise:

 Okay, it works until I place an an argument in the stretched command.

 def\MyChapterCommand#1#2{
   \framed[align=center,frame=off,width=\textwidth]{
   \vbox{
 fails--  \stretched{#2}
 works--  \stretched{This is a Test}
   }
   }
 \setuphead[chapter][
   command=\MyChapterCommand
 }


 I get the following error when I run texexec:

 ! Missing \endcsname inserted.
 to be read again
   \let
 \nextprocessedtoken ...oup \ifincolor \ifcsname #1
  #3\endcsname \let
 \dostopa...

 \dodoprocesstokens ...token \let \before \between
  \fi \let  
 \nextprocessedtok...
 argument This is a test: \dostartattributes
  {\??ko \v!title }\c!style
 \c!c...

 \processtokens ...fore \before \doprocesstokens #5
  \lastcharacter  
 \endgroup
 \stretched ... \relax \hss \relax {\hss \hss }{#1}
  \egroup
 ...

 How can I use the #1  #2 arguments in the stretched command?

You could use it only with \deeptextcommand, here is a old mail
with a example from Hans (you could ignore the other code).

http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.html

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] \definefont problem with latest beta (mkiv)

2008-11-12 Thread Taco Hoekwater


Peter Rolf wrote:
 
 I followed that one. But my problem is more the *wrong strut height*,
 e.g. using a \totalstrut value of 12pt with a 8pt font. The strut height
 is simply not adapted to the actual font size anymore (even if I use
 \setstrut).

I can understand why you think this is a different problem, but both
struts and interline spaces depend on the value of 1ex, which has
changed in an incompatible way. Perhaps you should post a complete
minimal example.

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] \definefont problem with latest beta (mkiv)

2008-11-12 Thread Peter Rolf
Taco Hoekwater schrieb:
 
 Peter Rolf wrote:
 I followed that one. But my problem is more the *wrong strut height*,
 e.g. using a \totalstrut value of 12pt with a 8pt font. The strut height
 is simply not adapted to the actual font size anymore (even if I use
 \setstrut).
 
 I can understand why you think this is a different problem, but both
 struts and interline spaces depend on the value of 1ex, which has
 changed in an incompatible way. Perhaps you should post a complete
 minimal example.

But (unless the font data is really bad) we are talking about slight
differences. And you can't call a 12.6pt strut for a 8pt font a slight
change. :)

I will (try to) make a minimal example...

 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
 ___
 

___
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] core-swd

2008-11-12 Thread Hans Hagen
in context.mkii the core-swd line should say ...

\loadmarkfile{core-swd}


mojca, can you fix this in the minimals? i cannot make a beta right now

-- 

-
   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] How to ged rid of temporary files, forever?

2008-11-12 Thread Vyatcheslav Yatskovsky
Hi,

I have a folder where I store my tex sources and generated pdfs. The 
problem is that now it is overflooded with temporary files (top, 
tuo,log,...).

I remember Hans wrote somewhere that LuaTeX will hold temporary files in 
memory... But they are still there, on the disk.

Yes, I know the --purge-all option, but it is too long to write context 
filename --purge-all , isn't it?

It would be very nice if we could set an option somewhere (for example, 
in the registry) to NOT generate temporary files, and even log files (I 
never use them).

Best regards,
Vyatcheslav Yastkovsky
___
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] debugging

2008-11-12 Thread Mojca Miklavec
On Tue, Nov 11, 2008 at 2:33 PM, Alan STONE wrote:
 On Tue, Nov 11, 2008 at 2:03 PM, Alan STONE wrote:
 wrote:

 Do you know some tool (Windows/Linux) which enables to filter these from
 the
 log file into a text file, or delete the unwanted ones from the log file ?

 Under Linux, grep should be able to do that. Under Windows ?

This package is great:
http://gnuwin32.sourceforge.net
and grep is part of it.

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] \definefont problem with latest beta (mkiv)

2008-11-12 Thread Peter Rolf
Hans Hagen schrieb:
 Peter Rolf wrote:
 Taco Hoekwater schrieb:
 Peter Rolf wrote:
 I followed that one. But my problem is more the *wrong strut height*,
 e.g. using a \totalstrut value of 12pt with a 8pt font. The strut height
 is simply not adapted to the actual font size anymore (even if I use
 \setstrut).
 I can understand why you think this is a different problem, but both
 struts and interline spaces depend on the value of 1ex, which has
 changed in an incompatible way. Perhaps you should post a complete
 minimal example.

 But (unless the font data is really bad) we are talking about slight
 differences. And you can't call a 12.6pt strut for a 8pt font a slight
 change. :)

 I will (try to) make a minimal example...
 
 \showstruts
  \start
  \tf  \setstrut tf:\strut
  \tfa \setstrut tfa:\strut
  \tfb \setstrut tfb:\strut
  \tfc \setstrut tfc:\strut
  \tfd \setstrut tfd:\strut
  \stop
  \start
  \small
  \tf  \setstrut tf:\strut
  \tfa \setstrut tfa:\strut
  \tfb \setstrut tfb:\strut
  \tfc \setstrut tfc:\strut
  \tfd \setstrut tfd:\strut
  \stop
 
 looks ok to me (at least on my machine)


same here. strut adapting works also with a ms font (ttf). so no general
but a special (and maybe private) problem. we will see.

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

___
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] \definecharacter

2008-11-12 Thread Thomas A. Schmitz

On Nov 11, 2008, at 11:58 PM, Wolfgang Schuster wrote:

 from enco-ini.mkiv

 \def\definecharacter#1 #2 %
   {}

 You could use \definecommand.

 Wolfgang

Wolfgang, thanks for pointing me to this. What is the reason of this  
unfriendly behavior? I can understand if the \definecharacter command  
is gone in mkiv, but simply taking the arguments and sending them into  
nirvana? It was a bit difficult for me to see where the errors in my  
environments came from, so I'm really wondering what this is supposed  
to do.

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
___


[NTG-context] Need more interword spacing

2008-11-12 Thread Vyatcheslav Yatskovsky
Hi,

Can someone suggest me global setting for interword spacing? I write 
chords above lyrics (with a pen), and often there is no enougn space 
between words.

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

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


Re: [NTG-context] How to ged rid of temporary files, forever?

2008-11-12 Thread luigi scarso
On Wed, Nov 12, 2008 at 9:49 PM, Vyatcheslav Yatskovsky 
[EMAIL PROTECTED] wrote:

 Hi,

 I have a folder where I store my tex sources and generated pdfs. The
 problem is that now it is overflooded with temporary files (top,
 tuo,log,...).

 I remember Hans wrote somewhere that LuaTeX will hold temporary files in
 memory... But they are still there, on the disk.

 Yes, I know the --purge-all option, but it is too long to write context
 filename --purge-all , isn't it?

Under mkiv I use
#   context --purgeall
It deletes all *run, *tui, *top, *log

-- 
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] Need more interword spacing

2008-11-12 Thread Yanrui Li
2008/11/13 Vyatcheslav Yatskovsky [EMAIL PROTECTED]:
 Hi,

 Can someone suggest me global setting for interword spacing? I write
 chords above lyrics (with a pen), and often there is no enougn space
 between words.


Hi,

Wolfgang have told me about using code such as ``spaceskip .25em plus
.25em\relax'' to adjust spaces in Chinese chacracters. You can try it
for your problem.


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


Re: [NTG-context] Need more interword spacing

2008-11-12 Thread Yanrui Li
2008/11/13 Yanrui Li [EMAIL PROTECTED]:
 2008/11/13 Vyatcheslav Yatskovsky [EMAIL PROTECTED]:
 Hi,

 Can someone suggest me global setting for interword spacing? I write
 chords above lyrics (with a pen), and often there is no enougn space
 between words.


 Hi,

 Wolfgang have told me about using code such as ``spaceskip .25em plus
 .25em\relax'' to adjust spaces in Chinese chacracters. You can try it
 for your problem.


 --
 Best wishes,
 Li Yanrui


Sorry, I made a mistake. It should be ``\spaceskip .25em plus .25em\relax''.
'

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


Re: [NTG-context] about error unable to identify cnf file (Wolfgang Schuster

2008-11-12 Thread 그래프 수학과
Hi, Otared, Wolfgang,

Thank you for the help.

In the ConTeXt Minimals, LuaTeX is working well.
I'll use minimals for LuaTeX.

By the way, do I need luatools --generate again after adding my  
personal files in the folder ./contextminimals/tex/texmf-context/ 
user/context/?


Thank you again.

Best regards,

Dal


___
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] about error unable to identify cnf file (Wolfgang Schuster

2008-11-12 Thread Mojca Miklavec
On Thu, Nov 13, 2008 at 1:22 AM, 그래프 수학과 [EMAIL PROTECTED] wrote:

 By the way, do I need luatools --generate again after adding my
 personal files in the folder ./contextminimals/tex/texmf-context/
 user/context/?

You do, but don't add any files there. Use texmf-local instead.
If you ever turn the --delete switch on, everything that you have
added into texmf-context tree will be removed.

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

2008-11-12 Thread Bart C. Wise
Wolfgang,  thanks so much for your help so far.

I was able to take the code and make it work correctly to stretch the chapter 
title.  What I want is two lines for a chapter head.  For example,
Line 1: Chapter One
Line 2: Title for Chap 1

I want line 1 to be stretched.  Everything I have tried does not work.  I can 
get the Chapter word to stretch, but not the whole line (and it should 
probably be treated as a whole line when stretching).  I was never able to get 
the chapter number (now a word) to stretch.

So how do I grab the output for line 1 and then stretch it?

Here's a sample of what I have without any stretching:

\def\Myheader#1#2{%
\framedtext[width=0.60\textwidth, frame=off, align=middle]{%
\vbox{\headtext{chapter}~#1 \blank #2}}}

\def\englishnumbers#1{
\ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
\defineconversion[englishnumbers][\englishnumbers]

\setupsection[chapter][conversion=englishnumbers]
\setuphead [chapter][
command=\Myheader,
textcommand=\bfd,
]
\setupheadtext[chapter=CHAPTER] % used by \headtext
\starttext
\chapter{Title for Chap 1}
\processfile{tufte}
\stoptext


P.S. If there's a better way to do the number-word conversion, let me know.


On Wednesday 12 November 2008 10:17:35 am Wolfgang Schuster wrote:
 Am 12.11.2008 um 18:03 schrieb Bart C. Wise:
  Okay, it works until I place an an argument in the stretched command.
 
  def\MyChapterCommand#1#2{
\framed[align=center,frame=off,width=\textwidth]{
  \vbox{
  fails--\stretched{#2}
  works--\stretched{This is a Test}
  }
  }
  \setuphead[chapter][
command=\MyChapterCommand
  }
 
 
  I get the following error when I run texexec:
 
  ! Missing \endcsname inserted.
  to be read again
\let
  \nextprocessedtoken ...oup \ifincolor \ifcsname #1
   #3\endcsname \let
  \dostopa...
 
  \dodoprocesstokens ...token \let \before \between
   \fi \let
  \nextprocessedtok...
  argument This is a test: \dostartattributes
   {\??ko \v!title }\c!style
  \c!c...
 
  \processtokens ...fore \before \doprocesstokens #5
   \lastcharacter
  \endgroup
  \stretched ... \relax \hss \relax {\hss \hss }{#1}
   \egroup
  ...
 
  How can I use the #1  #2 arguments in the stretched command?

 You could use it only with \deeptextcommand, here is a old mail
 with a example from Hans (you could ignore the other code).

 http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.html

 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] Need more interword spacing

2008-11-12 Thread Wolfgang Schuster

Am 13.11.2008 um 01:08 schrieb Yanrui Li:

 2008/11/13 Vyatcheslav Yatskovsky [EMAIL PROTECTED]:
 Hi,

 Can someone suggest me global setting for interword spacing? I write
 chords above lyrics (with a pen), and often there is no enougn space
 between words.


 Hi,

 Wolfgang have told me about using code such as ``spaceskip .25em plus
 .25em\relax'' to adjust spaces in Chinese chacracters. You can try it
 for your problem.

Before you do this try \setuptolerance[horizontal,space].

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

2008-11-12 Thread Hans Hagen
Thomas A. Schmitz wrote:
 On Nov 11, 2008, at 11:58 PM, Wolfgang Schuster wrote:
 
 from enco-ini.mkiv

 \def\definecharacter#1 #2 %
   {}

 You could use \definecommand.

 Wolfgang
 
 Wolfgang, thanks for pointing me to this. What is the reason of this  
 unfriendly behavior? I can understand if the \definecharacter command  
 is gone in mkiv, but simply taking the arguments and sending them into  
 nirvana? It was a bit difficult for me to see where the errors in my  
 environments came from, so I'm really wondering what this is supposed  
 to do.

well, i was not aware of users using \definecharacter

(i can make it a chardef if needed)

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

2008-11-12 Thread Hans Hagen
Bart C. Wise wrote:
 Wolfgang,  thanks so much for your help so far.
 
 I was able to take the code and make it work correctly to stretch the chapter 
 title.  What I want is two lines for a chapter head.  For example,
 Line 1: Chapter One
 Line 2: Title for Chap 1
 
 I want line 1 to be stretched.  Everything I have tried does not work.  I can 
 get the Chapter word to stretch, but not the whole line (and it should 
 probably be treated as a whole line when stretching).  I was never able to 
 get 
 the chapter number (now a word) to stretch.
 
 So how do I grab the output for line 1 and then stretch it?
 
 Here's a sample of what I have without any stretching:
 
 \def\Myheader#1#2{%
 \framedtext[width=0.60\textwidth, frame=off, align=middle]{%
 \vbox{\headtext{chapter}~#1 \blank #2}}}
 
 \def\englishnumbers#1{
 \ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi}
 \defineconversion[englishnumbers][\englishnumbers]
 
 \setupsection[chapter][conversion=englishnumbers]
 \setuphead [chapter][
 command=\Myheader,
 textcommand=\bfd,
 ]
 \setupheadtext[chapter=CHAPTER] % used by \headtext
 \starttext
 \chapter{Title for Chap 1}
 \processfile{tufte}
 \stoptext
 
 
 P.S. If there's a better way to do the number-word conversion, let me know.
 
 
 On Wednesday 12 November 2008 10:17:35 am Wolfgang Schuster wrote:
 Am 12.11.2008 um 18:03 schrieb Bart C. Wise:
 Okay, it works until I place an an argument in the stretched command.

 def\MyChapterCommand#1#2{
   \framed[align=center,frame=off,width=\textwidth]{
 \vbox{
 fails--\stretched{#2}
 works--\stretched{This is a Test}
 }
 }
 \setuphead[chapter][
   command=\MyChapterCommand
 }


 I get the following error when I run texexec:

 ! Missing \endcsname inserted.
 to be read again
   \let
 \nextprocessedtoken ...oup \ifincolor \ifcsname #1
  #3\endcsname \let
 \dostopa...

 \dodoprocesstokens ...token \let \before \between
  \fi \let
 \nextprocessedtok...
 argument This is a test: \dostartattributes
  {\??ko \v!title }\c!style
 \c!c...

 \processtokens ...fore \before \doprocesstokens #5
  \lastcharacter
 \endgroup
 \stretched ... \relax \hss \relax {\hss \hss }{#1}
  \egroup
 ...

 How can I use the #1  #2 arguments in the stretched command?
 You could use it only with \deeptextcommand, here is a old mail
 with a example from Hans (you could ignore the other code).

 http://archive.contextgarden.net/message/20060113.102321.bf24d7ca.en.html

look for the property mechanism

\startproperty[stretch]stretched\stopproperty

token processing is always tricky since the parser does not know what to 
expect; properties use a pdf trick; in mkiv we have more clever stretching


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