[NTG-context] rsteps module conflicts with s-pre-13?

2007-09-23 Thread Ruini Xue
hello,

I am making a presentation with `s-pre-13', and it seems module `rsteps'
conflicts with it.

use the example in t-rsteps.tex, but replace `pre-original' with 's-pre-13'.

% <<<>>>END mini example

The error is:

[1.1]
! Missing \endcsname inserted.

   \@@koSubjectsection
\countervalue #1->\ifcsname #1
  \endcsname \csname #1\endcsname \fi
\determineheadnumber [EMAIL PROTECTED] {\@@sectie }
  }\egroup
\doStartSteps ...eheadnumber [EMAIL PROTECTED] ]
  \xdef
[EMAIL PROTECTED]
l.45 \StopSteps



btw, please cc the replay to me, since I do not subscribe the list.

Best

Ruini
___
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] waiting for mswincontext / injecting

2007-09-23 Thread Idris Samawi Hamid
On Sun, 23 Sep 2007 14:01:16 -0600, Hans Hagen <[EMAIL PROTECTED]> wrote:

>> Let's get even more funky: we could define "text direction classes" such
>> that switching from LR to RL automatically switches from, say, the latin
>> group (or cyrillic) to the arabic group (or hebrew), and direction
>> switching could be done using the appropriate unicode characters instead
>> of control sequences (ie, unicode direction charaters should be made
>> active).
>
> didn't i send you the code for that trick a while ago?

Indeed, I was just placing it in Wofgang's context -)

Idris
___
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] waiting for mswincontext / injecting

2007-09-23 Thread Hans Hagen
Idris Samawi Hamid wrote:
> On Sun, 23 Sep 2007 11:45:41 -0600, Mojca Miklavec  
> <[EMAIL PROTECTED]> wrote:
> 
>> On 9/23/07, Wolfgang Schuster wrote:
>>
>>> this would be nice because many chinese and japanese fonts have very
>>> ugly characters for normal latin texts and would be nice to choose
>>> another font for them.
>>>
>>> The second point is some it often neccesary to choose differents fonts
>>> for arabic, greek ... and this method can used to switch to the
>>> corresponding font without inserting font switching commands in the
>>> text but handle this with character classes.
>> I guess that in LuaTeX you can "compose your own font" on the fly. So
>> you can say "please take this region from Arial, another region from
>> some Greek fonts, and yet another from Chineese, perhaps some more
>> characters from somewhere else ... And then you can use a single font
>> for everything. (Don't ask me how this can be done, though.)
> 
> Let's get even more funky: we could define "text direction classes" such  
> that switching from LR to RL automatically switches from, say, the latin  
> group (or cyrillic) to the arabic group (or hebrew), and direction  
> switching could be done using the appropriate unicode characters instead  
> of control sequences (ie, unicode direction charaters should be made  
> active).

didn't i send you the code for that trick a while ago?

-
   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] Completelistoffigures, help needed!

2007-09-23 Thread Idris Samawi Hamid
On Sun, 23 Sep 2007 12:43:50 -0600, Hans Hagen <[EMAIL PROTECTED]> wrote:

> talking of that book ... how are you progressing?

working on the funding angle right now (never easy and no guarantees), but  
I suspect that once mkiv is relatively complete (another 18 months or so?)  
we'll be in a better position to write that book.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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] Completelistoffigures, help needed!

2007-09-23 Thread Hans Hagen
Idris Samawi Hamid wrote:

> Ah.. our stalwart gangster Wolfgang, always the master of dirty tricks. If  
> we ever finish The ConTeXtbook you'll have to do Appendix~D ;-)

talking of that book ... how are you progressing?

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] Completelistoffigures, help needed!

2007-09-23 Thread Hans Hagen
Idris Samawi Hamid wrote:
> On Sun, 23 Sep 2007 05:00:39 -0600, Wolfgang Schuster  
> <[EMAIL PROTECTED]> wrote:
> 
>> you can use the following method, it is very dirty but it works and
>> give you what you want.
>>
>> \setupcaption[figure][distance=\zeropoint]
>> \defineconversion[gobble][\gobbleoneargument]
>> \setupnumber[figure][conversion=gobble]
>> \setuplabeltext[figure=]
>>
>> \starttext
>> \completelistoffigures
>> \page
>> \placefigure{First Figure}{\blackrule[width=4cm,height=2cm]}
>> \placefigure{Second Figure}{\blackrule[width=3cm,height=5cm]}
>> \stoptext
> 
> Ah.. our stalwart gangster Wolfgang, always the master of dirty tricks. If  
> we ever finish The ConTeXtbook you'll have to do Appendix~D ;-)

well, this is a valid dirty trick because the conversion interface is 
not likely to change (for wolfgang: there is a predefined 'empty' 
conversion for this purpose, introduced not that long ago, so maybe not 
present everywhere)

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] Completelistoffigures, help needed!

2007-09-23 Thread Idris Samawi Hamid
On Sun, 23 Sep 2007 05:00:39 -0600, Wolfgang Schuster  
<[EMAIL PROTECTED]> wrote:

> you can use the following method, it is very dirty but it works and
> give you what you want.
>
> \setupcaption[figure][distance=\zeropoint]
> \defineconversion[gobble][\gobbleoneargument]
> \setupnumber[figure][conversion=gobble]
> \setuplabeltext[figure=]
>
> \starttext
> \completelistoffigures
> \page
> \placefigure{First Figure}{\blackrule[width=4cm,height=2cm]}
> \placefigure{Second Figure}{\blackrule[width=3cm,height=5cm]}
> \stoptext

Ah.. our stalwart gangster Wolfgang, always the master of dirty tricks. If  
we ever finish The ConTeXtbook you'll have to do Appendix~D ;-)

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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] waiting for mswincontext / injecting

2007-09-23 Thread Hans Hagen
Mojca Miklavec wrote:
> On 9/23/07, Wolfgang Schuster wrote:
> 
>> this would be nice because many chinese and japanese fonts have very
>> ugly characters for normal latin texts and would be nice to choose
>> another font for them.
>>
>> The second point is some it often neccesary to choose differents fonts
>> for arabic, greek ... and this method can used to switch to the
>> corresponding font without inserting font switching commands in the
>> text but handle this with character classes.
> 
> I guess that in LuaTeX you can "compose your own font" on the fly. So
> you can say "please take this region from Arial, another region from
> some Greek fonts, and yet another from Chineese, perhaps some more
> characters from somewhere else ... And then you can use a single font
> for everything. (Don't ask me how this can be done, though.)

the code is there, but i need to make a proper user interface in context 
  for which i need some "really deep thoughts"

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] waiting for mswincontext / injecting

2007-09-23 Thread Idris Samawi Hamid
On Sun, 23 Sep 2007 11:45:41 -0600, Mojca Miklavec  
<[EMAIL PROTECTED]> wrote:

> On 9/23/07, Wolfgang Schuster wrote:
>
>> this would be nice because many chinese and japanese fonts have very
>> ugly characters for normal latin texts and would be nice to choose
>> another font for them.
>>
>> The second point is some it often neccesary to choose differents fonts
>> for arabic, greek ... and this method can used to switch to the
>> corresponding font without inserting font switching commands in the
>> text but handle this with character classes.
>
> I guess that in LuaTeX you can "compose your own font" on the fly. So
> you can say "please take this region from Arial, another region from
> some Greek fonts, and yet another from Chineese, perhaps some more
> characters from somewhere else ... And then you can use a single font
> for everything. (Don't ask me how this can be done, though.)

Let's get even more funky: we could define "text direction classes" such  
that switching from LR to RL automatically switches from, say, the latin  
group (or cyrillic) to the arabic group (or hebrew), and direction  
switching could be done using the appropriate unicode characters instead  
of control sequences (ie, unicode direction charaters should be made  
active).

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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] waiting for mswincontext / injecting

2007-09-23 Thread Hans Hagen
Arthur Reutenauer wrote:
>> I guess that in LuaTeX you can "compose your own font" on the fly.
> 
>   That's the virtual fonts Hans mentioned (like a vf in good ol' TeX,
> but on the fly, as you say). See section 5.2 of the LuaTeX manual (pp.
> 70-72 as of September 18th), especially the last one with an example.

for those interested in the development history of luatex (and way it 
evolves) ...

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

(occasionally chapters are added; it's also one of our standard tests 
for new luatex binaries and mkiv formats)


-
   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] waiting for mswincontext / injecting

2007-09-23 Thread Arthur Reutenauer
> I guess that in LuaTeX you can "compose your own font" on the fly.

  That's the virtual fonts Hans mentioned (like a vf in good ol' TeX,
but on the fly, as you say). See section 5.2 of the LuaTeX manual (pp.
70-72 as of September 18th), especially the last one with an example.

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] waiting for mswincontext / injecting

2007-09-23 Thread Mojca Miklavec
On 9/23/07, Wolfgang Schuster wrote:

> this would be nice because many chinese and japanese fonts have very
> ugly characters for normal latin texts and would be nice to choose
> another font for them.
>
> The second point is some it often neccesary to choose differents fonts
> for arabic, greek ... and this method can used to switch to the
> corresponding font without inserting font switching commands in the
> text but handle this with character classes.

I guess that in LuaTeX you can "compose your own font" on the fly. So
you can say "please take this region from Arial, another region from
some Greek fonts, and yet another from Chineese, perhaps some more
characters from somewhere else ... And then you can use a single font
for everything. (Don't ask me how this can be done, though.)

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] Completelistoffigures, help needed!

2007-09-23 Thread Wolfgang Schuster
On Sat, 22 Sep 2007 20:56:33 +0200
"G.C.H.M. Verhaag" <[EMAIL PROTECTED]> wrote:

> Dear ConTeXt Users,
> 
> Last week I posted a completelistoffigures question, but unfortunately 
> nobody responded to it! That's why I give it another try, because I 
> don't know how to tackle this problem.
> 
> I'd like to generate a list of figures that only have a caption 
> description, but no figure  (\setupcaptions[...,number=no,]) number.
> 
> Using the setupcaptions command in the preamble with the number=no 
> option yields only the title Figures of the list of figures, nothing 
> more! However, when I change the number option of the setupcaptions 
> command to yes, the list is generated correctly. But I don't want a 
> figure number to appear in the caption of a figure! The figures appear 
> throughout a book I'm currently writing using ConTeXt.
> 
> Is there a way to accomplish the desired effect using the 
> completelistoffigures command?
> 
> Please can anybody give a hint! Thanks!
> 
> Regards,
>Gerard

Hi Gerard,

you can use the following method, it is very dirty but it works and
give you what you want.

\setupcaption[figure][distance=\zeropoint]
\defineconversion[gobble][\gobbleoneargument]
\setupnumber[figure][conversion=gobble]
\setuplabeltext[figure=]

\starttext
\completelistoffigures
\page
\placefigure{First Figure}{\blackrule[width=4cm,height=2cm]}
\placefigure{Second Figure}{\blackrule[width=3cm,height=5cm]}
\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] waiting for mswincontext / injecting

2007-09-23 Thread Wolfgang Schuster
On Sat, 22 Sep 2007 12:34:10 +0200
Hans Hagen <[EMAIL PROTECTED]> wrote:

> Wolfgang Schuster wrote:
> 
> > Version 0.997 of XeTeX introduced a new concept to assign every
> > character a class value. You can define rules what should happen if you
> > switch for example from class 1 to class 2 and another one if you do
> > the same in reverse order. The commands for this action are saved in
> > token register and came into action if this class switch appear in the
> > document.
> 
> ok, i remember jonathan talking about it at bachotek
> 
> > the unicode-letters file from XeTeX define a class for quotation,
> > punctutation ... in CJK and another one for the other CJK characters
> > and define spacing and linebreaking between normal characters and
> > punctuation now by the class number (you did something similiar in your
> > chinese module but used active characters instead).
> 
> the problem with such mechanisms is limited options for lookahead and 
> look back
> 
> > The XeTeX reference manual has a simple example of this concept on page
> > 10 and 11.
> > 
> > http://tug.ctan.org/info/xetexref/XeTeX-reference.pdf
> > 
> > can't  this be done in LuaTeX with nodes (or what you mentioned for
> > your color modell) or something similar.
> 
> injecting tokens into the nodelist is no option, since at that stage 
> tokenization already has been done; so it should happen earlier, during 
> tokenization, which can be kind of messy, because even then we're 
> talking of
> 
> a\beta c -> a\char[beta]c (no further expansion) -> inject expanded 
> stuff before, after each chartoken or \char token -> convert tokens to 
> nodes
> 
> sure, i can implement such an injector (since it's tokens, it should 
> haven in the input stream somehow, operating on node lists is kind of 
> messy in that case because tokens need to be expanded) but we're not 
> going to use that method in mkiv. It's one of those areas where xetex 
> and luatex support differs a lot.

this would be nice because many chinese and japanese fonts have very
ugly characters for normal latin texts and would be nice to choose
another font for them.

The second point is some it often neccesary to choose differents fonts
for arabic, greek ... and this method can used to switch to the
corresponding font without inserting font switching commands in the
text but handle this with character classes.

> > but I am too lazy to rename files or create them always by hand with
> > every update ...
> 
> that's what scripting is fore, after all, format generation in tex 
> engines is not automated at all (one has to manage moving fmt files to 
> the right place anyway)

this mean is should learn a scripting language.

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
___