Re: [NTG-context] How to set a layout shown in the attachment png file?

2009-04-16 Thread Wei-Wei Guo

Hi Ales,

Alex Lubberts 写道:

I attached a PNG file to show the layout that I want. I want the text part
narrowed and
right aligned. I tried the following settings:

\setuplayout
   [backspace=20mm,
topspace=20mm,
height=257mm,
width=170mm,
%textwidth=115mm,
header=10mm,
footer=0mm,
rightmargin=0mm,
leftmargin=25mm,
leftmargindistance=-25mm,]

The problem is that text is too wide. I commented the 'textwidth' for it
will make the
narrowed text centering. What else do I need to set?


From the picture the exact measures are not clear, but perhaps you should


The picture only shows relative position of header, text, and margin.



try:
  ...
  width=115mm,
  ...
  leftmargindistance=25mm]
'width' is used to set the textwidth. And 'leftmargindistance'is used to
indicate the distance between the lefmargin column and the body text, so I
think it should be a positive amount. This setting will result in an empty
backspace of 20mm + margin of 25mm + 25mm whitespace + 115mm bodytext +
cutspace of 25mm cutspace (assuming you're using A4 papersize).


I tried. It doesn't work. As my understanding, margin and margindistance do not
affect layout. They only decide where margins are.


Best wishes,
Wei-Wei

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

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


[NTG-context] Problem: Arrows in math mode etc.

2009-04-16 Thread Tomas Kisela
Hi everybody,

I've got problems with typesetting binomial coefficients and arrows in math 
mode on ConTeXt ver: 2009.03.27 08:00 MKIV on Win Vista.

Binomial coefficients: 
The brackets stay small (usual size like in plain text), here's my code:
starttext
startformula
{achoose b}
stopformula
stoptext

In fact, it seems atopwithdelims() isn't working because the problem can be 
fixed by adding
delimiterfactor=1001
defbinom#1#2{left(#1 atop #2right)}
starttext
startformula
binom{a}{b}
stopformula
stoptext

The second problem is much more bothering to me because I can't typeset limits 
in right way - the arrow under the "lim" is omitted (both ways fail):
starttext
startformula
lim_{trightarrow 0}f(x)
stopformula
startformula
lim_{tto 0}f(x)
stopformula
stoptext

The commands leftarrow, longrightarrow, longleftarrow etc. aren't working too. 
On the other hand, uparrow works just fine.

Please, tell me what I'm supposed to do to fix it up. Or is it a bug in this 
version?

Thanks a lot,
Tomas



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

2009-04-16 Thread Hans Hagen

Wei-Wei Guo wrote:

Hi Wolfgang,

I just rsynced the latest beta, the error I posted in previous mail is 
gone, but a

new one comes.

! Argument of \doplacepagenumberatlocation has an extra }.


ok, will be fixed

-
  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 structure code

2009-04-16 Thread Hans Hagen

Yanrui Li wrote:

2009/4/15 Hans Hagen :

Wolfgang Schuster wrote:

Hi,

i found a few bugs in the new structure code for mkiv.

i fixed a few things



Hi, Hans,

Header and footer appear in the chapter page. Isn't this problem fixed?


also fixed in next 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] Keep text elements together

2009-04-16 Thread Hans Hagen

Uriel Avalos wrote:

So does anyone know how to do this? I'm sure it's possible -- I did it in TeX 
once but I can't find the ConTeXt equivalent in the docs...


you can try \startitemize[packed]


On Tue, Apr 14, 2009 at 09:32:16AM -0400, Uriel Avalos wrote:

Hi all. I'm writing a Multiple Choice test set in two-columns. I would like to 
keep the multiple-choice items together with the question both on the same page 
AND on the same column.

Question 1 Question 3
  choice 1choice 1
  choice 2choice 2
  choice 3choice 3

Question 2 Question 4
  choice 1choice 1
  choice 2choice 2
  choice 3choice 3

(Apologies, it's easier to draw than describe). 


So I don't want the multiple choices breaking to another page or going to 
another column. How can I achieve this?
I tried setting the "intro" flag of itemize but it doesn't work.

Here's what I did:

\item[columns]

...
\item Question
\startitemize[intro]
\item choice
\item choice
...
\stopitemize
...

\stopitemize

but the multiple-choice items would still break across pages and columns

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



--

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

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


[NTG-context] Bugs in latest beta: line numbering in verbatim

2009-04-16 Thread Otared Kavian

Hi Hans,

This bug was reported by Wolfgang Schuster a few months ago, but it  
persists: line numbering in verbatim is broken in mkiv (it works as  
expected in mkii).

Minimal example:

\setuptyping[numbering=line]
\setupcolors[state=start]
\starttext
\startframedtext[frame=off,background=color,backgroundcolor=darkyellow]
\starttyping
one
two
three
\stoptyping
\stopframedtext
\stoptext

Thanks for your attention: OK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Bugs in latest beta: \Bbb broken

2009-04-16 Thread Otared Kavian

Hi Hans,

It seems that in the latest beta (mkiv) the command \Bbb is broken  
(but it works fine in mkii).

Minimal example:

\starttext
The set ${\Bbb C}$ is the set of complex numbers.
\stoptext

Thanks for your attention: OK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Problem: Arrows in math mode etc.

2009-04-16 Thread Taco Hoekwater


Tomas Kisela wrote:
> The second problem is much more bothering to me because I can't typeset 
> limits in right way - the arrow under the "lim" is omitted (both ways fail):

> starttext
> startformula
> lim_{trightarrow 0}f(x)
> stopformula
> startformula
> lim_{tto 0}f(x)
> stopformula
> stoptext

Can you resend this part of the message with backslashes, please?

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
___


[NTG-context] \choose problems in new math fonts

2009-04-16 Thread Taco Hoekwater


Tomas Kisela wrote:
> 
> Binomial coefficients: 
> The brackets stay small (usual size like in plain text), here's my code:
> \starttext
> \startformula
> {a\choose b}
> \stopformula
> \stoptext

This is currently an issue with opentype math fonts: luatex doesn't know
what the values of \Umathfractiondelsize should be.

For a workaround: explicitly setting

 \Umathfractiondelsize\textstyle = 12.12pt
 \Umathfractiondelsize\displaystyle = 28.68pt

will set up values that closely mimic "cmsy10 at 12pt"

Ulrik Vieth (who is in CC) proposes to use DelimitedSubFormulaMinHeight
in non-display modes, but the DelimitedSubFormulaMinHeight in Cambria
Math is 3000/2048 *  == 17.58pt, which also doesn't seem right.

Since Hans converts everything to OpenType MathConstants format,
perhaps I should just add two more named entries to be parsed
in the MathConstants table?

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] Problem: Arrows in math mode etc.

2009-04-16 Thread Tomas Kisela
I'm sorry for that, I hope it's gonna be ok by now:

\starttext
\startformula
\lim_{t\rightarrow 0}f(x)
\stopformula
\startformula
\lim_{t\to 0}f(x)
\stopformula
\stoptext

Best wishes,
Tomas
__
> Od: t...@elvenkind.com
> Komu: mailing list for ConTeXt users 
> Datum: 16.04.2009 10:52
> Předmět: Re: [NTG-context] Problem: Arrows in math mode etc.
>
>Tomas Kisela wrote:
>> The second problem is much more bothering to me because I can't typeset 
>> limits in right way - the arrow under the "lim" is omitted (both ways fail):
>
>> starttext
>> startformula
>> lim_{trightarrow 0}f(x)
>> stopformula
>> startformula
>> lim_{tto 0}f(x)
>> stopformula
>> stoptext
>
>Can you resend this part of the message with backslashes, please?
>
>Best wishes,
>Taco
>___
>If your question is of interest to others as well, please add an entry to the 
>Wiki!
>
>maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>archive  : https://foundry.supelec.fr/projects/contextrev/
>wiki : http://contextgarden.net
>___
>

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

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


Re: [NTG-context] Problem: Arrows in math mode etc.

2009-04-16 Thread Tomas Kisela
Thanks for help, I installed a new version and now it's working.
(ver: 2009.04.15 12:15 MKIV)

Best wishes,
Tomas

__
> Od: t...@elvenkind.com
> Komu: mailing list for ConTeXt users 
> Datum: 16.04.2009 11:16
> Předmět: Re: [NTG-context] Problem: Arrows in math mode etc.
>
>Tomas Kisela wrote:
>> I'm sorry for that, I hope it's gonna be ok by now:
>> 
>> starttext
>> startformula
>> lim_{trightarrow 0}f(x)
>> stopformula
>> startformula
>> lim_{tto 0}f(x)
>> stopformula
>> stoptext
>
>This input works ok for me (I remember there were problems earlier)
>
>  This is LuaTeX, Version snapshot-0.39.0-2009041609 (Web2C 7.5.7)
>
>
>  ConTeXt  ver: 2009.04.14 15:18 MKIV
>
>Best wishes,
>Taco
>
>
>
>
>___
>If your question is of interest to others as well, please add an entry to the 
>Wiki!
>
>maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>archive  : https://foundry.supelec.fr/projects/contextrev/
>wiki : http://contextgarden.net
>___
>

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

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


Re: [NTG-context] problems with TeX Gyre/t2a/sc

2009-04-16 Thread Hans Hagen

Mojca Miklavec wrote:

Hello Hans,

there's a tiny problem with the following line(s) in type-one (if we
neglect the fact that Cyrilic is a bit problematic with Gyre anyway):

\starttypescript [serif,sans,mono]
[adventor,bonum,bookman,cursor,courier,heros,helvetica,pagella,palatino,schola,schoolbook,termes,times]
[ec,texnansi,cs,qx,rm,t5,t2a,t2b,t2c,l7x]
\definefontsynonym [\typescriptprefix{n:\typescripttwo}-Caps]
 [\typescriptthree-q\typescriptprefix{f:\typescripttwo}r-sc]
[encoding=\typescriptthree]

There are no t2a fonts with small caps defined, so simple usage like
\usetypescript[times][t2a]
\setupbodyfont[times]
generates arrors. The combinations of small caps & t2* encodings
simply don't exist and these combinations should better be removed.


so we need to split the defs in normal and t* encodings


-
  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] Problem: Arrows in math mode etc.

2009-04-16 Thread Taco Hoekwater


Tomas Kisela wrote:
> I'm sorry for that, I hope it's gonna be ok by now:
> 
> \starttext
> \startformula
> \lim_{t\rightarrow 0}f(x)
> \stopformula
> \startformula
> \lim_{t\to 0}f(x)
> \stopformula
> \stoptext

This input works ok for me (I remember there were problems earlier)

  This is LuaTeX, Version snapshot-0.39.0-2009041609 (Web2C 7.5.7)


  ConTeXt  ver: 2009.04.14 15:18 MKIV

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] Bugs in latest beta: \Bbb broken

2009-04-16 Thread Otared Kavian


On 16 avr. 09, at 11:18, Hans Hagen wrote:


[…]
i'll add

\let\Bbb\mathblackboard




Thanks Hans.
Indeed \mathblackboard works fine in mkiv.

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

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


Re: [NTG-context] Problem: Arrows in math mode etc.

2009-04-16 Thread Hans Hagen

Tomas Kisela wrote:

I'm sorry for that, I hope it's gonna be ok by now:

\starttext
\startformula
\lim_{t\rightarrow 0}f(x)
\stopformula
\startformula
\lim_{t\to 0}f(x)
\stopformula
\stoptext


works ok here


-
  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] MkII synonyms additional space problem

2009-04-16 Thread Otared Kavian

Hi Thomas,

I tested your example: indeed in the latest mkii the problem you  
mention appears (however it doesn't in the latest mkiv, nor in mkii  
ConTeXt  ver: 2009.01.18 14:39 MKII  fmt: 2009.2.19  int: english/ 
english).


A temporary solution (not in the spirit of ConTeXt though…) is the  
following: add a \vphantom before the first occurence of the synonim,  
that is

\vphantom{\abs}
assuming that \abs is already defined: rewriting your example one gets:

\definesynonyms[testAbbrev][testAbbrevs][\infull]
%\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
\testAbbrev[abs]{\sc abs}{Antiblockiersystem}

\starttext
This is a test.\vphantom{\abs}
Ausfall des \abs\ und \endgraf % +1 space
Ausfall des \abs\ und  % OK

Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
Ausfall des \infull{abs} (\abs)  %% same behavior

\page

Ausfall des \abs\ und \endgraf % OK
Ausfall des \abs\ und  % OK

\stoptext

Best regards: OK


On 16 avr. 09, at 12:50, Thomas Floeren wrote:



Hello,

I have a problem with synonyms in recent context betas:

At the first occurrence of a synonym in a document there is an  
additional horizontal white space in front of the synonym.


The space does not show up in further occurrences.

Minimal:

% coding: utf-8
\enableregime[utf]

\definesynonyms[testAbbrev][testAbbrevs][\infull]
%\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
\testAbbrev[abs]{\sc abs}{Antiblockiersystem}

\starttext

Ausfall des \abs\ und \endgraf % +1 space
Ausfall des \abs\ und  % OK

%Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
%Ausfall des \infull{abs} (\abs)  %% same behavior

\page

Ausfall des \abs\ und \endgraf % OK
Ausfall des \abs\ und  % OK

\stoptext

ConTeXt  ver: 2009.04.15 12:15 MKII  fmt: 2009.4.16  int: english/ 
english


Same thing with the version from 13.4.2009.
contextlive (2009.03.06) however does not show the problem.


Is there any solution around?

Thanks in advance

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
___


___
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] Bugs in latest beta: \Bbb broken

2009-04-16 Thread Hans Hagen

Otared Kavian wrote:

Hi Hans,

It seems that in the latest beta (mkiv) the command \Bbb is broken (but 
it works fine in mkii).

Minimal example:

\starttext
The set ${\Bbb C}$ is the set of complex numbers.
\stoptext


i'll add

\let\Bbb\mathblackboard




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

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


[NTG-context] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren
 
Hello,

I have a problem with synonyms in recent context betas:

At the first occurrence of a synonym in a document there is an additional 
horizontal white space in front of the synonym.

The space does not show up in further occurrences.

Minimal:

% coding: utf-8
\enableregime[utf]

\definesynonyms[testAbbrev][testAbbrevs][\infull]
%\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
\testAbbrev[abs]{\sc abs}{Antiblockiersystem}

\starttext

Ausfall des \abs\ und \endgraf % +1 space
Ausfall des \abs\ und  % OK

%Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
%Ausfall des \infull{abs} (\abs)  %% same behavior

\page

Ausfall des \abs\ und \endgraf % OK
Ausfall des \abs\ und  % OK

\stoptext

ConTeXt  ver: 2009.04.15 12:15 MKII  fmt: 2009.4.16  int: english/english

Same thing with the version from 13.4.2009.
contextlive (2009.03.06) however does not show the problem.


Is there any solution around?

Thanks in advance

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] Problem with MyItemCommand

2009-04-16 Thread Hans Hagen

bbvo...@home.nl wrote:

Dear all,


Is the following example still valid for MKIV or is it a bug?

%from:
%tex/context/base/strc-itm.tex
%

\def\MyItemCommand#1{{\bf#1}\quad}


\unexpanded\def...

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

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


[NTG-context] problems with bibliography

2009-04-16 Thread Nicolas Luchier

Bonjour,

I am using the bib and bibltx modules to manage the bibliography of my  
articles. All was fine up to just recently where no more reference  
seems to be made any more in my current writing (half the article is  
OK). The \cite command return empty brackets [] (even when I wrote the  
wrong reference, there usually always had a number) and no new line is  
created in the \placepublications[criterium=all] command (or  
\completepublications for that matter). Things seem to be done  
properly though.


I am running ConTeXt  ver: 2008.05.21

Would anybody have a clue on what is going on?

Thanks,
Nicolas Luchier
___
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] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren
Thanks for the phantom hint!

I made a macro that I'll put at the beginning of each component file, after
the chapter header:
\def\synCorr{\vphantom{}\vskip-\lineheight}

I think this will do it for the moment.

Thanks and Greetings
Thomas



Otared Kavian  scribbled on Thursday, April 16, 2009
1:14 PM:

> Hi Thomas,
> 
> I tested your example: indeed in the latest mkii the problem you
> mention appears (however it doesn't in the latest mkiv, nor in mkii
> ConTeXt  ver: 2009.01.18 14:39 MKII  fmt: 2009.2.19  int: english/
> english).
> 
> A temporary solution (not in the spirit of ConTeXt though…) is the
> following: add a \vphantom before the first occurence of the synonim,
> that is
> \vphantom{\abs}
> assuming that \abs is already defined: rewriting your example one
> gets: 
> 
> \definesynonyms[testAbbrev][testAbbrevs][\infull]
> %\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
> \testAbbrev[abs]{\sc abs}{Antiblockiersystem}
> 
> \starttext
> This is a test.\vphantom{\abs}
> Ausfall des \abs\ und \endgraf % +1 space
> Ausfall des \abs\ und  % OK
> 
> Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
> Ausfall des \infull{abs} (\abs)  %% same behavior
> 
> \page
> 
> Ausfall des \abs\ und \endgraf % OK
> Ausfall des \abs\ und  % OK
> 
> \stoptext
> 
> Best regards: OK
> 
> 
> On 16 avr. 09, at 12:50, Thomas Floeren wrote:
> 
>> 
>> Hello,
>> 
>> I have a problem with synonyms in recent context betas:
>> 
>> At the first occurrence of a synonym in a document there is an
>> additional horizontal white space in front of the synonym.
>> 
>> The space does not show up in further occurrences.
>> 
>> Minimal:
>> 
>> % coding: utf-8
>> \enableregime[utf]
>> 
>> \definesynonyms[testAbbrev][testAbbrevs][\infull]
>> %\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
>> \testAbbrev[abs]{\sc abs}{Antiblockiersystem}
>> 
>> \starttext
>> 
>> Ausfall des \abs\ und \endgraf % +1 space
>> Ausfall des \abs\ und  % OK
>> 
>> %Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
>> %Ausfall des \infull{abs} (\abs)  %% same behavior
>> 
>> \page
>> 
>> Ausfall des \abs\ und \endgraf % OK
>> Ausfall des \abs\ und  % OK
>> 
>> \stoptext
>> 
>> ConTeXt  ver: 2009.04.15 12:15 MKII  fmt: 2009.4.16  int: english/
>> english
>> 
>> Same thing with the version from 13.4.2009.
>> contextlive (2009.03.06) however does not show the problem.
>> 
>> 
>> Is there any solution around?
>> 
>> Thanks in advance
>> 
>> 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
>>
__
_

___
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] problems with bibliography

2009-04-16 Thread Taco Hoekwater


Nicolas Luchier wrote:
> Bonjour,
> 
> I am using the bib and bibltx modules to manage the bibliography of my
> articles. All was fine up to just recently where no more reference seems
> to be made any more in my current writing (half the article is OK). The
> \cite command return empty brackets [] (even when I wrote the wrong
> reference, there usually always had a number) and no new line is created
> in the \placepublications[criterium=all] command (or
> \completepublications for that matter). Things seem to be done properly
> though.
> 
> I am running ConTeXt  ver: 2008.05.21
> 
> Would anybody have a clue on what is going on?

Not enough information for a good answer, but you should check to make
sure there are no problematic entries in the bbl file. Perhaps you added
a citation recently and now the bbl reader is confused because there is
an unrecognized macro or stray dollar sign, something like 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] problems with bibliography

2009-04-16 Thread Aditya Mahajan

On Thu, 16 Apr 2009, Nicolas Luchier wrote:


Bonjour,

I am using the bib and bibltx modules to manage the bibliography of my 
articles. All was fine up to just recently where no more reference seems to 
be made any more in my current writing (half the article is OK). The \cite 
command return empty brackets [] (even when I wrote the wrong reference, 
there usually always had a number) and no new line is created in the 
\placepublications[criterium=all] command (or \completepublications for that 
matter). Things seem to be done properly though.


I am running ConTeXt  ver: 2008.05.21

^^^

Did you change anything in your system recently? There have been some 
changes in MkIV that affect the bib module, but you are using an older 
version of context, so should not be affect by the recent changes.



Would anybody have a clue on what is going on?


Can you create a minimal example showing the problem? Usually, such 
problems arise due to a missing [criterium=all] but you have it.


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] MkII synonyms additional space problem

2009-04-16 Thread Hans Hagen

Thomas Floeren wrote:

Thanks for the phantom hint!

I made a macro that I'll put at the beginning of each component file, after
the chapter header:
\def\synCorr{\vphantom{}\vskip-\lineheight}

I think this will do it for the moment.


it's fixed in the 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] button alignment question

2009-04-16 Thread Hans Hagen

Alan Stone wrote:

Hi,

How do you keep the footer buttons between the footer's top and bottom ?

\showframe

\def\myHeaderButton{\interactionbuttons[width=2cm,height=\headerheight][OK]}
\def\myFooterButton{\interactionbuttons[width=2cm,height=\footerheight][OK]}

\setupinteraction[state=start]

\setupheadertexts[text][aaa][aaa]
\setupheadertexts[margin][\myHeaderButton][\myHeaderButton]

\setupfootertexts[text][ppp][ppp]
\setupfootertexts[margin][\myFooterButton][\myFooterButton]

\starttext
test
\stoptext



\setupfooter[before=\vfill,after=\vfill] or alternatively use the menus 
and top/bottom areas


-
  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] problems with bibliography

2009-04-16 Thread Nicolas Luchier

Thank you for your quick answers.

Following Taco suggestion, I used a former biblio.bib which doesn't  
cause any problem in a former article (25 entry in the article  
bibliography and I recompiled it ti check wether something new could  
happen, but everything ran fine). Since I did add some citations for  
this new article (through Zotero BTW, but all my .bib has been done  
this way), some entries are missing for my new article but the number  
are nonetheless reserved, except from the last 4 citations that still  
produces empty brackets and no reserved line in the \placepublications  
command.


I didn't change anything in the system recently.

Create a minimal example will be difficult, since the behavior changed  
mid article :

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=biblio]
\starttext
\section{some blabla part I}
sub and subsubsection with some \cite command in them. Everything is  
fine.

\Section{some blabla part II}
subsection with \cite command that produces empty brackets.
\section{bibliography}
\placepublications[criterium=all]
\stoptext

Now, if I move the faulty \cite from the part II to part I, they still  
produce empty bracket.


Looking into the log, I found these warnings : warning: cite argument  
 unknown on 139, when the command is \cite[]. This doesn't  
come from the fact that  is not in the .bib file since  other  
references are also missing but no warning is produced.


I really don't get it.

Nicolas

Le 16 Apr 2009 à 15:48, Aditya Mahajan a écrit :


On Thu, 16 Apr 2009, Nicolas Luchier wrote:


Bonjour,

I am using the bib and bibltx modules to manage the bibliography of  
my articles. All was fine up to just recently where no more  
reference seems to be made any more in my current writing (half the  
article is OK). The \cite command return empty brackets [] (even  
when I wrote the wrong reference, there usually always had a  
number) and no new line is created in the  
\placepublications[criterium=all] command (or \completepublications  
for that matter). Things seem to be done properly though.


I am running ConTeXt  ver: 2008.05.21

   ^^^

Did you change anything in your system recently? There have been  
some changes in MkIV that affect the bib module, but you are using  
an older version of context, so should not be affect by the recent  
changes.



Would anybody have a clue on what is going on?


Can you create a minimal example showing the problem? Usually, such  
problems arise due to a missing [criterium=all] but you have it.


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
___


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

2009-04-16 Thread Yanrui Li
2009/4/16 Hans Hagen :
> Yanrui Li wrote:
>>
>> Header and footer appear in the chapter page. Isn't this problem fixed?
>
> also fixed in next beta
>

Thanks very much. Now I found a new bug with \setupinteraction in latest beta.

\setupinteraction
  [state=start,focus=standard]

\starttext
\chapter{Test}

\input knuth
\stoptext

When I use "standard" as  the value of focus, a strange string of "0 0
0" appeard under the head number, such as:

1  Test
000

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.16 15:20)
___
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] Bug in mkiv: \setupinteraction (Was: new structure code)

2009-04-16 Thread Otared Kavian

Hi Yanrui,

I tested your code on Mac OS X 10.5.6 with the latest beta (ConTeXt   
ver: 2009.04.15 12:15 MKIV  fmt: 2009.4.15  int: english/english): I  
don't see the problem you mention, but the interaction is not  
activated (while with mkii everything is as expected). Here is the  
code I tested:


\setuppapersize[S6][S6]
\setupinteraction
 [state=start,focus=standard]
\starttext
\placecontent
\page
\chapter{Test}
\input knuth
\stoptext

So there is a bug with mkiv and \setupinteraction, with or without the  
option on "focus=standard".


Best regards: OK


On 16 avr. 09, at 16:44, Yanrui Li wrote:


2009/4/16 Hans Hagen :

Yanrui Li wrote:


Header and footer appear in the chapter page. Isn't this problem  
fixed?


also fixed in next beta



Thanks very much. Now I found a new bug with \setupinteraction in  
latest beta.


\setupinteraction
 [state=start,focus=standard]

\starttext
\chapter{Test}

\input knuth
\stoptext

When I use "standard" as  the value of focus, a strange string of "0 0
0" appeard under the head number, such as:

1  Test
000

--
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.16 15:20)
___
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] Bug in mkiv: \setupinteraction (Was: new structure code)

2009-04-16 Thread Yanrui Li
2009/4/16 Otared Kavian :
> Hi Yanrui,
>
> I tested your code on Mac OS X 10.5.6 with the latest beta (ConTeXt  ver:
> 2009.04.15 12:15 MKIV  fmt: 2009.4.15  int: english/english): I don't see
> the problem you mention, but the interaction is not activated (while with
> mkii everything is as expected). Here is the code I tested:
>
> \setuppapersize[S6][S6]
> \setupinteraction
>  [state=start,focus=standard]
> \starttext
> \placecontent
> \page
> \chapter{Test}
> \input knuth
> \stoptext
>
> So there is a bug with mkiv and \setupinteraction, with or without the
> option on "focus=standard".
>
> Best regards: OK
>
>
> On 16 avr. 09, at 16:44, Yanrui Li wrote:
>
>> 2009/4/16 Hans Hagen :
>>>
>>> Yanrui Li wrote:

 Header and footer appear in the chapter page. Isn't this problem fixed?
>>>
>>> also fixed in next beta
>>>
>>
>> Thanks very much. Now I found a new bug with \setupinteraction in latest
>> beta.
>>
>> \setupinteraction
>>  [state=start,focus=standard]
>>
>> \starttext
>> \chapter{Test}
>>
>> \input knuth
>> \stoptext
>>
>> When I use "standard" as  the value of focus, a strange string of "0 0
>> 0" appeard under the head number, such as:
>>
>> 1  Test
>> 000
>>

Hi,

My ConTeXt version is 2009.04.16.
When it was 2009.4.15, there was no the problem with "0 0 0".

-- 
Best wishes,
Li Yanrui

* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.16 15:20)
___
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] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren

This is really great.
Thanks!

I'm aware that actually the MkII probs must be a paine in the ass, as  
youre quite heavily working on the MkIV.
I will change to MkIV as soon as possible, but for the moment I have  
to produce and I have a deadline (30.4.), so MkII is my choice ;) Hope  
you understand this.


Greetings
and Thanks for the great support on this list.

Thomas


On Apr 16, 2009, at 16:05 , Hans Hagen wrote:


Thomas Floeren wrote:

Thanks for the phantom hint!
I made a macro that I'll put at the beginning of each component  
file, after

the chapter header:
\def\synCorr{\vphantom{}\vskip- 
\lineheight}

I think this will do it for the moment.


it's fixed in the 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
___


___
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] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren

This is great!

Thanks for having it integrated into the beta.

And generally spoken  a thousand thanks (ok, maybe a few hundreds) to  
all the contributing people on this list, which has become my primary  
source of ... thinking further. :)

and of course of information of any kind:)

Greets
Tomas



Thomas Floeren wrote:

Thanks for the phantom hint!
I made a macro that I'll put at the beginning of each component  
file, after

the chapter header:
\def\synCorr{\vphantom{}\vskip- 
\lineheight}

I think this will do it for the moment.


it's fixed in the 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
___


___
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] MkII synonyms additional space problem

2009-04-16 Thread Hans Hagen

Thomas Floeren wrote:

This is really great.
Thanks!

I'm aware that actually the MkII probs must be a paine in the ass, as 
youre quite heavily working on the MkIV.


actually the space was introduced recently when i removed the mkiv code

some files come as .tex .mkii and mkiv where the later two hook into the 
first one


however, since we split the code base more drastically some of these are 
kind of reverted e.g. core-syn.mkii/mkiv was removed and the mkii code 
merged back in core-syn.tex; in mkiv synonyms are managed differently 
and part of the strc-* modules


I will change to MkIV as soon as possible, but for the moment I have to 
produce and I have a deadline (30.4.), so MkII is my choice ;) Hope you 
understand this.


no problem; mkii will be around for a long 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
___


[NTG-context] Files for verbatim output of Python source, zc.buildout and Apache config files

2009-04-16 Thread Drazen Baic
Hello,

I'm using MKIV and needed syntax highlighting for a few source and config files.
I read on the Wiki and on this list that it should be pretty easy to do this in
Lua and although I never wrote anything in Lua I just tried it.

Maybe the result will be of use for somebody so I'm posting them to this list. I
read on the Wiki that the best place for putting custom formatter files would be
the context distribution or http://modules.contextgarden.net but as I'm pretty
sure that some stuff is missing and I'm sure there are some bugs included I'm
just posting them here.

Would it be OK to put the files in a section on the Wiki to start something like
a repository for verb-*.lua files where it would be easy to extend and correct
them?

I have created verb-*.lua files for pretty printing Python source code Apache
http.conf and zc.buildout config files. For the zc.buildout files I used a
simple solution and just defined the keywords that appear in a standard Plone
buildout.cfg file. I hope to finish two additional verbatim files for XML and
Shell scripts in the next days.

As I don't have any experience in writing Lua code I chose to use the
tex/context/base/verb-*.lua and the verb-cpp.lua files posted by Shen Chen in
http://archive.contextgarden.net/message/20081002.173802.460c46fe.en.html) for
a start. Additionally I used the vim syntax files and the official Apache
documentation.

Here is an overview of what is covered:

The verb-apa.lua file distinguishes between the following five states:
- declarations
- strings
- sections (like  and )
- comments
- options

The verb-py.lua file distinguishes between the following five states:
- all statements, repeats, conditionals and operators
- strings (multi line comment wit ''' or """ are supported)
- preconditions (import, from, as)
- comments
- builtins

The verb-py.cfg file distinguishes between the following four states:
- sections
- variables
- keywords
- comments

I've attached a minimal test file to show how they work. Just put everything in
one directory and execute

texexec --lua test.tex

Regards,
Drazen


test.tex
Description: TeX document


verb-apa.lua
Description: Binary data


verb-cfg.lua
Description: Binary data


verb-py.lua
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new structure code

2009-04-16 Thread Hans Hagen

Yanrui Li wrote:

2009/4/16 Hans Hagen :

Yanrui Li wrote:

Header and footer appear in the chapter page. Isn't this problem fixed?

also fixed in next beta



Thanks very much. Now I found a new bug with \setupinteraction in latest beta.


ok, fixed in next beta

ps. the backend code has been reshuffled in mkiv, no longer spec-* files 
and pdf only (although in the future we can support more backend formats 
 when luatex provides them)



-
  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] context mkiv nomenclature problem (bug)

2009-04-16 Thread Hans Hagen

Thomas Prochaska wrote:


ok, i deleted all files except my .tex .bib files.
now this error occurs.


i sent a mkiv hack to taco who has to check it and integrate it in the 
bib zip


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
___


[NTG-context] new beta

2009-04-16 Thread Hans Hagen

Hi,

I uploaded a beta matching luatex 0.39 (+ some fixes)

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-04-16 Thread Eythan Weg


Hi, 

With the latest beta running under  luatex 0.39 I cannot
compile the simplest of files.  With 0.38 they run
fine. Also plain tex runs ok.

Here is where it stops:

local/share/texmf/tex/context/base/type-otf.tex \
(/usr/local/share/texmf/tex/context/base/type-otf.mkiv))\
(/usr/local/share/texmf/tex/context/base/type-otf.mkivMTXrun\
| fatal error, no return code, message: luatex: execution interrupted

Thanks, Eythan 



Hans Hagen 
Thu, 16 Apr 2009 23:33:40 +0200

   Hi,
   
   I uploaded a beta matching luatex 0.39 (+ some fixes)
   
   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
   
___

___
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-04-16 Thread Wei-Wei Guo

Hi Hans,

Something are not working here with the latest beta on luatex 0.39.

1. The following two settings has no effect.

   % lines under headers.
   \setupbackgrounds
  [header][text]
  [frame=off,bottomframe=on,rulethickness=1.5pt]

   % Text inserted in Contents
   \writebetweenlist[section]{Text}

2. Footnote number has a weird triangle mark beside, like "1▲".

3. \completepublications causes error though text citations are fine. Here is 
the error:

   ! Undefined control sequence.
   \preparebibrefprefix ...lltoclevels \alltoclevels
 \let \savedcurrentlevel 
\c...
   \typesetpubslist ... {}\else \preparebibrefprefix
 \fi \ifsortbycite 
\fillloc...
   \dodoplacepublications ...sttrue \typesetpubslist
 \inpublistfalse \endgroup
   
  \stopappendices
   l.80 \stopappendices


Best wishes,
Wei-Wei


Hans Hagen 写道:

Hi,

I uploaded a beta matching luatex 0.39 (+ some fixes)

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
___