Re: [NTG-context] \FlushStep in module s-pre-50 adds too much space

2009-03-17 Thread Mojca Miklavec
On Tue, Mar 17, 2009 at 01:39, Curious Learn wrote:
 Okay, I have installed the minimals. It works with a file I tried without 
 tikz.
 The examples on the wiki also work well. It does not work with a file that has
 tikz code in it. It stops compiling with

 ! Undefined control sequence.
 l.13 \starttikzpicture


 Does Tikz not work with mkiv?

When you install the minimals, add
   --extras=t-tikz
either to first-setup.sh or run ./first-setup.sh --extras=t-tikz

(Run luatools --generate afterwards.)

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] Which revision control system do you use?

2009-03-17 Thread Alan Stone
Can these thingies also be used for document version/revision control also
or are they software dedicated ?

If not, what's more appropriate for document version control ?

Thanks in advance.

Alan


On Mon, Mar 16, 2009 at 9:56 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:

 Hi all,

 to start the threat here is what I use(d). On my old Windows machines
 I used Subversion because it was easy to use with TortoiseSVN but since
 I'm on my Mac I use Mercurial for my files.

 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] Which revision control system do you use?

2009-03-17 Thread Marcin Borkowski
Dnia Tue, Mar 17, 2009 at 08:33:33AM +0100, Alan Stone napisa#322;(a):
 Can these thingies also be used for document version/revision control also
 or are they software dedicated ?

They are a great tool for documents, too - especially if these are plain
text files (like in TeX, ConTeXt  friends).

 If not, what's more appropriate for document version control ?
 
 Thanks in advance.
 
 Alan

Regards

-- 
Marcin Borkowski (http://mbork.pl)
___
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] Problem of transfering bib to bbl in Chinese.

2009-03-17 Thread Taco Hoekwater


Hi,


Wei-Wei Guo wrote:


2. The pubsep can be set in \setupcite, but it doesn't affect the 
separation between compressed citations. For example, I set 'pubsep={;}' 
and I still get (Hoekwater 2008, 2009). How to change the comma between

2008 and 2009?


Can't do that.

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] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Taco Hoekwater

Wei-Wei Guo wrote:

Hi everyone,

After fighting with ConTeXt one month, I find it's too difficult. I have 
two years
experience of LaTeX. I never thought ConTeXt could be so difficult. 
Using ConTeXt
is like climbing a steep mountain, every step need extensive searching, 
reading, and asking.


This is not intended to put you down, but i could have answered all your
bib module questions with  'no', and that would have been a lot easier
to understand.

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] Which revision control system do you use?

2009-03-17 Thread John Devereux
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Hi all,

 to start the threat here is what I use(d). On my old Windows machines
 I used Subversion because it was easy to use with TortoiseSVN but since
 I'm on my Mac I use Mercurial for my files.

I use git. Originally for programming, but it is very useful for
context too. I used to use SVN too, but now prefer git because:

 - it is very fast (instant for most things).

 - Project repositories seem to stay small, disk space is used very
   efficiently.

 - easy per-project repositories, each project is it's own
   independent repository. All the history is under a single, hidden
   .git folder at the root of the project. No central server to
   maintain.

 - I found the continuously incrementing svn repository version
   number confusing with respect to multiple projects. And I seem to
   recall problems with svn when directories were moved around within
   a project.

 - Git has a some nice graphical history visualisation and diff
   tools.

-- 

John Devereux
___
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] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Taco Hoekwater


Corin Royal Drummond wrote:
 Many have voiced the same complaint.  I understand that Hans and every
 one are occupied with building MKIV (aka LuaTeX), and that documentation
 is not their highest priority.  There's the wiki, the wonderfully active
 mailing list, and what used to be decent docs from 2001/2002 timeframe. 
 But yes, it's a steep hill to climb, made worth it only by the relative
 awesomeness of ConTeXt.

You missed the reference manual rewrite effort (which is now in
remission mostly because of an extremely depressing lack of user
feedback).

  http://wiki.contextgarden.net/Main_Page#Documentation

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] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Xan

En/na Corin Royal Drummond ha escrit:

Wei-Wei Guo wrote:

Hi everyone,

After fighting with ConTeXt one month, I find it's too difficult. I 
have two years
experience of LaTeX. I never thought ConTeXt could be so difficult. 
Using ConTeXt
is like climbing a steep mountain, every step need extensive 
searching, reading,

and asking.

Sorry for the useless complain. I'm stuck by so many problems. I 
might be lack of
the basic knowledge of ConTeXt. Could someone tell me where I can 
find manuals or
papers that describe the logic of ConTeXt design and basics of 
ConTeXt programming.


Thanks in advance.

Best wishes,
Wei-Wei

Yes, there is a hole in that way. I'm agree too.
Many have voiced the same complaint.  I understand that Hans and every 
one are occupied with building MKIV (aka LuaTeX), and that 
documentation is not their highest priority.  There's the wiki, the 
wonderfully active mailing list, and what used to be decent docs from 
2001/2002 timeframe.  But yes, it's a steep hill to climb, made worth 
it only by the relative awesomeness of ConTeXt.
If there is an existing strategy for creating documentation, I'd love 
to hear it.
My feeling is it's it's time to pay someone to write some good docs.  
Someone who's not on the development team, who has experience writing 
technical documentation, and who can shepard list members into crowd 
sourcing some real documentation.
The problem is who. Who has this high technical knowledge and he/she is 
not developer?. People I know that have this high tech knowledge of 
ConTeXt is developer.
  MKIV is stabilizing into usefulness, and now is a good time to 
start.  I suspect list members would donate to such a project, plus we 
could get some grant money (if that's not all dried up due to the 
global economy), and maybe some contribution from Pragma itself, and 
other orgs that depend on ConTeXt.  A patchwork quilt of financing, 
and a project coordinator/writer who sees their work as a labor of 
love, and a side job, could make this happen.  Even if we could only 
afford 10 hours of work a week, that could get a lot done.
In terms of process, I think someone to comb the list archives for 
common problems and solutions, and wikify them would get the most bang 
for the buck initially.  These wiki entries could later be 
ConTeXtified into printed (and screen) docs, like Hans' awesome old 
manuals.

Good idea.
Just a suggestion. If someone starts new documentation, it should be 
free. Now the only documentation for users is ConTeXt manual, 
Context, an excursion (and some PracTeX journal and MAPS journal 
articles). These documents are copyrated by Pragma. And for the other 
hand the license of documentation of ConTeXt is Creative Commons 
Atribution Noncommercial-Share Alike 3.0.


I think it's better if the new documentation were free: Creative Commons 
Attribution 3.0, Creative Commons Attribution-Share Alike 3.0 or GNU 
Free Documentation License. It could estimulate more users than now. 
It's my opinion.


Honestly, we've got smart people wasting time answering the same 
questions in different ways on the list, when they could be plugging 
in some of that time into writing docs for everyone.  And as useful as 
the list is, it's no substitute for manuals.

Really how many people are using ConTeXt and how many developers are here?
For example, how many people are subscribing in this list: it could 
tells us what's the number of users.
If I understood ConTeXt I'd volunteer, but I'm a noob, so I'm feeling 
the same frustration as Wei-Wei.  I feel bad having to bug developers 
and advanced users every time I have a basic question.  It's 
inefficient and inelegant, though I much appreciate the access to 
great minds and the window into the development process this has given 
me.
Pile on to this thread, if this is a burning issue for you, or you 
have some strategy or expertise to offer.

Cheers,

Corin

Regards,
Xan (a simple user)


___
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] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Taco Hoekwater


Xan wrote:
 En/na Corin Royal Drummond ha escrit:
 Wei-Wei Guo wrote:
 Hi everyone,

 After fighting with ConTeXt one month, I find it's too difficult. I
 have two years
 experience of LaTeX. I never thought ConTeXt could be so difficult.
 Using ConTeXt
 is like climbing a steep mountain, every step need extensive
 searching, reading,
 and asking.

 Sorry for the useless complain. I'm stuck by so many problems. I
 might be lack of
 the basic knowledge of ConTeXt. Could someone tell me where I can
 find manuals or
 papers that describe the logic of ConTeXt design and basics of
 ConTeXt programming.

 Thanks in advance.

 Best wishes,
 Wei-Wei
 Yes, there is a hole in that way. I'm agree too.
 Many have voiced the same complaint.  I understand that Hans and every
 one are occupied with building MKIV (aka LuaTeX), and that
 documentation is not their highest priority.  There's the wiki, the
 wonderfully active mailing list, and what used to be decent docs from
 2001/2002 timeframe.  But yes, it's a steep hill to climb, made worth
 it only by the relative awesomeness of ConTeXt.
 If there is an existing strategy for creating documentation, I'd love
 to hear it.
 My feeling is it's it's time to pay someone to write some good docs. 
 Someone who's not on the development team, who has experience writing
 technical documentation, and who can shepard list members into crowd
 sourcing some real documentation.
 The problem is who. Who has this high technical knowledge and he/she is
 not developer?. People I know that have this high tech knowledge of
 ConTeXt is developer.
   MKIV is stabilizing into usefulness, and now is a good time to
 start.  I suspect list members would donate to such a project, plus we
 could get some grant money (if that's not all dried up due to the
 global economy), and maybe some contribution from Pragma itself, and
 other orgs that depend on ConTeXt.  A patchwork quilt of financing,
 and a project coordinator/writer who sees their work as a labor of
 love, and a side job, could make this happen.  Even if we could only
 afford 10 hours of work a week, that could get a lot done.
 In terms of process, I think someone to comb the list archives for
 common problems and solutions, and wikify them would get the most bang
 for the buck initially.  These wiki entries could later be
 ConTeXtified into printed (and screen) docs, like Hans' awesome old
 manuals.
 Good idea.
 Just a suggestion. If someone starts new documentation, it should be
 free. Now the only documentation for users is ConTeXt manual,
 Context, an excursion (and some PracTeX journal and MAPS journal
 articles). These documents are copyrated by Pragma. And for the other
 hand the license of documentation of ConTeXt is Creative Commons
 Atribution Noncommercial-Share Alike 3.0.
 
 I think it's better if the new documentation were free: Creative Commons
 Attribution 3.0, Creative Commons Attribution-Share Alike 3.0 or GNU
 Free Documentation License. It could estimulate more users than now.
 It's my opinion.

You missed the reference manual rewrite effort (which is now in
remission mostly because of an extremely depressing lack of user
feedback).

  http://wiki.contextgarden.net/Main_Page#Documentation

That is GNU FDL.

 Really how many people are using ConTeXt and how many developers are here?
 For example, how many people are subscribing in this list: it could
 tells us what's the number of users.

About 500, IIRC.

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] Which revision control system do you use?

2009-03-17 Thread Nikolai Weibull
On Tue, Mar 17, 2009 at 08:58, John Devereux j...@devereux.me.uk wrote:

 I use git. Originally for programming, but it is very useful for
 context too.

I can also recommend Git.  It's fast, easy to use (no, really!), and
very actively developed.  What's most important about using Git,
though, is that it seems to be the most future-proof alternative.  I'm
sure Mercurial will be around for a long time, just as Subversion
will, but of all the SCMs Git has the best foundation.
___
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] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Xan

En/na Taco Hoekwater ha escrit:

Xan wrote:
  

Good idea.
Just a suggestion. If someone starts new documentation, it should be
free. Now the only documentation for users is ConTeXt manual,
Context, an excursion (and some PracTeX journal and MAPS journal
articles). These documents are copyrated by Pragma. And for the other
hand the license of documentation of ConTeXt is Creative Commons
Atribution Noncommercial-Share Alike 3.0.

I think it's better if the new documentation were free: Creative Commons
Attribution 3.0, Creative Commons Attribution-Share Alike 3.0 or GNU
Free Documentation License. It could estimulate more users than now.
It's my opinion.



You missed the reference manual rewrite effort (which is now in
remission mostly because of an extremely depressing lack of user
feedback).

  http://wiki.contextgarden.net/Main_Page#Documentation

That is GNU FDL.

  
You refer to this link 
[http://foundry.supelec.fr/plugins/scmsvn/viewcvs.php/context-reference/en/?root=contextman]??


Where is the license explicited? There is no README/LICENSE or analogous 
file and no head license in every .tex file.


Ooops, not: in  
[http://foundry.supelec.fr/plugins/scmsvn/viewcvs.php/context-reference/en/contextref.tex?root=contextmanview=markup] 
I see the license. Sorry


But should it put in every .tex file or in a LICENSE file? I'm not 
lawyer. Just a question.

Really how many people are using ConTeXt and how many developers are here?
For example, how many people are subscribing in this list: it could
tells us what's the number of users.



About 500, IIRC.
  

Thanks Taco.

Xan.

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
___


Re: [NTG-context] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Taco Hoekwater


Xan wrote:
 
 But should it put in every .tex file or in a LICENSE file? I'm not
 lawyer. Just a question.

There is a COPYING in the one 'up' directory.  It would be good to
add a license pointer to every source file, that is true.

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] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Alan Stone
On Tue, Mar 17, 2009 at 2:55 AM, Wei-Wei Guo wwgu...@gmail.com wrote:

 Hi everyone,

Hi Wei-Wei,

Please enjoy what's underneath and give yourself a second chance to
reconsider your point of view...

 After fighting with ConTeXt one month,

Those who live are those who fight.
- Victor Hugo

 I find it's too difficult.

The illiterate of the 21st century will not be those who cannot read and
write, but those who cannot learn, unlearn, and relearn.
- Alvin Toffler

Anyone who stops learning is old, whether at twenty or eighty.
- Henry Ford

Learning is a treasure that will follow its owner everywhere.
- Chinese Proverb

  I have two years
 experience of LaTeX.

How about acquiring a two year experience, and more, in ConTeXt ?  ;O)

 I never thought ConTeXt could be so difficult.

There are two ways of meeting difficulties: You alter the difficulties or
you alter yourself to meet them.
- Phyllis Bottome

 Using ConTeXt
 is like climbing a steep mountain, every step need extensive searching,
reading,
 and asking.

I've learned that everyone wants to live on top of the mountain, but all the
happiness and growth occurs while you're climbing it.
- Unknown

When you reach the top, keep climbing.
- Unknown

 Sorry for the useless complain.

From my own experience, amongst others, in this mailing list...

 Be your guest.  :O)

I'm stuck by so many problems.

I never believed I wouldn't make it - and perhaps that's why I've always
found work. I've always stuck at everything I've ever done. I absolutely
won't give up.
- Amanda Holden

 I might be lack of
 the basic knowledge of ConTeXt. Could someone tell me where I can find
manuals or
 papers that describe the logic of ConTeXt design and basics of ConTeXt
programming.

http://wiki.contextgarden.net/Main_Page

Getting Started and Documentation sections.

 Thanks in advance.

 Best wishes,
 Wei-Wei

Two others for the road...

If you're not failing every now and again, it's a sign you're not doing
anything very innovative.
- Woody Allen

Keep on beginning and failing. Each time you fail, start all over again, and
you will grow stronger until you have accomplished a purpose - not the one
you began with perhaps, but one you'll be glad to remember.
- Ann Sullivan

Hope this helps,
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] Is there anything like developer's manual for ConTeXt?

2009-03-17 Thread Wei-Wei Guo


Yes, there are may fruitful pages in ConTeXt wiki. But all wiki resources have
the same problem: If you know what you are looking for, it's helpful. If not,
it would be a time hole. And I was told that MkIV progresses so fast that many
things in the current manuals are out of date. I don't know which manual I
should stick with. To make thing worse, there are so many places containing
ConTeXt tutorials and manuals(see the following list).

- wiki.contextgarden.net
- http://foundry.supelec.fr/projects/contextman/
- http://context.aanhet.net/svn/contextman/
- http://www.pragma-ade.com/dir?path=

Those materials are scattered, overlapped and not complete. It makes new
users, like me, don't know what to read. If all those materials are put in
only one place and companying with two and only two complete manuals, one for
developer and one for user, it would be time saving for both users and
developers. Then the next time when I meet command like '\??pb', I could look
for it in manuals first, then wiki probably, then mail list. If I don't find
answer in those three places, I would know the command is not documented then
I could ask in the mail list without hesitating and worrying about wasting
other people's time.


To Taco: My emails don't mean any offense to you. You give me lots of help.
 I really appreciate it.

To Alan: Thanks, your proverbs are very inspiriting.

To Xan and Corin: Thanks for your understanding.


Best wishes,
Wei-Wei



Corin Royal Drummond 写道:
In terms of process, I think someone to comb the list archives for 
common problems and solutions, and wikify them would get the most bang 
for the buck initially.  These wiki entries could later be ConTeXtified 
into printed (and screen) docs, like Hans' awesome old manuals.
Honestly, we've got smart people wasting time answering the same 
questions in different ways on the list, when they could be plugging in 
some of that time into writing docs for everyone.  And as useful as the 
list is, it's no substitute for manuals.

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

2009-03-17 Thread Hans Hagen

Hi,

In the process of a major cleanup and code split I uploaded a beta. Some 
important changes are:


- initialization code is ready for upcoming luatex
- language files have been cleaned up
- core-table stuff is renamed to tabl-table stuff
- several changes in file names and splits of files
- for those using helpers, in mkiv now syst-aux is the place to look
- some non used files removed
- some speedup of helper macros (only in mkiv)

On Taco and my machine test docs come out right but there might be 
problems left (no tricky new things so solvable fast).



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

2009-03-17 Thread Hans Hagen

Alan Stone wrote:

On Tue, Mar 17, 2009 at 11:49 AM, Hans Hagen pra...@wxs.nl wrote:


Hi,

In the process of a major cleanup and code split I uploaded a beta. Some
important changes are:

- initialization code is ready for upcoming luatex
- language files have been cleaned up
- core-table stuff is renamed to tabl-table stuff
- several changes in file names and splits of files
- for those using helpers, in mkiv now syst-aux is the place to look



what are helpers ?


\doifelse cum suis

(there are also some obscure ones that might go away some day, maybe we 
should make a list of those used by users)



- some non used files removed
- some speedup of helper macros (only in mkiv)
 
what are helper macros useful for ?


well, they play a role in the user interface so the faster they run the 
better (and since we now only use engines that have etex, i'm removing 
traces of non-etex variants, at least in mkiv)


for instance, in mkiv, the typescript parsing should be faster now, but 
not all documents use that extensively; if you have 1000 (sub)section 
titles grabbing args is also a bit faster


in general, saving some .05 second on 1 calls for such helpers is 
not much but it adds up (and in mkiv we need that because other tasks 
take more time)


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

2009-03-17 Thread Alan Stone
On Tue, Mar 17, 2009 at 11:49 AM, Hans Hagen pra...@wxs.nl wrote:

 Hi,

 In the process of a major cleanup and code split I uploaded a beta. Some
 important changes are:

 - initialization code is ready for upcoming luatex
 - language files have been cleaned up
 - core-table stuff is renamed to tabl-table stuff
 - several changes in file names and splits of files
 - for those using helpers, in mkiv now syst-aux is the place to look


what are helpers ?


 - some non used files removed
 - some speedup of helper macros (only in mkiv)


what are helper macros useful for ?


 On Taco and my machine test docs come out right but there might be problems
 left (no tricky new things so solvable fast).


 Hans
___
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] \startMPinclusions[+]

2009-03-17 Thread Hans van der Meer

In mkii this could be used to add material to metapost runs:
\startMPinclusions[+]
.
\stopMPInclusions

This stopped working in the latest stable version I have seen:
ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17

Is it already fixed? Or can a quick patch be given?

Hans van der Meer




___
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] Problem updating Tikz in minimals

2009-03-17 Thread Curious Learn
Mojca Miklavec mojca.miklavec.lists at gmail.com writes:

 
 When you install the minimals, add
--extras=t-tikz
 either to first-setup.sh or run ./first-setup.sh --extras=t-tikz
 
 (Run luatools --generate afterwards.)
 
 Mojca

Thanks Aditya and Mojca. Mojca, I tried running that; a lot of things happen,
but the process stops with following lines (last few lines I copied and pasted
from my terminal window

__

LuaTools | saving merge from cont-nl.lua
LuaTools | using compiled initialization file: cont-nl.luc
LuaTools | using lua initialization file: cont-nl.luc
LuaTools | running command: luatex --ini --lua=cont-nl.luc
/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-nl.tex
\\dump

This is LuaTeX, Version snapshot-0.35.0
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/cont-nl.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.mkiv
(/Applications/ConTeXtMinimals/tex/texmf-context/tex/context/base/syst-ini.tex
! LuaTeX error \directlua0:1: attempt to call field 'extraprimitives' (a nil
value)
stack traceback:
\directlua0:1: in main chunk.
l.111 }
   
? h
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

? 
__

I tried deleting everything in minimals folder and restarted the process and I
get the same error. If I do not type the --extras=t-tikz (after deleting
everything, except texmf-local, from the minimals folder) then there is no
problem.  




___
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] Problem updating Tikz in minimals

2009-03-17 Thread Wolfgang Schuster


Am 17.03.2009 um 14:33 schrieb Curious Learn:


stack traceback:
\directlua0:1: in main chunk.
l.111 }

? h
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.


You need a recent LuaTeX.

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

2009-03-17 Thread Peter Rolf

Hans Hagen schrieb:

Hi,

In the process of a major cleanup and code split I uploaded a beta. 
Some important changes are:


- initialization code is ready for upcoming luatex
- language files have been cleaned up
- core-table stuff is renamed to tabl-table stuff
- several changes in file names and splits of files
- for those using helpers, in mkiv now syst-aux is the place to look
- some non used files removed
- some speedup of helper macros (only in mkiv)

On Taco and my machine test docs come out right but there might be 
problems left (no tricky new things so solvable fast).


maybe you should have noticed, that you need the latest (still warm from 
compilation) luatex for this...


anyhow, there is a small problem with colors in mkii.

\setupcolors[state=start]
\starttext
\red
\showcolorcomponents[red,green,blue]
\stoptext


the global color \red messes up the values in the \showcolorcomponents 
output. no such problem with mkiv.


Peter


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
___ 






--
 Es ist doch ein Trost,
  das Geldgier manchmal blöd macht.

- Kottan in Kottan ermittelt, Folge 9: Die Einteilung -



___
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] Thumbtabs on edge of pages.

2009-03-17 Thread John Culleton
Apparently this facility exists in primitive form via some 
special styles in LaTeX. Is there any facility for same in 
Context?  Ideally the thumbtabs would line up with the 
corresponding chapter entries in the first (summary) TOC.

Of course one can always cobble something up, but I am 
hoping that someone has already done the cobbling. 
-- 
John Culleton
Able Indexers and Typesetters
http://wexfordpress.com
___
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] Thumbtabs on edge of pages.

2009-03-17 Thread luigi scarso
On Tue, Mar 17, 2009 at 3:45 PM, John Culleton j...@wexfordpress.com wrote:
 Apparently this facility exists in primitive form via some
 special styles in LaTeX. Is there any facility for same in
 Context?  Ideally the thumbtabs would line up with the
 corresponding chapter entries in the first (summary) TOC.

 Of course one can always cobble something up, but I am
 hoping that someone has already done the cobbling.
Do you have an example ?

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

2009-03-17 Thread Hans Hagen

Peter Rolf wrote:

Hans Hagen schrieb:

Hi,

In the process of a major cleanup and code split I uploaded a beta. 
Some important changes are:


- initialization code is ready for upcoming luatex
- language files have been cleaned up
- core-table stuff is renamed to tabl-table stuff
- several changes in file names and splits of files
- for those using helpers, in mkiv now syst-aux is the place to look
- some non used files removed
- some speedup of helper macros (only in mkiv)

On Taco and my machine test docs come out right but there might be 
problems left (no tricky new things so solvable fast).


maybe you should have noticed, that you need the latest (still warm from 
compilation) luatex for this...


anyhow, there is a small problem with colors in mkii.

\setupcolors[state=start]
\starttext
\red
\showcolorcomponents[red,green,blue]
\stoptext


the global color \red messes up the values in the \showcolorcomponents 
output. no such problem with mkiv.


use \setupcolors[textcolor=red] as \red does some nasty auto grouping 
which in your case has side effects


-
  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] type-win.tex

2009-03-17 Thread Hans Hagen

Hi

i just added the type-win file tothe beta


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new beta

2009-03-17 Thread Peter Rolf

Hans Hagen schrieb:

Peter Rolf wrote:

Hans Hagen schrieb:

Hi,

In the process of a major cleanup and code split I uploaded a beta. 
Some important changes are:


- initialization code is ready for upcoming luatex
- language files have been cleaned up
- core-table stuff is renamed to tabl-table stuff
- several changes in file names and splits of files
- for those using helpers, in mkiv now syst-aux is the place to look
- some non used files removed
- some speedup of helper macros (only in mkiv)

On Taco and my machine test docs come out right but there might be 
problems left (no tricky new things so solvable fast).


maybe you should have noticed, that you need the latest (still warm 
from compilation) luatex for this...


anyhow, there is a small problem with colors in mkii.

\setupcolors[state=start]
\starttext
\red
\showcolorcomponents[red,green,blue]
\stoptext


the global color \red messes up the values in the 
\showcolorcomponents output. no such problem with mkiv.


use \setupcolors[textcolor=red] as \red does some nasty auto grouping 
which in your case has side effects



ok, good to know. but it was no example from the real world anyway.


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___ 

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


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 






--
 Es ist doch ein Trost,
  das Geldgier manchmal blöd macht.

- Kottan in Kottan ermittelt, Folge 9: Die Einteilung -



___
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

2009-03-17 Thread Hans Hagen

Hi,

I want to switch to the new structure code in mkiv. This can result in 
some temporary problems (probably mostly commands that i forgot to port)
but i need the switch in order to be able to optimize and cleanup that 
code.


So best make a copy of your minimal.

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] Let's Polish the math!

2009-03-17 Thread Mojca Miklavec
On Sat, Mar 14, 2009 at 08:52, Aditya Mahajan wrote:

 Also, we put periods after section numbers, so no 1.2
 Section, but rather 1.2. Section.

 \setuplabeltext [pl] [section={{},{.}}]

Hello Aditya,

Interesting trick, thanks. But the problem is that references then
ignore the dot. So \in[ref] gives me only 1 instead of 1.. Also,
it's non-recursive (but that is not so problematic). Redefining the
numbercommand seems to work a tiny bit better for me, but I would
prefer to have a better  automatic solution based on the chosen
language (so that 1.1.. will start appearing in my old documents :)
:) :) :)

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] \startMPinclusions[+]

2009-03-17 Thread Hans van der Meer


On 17 mrt 2009, at 20:14, Mojca Miklavec wrote:


On Tue, Mar 17, 2009 at 13:19, Hans van der Meer wrote:

In mkii this could be used to add material to metapost runs:
\startMPinclusions[+]
.
\stopMPInclusions

This stopped working in the latest stable version I have seen:
ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17

Is it already fixed? Or can a quick patch be given?


What does the [+] do? I usually put multiple \startMPinclusions and
they are all respected (at least it mkii; in mkiv they were not, but
Hans probably fixed something in this respect two weeks ago; I did not
have a chance to test that yet).

Mojca


In january 2006 Hans Hagen wrote to me about the following he promised  
to include. Could it be this has been forgotten in the mean time?



Hans van der Meer wrote:


I thought to incrementally add to MPinclusions by successive blocks

\startMPinclusions
..
\stopMPinclusions

\startMPinclusions
..
\stopMPinclusions
etc.

But according to the generated mp-file it seems to incorporate the   
last one only.
Is this correct and if so, is it an option to allow appending in  
the  above manner?

Or will that be too difficult to build.



(patch supp-mps.tex)

\def\startMPinclusions
{\dosingleempty\dostartMPinclusions}

\long\def\dostartMPinclusions[#1]#2\stopMPinclusions % document wide
{\doifelse{#1}{+}
   {...@ea\long\@ea\d...@ea\thempinclusions\@EA
  {\theMPinclusions
   \writeMPgraphic{#2}}}
   {\long\def\theMPinclusions
  {% \expanded !
   \...@ea\expanded\@e...@ea\writempgraphic\@EA{\the\MPextensions;}} 
% new

   \writeMPgraphic{#2

\def\MPinclusions
{\dosingleempty\doMPinclusions}

\long\def\doMPinclusions[#1]#2%
{\startMPinclusions[#1]#2\stopMPinclusions}

now you can say

\startMPinclusions[+] 

i'll add this feature

Hans
___



___
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] Let's Polish the math!

2009-03-17 Thread Wolfgang Schuster


Am 17.03.2009 um 20:12 schrieb Mojca Miklavec:


On Sat, Mar 14, 2009 at 08:52, Aditya Mahajan wrote:



Also, we put periods after section numbers, so no 1.2
Section, but rather 1.2. Section.


\setuplabeltext [pl] [section={{},{.}}]


Hello Aditya,

Interesting trick, thanks. But the problem is that references then
ignore the dot. So \in[ref] gives me only 1 instead of 1.. Also,
it's non-recursive (but that is not so problematic). Redefining the
numbercommand seems to work a tiny bit better for me, but I would
prefer to have a better  automatic solution based on the chosen
language (so that 1.1.. will start appearing in my old documents :)
:) :) :)



Let's hope the stopper key for \setuphead will work in MkIV.

Language depends settings are possible with start/stoplanguagespecifics
but it's broken :-(

\startlanguagespecifics[sl]

\setuphead
  [chapter,section,subsection]
  [numbercommand=\groupedcommand{}{.}]

\stoplanguagespecifics

\starttext

\section{Knuth}

\input knuth

\page

\mainlanguage[sl]

\section{Tufte}

\input tufte

\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] \startMPinclusions[+]

2009-03-17 Thread Mojca Miklavec
2009/3/17 Hans van der Meer:
 On 17 mrt 2009, at 20:14, Mojca Miklavec wrote:
 On Tue, Mar 17, 2009 at 13:19, Hans van der Meer wrote:

 In mkii this could be used to add material to metapost runs:

 \startMPinclusions[+]

 .

 \stopMPInclusions

 This stopped working in the latest stable version I have seen:

 ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17

 Is it already fixed? Or can a quick patch be given?

Sorry, I have mixed up inclusions and extensions. The code with [+]
works OK here with both 2008.07.31 and 2009.03.17 version of ConTeXt.

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] \startMPinclusions[+]

2009-03-17 Thread Hans van der Meer

Could it be the version of LuaTeX why this fails with me? I am using:
This is LuaTeX, Version snapshot-0.30.3-2008112814, build


Hans van der Meer




On 17 mrt 2009, at 21:29, Mojca Miklavec wrote:


2009/3/17 Hans van der Meer:

On 17 mrt 2009, at 20:14, Mojca Miklavec wrote:
On Tue, Mar 17, 2009 at 13:19, Hans van der Meer wrote:

In mkii this could be used to add material to metapost runs:

\startMPinclusions[+]

.

\stopMPInclusions

This stopped working in the latest stable version I have seen:

ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.12.17

Is it already fixed? Or can a quick patch be given?


Sorry, I have mixed up inclusions and extensions. The code with [+]
works OK here with both 2008.07.31 and 2009.03.17 version of ConTeXt.

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
___


___
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] Let's Polish the math!

2009-03-17 Thread Mojca Miklavec
On Tue, Mar 17, 2009 at 20:56, Wolfgang Schuster wrote:

 Am 17.03.2009 um 20:12 schrieb Mojca Miklavec:

 On Sat, Mar 14, 2009 at 08:52, Aditya Mahajan wrote:

 Also, we put periods after section numbers, so no 1.2
 Section, but rather 1.2. Section.

 \setuplabeltext [pl] [section={{},{.}}]

 Hello Aditya,

 Interesting trick, thanks. But the problem is that references then
 ignore the dot. So \in[ref] gives me only 1 instead of 1.. Also,
 it's non-recursive (but that is not so problematic). Redefining the
 numbercommand seems to work a tiny bit better for me, but I would
 prefer to have a better  automatic solution based on the chosen
 language (so that 1.1.. will start appearing in my old documents :)
 :) :) :)


 Let's hope the stopper key for \setuphead will work in MkIV.

 Language depends settings are possible with start/stoplanguagespecifics
 but it's broken :-(

 \startlanguagespecifics[sl]

 \setuphead
  [chapter,section,subsection]
  [numbercommand=\groupedcommand{}{.}]

 \stoplanguagespecifics

Hello Wolfgang,

I was often tempted to do that (in some less fancy way than with
groupedcommand :) by default ... but maybe some user wants
\setuphead[section][numbercommand=\xxx] \def\xxx#1{\framed{#1}}
or whatever else and that would interfere with the existing
numbercommand= that's specific to one language. Proper support for
stopper would be much better.

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] pinyin in context

2009-03-17 Thread Bill Long
On Mon, Mar 16, 2009 at 09:23:50PM +0100, Wolfgang Schuster wrote:

 Am 16.03.2009 um 17:17 schrieb Bill Long:

 The pinyin has 5 kind of tone for one pronunciation. As it's hard to
 input, and in CJK  1,2,3,4 are use to represent the tone, (the fifth
 is no special tone mark).

 In the book for children, the pinyin always show above the Chinese
 like the picture I upload.

 A solution like can be easy integrated in a ruby command because
 you need only a command parameter for the ruby text,
 e.g. \setupruby[command=\pinyin] but you're looking for something
 like the translate module.

In fact, 2 features I need, 
  1. the easy way to support PinYin, both input and the format, As I
   mentioned, I hope the pinyin can be placed over the Chinese
   character  it represented automatically with some environment or
   so.
  2. automatic convert/add pinyin to  Chinese Character , now I use
  sed to make, but I still hope there are some more easy way.

 To make it show correctly is an good start, but if there are some
 tools to automatic add PinYin , it will be more attractive. In Chinese
 they do have the character which have multi pronunciation, but most of
 them only has single pronunciation, I can try to find out some dict to
 translate Chinese Character into PinYin if anyone can help integrate
 this convert tool into context.

 If you can provide such a list Hans can add the information to char- 
 def.lua,
 for the moment you have to rely on my \pinyin command, I have now  
 written
 a new version on a word macro I found.

 Wolfgang

 \startluacode

 function commands.pinyin(str)
 str = string.gsub(str,r1,1r)
 str = string.gsub(str,r2,2r)
 str = string.gsub(str,r3,3r)
 str = string.gsub(str,r4,4r)
 str = string.gsub(str,r5,5r)
 str = string.gsub(str,ng1,1ng)
 str = string.gsub(str,ng2,2ng)
 str = string.gsub(str,ng3,3ng)
 str = string.gsub(str,ng4,4ng)
 str = string.gsub(str,ng5,5ng)
 str = string.gsub(str,n1,1n)
 str = string.gsub(str,n2,2n)
 str = string.gsub(str,n3,3n)
 str = string.gsub(str,n4,4n)
 str = string.gsub(str,n1,5n)
 str = string.gsub(str,ai1,a1i)
 str = string.gsub(str,ai2,a2i)
 str = string.gsub(str,ai3,a3i)
 str = string.gsub(str,ai4,a4i)
 str = string.gsub(str,ai5,a5i)
 str = string.gsub(str,ei1,e1i)
 str = string.gsub(str,ei2,e2i)
 str = string.gsub(str,ei3,e3i)
 str = string.gsub(str,ei4,e4i)
 str = string.gsub(str,ei5,e5i)
 str = string.gsub(str,ao1,a1o)
 str = string.gsub(str,ao2,a2o)
 str = string.gsub(str,ao3,a3o)
 str = string.gsub(str,ao4,a4o)
 str = string.gsub(str,ao5,a5o)
 str = string.gsub(str,ou1,o1u)
 str = string.gsub(str,ou2,o2u)
 str = string.gsub(str,ou3,o3u)
 str = string.gsub(str,ou4,o4u)
 str = string.gsub(str,ou5,o5u)
 str = string.gsub(str,uu1,v1)
 str = string.gsub(str,uu2,v2)
 str = string.gsub(str,uu3,v3)
 str = string.gsub(str,uu4,v4)
 str = string.gsub(str,uu,ü) -- is this correct?
it's correct, although this character maybe rarely/never been used
with this tone.
 str = string.gsub(str,o1,ō)
 str = string.gsub(str,o2,ó)
 str = string.gsub(str,o3,ǒ)
 str = string.gsub(str,o4,ò)
 str = string.gsub(str,e1,ē)
 str = string.gsub(str,e2,é)
 str = string.gsub(str,e3,ě)
 str = string.gsub(str,e4,è)
 str = string.gsub(str,i1,ī)
 str = string.gsub(str,i2,í)
 str = string.gsub(str,i3,ǐ)
 str = string.gsub(str,i4,ì)
 str = string.gsub(str,u1,ū)
 str = string.gsub(str,u2,ú)
 str = string.gsub(str,u3,ǔ)
 str = string.gsub(str,u4,ù)
 str = string.gsub(str,v1,ǖ)
 str = string.gsub(str,v2,ǘ)
 str = string.gsub(str,v3,ǚ)
 str = string.gsub(str,v4,ǜ)
 str = string.gsub(str,a1,ā)
 str = string.gsub(str,a2,á)
 str = string.gsub(str,a3,ǎ)
 str = string.gsub(str,a4,à)
 tex.sprint(tex.ctxcatcodes,str)
 end

 \stopluacode

 \def\pinyin#1{\ctxlua{commands.pinyin([[#1]])}}

 \starttext

 \definedfont[name:arialunicodems*default]

 \pinyin{ni2hao3}
 \pinyin{huai4}

 \stoptext

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

 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 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 

Re: [NTG-context] pinyin in context

2009-03-17 Thread Wolfgang Schuster


wolf-newjap.tex
Description: Binary data


wolf-jap.tex
Description: Binary data


js-ruby.tex
Description: Binary data


Am 17.03.2009 um 22:22 schrieb Bill Long:


In fact, 2 features I need,

 1. the easy way to support PinYin, both input and the format, As I
  mentioned, I hope the pinyin can be placed over the Chinese
  character  it represented automatically with some environment or
  so.


I attached a few old files I used to simple ruby texts but none
of them is a perfect solution, if you get a proper macro it should
support complex and simple ruby.


 2. automatic convert/add pinyin to  Chinese Character , now I use
 sed to make, but I still hope there are some more easy way.


Arthur list can be used for this but you still ned markup
to show which characters need reading and then you could
also use a ruby command.

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] font switching questions

2009-03-17 Thread Alan Stone
Ahoi,

Following a previous discussion, I've been advised to try to avoid
\switchtobodyfont and use \definedfont or \definefont instead.

(1) What's the difference between \definefont and \definedfont ?

(2) In the underneath example...

(2a) how to implement \define(d)font for font switching ?

(2b) how to define \myFontHook ?

Thanks,
Alan

\usemodule[t-lettrine]

\usetypescriptfile[tps_arial]
\usetypescript[arial]
\definetypeface[myFont][arial]

\usetypescriptfile[tps_timesnewroman]
\usetypescript[timesnewroman]
\definetypeface[myOtherFont][timesnewroman]

\def\myFontSize{12pt}
\def\myOtherFontSize{20pt}

\setupbodyfont[myFont,\myFontSize]

\setuphead[chapter][style={\switchtobodyfont[myOtherFont,\myOtherFontSize]}]

\starttext

\chapter{Chapter One}

%\lettrine[FontHook={\myFontHook}]{T}{hus}, I came to the conclusion that
the designer of a new
\lettrine{T}{hus}, I came to the conclusion that the designer of a new
system must not only be the implementer and first large-- scale user; the
designer should also write
the first user manual.

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

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


Re: [NTG-context] font switching questions

2009-03-17 Thread Hans Hagen

Alan Stone wrote:

Ahoi,

Following a previous discussion, I've been advised to try to avoid
\switchtobodyfont and use \definedfont or \definefont instead.


what is better depends on the situation

- for a structured document using \switchtobodyfont is ok

- for special layout elements (headers, title pages, keywords) 
\definefont might be handier (esp when funny sizes are used)


- when using \definefont it can be handy to use the symbolic names 
(Serif, SansBold etc) and sizes (sa 1.2) because that makes redefinition 
easier



(1) What's the difference between \definefont and \definedfont ?


\definefont defines a macro that represents a font, and \definedfont 
just switches to a font (the forst one is more efficient when you switch 
often)



(2) In the underneath example...

(2a) how to implement \define(d)font for font switching ?

(2b) how to define \myFontHook ?

Thanks,
Alan

\usemodule[t-lettrine]

\usetypescriptfile[tps_arial]
\usetypescript[arial]


... just look how gyre typefaces are defined


\setupbodyfont[myFont,\myFontSize]


just \setupbodyfont[myFont,12pt]

and an occasional \definefont[BigFont][SerifBold sa 3.5] which gives you 
 \BigFont



\setuphead[chapter][style={\switchtobodyfont[myOtherFont,\myOtherFontSize]}]


it depends on what can occur in a title, if there's math and monospaced 
and whatever being used mixed, then best use a typeface (apart from the 
one time definition it's quite fast to switch a typeface)




-
  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] Let's Polish the math!

2009-03-17 Thread Hans Hagen

Mojca Miklavec wrote:

On Tue, Mar 17, 2009 at 20:56, Wolfgang Schuster wrote:

Am 17.03.2009 um 20:12 schrieb Mojca Miklavec:


On Sat, Mar 14, 2009 at 08:52, Aditya Mahajan wrote:

Also, we put periods after section numbers, so no 1.2
Section, but rather 1.2. Section.

\setuplabeltext [pl] [section={{},{.}}]

Hello Aditya,

Interesting trick, thanks. But the problem is that references then
ignore the dot. So \in[ref] gives me only 1 instead of 1.. Also,
it's non-recursive (but that is not so problematic). Redefining the
numbercommand seems to work a tiny bit better for me, but I would
prefer to have a better  automatic solution based on the chosen
language (so that 1.1.. will start appearing in my old documents :)
:) :) :)


Let's hope the stopper key for \setuphead will work in MkIV.

Language depends settings are possible with start/stoplanguagespecifics
but it's broken :-(

\startlanguagespecifics[sl]

\setuphead
 [chapter,section,subsection]
 [numbercommand=\groupedcommand{}{.}]

\stoplanguagespecifics


Hello Wolfgang,

I was often tempted to do that (in some less fancy way than with
groupedcommand :) by default ... but maybe some user wants
\setuphead[section][numbercommand=\xxx] \def\xxx#1{\framed{#1}}
or whatever else and that would interfere with the existing
numbercommand= that's specific to one language. Proper support for
stopper would be much better.


mkiv (xp) has much more control over conversion, separators, stoppers as 
well as control over each of them with respect to typesetting; also, it 
can be different for all places where numbers are used; of course this 
comes at a price ... the more one can tune, the more complex things get


-
  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] font switching questions

2009-03-17 Thread Wolfgang Schuster
On Tue, Mar 17, 2009 at 11:27 PM, Hans Hagen pra...@wxs.nl wrote:

 - for a structured document using \switchtobodyfont is ok

What do you mean with structured document?

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] Step wise presentation.

2009-03-17 Thread Curious Learn

Currently what is the best solution for presentation with steps in Context that
works with the stable version of MKIV. The one that you can get with
./first-setup.sh --context=current

If I need to install any addon module for your recommendation (i.e., if it does
not come with minimals), kindly let me know.

Thanks for your feedback.

___
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] TeXshop instructions on Context Minimals (Mac installation)

2009-03-17 Thread Curious Learn
Hello,

I installed the stable version of Context Minimals and then followed the
instructions given on the Context Minimals/Mac Installation page. When I choose
ConTeXt-MKIV as my engine and try to typeset the document I get the following
error. 

Users/Name/Library/TeXShop/Engines/ConTeXt-MKIV.engine does not have the
executable bit set.

This is when only pdftex is selected in the dropdown Typeset menu. 

It is true that the instructions on Context Minimals/Mac Installation page say
that Context should also be selected in this dropdown Typeset menu. But if I
try to do that, the engine automatically switches to Context that existed in
the Engines menu, before I installed Minimals and before I added Context-MKII
and ConTeXt-MKIV engines. This ConTeXt engine is MKII. 

Can someone please help with this?

Thanks.

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