Re: [NTG-context] Why searching fonts in xetex is so slow?

2009-03-04 Thread Hans Hagen

Yue Wang wrote:

Hi,

When I use XeTeX, font searching through texmf- tree is very slow.
search font through fontconfig is very fast.
plain TeX or LaTeX does not have that problem.
why is that? anyway to improve it?


afaik xetex perfers to look in the database first and then on the file 
system


context on the other hand prefers to look for a file first

if you don't know what whatever stands for, prefixing with file: or 
name: might help, as in file:whatever


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] extra offsets

2009-03-04 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 03.03.2009 um 22:30 schrieb Hans Hagen:


Hi,

concerning the offsets in framed ..

- we cannot use leftoffset etc as name because these are already used 
in  mechanisms that build on top of framed and it would add quite some 
extra code (and probably bugs) to those mechanisms


- adding additional rulethickness variants is non trivial since the 
rulethickness is also used elsewhere (rounded corners etc) and the 
code would become rather messy; also, we can use mp for special frames 
(after all, extra thickness makes no sense without extra colors)


so, as an experiment i added support for extra offsets but these work 
*on top* of the existing offset; they have names like loffset, 
roffset, toffset and boffset; the speed penalty is neglectable


(only mkiv because it has a more clever inheritance model for derived 
framed mechanisms)


Hans


Thank you very much for now finally adding this, it's a big improvement
for natural tables and allows us to do some fancy things.


keep in mind that you can use the offsets combined, so

toffset=2cm,loffset=1cm,offset=1cm

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] Bug in mark to ligature handling

2009-03-04 Thread Hans Hagen

Khaled Hosny wrote:

Marks don't get positioned correctly unless all marks are supplied, if
one mark is omitted, the next mark will be positioned at the first
anchor point, not in the second one etc, in some cases it'll even not
positioned on the anchor point at all.


so, how are we supposed to know what marks are omitted

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] extra offsets

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 09:06 schrieb Hans Hagen:


keep in mind that you can use the offsets combined, so

toffset=2cm,loffset=1cm,offset=1cm


I noticed this, it requires a few more settings than my code  
(offset=0pt,...)

but it gives us more possibilities and prevents a few problems.

\setupTABLE
[frame 
= 
off,topframe=on,bottomframe=on,offset=0pt,toffset=0.25ex,boffset=0.25ex]

\setupTABLE[column]   [loffset=1em,roffset=1em]
\setupTABLE[column][first][loffset=0em,roffset=1em]
\setupTABLE[column][last] [loffset=1em,roffset=0em]

\starttext

\bTABLE
  \bTR
\bTH Knuth \eTH
\bTH Zapf  \eTH
\bTH Tufte \eTH
  \eTR
  \bTR
\bTD \input knuth \eTD
\bTD \input zapf  \eTD
\bTD \input tufte \eTD
  \eTR
\eTABLE

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


[NTG-context] 1/2 symbol

2009-03-04 Thread Vyatcheslav Yatskovsky

Hello,

Easy question: how to get 1/2 symbol without entering math mode (using 
Minion Pro font)?


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] 1/2 symbol

2009-03-04 Thread Thomas A. Schmitz


On Mar 4, 2009, at 10:26 AM, Vyatcheslav Yatskovsky wrote:


Hello,

Easy question: how to get 1/2 symbol without entering math mode  
(using Minion Pro font)?


Best,
Vyatcheslav


Have you tried \onehalf or ½ (in mkiv)?

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

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


Re: [NTG-context] 1/2 symbol

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 10:32 schrieb Thomas A. Schmitz:


On Mar 4, 2009, at 10:26 AM, Vyatcheslav Yatskovsky wrote:


Hello,

Easy question: how to get 1/2 symbol without entering math mode  
(using Minion Pro font)?


Have you tried \onehalf or ½ (in mkiv)?



What the combination to get ½ on a mac?

Another way is to use the 'frac' feature.

\definefontfeature[frac][default][script=latn,frac=yes]
\definefont[minion][name:minionproregular*default]

\def\utffrac{\groupedcommand{\setfontfeature{frac}}{}}

\starttext

\minion 1/2 \utffrac{1/2} 1/2 \utffrac{12345/6789} 12345/6789

\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] 1/2 symbol

2009-03-04 Thread Thomas A. Schmitz


On Mar 4, 2009, at 10:40 AM, Wolfgang Schuster wrote:


What the combination to get ½ on a mac?


Sadly, there doesn't seem to be a keyboard shortcut; I inserted it via  
the Character Palette.


Thomas

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

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


Re: [NTG-context] 1/2 symbol

2009-03-04 Thread Alan BRASLAU
If you use the Unicode Hex Input keyboard layout: press the Option key and 
enter four hex digits to specify the hex code of any glyph.

Also, under any layout, when used with other keys, the Option key produces 
special symbols. The Keyboard Viewer, which users can add to the Input menu in 
the International pane of System Preferences, shows which keys generate each 
symbol. I do not know if ½ is included under what layout.

Under X11, this is as simple as COMPOSE+1+2. I do not know how this can be 
configured on the Mac.


On Wednesday 04 March 2009 10:56:38 Thomas A. Schmitz wrote:
 
 On Mar 4, 2009, at 10:40 AM, Wolfgang Schuster wrote:
 
  What the combination to get ½ on a mac?
 
 Sadly, there doesn't seem to be a keyboard shortcut; I inserted it via  
 the Character Palette.
___
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] 1/2 symbol

2009-03-04 Thread Hans Hagen

Thomas A. Schmitz wrote:


On Mar 4, 2009, at 10:40 AM, Wolfgang Schuster wrote:


What the combination to get ½ on a mac?


Sadly, there doesn't seem to be a keyboard shortcut; I inserted it via 
the Character Palette.


there is a frac feature in some fonts but it might be crappy in some 
fonts in the sense that it has to be applied selectively


-
  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] 1/2 symbol

2009-03-04 Thread Wolfgang Schuster
On Wed, Mar 4, 2009 at 11:45 AM, Hans Hagen pra...@wxs.nl wrote:

 What's the combination to get ½ on a mac?

 Sadly, there doesn't seem to be a keyboard shortcut; I inserted it via the
 Character Palette.

 there is a frac feature in some fonts but it might be crappy in some fonts
 in the sense that it has to be applied selectively

The frac feature is available in the Minion font and I showed how to use it
in my previous mail.

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] Bug in mark to ligature handling

2009-03-04 Thread Khaled Hosny
On Wed, Mar 04, 2009 at 09:37:26AM +0100, Hans Hagen wrote:
 Khaled Hosny wrote:
 Marks don't get positioned correctly unless all marks are supplied, if
 one mark is omitted, the next mark will be positioned at the first
 anchor point, not in the second one etc, in some cases it'll even not
 positioned on the anchor point at all.

 so, how are we supposed to know what marks are omitted

The order of the marks/base letters are inserted in the text string
should tell us, say we've a_b_c ligature, if the text string is 
a b mark1 c mark2, then we omitted the first mark in the, so
mark1 will be applied to the second anchor point and mark2 to the
third one.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


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

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


Re: [NTG-context] Bug in mark to ligature handling

2009-03-04 Thread Hans Hagen

Khaled Hosny wrote:

Marks don't get positioned correctly unless all marks are supplied, if
one mark is omitted, the next mark will be positioned at the first
anchor point, not in the second one etc, in some cases it'll even not
positioned on the anchor point at all.

In the attached sample, the first word in the line is correct,
subsequent ones aren't.
(The font used: 
http://raqm.googlecode.com/svn/trunk/fonts/simplenaskhi/SimpleNaskhi.ttf)


can you check the new beta?

btw, use \starttext ... \stoptext and not \bye


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

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


Re: [NTG-context] Bug in mark to ligature handling

2009-03-04 Thread Khaled Hosny
On Wed, Mar 04, 2009 at 12:48:36PM +0100, Hans Hagen wrote:
 Khaled Hosny wrote:
 Marks don't get positioned correctly unless all marks are supplied, if
 one mark is omitted, the next mark will be positioned at the first
 anchor point, not in the second one etc, in some cases it'll even not
 positioned on the anchor point at all.

 In the attached sample, the first word in the line is correct,
 subsequent ones aren't.
 (The font used:  
 http://raqm.googlecode.com/svn/trunk/fonts/simplenaskhi/SimpleNaskhi.ttf)

 can you check the new beta?

It is fixed in the beta, thanks.

Now I found another bug, when having two marks on the same base glyph,
the first one is positioned correctly but not the second one.
See the attached sample (I swapped the marks on the next word).


 btw, use \starttext ... \stoptext and not \bye

Will do, thanks.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
\pagedir TRT\bodydir TRT\pardir TRT\textdir TRT
\definefontfeature[otfnaskhi]
   [mode=node,language=dflt,script=arab,
init=yes,medi=yes,fina=yes,calt=yes,
rlig=yes,liga=yes,dlig=yes,curs=yes,
mark=yes,mkmk=yes]
\starttext
\font\test=SimpleNaskhi*otfnaskhi at 48pt\test

تِّ : تِّ
\stoptext


ligatures.pdf
Description: Adobe PDF document


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

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


Re: [NTG-context] Two questions - Cross Referencing (Auto mated label generation + Random items)

2009-03-04 Thread Curious Learn
Wolfgang Schuster schuster.wolfgang at googlemail.com writes:


 You don't need \nextrandom any longer, it's fixed with the last beta.
 
 \newcounter\choicecounter
 
 \define[1]\Rightitem
{\doglobal\increment\choicecounter
 \startitem[\choicecounter]#1\stopitem}
 
 \define[1]\Wrongitem
{\startitem#1\stopitem}
 
 \processbetween{rightitem}\Rightitem
 \processbetween{wrongitem}\Wrongitem
 

  \startrightitem This is the CORRECT answer. \stoprightitem
  \startwrongitem Yet another wrong answer.   \stopwrongitem

 You can use a fixed random order for the items (the don't change after
 each new run) with '\setupsystem[random=3456]', you can change the order
 when you user another number.
 
 Wolfgang
 

Awesome solution. Works great. Thanks very much Wolfgang. I can now use your
solution. If it is not too difficult to explain, I would appreciate if someone
could explain why the following does not work. It is not necessary because
Wolfgang's solution is great but will help me understand it better.

\def\AnsT
   {\doglobal\increment\choicecounter
 \startitem[\choicecounter]#1\stopitem}
\def\eAns{\stopitem}

With these commands if I use

\AnsT This is the CORRECT answer. \eAns
\startwrongitem Yet another wrong answer.   \stopwrongitem

I get the error File ended while scanning use of \startitem






___
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] some minor Problems

2009-03-04 Thread Lutz Haseloff
Hi Hans, hi all,

First:
in the last 2 Betas (today and yesterday) the parameter --interface
for texexec seems not to work anymore.
my log:
texmfstart texexec --interface=xp --autopdf --luatex ligtest.tex
TeXExec | processing document 'ligtest.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: false
TeXExec | tex engine: luatex
TeXExec | tex format: false
TeXExec | runtime: 0.86
Exit code: 0
context --make xp builds a format cont-xp without error messages.
The format cont-en runs well with:
texmfstart texexec --autopdf --luatex ligtest.tex

Second:
The command || like in knuth.tex seems not to work properly in mkiv.
Even with enabled liga feature it builds two hyphens.

Last:
I can't enable fontfeatures for the Vista-Fonts for instance Cambria.
They are simply ignored. They are OTF with TTF extensions, ist this
the reason?


Greetings Lutz

--
Proud member of the NTG
___
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] some minor Problems

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 14:32 schrieb Lutz Haseloff:


Hi Hans, hi all,

First:
in the last 2 Betas (today and yesterday) the parameter --interface
for texexec seems not to work anymore.


Use 'context --interface=xp ...'


Second:
The command || like in knuth.tex seems not to work properly in mkiv.
Even with enabled liga feature it builds two hyphens.

Last:
I can't enable fontfeatures for the Vista-Fonts for instance  
Cambria.

They are simply ignored. They are OTF with TTF extensions, ist this
the reason?


Both work for me, make a example!

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] Two questions - Cross Referencing (Automated label generation + Random items)

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 13:54 schrieb Curious Learn:

Awesome solution. Works great. Thanks very much Wolfgang. I can now  
use your
solution. If it is not too difficult to explain, I would appreciate  
if someone
could explain why the following does not work. It is not necessary  
because

Wolfgang's solution is great but will help me understand it better.

\def\AnsT
  {\doglobal\increment\choicecounter
\startitem[\choicecounter]#1\stopitem}
\def\eAns{\stopitem}

With these commands if I use

\AnsT This is the CORRECT answer. \eAns
\startwrongitem Yet another wrong answer.   \stopwrongitem

I get the error File ended while scanning use of \startitem


It has to do with the that for randomized items ConTeXt has to know
the text for each item, to do this the normal \item ... is not enough
and \startitem ... \stopitem is needed.

Each \startitem ... \stopitem pair collects the text between it and
add it to a list. The collecting works in the way that \startitem grab
everything untill it sees a \stopitem command.

If you want to write your own command you need a similiar mechanism
where your \AnsT grab everything till \eAns but this did not work in
the way you defined the command yourself.

The low level way to do this is:

\def\AnsT#1\eAns
  {\doglobal\increment\choicecounter
   \startitem[\choicecounter]#1\stopitem}


Another way to do this with a few ConTeXt commands is:

\define[1]\Rightitem
  {\doglobal\increment\choicecounter
   \startitem[\choicecounter]#1\stopitem}

\define\AnsT
  {\grabuntil{eAns}\Rightitem}

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] Bug in mark to ligature handling

2009-03-04 Thread Hans Hagen

Khaled Hosny wrote:

On Wed, Mar 04, 2009 at 12:48:36PM +0100, Hans Hagen wrote:

Khaled Hosny wrote:

Marks don't get positioned correctly unless all marks are supplied, if
one mark is omitted, the next mark will be positioned at the first
anchor point, not in the second one etc, in some cases it'll even not
positioned on the anchor point at all.

In the attached sample, the first word in the line is correct,
subsequent ones aren't.
(The font used:  
http://raqm.googlecode.com/svn/trunk/fonts/simplenaskhi/SimpleNaskhi.ttf)

can you check the new beta?


It is fixed in the beta, thanks.

Now I found another bug, when having two marks on the same base glyph,
the first one is positioned correctly but not the second one.
See the attached sample (I swapped the marks on the next word).


another attempt ..

can you coordinate your tests with idris (he collects test snippets so 
that eventually we have some kind of regression test)


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] Two questions - Cross Referencing (Automated label generation + Random items)

2009-03-04 Thread Hans Hagen

Curious Learn wrote:

Wolfgang Schuster schuster.wolfgang at googlemail.com writes:



You don't need \nextrandom any longer, it's fixed with the last beta.

\newcounter\choicecounter

\define[1]\Rightitem
   {\doglobal\increment\choicecounter
\startitem[\choicecounter]#1\stopitem}

\define[1]\Wrongitem
   {\startitem#1\stopitem}

\processbetween{rightitem}\Rightitem
\processbetween{wrongitem}\Wrongitem




 \startrightitem This is the CORRECT answer. \stoprightitem
 \startwrongitem Yet another wrong answer.   \stopwrongitem



You can use a fixed random order for the items (the don't change after
each new run) with '\setupsystem[random=3456]', you can change the order
when you user another number.

Wolfgang



Awesome solution. Works great. Thanks very much Wolfgang. I can now use your
solution. If it is not too difficult to explain, I would appreciate if someone
could explain why the following does not work. It is not necessary because
Wolfgang's solution is great but will help me understand it better.


long ago we made interactive tests and such; some of the code was split 
of in m-educat.tex ; i'm not even sure if it works any longer


-
  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] some minor Problems

2009-03-04 Thread Hans Hagen

Lutz Haseloff wrote:

Hi Hans, hi all,

First:
in the last 2 Betas (today and yesterday) the parameter --interface
for texexec seems not to work anymore.
my log:

texmfstart texexec --interface=xp --autopdf --luatex ligtest.tex

TeXExec | processing document 'ligtest.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: false
TeXExec | tex engine: luatex
TeXExec | tex format: false
TeXExec | runtime: 0.86

Exit code: 0

context --make xp builds a format cont-xp without error messages.
The format cont-en runs well with:
texmfstart texexec --autopdf --luatex ligtest.tex


best use context --interface=xp --autopdf ligtest.tex

texexec just calls context but with some limitations


Second:
The command || like in knuth.tex seems not to work properly in mkiv.
Even with enabled liga feature it builds two hyphens.


hm



Last:
I can't enable fontfeatures for the Vista-Fonts for instance Cambria.
They are simply ignored. They are OTF with TTF extensions, ist this
the reason?


i don't know

-
  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] some minor Problems

2009-03-04 Thread Hans Hagen

Lutz Haseloff wrote:


I can't enable fontfeatures for the Vista-Fonts for instance Cambria.
They are simply ignored. They are OTF with TTF extensions, ist this
the reason?


mtxrun --script font --list --info cambria

lists a whole lot; but in cambria there is no dflt, dflt so you need to 
be explitly latn (because there is also grek and math)


-
  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] some minor Problems

2009-03-04 Thread Wolfgang Schuster
On Wed, Mar 4, 2009 at 4:35 PM, Hans Hagen pra...@wxs.nl wrote:
 Lutz Haseloff wrote:

 I can't enable fontfeatures for the Vista-Fonts for instance Cambria.
 They are simply ignored. They are OTF with TTF extensions, ist this
 the reason?

mtxrun --script font --list --info cambria

 lists a whole lot; but in cambria there is no dflt, dflt so you need to be
 explitly latn (because there is also grek and math)

Weird, that's all I get for Cambria (other fonts show the complete list)

Rover:base wolf$ mtxrun --script font --list --info cambria
MtxRun | fontname: cambria
MtxRun | fullname: Cambria
MtxRun | filename: /Users/wolf/Library/Fonts/CAMBRIA.TTC
MtxRun |

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] some minor Problems

2009-03-04 Thread Hans Hagen

Wolfgang Schuster wrote:

On Wed, Mar 4, 2009 at 4:35 PM, Hans Hagen pra...@wxs.nl wrote:

Lutz Haseloff wrote:


I can't enable fontfeatures for the Vista-Fonts for instance Cambria.
They are simply ignored. They are OTF with TTF extensions, ist this
the reason?
mtxrun --script font --list --info cambria

lists a whole lot; but in cambria there is no dflt, dflt so you need to be
explitly latn (because there is also grek and math)


Weird, that's all I get for Cambria (other fonts show the complete list)

Rover:base wolf$ mtxrun --script font --list --info cambria
MtxRun | fontname: cambria
MtxRun | fullname: Cambria
MtxRun | filename: /Users/wolf/Library/Fonts/CAMBRIA.TTC
MtxRun |


maybe an old cambria

mtxrun --script font --list --info cambria
MtxRun | fontname: cambria
MtxRun | fullname: Cambria
MtxRun | filename: C:/Windows/fonts/cambria.ttc
MtxRun |
MtxRun | feature: c2sc, script: cyrl, language: srb  dflt
MtxRun | feature: c2sc, script: grek, language: dflt
MtxRun | feature: c2sc, script: latn, language: rom  trk  dflt
MtxRun | feature: calt, script: cyrl, language: srb  dflt
MtxRun | feature: calt, script: grek, language: dflt
MtxRun | feature: calt, script: latn, language: rom  trk  dflt
MtxRun | feature: case, script: cyrl, language: srb  dflt
MtxRun | feature: case, script: grek, language: dflt
MtxRun | feature: case, script: latn, language: rom  trk  dflt
MtxRun | feature: ccmp, script: cyrl, language: srb  dflt
MtxRun | feature: ccmp, script: grek, language: dflt
MtxRun | feature: ccmp, script: latn, language: rom  trk  dflt
MtxRun | feature: dnom, script: cyrl, language: srb  dflt
MtxRun | feature: dnom, script: grek, language: dflt
MtxRun | feature: dnom, script: latn, language: rom  trk  dflt
MtxRun | feature: dtls, script: math, language: dflt
MtxRun | feature: flac, script: math, language: dflt
MtxRun | feature: frac, script: cyrl, language: srb  dflt
MtxRun | feature: frac, script: grek, language: dflt
MtxRun | feature: frac, script: latn, language: rom  trk  dflt
MtxRun | feature: kern, script: cyrl, language: srb  dflt
MtxRun | feature: kern, script: grek, language: dflt
MtxRun | feature: kern, script: latn, language: rom  trk  dflt
MtxRun | feature: liga, script: latn, language: rom  trk  dflt
MtxRun | feature: lnum, script: cyrl, language: srb  dflt
MtxRun | feature: lnum, script: grek, language: dflt
MtxRun | feature: lnum, script: latn, language: rom  trk  dflt
MtxRun | feature: locl, script: cyrl, language: srb  dflt
MtxRun | feature: locl, script: grek, language: dflt
MtxRun | feature: locl, script: latn, language: rom
MtxRun | feature: numr, script: cyrl, language: srb  dflt
MtxRun | feature: numr, script: grek, language: dflt
MtxRun | feature: numr, script: latn, language: rom  trk  dflt
MtxRun | feature: onum, script: cyrl, language: srb  dflt
MtxRun | feature: onum, script: grek, language: dflt
MtxRun | feature: onum, script: latn, language: rom  trk  dflt
MtxRun | feature: ordn, script: latn, language: rom  trk  dflt
MtxRun | feature: pnum, script: cyrl, language: srb  dflt
MtxRun | feature: pnum, script: grek, language: dflt
MtxRun | feature: pnum, script: latn, language: rom  trk  dflt
MtxRun | feature: salt, script: cyrl, language: srb  dflt
MtxRun | feature: salt, script: grek, language: dflt
MtxRun | feature: salt, script: latn, language: rom  trk  dflt
MtxRun | feature: sinf, script: cyrl, language: srb  dflt
MtxRun | feature: sinf, script: grek, language: dflt
MtxRun | feature: sinf, script: latn, language: rom  trk  dflt
MtxRun | feature: smcp, script: cyrl, language: srb  dflt
MtxRun | feature: smcp, script: grek, language: dflt
MtxRun | feature: smcp, script: latn, language: rom  trk  dflt
MtxRun | feature: ssty, script: math, language: dflt
MtxRun | feature: sups, script: cyrl, language: srb  dflt
MtxRun | feature: sups, script: grek, language: dflt
MtxRun | feature: sups, script: latn, language: rom  trk  dflt
MtxRun | feature: tnum, script: cyrl, language: srb  dflt
MtxRun | feature: tnum, script: grek, language: dflt
MtxRun | feature: tnum, script: latn, language: rom  trk  dflt
MtxRun |

-
  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] Two questions - Cross Referencing (Au tomated label generation + Random items)

2009-03-04 Thread Curious Learn

 The low level way to do this is:
 
 \def\AnsT#1\eAns
{\doglobal\increment\choicecounter
 \startitem[\choicecounter]#1\stopitem}
 

 Wolfgang


Beautiful! Thanks again Wolfgang. I tried the low level command and it works
great. I will try the Context way later.

Hans, thanks very much for bringing to my attention the file m-educat.tex. Can
you please tell me where I can find it?

Even if I do not use it as it is, I am sure I can learn something and it can
give me some ideas. 


___
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] paragraph question

2009-03-04 Thread Alan Stone
 How do you access the first paragraph of each chapter ?

... to calculate its number of lines ?

If not possible with ConTeXt commands, is this possible with LuaTeX commands?

Alan


On Tue, Mar 3, 2009 at 12:49 PM, Alan Stone
software.list.1e...@gmail.com wrote:
 Hi,

 How do you access the first paragraph of each chapter ?

 I guess with...

 \setuphead[chapter][after=\PlayWithFirstParagraph]

 \def\PlayWithFirstParagraph...

 How to fill in the dots ?

 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] Two questions - Cross Referencing (Automated label generation + Random items)

2009-03-04 Thread Mikael Persson
On Wed, Mar 4, 2009 at 4:53 PM, Curious Learn curiousle...@gmail.com wrote:

 The low level way to do this is:

 \def\AnsT#1\eAns
    {\doglobal\increment\choicecounter
     \startitem[\choicecounter]#1\stopitem}


 Wolfgang


 Beautiful! Thanks again Wolfgang. I tried the low level command and it works
 great. I will try the Context way later.

 Hans, thanks very much for bringing to my attention the file m-educat.tex. Can
 you please tell me where I can find it?

 Even if I do not use it as it is, I am sure I can learn something and it can
 give me some ideas.


Dear Curious Learn (strange name, it can be considered rude not to use
the real one)

You can find m-educat.tex at
tex/texmf-context/tex/context/base/m-educat.tex
if you use the minimals
It is also listed at
http://wiki.contextgarden.net/Modules
if you dont have that installation.

Best regards, Mikael Persson
___
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] pst-labo a pstricks module

2009-03-04 Thread batela

Dear Sirs

Is there a way to include  in Context documents some chemistry  
equipment  pictures generated by the pst-labo package.



http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/pst- 
labo/pst-labo-docEN.pdf



thanks for your support


Jorge

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

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


Re: [NTG-context] Bug in mark to ligature handling

2009-03-04 Thread Khaled Hosny
On Wed, Mar 04, 2009 at 03:14:17PM +0100, Hans Hagen wrote:
 Khaled Hosny wrote:
 On Wed, Mar 04, 2009 at 12:48:36PM +0100, Hans Hagen wrote:
 Khaled Hosny wrote:
 Marks don't get positioned correctly unless all marks are supplied, if
 one mark is omitted, the next mark will be positioned at the first
 anchor point, not in the second one etc, in some cases it'll even not
 positioned on the anchor point at all.

 In the attached sample, the first word in the line is correct,
 subsequent ones aren't.
 (The font used:   
 http://raqm.googlecode.com/svn/trunk/fonts/simplenaskhi/SimpleNaskhi.ttf)
 can you check the new beta?

 It is fixed in the beta, thanks.

 Now I found another bug, when having two marks on the same base glyph,
 the first one is positioned correctly but not the second one.
 See the attached sample (I swapped the marks on the next word).

 another attempt ..

That one is fixed too, thanks. (Time to find another bug :) )

 can you coordinate your tests with idris (he collects test snippets so  
 that eventually we have some kind of regression test)

I uploaded the files in the svn repository with font:
http://code.google.com/p/raqm/source/browse/#svn/trunk/fonts/simplenaskhi/tests

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


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

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


Re: [NTG-context] paragraph question

2009-03-04 Thread Hans Hagen

Alan Stone wrote:

How do you access the first paragraph of each chapter ?


 to calculate its number of lines ?

If not possible with ConTeXt commands, is this possible with LuaTeX commands?


\the\prevgraf

but surely doable in luatex

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] paragraph question

2009-03-04 Thread Hans Hagen

Alan Stone wrote:

How do you access the first paragraph of each chapter ?


 to calculate its number of lines ?

If not possible with ConTeXt commands, is this possible with LuaTeX commands?


there is support for positional info ... depending on the problem that 
might help (set two positions and calculate the difference); no time now 
to explain details


-
  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] Two questions - Cross Referencing (Auto mated label generation + Random items)

2009-03-04 Thread Curious Learn
Mikael Persson mickep at gmail.com writes:


 
 Dear Curious Learn (strange name, it can be considered rude not to use
 the real one)
 
 You can find m-educat.tex at
 tex/texmf-context/tex/context/base/m-educat.tex
 if you use the minimals
 It is also listed at
 http://wiki.contextgarden.net/Modules
 if you dont have that installation.
 
 Best regards, Mikael Persson

Thanks for the information Mikael. I am sorry if my use of a non real name
offended anyone. It seems to be the standard practice on many forums (I agree
not on this one) and I stuck to it. Feel just more comfortable this way. Again,
I apologize if it offended anyone.



___
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] setupsynonym: 2 questions on width

2009-03-04 Thread Michael Bynum
1.)  I have a list of synonyms that I need to print in an aligned
list.  Is there a way to align the synonym definitions with the
longest synonym entry (width=? option maybe)?  Here is a small example
where the entries do not align.

\definesynonyms[nomenclature][nomenclatures][\infull]
\setupsynonyms[nomenclature][criterium=all,width=broad]

\nomenclature[a]{a}{This is the letter a}
\nomenclature[b]{abcdefghijklmnopqrstuvwxyz}{This is the alphabet}
\nomenclature[c]{c}{This is the letter c}

\starttext
\placelistofnomenclatures
\stoptext


2.)  Also, if the width in setupsynonyms is set to a value smaller
than the length of the longest entry, the entry tries to wrap around,
but it writes over top of the next entry.  Obviously this is not
desirable.  Is there a way to have the next entry below the wrapped
long entry instead of on the same line?  An example of this issue.

\definesynonyms[nomenclature][nomenclatures][\infull]
\setupsynonyms[nomenclature][criterium=all]

\nomenclature[a]{a}{This is the letter a}
\nomenclature[b]{abcdefghijklmnopqrstuvwxyz}{This is the alphabet}
\nomenclature[c]{c}{This is the letter c}

\starttext
\placelistofnomenclatures
\stoptext


Thanks,
Mike
___
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] paragraph question

2009-03-04 Thread Alan Stone
On Wed, Mar 4, 2009 at 5:33 PM, Hans Hagen pra...@wxs.nl wrote:
 Alan Stone wrote:

 How do you access the first paragraph of each chapter ?

  to calculate its number of lines ?

 If not possible with ConTeXt commands, is this possible with LuaTeX
 commands?

 there is support for positional info ... depending on the problem

To set \setuplettrine[Lines=1] if chapter's first paragraph number of
lines = 1.

that might
 help (set two positions and calculate the difference); no time now to
 explain details
___
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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Curious Learn
Can someone please explain why the second example below works but the first does
not work? 
Thanks very much.

\starttext 

\bTABLE
\dorecurse{5}
{\bTR \bTD \recurselevel. \eTD 
  \bTD \recurselevel  \eTD\eTR}
\eTABLE 

\dorecurse{2}
{\recurselevel. \recurselevel\crlf}

\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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread luigi scarso
On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn curiousle...@gmail.com wrote:
 Can someone please explain why the second example below works but the first 
 does
 not work?
 Thanks very much.

 \starttext

 \bTABLE
 \dorecurse{5}
 {\bTR \bTD \recurselevel. \eTD
          \bTD \recurselevel  \eTD\eTR}
 \eTABLE

 \dorecurse{2}
 {\recurselevel. \recurselevel\crlf}

 \stoptext
works ok here with latest minimals
This is LuaTeX, Version snapshot-0.35.0-2009022702 (Web2C 7.5.7)
ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2009.3.4  int: english/english





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




-- 
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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread luigi scarso
On Wed, Mar 4, 2009 at 8:53 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Wed, Mar 4, 2009 at 8:35 PM, Curious Learn curiousle...@gmail.com wrote:
 Can someone please explain why the second example below works but the first 
 does
 not work?
 Thanks very much.

 \starttext

 \bTABLE
 \dorecurse{5}
 {\bTR \bTD \recurselevel. \eTD
          \bTD \recurselevel  \eTD\eTR}
 \eTABLE

 \dorecurse{2}
 {\recurselevel. \recurselevel\crlf}

 \stoptext
 works ok here with latest minimals
 This is LuaTeX, Version snapshot-0.35.0-2009022702 (Web2C 7.5.7)
 ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2009.3.4  int: english/english
and also OK with minimals beta

This is LuaTeX, Version snapshot-0.35.0

(test-curios.tex

ConTeXt  ver: 2009.03.04 17:30 MKIV  fmt: 2009.3.4  int: english/english

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


[NTG-context] boldstyle for numbers in defineenumeration

2009-03-04 Thread Xan

Hi,

Is it possible to put numerstyle=boldstyle in this enumeration?:
\defineenumeration
 [exercici]
 
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,

stopper={.\space},location=serried,titleleft=(,titleright=),width=fit,headstyle=\ss]

For the other hand, is it possible to make it's a framed?

Thanks a lot,
Xan.
___
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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 20:35 schrieb Curious Learn:

Can someone please explain why the second example below works but  
the first does

not work?
Thanks very much.

\starttext

\bTABLE
\dorecurse{5}
{\bTR \bTD \recurselevel. \eTD
  \bTD \recurselevel  \eTD\eTR}
\eTABLE



\bTABLE
\dorecurse{5}{\bTR\expanded{\bTD\recurselevel\eTD}\eTR}
\eTABLE

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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Curious Learn
Wolfgang Schuster schuster.wolfgang at googlemail.com writes:

 
 \bTABLE
 \dorecurse{5}{\bTR\expanded{\bTD\recurselevel\eTD}\eTR}
 \eTABLE
 
 Wolfgang

As your other solutions, this worked great. I suppose I have to use \expanded
for every \bTD \eTD pair. Can you please explain why this is necessary or point
me to a document that contains the explanation.

Thanks very much.


___
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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 21:57 schrieb Curious Learn:


Wolfgang Schuster schuster.wolfgang at googlemail.com writes:


\bTABLE
\dorecurse{5}{\bTR\expanded{\bTD\recurselevel\eTD}\eTR}
\eTABLE


As your other solutions, this worked great. I suppose I have to use  
\expanded

for every \bTD \eTD pair.


Not really.

\bTABLE
\dorecurse{5}{\bTR\bTD#1\eTD\eTR}
\eTABLE

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] Up the contents of table

2009-03-04 Thread Xan

Hi,

Is there any way of upping the contents of a table?
I have this example:

\startframedtext[background=screen,frame=off,width=broad]

\startalignment[center]
{\ssbf Com s'identifica una funció mitjançant la seva representació 
gràfica?}

\stopalignment

\placetable[here,none]
[taula]
{ }
{
\starttable[|l|xw(4.5cm)p(4.5cm)|l]
\HL
\NC
% Una relació que no és funció 1
\starttikzpicture[scale=0.8]
   \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
   \draw[-] (-0.2,0) -- (4.2,0) node[right] {$x$};
   \draw[-] (0,-1.2) -- (0,4.2) node[above] {$y$};

   \path
   coordinate (start) at (0,4)
   coordinate (c1) at +(5,3)
   coordinate (c2) at +(5,1.75)
   coordinate (slut) at (2.7,.5)
   coordinate (top) at (4.2,2);

   \draw[color=red,important line] (start) .. controls (c1) and (c2) .. 
(slut);

\stoptikzpicture
\NC
Si algun valor de $x$ li correspon més d'un valor de $y$, aleshores la 
gràfica no correspon a una funció. Sinó sí que correspon a una funció.

\NC
% Una relació que no és funció 1
\starttikzpicture[scale=0.8]
   \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
   \draw[-] (-0.2,0) -- (4.2,0) node[right] {$x$};
   \draw[-] (0,-1.2) -- (0,4.2) node[above] {$y$};

   \path
   coordinate (start) at (0,4)
   coordinate (c1) at +(5,3)
   coordinate (c2) at +(5,1.75)
   coordinate (slut) at (2.7,.5)
   coordinate (top) at (4.2,2);

   \draw[color=red,important line] (start) .. controls (c1) and (c2) .. 
(slut);


\stoptikzpicture
\LR
\HL
\stoptable}
\stopframedtext



and the text is bottom the table.

Thanks in advance,
Xan.

PS: Please, CCme.
___
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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Aditya Mahajan

On Wed, 4 Mar 2009, Wolfgang Schuster wrote:


\bTABLE
\dorecurse{5}{\bTR\bTD#1\eTD\eTR}
\eTABLE


This is evil genious!

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

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


Re: [NTG-context] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 22:43 schrieb Aditya Mahajan:


On Wed, 4 Mar 2009, Wolfgang Schuster wrote:


\bTABLE
\dorecurse{5}{\bTR\bTD#1\eTD\eTR}
\eTABLE


This is evil genious!



Can be used nested too.

\starttext
\bTABLE
\dorecurse{5}
  {\bTR
   \dorecurse{5}{\bTD#1:##1\eTD}
   \eTR}
\eTABLE
\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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Curious Learn

 Not really.
 
 \bTABLE
 \dorecurse{5}{\bTR\bTD#1\eTD\eTR}
 \eTABLE
 
 Wolfgang
 

Awesome How does one learn these things? Is this Tex programming or Context
programming.

Thanks very much.




___
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] \dorecurse and \recurselevel in Natural Tables

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 23:17 schrieb Curious Learn:


Not really.

\bTABLE
\dorecurse{5}{\bTR\bTD#1\eTD\eTR}
\eTABLE

Wolfgang


Awesome How does one learn these things?


Follow the mailing list and read parts of the source.


Is this Tex programming or Context programming.


It's a ConTeXt future.

You can use inside of \dorecurse #1 to get the expanded level
and #2 to get the recurse depth.

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] paragraph question

2009-03-04 Thread Marcin Borkowski
Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisa#322;(a):
  How do you access the first paragraph of each chapter ?
 
 ... to calculate its number of lines ?
 
 If not possible with ConTeXt commands, is this possible with LuaTeX commands?

Maybe redefine \par to do something like

\def\nooflines{\prevgraf}\let\par=\oldpar

where previously you hd \let\oldpar=\par

Regards

-- 
Marcin Borkowski (http://mbork.pl)

Jezus żyje NAPRAWDĘ.
A Ty?
___
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] paragraph question

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 23:38 schrieb Marcin Borkowski:

Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisa#322; 
(a):

How do you access the first paragraph of each chapter ?


... to calculate its number of lines ?

If not possible with ConTeXt commands, is this possible with LuaTeX  
commands?


Maybe redefine \par to do something like

\def\nooflines{\prevgraf}\let\par=\oldpar

where previously you hd \let\oldpar=\par


I don't think this will work without problems for a complete document.

Enclosing each paragraph with \bpar ... \epar allows you to count the  
paragraph
number since the last chapter and you can save \prevgraf at the end  
with twopass

data for the next run.

But wouldn't a direct \lettrine at the begin of the first paragraph be  
easier.


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] Up the contents of table

2009-03-04 Thread Wolfgang Schuster


Am 04.03.2009 um 22:31 schrieb Xan:


Hi,

Is there any way of upping the contents of a table?
I have this example:


I'm right you want to place the caption above the table?

\setupcaption[table][location=top,style=\ssbf]

\placetable
  [here,none]
  [taula]
  {Com s'identifica una funció mitjançant la seva representació  
gràfica?}

  {\starttable
   ...
   \stoptable}

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
___