[NTG-context] Which version to use for MathML?

2012-12-01 Thread Chen Shen
Hi all,

I tried a few mathml examples with 2012.05.30 and the latest beta (test
script attached).

The 20120530 version fails with eqn1, which uses presentation mathml, but
works with eqn using content mathml.
The latest beta generates doesn't work with either equations.

I see a lot of mathml related changes recently, with the file x-mathml.mkiv
come and go away.
Which version should I go with to get presentation mathml work?

thanks and regards,
shenchen
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] problem with t-filter/t-vim

2010-10-19 Thread Chen Shen
Hi Adityam,

I am using the t-filter/t-vim module, and got stuck with two problems with
it.
1. everything works fine if there is only one \definevimtyping declaration.
However, if i declare two of them, as in the following:

%%%
\definevimtyping[PythonCode][syntax=python]
\definevimtyping[CPPCode][syntax=cpp]

\startPythonCode
... % Code A
\stopPythonCode

\startPythonCode
... % Code B
\stopPythonCode
%%%

The counter for the temporary files is never incremented. So there is only
"jobname-externalfilter-PythonCode-0.tmp" in the directory.
Consequently, Code B appears twice in the produced PDF, while Code A never
appears.

2. Every line in the Python code becomes a new paragraph in ConTeXt. I
wonder if this could be changed.
I am using \setupwitespace[line], so the spacing between two lines of source
is too large.

I am using the dev/ branch in the github repository.
Thank you very much.

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


Re: [NTG-context] extra row at the end of matrix

2010-09-04 Thread Chen Shen
I wonder if there is a quick fix or work-around for this?
Thanks a lot!

shenchen

On Thu, Sep 2, 2010 at 2:40 PM, Aditya Mahajan  wrote:

> On Thu, 2 Sep 2010, Chen Shen wrote:
>
>  The matrix from the following example has an extra row at the end.
>>
>> =
>> \starttext
>> \startformula
>>  A = \startmatrix[left={\left(\,},right={\,\right)}]
>>  \NC 1 \NC 2 \NR
>>  \NC 3 \NC 4 \NR
>>  \stopmatrix
>> \stopformula
>> \stoptext
>> =
>>
>> I am using mkiv version:
>>  MTXrun | current version: 2010.07.30 11:35
>>  This is LuaTeX, Version beta-0.62.0-2010082314
>>
>> Removing the last \NR fixes the problem, but this is certainly different
>> from the previous mkiv/mkii behavior.
>> I wonder this is an intended change, or is it a bug ?
>>
>
> This is a bug.
>
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] vim syntax highlighting in MKIV

2010-09-04 Thread Chen Shen
Hi Aditya,

Thanks for the great module!

There is a problem using t-vim/t-filter with the current and beta versions
of ConTeXt.
I was trying the Matlab example (tests/vim/matlab.tex), ConTeXt complains
that \startMATLAB is not defined,
but the execution can continue, and the correct pdf is produced.

regards,
shenchen

Below is the log message:

--
system  : module vim loaded
(t-vim.tex
system  : module filter loaded
(t-filter.tex)
color   : system hex is loaded
(/opt/home/hash/context/tex/texmf-context/tex/context/base/colo-hex.tex
(/opt/home/hash/context/tex/texmf-context/tex/context/base/colo-hex.mkiv)))
publications: loading formatting style from bxml-apa
(/opt/home/hash/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file test.tex at line 6
! Undefined control sequence.

system  > error on line 7 in file test.tex: Undefined control
sequence ...

 1 \setupcolors[state=start]
 2 \usemodule [vim]
 3
 4 \definevimtyping  [MATLAB]  [syntax=matlab]
 5
 6 \starttext
 7 >>  \startMATLAB
 8 function russell_demo()
 9 % Do the example in ch 17 (p501) of Russell and Norvig
10 % (1,1) is top left corner.
11 r = 3; c = 4; p = 0.8; action_cost = -1/25;
12 obstacle = zeros(r,c); obstacle(2,2)=1;
13 terminal = zeros(r,c); terminal(1,4)=1; terminal(2,4)=1;
14 absorb = 1;
15 wrap_around = 0;
16 noop = 0;
17 T = mk_grid_world(r, c, p, obstacle, terminal, absorb, wrap_around,
noop);

 \v!unknwon

\p!compareprocessaction ...]->\edef \!!stringb {#1
  }\ifx \!!stringb
\s!defaul...
\next1 #1,->\p!doprocessaction {#1}
   \doprocesscommaitem
\processnextcommalist ...odoprocesscommaitem #4#5,
  ]\relax \global \advance
\...
\dostartexternalfilter ...ter!!method \zerocount ]
  \doifelse
{\externalfilter...


l.7 \startMATLAB

?

(test-externalfilter-MATLAB-0.vimout
Overfull \hbox (30.53203pt too wide) in paragraph at lines 10--10
[][][]\*modern12pf* T = mk_grid_world(r, c, p, ob-sta-cle, ter-mi-nal,
ab-sorb, wrap_around, noop);
--



On Sun, Jun 27, 2010 at 11:49 PM, Aditya Mahajan  wrote:

> On Sun, 27 Jun 2010, Peter Münster wrote:
>
>  On Sun, Jun 27 2010, Aditya Mahajan wrote:
>>
>>  In the spirit of MkIV, I have attempted to redo the vim module from
>>> scratch.
>>>
>>> http://github.com/adityam/filter
>>>
>>> Download t-vim.tex t-filter.tex and 2context.vim. For testing just place
>>> them in the current directory.
>>>
>>
>> Hello Aditya,
>>
>> Thanks for these great modules!  It would be nice to make them available
>> in
>> the minimals!
>>
>
> I will add them to the garden, once I the features stabalize a bit.
>
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] multiple flow charts in the same document

2010-09-04 Thread Chen Shen
Hi all,

I want to place multiple flow charts in the same document.
However, connection comments displays correctly in the first chart, but
disappears in the second chart.

Below is a minimum example adapted from the wiki.

I am using mkiv,
MTXrun | current version: 2010.07.30 11:35
This is LuaTeX, Version beta-0.62.0-2010082314

Any suggestions? Thanks a lot!

regards,
shenchen


--
\usemodule[chart]

\starttext
\setupFLOWcharts[height=3\lineheight]

\startFLOWchart[example]
\startFLOWcell
  \name {flow}
  \location {1,1}
  \text {Flow}
  \connection [bt] {chart}
\comment[r] {abc}
\stopFLOWcell
\startFLOWcell
  \name {chart}
  \location{1,2}
  \text {Charts}
\stopFLOWcell
\stopFLOWchart
\FLOWchart[example]

\startFLOWchart[clone]
\startFLOWcell
  \name {flow}
  \location {1,1}
  \text {Flow}
  \connection [bt] {chart}
\comment[r] {abc}
\stopFLOWcell
\startFLOWcell
  \name {chart}
  \location{1,2}
  \text {Charts}
\stopFLOWcell
\stopFLOWchart
\FLOWchart[clone]

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


Re: [NTG-context] mathbold greek letters

2010-09-02 Thread Chen Shen
Yes I use mkiv. Thanks for the hint. Will try opentype fonts later.

shenchen


On Thu, Sep 2, 2010 at 2:49 PM, Aditya Mahajan  wrote:

> On Thu, 2 Sep 2010, Chen Shen wrote:
>
>  Hi all,
>>
>> First I admit that I've never understood the typescript part of ConTeXt...
>> I've been using the following recipe for boldmath.
>> The latin letters appears fine in bold italic font, but the greek letters
>> do
>> not appear.
>> ---
>> \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [modern]
>> [encoding=texnansi]
>> \setupbodyfont[10pt]
>>
>> \starttext
>> $a b c \alpha \beta \phi$
>>
>> $\bi a b c \alpha \beta \phi$
>> \stoptext
>> ---
>>
>> Looking at the log file, I found the following error message:
>>
>> ---
>> Missing character: There is no α (U+03B1) in font LMMath10-Regular!
>> Missing character: There is no α (U+03B1) in font LMMath10-Regular!
>> Missing character: There is no β (U+03B2) in font LMMath10-Regular!
>> Missing character: There is no β (U+03B2) in font LMMath10-Regular!
>> Missing character: There is no ϕ (U+03D5) in font LMMath10-Regular!
>> ---
>>
>
> Are you using MkIV? If so, an easier solution will be to use an opentype
> math font, like xits or cambria or asana math. Then you can simply use
>
> $\bf a \alpha$
>
> to get bold math.
>
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] mathbold greek letters

2010-09-01 Thread Chen Shen
Hi all,

First I admit that I've never understood the typescript part of ConTeXt...
I've been using the following recipe for boldmath.
The latin letters appears fine in bold italic font, but the greek letters do
not appear.
---
\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [modern]
[encoding=texnansi]
\setupbodyfont[10pt]

\starttext
$a b c \alpha \beta \phi$

$\bi a b c \alpha \beta \phi$
\stoptext
---

Looking at the log file, I found the following error message:

---
Missing character: There is no α (U+03B1) in font LMMath10-Regular!
Missing character: There is no α (U+03B1) in font LMMath10-Regular!
Missing character: There is no β (U+03B2) in font LMMath10-Regular!
Missing character: There is no β (U+03B2) in font LMMath10-Regular!
Missing character: There is no ϕ (U+03D5) in font LMMath10-Regular!
---

Apologize for dumb questions.
I wonder why LMMath Regular is looked-up here, I thought we should be
looking-up LMMathItalic10-Bold?

Thanks a lot.

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


[NTG-context] extra row at the end of matrix

2010-09-01 Thread Chen Shen
The matrix from the following example has an extra row at the end.

=
\starttext
\startformula
  A = \startmatrix[left={\left(\,},right={\,\right)}]
   \NC 1 \NC 2 \NR
   \NC 3 \NC 4 \NR
  \stopmatrix
\stopformula
\stoptext
=

I am using mkiv version:
  MTXrun | current version: 2010.07.30 11:35
  This is LuaTeX, Version beta-0.62.0-2010082314

Removing the last \NR fixes the problem, but this is certainly different
from the previous mkiv/mkii behavior.
I wonder this is an intended change, or is it a bug ?

Thanks a lot!

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


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Chen Shen
Thanks a lot Peter

shenchen

On Sun, Nov 29, 2009 at 12:36 AM, Peter Münster  wrote:

> On Wed, Nov 11 2009, Bernhard Rosensteiner wrote:
> >
> > \definereferenceformat[fig][left=(, right=), label=reffigure,
> text={figure}]
> >
> > produces no output of text (in this case "figure") when i do
> > \fig[something]. Is this a bug in mkiv? I use luatex 0.44
>
> A workaround:
>
> \definereferenceformat[fig][left=(, right=), label=reffigure]
> \setuplabeltext[en][reffigure=figure]
> \starttext
> \placefigure[][something]{bla}{bla}
> \fig[something]
> \stoptext
>
> Cheers, Peter
>
> --
> Contact information: http://pmrb.free.fr/contact/
>
>
> ___
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Verbatim problem in mkiv

2009-11-28 Thread Chen Shen
Hi,

I'm having problem with verbatim typing with linenumber under mkiv.
The following code works fine without location=text turned off, but fails
when it's turned on.
The text 0279699410 appears at the beginning of every alternate line.
Thanks a lot.

regards,
shenchen

= start ===

\setuplinenumbering[location=text]

\starttext

\starttyping[numbering=line]
a
a
a
\stoptyping

\stoptext

=  end  ===
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] definereferenceformat problem...

2009-11-28 Thread Chen Shen
Hi all,

I wonder whether this issue with text in \definereferenceformat is a bug, or
if I missed something. Thanks a lot.

shenchen

On Wed, Nov 25, 2009 at 9:50 AM, Chen Shen  wrote:

> I have the same problem with the latest mkiv beta (2009.11.25).
> left/right works fine, but text does not.
>
> regards,
> shenchen
>
>
> On Thu, Nov 12, 2009 at 1:26 AM, Bernhard Rosensteiner <
> brosenstei...@gmail.com> wrote:
>
>> Hello,
>>
>> \definereferenceformat[fig][left=(, right=), label=reffigure,
>> text={figure}]
>>
>> produces no output of text (in this case "figure") when i do
>> \fig[something]. Is this a bug in mkiv? I use luatex 0.44
>>
>> best regards
>> Bernhard
>>
>> ___
>> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] definereferenceformat problem...

2009-11-24 Thread Chen Shen
I have the same problem with the latest mkiv beta (2009.11.25).
left/right works fine, but text does not.

regards,
shenchen

On Thu, Nov 12, 2009 at 1:26 AM, Bernhard Rosensteiner <
brosenstei...@gmail.com> wrote:

> Hello,
>
> \definereferenceformat[fig][left=(, right=), label=reffigure,
> text={figure}]
>
> produces no output of text (in this case "figure") when i do
> \fig[something]. Is this a bug in mkiv? I use luatex 0.44
>
> best regards
> Bernhard
>
> ___
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bib module problem with mkiv

2009-11-23 Thread Chen Shen
Hi all,

I tried digging mailing list and the source file. I am afraid that the
bibl-tra module has a few problems:

==
\usemodule[bibl-tra]
\setupbibtex[database=xampl]
\starttext

\section{aaa}
\cite[a]
\placepublications

\section{bbb}
\cite[b]
\placepublications

\stoptext
===

1. Documentation says that without a criterium option, only bibl cited in
local section is included in the list, but actually all cited bibl are
listed.

2. In MkII, the solutioin to problem 1 is to use [criterium=section] in
\placepublications, but this does not work in MkIV.

3. \placepublications only works once in the document, the second time you
call this macro, it outputs nothing.

I wonder if there is a chance to see this fixed in the forthcoming beta.
Otherwise, I will need to revert to some (very) old version, as I need
per-chapter reference lists. Thanks a lot~

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


[NTG-context] bib module problem with mkiv

2009-11-20 Thread Chen Shen
Hi all,

I was trying the following bib example on MkIV beta 2009.11.20 and
luatex beta-0.44.0-2009103007.
There isn't an apparent error message, but neither the bib reference or the
publication list appears in the pdf.

Observations:
1. In MkII, it works well.
2. In MkIV, if you use the [criterium=all] option, both bib ref and pub list
show properly. Other criterium, e.g. [criterium=section] doesn't work.

thanks a lot.

regards,
shenchen

= test.tex ===
\usemodule[bib,bibltx]
\setupbibtex[database=xampl]
\starttext

  \cite[a] .
  \completepublications
  %\completepublications[criterium=all]

\stoptext


= xampl.bib ===
@Book{a,
  editor =   {John D. Barnsford and Ann L. Brown and Rodney R. Cocking},
  title ={{How people learn: Brain, mind, experience, and school}},
  publisher ={National Academy Press},
  year = {2000},
  address =  {Washington, DC}
}

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


Re: [NTG-context] problem with mathaligned in MkIV

2009-11-15 Thread Chen Shen
I tried the beta version of 2009.11.13. Seems that Hans has fixed this in
MkIV.
Thanks a lot, Aditya and Hans.

best regards,
shenchen

On Thu, Nov 5, 2009 at 11:17 AM, Aditya Mahajan  wrote:

> On Wed, 4 Nov 2009, Aditya Mahajan wrote:
>
>  On Thu, 5 Nov 2009, Chen Shen wrote:
>>
>>  I was using the following macro from Aditya's Mathalign "My Way".
>>>
>>> It worked great with MkII and old versions of MkIV.
>>>
>>>
>>> However, it failed in recent versions of MkIV (e.g. 2009.11.2).
>>>
>>> Apparently, the \makesectionnumber and \rawreference macros have be
>>> removed.
>>>
>>> I wonder if anyone can give pointers on how to fix this.
>>>
>>
>> A cleaner way to achieve the same output is
>>
>> \starttext
>>
>> \startsubformulas[eq:sub]
>> \placesubformula
>>
>
> Sorry, this should have been \placeformula.
>
>
>  \startformula \startalign
>> \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
>> \NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
>> \stopalign \stopformula
>> \stopsubformulas
>>
>> \stoptext
>>
>> but this seems to be broken in mkiv. Hans, any idea what is going wrong
>> here?
>>
>> 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  : http://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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] problem with mathaligned in MkIV

2009-11-04 Thread Chen Shen
Hi all,


I was using the following macro from Aditya's Mathalign "My Way".

It worked great with MkII and old versions of MkIV.


However, it failed in recent versions of MkIV (e.g. 2009.11.2).

Apparently, the \makesectionnumber and \rawreference macros have be removed.

I wonder if anyone can give pointers on how to fix this.

Thanks a lot.


best regards,

shenchen



%%% begin %%%\def\placesubformulawithnumber{%

\dodoubleempty\doplacesubformulawithnumber}


\def\doplacesubformulawithnumber[#1][#2]%#2 gobbles spaces

{\incrementnumber[formula]

\makesectionnumber[formula]

\iffirstargument

\rawreference{for}{#1}{\composedsectionnumber}

\fi\placesubformula}



\placesubformulawithnumber

\startformula \startalign

\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]

\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]

\stopalign \stopformula

%%% end %%%
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] possible to run minimal in cygwin?

2009-11-02 Thread Chen Shen
Hi Bryant,

Thanks a lot! I got it working with your suggestion.
The exact sequence was:
 1. install ConTeXt in DOS cmd
 2. run setuptex.bat in DOS cmd
 3. enter cygwin by running cygwin.bat
 4. in cygwin prompt, run   context.cmd test.tex

Our docbook->pdf/html flow was developed in unix. But I need to port it to
Windows now for my colleagues.

regards,
shenchen


On Mon, Nov 2, 2009 at 11:00 PM, Bryant Eastham <
beast...@pewla.us.pewg.panasonic.com> wrote:

>  I am doing exactly the same thing as you want. I believe your problem is
> in keeping your worlds (Windows/Cygwin) straight. It appears that you have
> installed minimals “inside” cygwin (depending on whether your /usr directory
> is your cygwin /usr directory).
>
>
>
> I installed minimals “normally”, as it is a Windows application. I ran the
> context setups from Windows. Then I can build with no problems from within
> cygwin by running the minimals cmd files (although you must specify the
> extension from within cygwin). I did not have to modify any files at all.
>
>
>
> So far, no problems. Just remember to keep your path information in
> “Windows” format, not cygwin.
>
>
>
> -Bryant
>
>
>
> *From:* ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] *On
> Behalf Of *Chen Shen
> *Sent:* Monday, November 02, 2009 7:03 AM
> *To:* mailing list for ConTeXt users
> *Subject:* [NTG-context] possible to run minimal in cygwin?
>
>
>
> Hi all,
>
>
>
> I wonder if it possible to run the MSWin version of context-minimal under
> Cygwin.
>
> I want to use Makefile and other unix tools to automate my build process.
>
>
>
> I tried modifying the context/tex/setuptex script, and manually set the
> platform variable to mswin,
>
> but when I ran context.cmd, I saw the following error message. The
> texmf-cache path actually exists.
>
> Any hint? Thanks a lot!
>
>
>
> ==begin cut===
>
> [administra...@cygwin test]$ context.cmd test1
>
>
>
> Should I create the cache path
> /cygdrive/c/usr/docs/context/tex/texmf-cache? [ye
>
> s|no] [no]
>
>
>
> Should I create the cache path
> /cygdrive/c/usr/docs/context/tex/texmf-cache? [ye
>
> s|no] [no]
>
> MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
>
>
>
> ==end cut===
>
>
>
> regards,
>
> shenchen
>
>
> ___
> 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  : http://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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] possible to run minimal in cygwin?

2009-11-02 Thread Chen Shen
Hi all,

I wonder if it possible to run the MSWin version of context-minimal under
Cygwin.
I want to use Makefile and other unix tools to automate my build process.

I tried modifying the context/tex/setuptex script, and manually set the
platform variable to mswin,
but when I ran context.cmd, I saw the following error message. The
texmf-cache path actually exists.
Any hint? Thanks a lot!

==begin cut===
[administra...@cygwin test]$ context.cmd test1

Should I create the cache path /cygdrive/c/usr/docs/context/tex/texmf-cache?
[ye
s|no] [no]

Should I create the cache path /cygdrive/c/usr/docs/context/tex/texmf-cache?
[ye
s|no] [no]
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

==end cut===

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


Re: [NTG-context] new beta

2009-09-09 Thread Chen Shen
Hi,
There seems to be a new problem with mathalign, as in the minimal sample
below:
Thanks a lot.

%
\starttext
\startformula
\startalign
  \NC a \NC = b + c \NR
\stopalign
\stopformula
\stoptext
%

Version:
This is LuaTeX, Version beta-0.43.0-2009081911
ConTeXt  ver: 2009.09.09 12:49 MKIV  fmt: 2009.9.9  int: english/english

Error message:
! Improper \halign inside $$'s.
\dobothaligneqalignno ...group }\fi \fi #1\halign
  \ifcase \eqalignmode \or
t...

   \NC
l.4   \NC
  a \NC = b + c \NR


shenchen


On Wed, Sep 9, 2009 at 8:03 PM, Hans Hagen  wrote:

> Hi,
>
> I uploaded a new beta
>
> 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
___


[NTG-context] strange unknown reference problem

2009-09-07 Thread Chen Shen
Hi all,

I got a strange "unknown reference" problem with the following simple
example:

%

\starttext
\placeformula[eq:haha]
\startformula
a^2 + d^2 = c^2
\stopformula
haha \in[eq:haha]
\stoptext

%

After 3 iterations, I saw this message in the log file:
references  : unknown reference [][eq:haha]

I am using luatex beta-0.43.0-2009081911
Got the same problem with context version from 2009.6.14 to the latest beta.
I also tried deleting everything and re-install the minimal dist., but still
can't solve the problem.

I wonder if anyone else has this problem, or it only occurs to me. Thanks a
lot.

regards,
shenchen
___
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] beta

2009-03-14 Thread Chen Shen
Both problems are now fixed.Thanks a lot, Aditya and Hans.

shenchen

On Sun, Mar 15, 2009 at 2:34 AM, Aditya Mahajan  wrote:

> On Sun, 15 Mar 2009, Chen Shen wrote:
>
>  Hi Aditya,
>>
>> minimal example:
>> \starttext
>> $\Vert x \Vert$
>>
>> $\left\Vert x \right\Vert$
>> \stoptext
>>
>> When I run context, the first line passes, but no vertical bar is
>> displayed.
>> The second line triggers the following error message:
>>
>> ! Missing delimiter (. inserted).
>> 
>>  \Umathchar
>> \Vert ->\Umathchar
>>  "0 "0 "2225
>> l.4 $\left\Vert
>>   x \right\Vert$
>>
>> thanks a lot.
>>
>
> Make the following change in char-def.lua and regenerate formats.
>
> @@ -52729,8 +52729,7 @@ characters.data={
>   linebreak="ai",
>   mathspec={
>{ class="relation", name="parallel" },
> -   { class="nothing", name="Vert" },
> +   { class="delimiter", name="Vert" },
>{ class="nothing", name="Arrowvert" },
>{ class="open", name="lVert" },
>{ class="close", name="rVert" },
>
>
>
> 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] beta

2009-03-14 Thread Chen Shen
Hi Aditya,

minimal example:
\starttext
$\Vert x \Vert$

$\left\Vert x \right\Vert$
\stoptext

When I run context, the first line passes, but no vertical bar is displayed.
The second line triggers the following error message:

! Missing delimiter (. inserted).

   \Umathchar
\Vert ->\Umathchar
   "0 "0 "2225
l.4 $\left\Vert
x \right\Vert$

thanks a lot.

regards,
shenchen

On Sun, Mar 15, 2009 at 12:44 AM, Aditya Mahajan  wrote:

> On Sat, 14 Mar 2009, Chen Shen wrote:
>
>  BTW, the \Vert delimiter (double vertical bar) is missing.
>>
>
> \starttext
> $\Vert$
> \stoptext
>
> gives me \Vert. Can you give an example where it doesn't work?
>
> 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] beta

2009-03-14 Thread Chen Shen
Hi,

I encounter the same problem with all Gyre fonts as well. I am using:
MtxRun | current version: 2009.03.13 17:35
This is LuaTeX, Version snapshot-0.36.0-2009031418, build unknown

BTW, the \Vert delimiter (double vertical bar) is missing.

Regards,
shenchen

On Sat, Mar 14, 2009 at 6:20 PM, Wolfgang Schuster <
schuster.wolfg...@googlemail.com> wrote:

> Hi Hans,
>
> I discovered two problems with the beta.
>
> 1. \typescriptone is ignored in the typescripts and many fonts (e.g.
> can't be used)
>
> \starttypescript [termes,times]
>  \definetypeface [\typescriptone] [rm] [serif] [termes] [default]
> \stoptypescript
>
> 2. The new feature \getcheckedparameters acts like \get*e*parameter in
> the lua code.
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] bug: \bot and \top in markiv

2008-11-20 Thread Chen Shen
Hi,

A small problem: the definition of \bot and \top in math mode should
be interchanged. Thanks.

regards,
shenchen
___
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] Maybe there is a bug in cross references with latest beta

2008-11-11 Thread Chen Shen
I encountered the same problem. Hans has fixed it in the latest beta.

shenchen

Chen Shen wrote:
> Hi all,
>
> the following code used to work, but broke in the latest beta. \at
> works well, but \in appears as a math "member of set" symbol ( ∈ ).
>
> 
> \starttext
> \placefigure[here][abc]{xyz}{123}
>
> abc \at[abc].
> abc \in[abc].
>
> \stoptext
> 

fixed in current beta
___
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 latest beta?

2008-11-10 Thread Chen Shen
Thanks a lot for the insights. I reverted to the 2008.10.31 version
for the moment.

shenchen

On Mon, Nov 10, 2008 at 7:59 PM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> Am 10.11.2008 um 10:55 schrieb Chen Shen:
>
>> Hi all,
>>
>> the following code used to work, but broke in the latest beta. \at
>> works well, but \in appears as a math "member of set" symbol ( ∈ ).
>
> You could use the last stable for the moment.
>
>> 
>> \starttext
>> \placefigure[here][abc]{xyz}{123}
>>
>> abc \at[abc].
>> abc \in[abc].
>>
>> \stoptext
>> 
>
>
> If you still want to use the last beta use the following patch,
> Hans removed a few lines of code from enco-ini.mkiv and this
> breaks the \in command because it is redefined later in the core
> from the math commands.
>
> \def\definecommand#1 #2 %
>   {\setvalue{\string#1}{\dohandlecommand{#1}}%
>\setvalue{\characterencoding\string#1}{#2}}
>
> \def\dohandlecommand#1%
>{\csname
>   \ifcsname\characterencoding#1\endcsname
> \characterencoding
>   \else
> \nocharacterencoding
>   \fi
> #1\endcsname}
>
> \definecommand in{\doinatreference\currenttextreference}
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] bug in latest beta?

2008-11-10 Thread Chen Shen
Hi all,

the following code used to work, but broke in the latest beta. \at
works well, but \in appears as a math "member of set" symbol ( ∈ ).


\starttext
\placefigure[here][abc]{xyz}{123}

abc \at[abc].
abc \in[abc].

\stoptext


I am using

$ context --version
MtxRun | main context file:
/opt/home/hash/context/tex/texmf-context/tex/context/base/context.tex
MtxRun | current version: 2008.56.06 19:11

$ luatex -v
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown

any suggestions? Thanks a lot.

best regards,
shenchen
___
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] Listings (was: Experience on writing a thesis with MKIV)

2008-10-02 Thread Chen Shen
Hi all,

Here is a simplistic C syntax highlighter. I hope I've extracted
comments/strings/numerics (more or less) correctly.

shenchen


On Wed, Oct 1, 2008 at 11:44 AM, Chen Shen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for the pointers. It seems that the syntax-highlighter only
> need supply "function buffers.visualizers.mp.flush_line_()", which
> returns a buffer containing the typesetting commands. Will try playing
> with it.
>
> At the moment, I am looking for the feature with
> \setuptyping[option=commands]. I saw "\mksetupcommandsintype" defined,
> and "buffers.visualizers.enableescape = true" set in core-ver.mkiv,
> but it isn't handled in the default visualizer.
>
> ---
> \starttext
> \setuptyping[option=commands]
> \starttyping
> abc <> <> /BTEX{\sl abc}/ETEX
> \stoptyping
> \stoptext
> ---
>
> regards,
> shenchen
>
> On Wed, Oct 1, 2008 at 1:15 AM, Wolfgang Schuster
> <[EMAIL PROTECTED]> wrote:
>>
>> Am 30.09.2008 um 18:37 schrieb Chen Shen:
>>
>>> Hi Wolfgang,
>>>
>>> I guess you are referring to mkii features. It seems that formatting
>>> in verbatim doesn't work in mkiv yet, or did I miss out something?
>>> None of the wiki verbatim examples worked for me.
>>
>> Syntax hyghlighting is implemented in different ways for MkII
>> and MkIV, MkII use TeX code while MkIV use Lua code to show
>> the keywords etc.
>>
>> Hans added only files for TeX, MetaPost and Lua in MkIV but
>> you could write files for more languages, you find the rules in
>> the verb-*.lua files.
>>
>> Regards,
>> 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
>> ___
>>
>


verb-cpp.lua
Description: Binary data


t1.tex
Description: TeX document
___
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] Listings (was: Experience on writing a thesis with MKIV)

2008-09-30 Thread Chen Shen
Hi,

Thanks for the pointers. It seems that the syntax-highlighter only
need supply "function buffers.visualizers.mp.flush_line_()", which
returns a buffer containing the typesetting commands. Will try playing
with it.

At the moment, I am looking for the feature with
\setuptyping[option=commands]. I saw "\mksetupcommandsintype" defined,
and "buffers.visualizers.enableescape = true" set in core-ver.mkiv,
but it isn't handled in the default visualizer.

---
\starttext
\setuptyping[option=commands]
\starttyping
abc <> <> /BTEX{\sl abc}/ETEX
\stoptyping
\stoptext
---

regards,
shenchen

On Wed, Oct 1, 2008 at 1:15 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> Am 30.09.2008 um 18:37 schrieb Chen Shen:
>
>> Hi Wolfgang,
>>
>> I guess you are referring to mkii features. It seems that formatting
>> in verbatim doesn't work in mkiv yet, or did I miss out something?
>> None of the wiki verbatim examples worked for me.
>
> Syntax hyghlighting is implemented in different ways for MkII
> and MkIV, MkII use TeX code while MkIV use Lua code to show
> the keywords etc.
>
> Hans added only files for TeX, MetaPost and Lua in MkIV but
> you could write files for more languages, you find the rules in
> the verb-*.lua files.
>
> Regards,
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Listings (was: Experience on writing a thesis with MKIV)

2008-09-30 Thread Chen Shen
Hi Wolfgang,

I guess you are referring to mkii features. It seems that formatting
in verbatim doesn't work in mkiv yet, or did I miss out something?
None of the wiki verbatim examples worked for me.

regards,
shenchen

On Mon, Sep 29, 2008 at 2:16 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> \setupcolors[state=start]
>
> \definetyping[JAVA][option=JV]
>
> \setuptyping
>   [JAVA]
>   [numbering=line]
>
> \starttext
>
> \startJAVA
> ...
> \stopJAVA
>
> \stoptext
>
> or
>
> same preamble as above plus
>
> \definefloat[listing][listings]
>
> \starttext
>
> \placelisting
>[split]
>[lst:freeformlogfile]
>{Log File}
>{\startJAVA
> ...
> \stopJAVA}
>
> \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] bug in mkiv - paragraph column in tables

2008-09-27 Thread Chen Shen
On Sat, Sep 27, 2008 at 3:05 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> You need the svn-version.
>
> This is LuaTeX, Version snapshot-0.29.1-2008092620, build

Yes, the SVN version works! many thanks.
   This is LuaTeX, Version snapshot-0.29.1-2008092719, build

shenchen
___
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 - paragraph column in tables

2008-09-26 Thread Chen Shen
I am using :
  This is LuaTeX, Version snapshot-0.29.0-2008072211
  ConTeXt  ver: 2008.09.21 22:31 MKIV  fmt: 2008.9.22  int: english/english
  MtxRun | current version: 2008.09.21 22:31

Also tried the example on context live, with no luck.

shenchen



On Sat, Sep 27, 2008 at 1:17 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Chen Shen wrote:
>> Hi all,
>>
>> The following simple table doesn't work right under mkiv. The baseline
>> of the paragraph (2nd) column is much lower than other columns.
>> The same code works fine under mkii. "\showstructs" shows the
>> difference between the two, but I wasn't too sure how this should be
>> fixed.
>
> do you use the latest version of luatex/mkiv?
>
> -
>   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
___


[NTG-context] bug in mkiv - paragraph column in tables

2008-09-26 Thread Chen Shen
Hi all,

The following simple table doesn't work right under mkiv. The baseline
of the paragraph (2nd) column is much lower than other columns.
The same code works fine under mkii. "\showstructs" shows the
difference between the two, but I wasn't too sure how this should be
fixed.
Thank you.

shenchen

=

\starttext

\starttables[|lw(1cm)|lp(5cm)|lw(2cm)|]
\HL
\NC 101
\NC This is ConTeXts oldest table module. It uses the same formatting
as Tabulate (see Tables Overview).
\NC haha
\FR
\HL
\stoptables

\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] units module has bug with markIV?

2008-09-20 Thread Chen Shen
On Sat, Sep 20, 2008 at 6:28 PM, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
>
> And as an aside, it would be nicer to use U+00B5 (mu latin) in the
> units module instead of U+03BC (mu greek).
>
>   \def\Micro {\dimensionprefix{\iftextdimensions u\else\hbox{µ}\fi}}
>
> The \hbox is needed because \fam11 is using ec encoding, I think.
> (and that is problematic in its own way, but let's not go there)
>
>
Yes. This change to (mu latin) worked. Thank you so much for the
detailed explanations.
I think it is preferable to use upright greek letters in units.
The shape of (mu latin) in the latin modern font isn't the prettiest
design, but is still better than mixing italic mu with other upright
letters in units.
Besides, I guess, (mu latin) instead of u can be used in text-mode units?

regards,
shenchen
___
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] units module has bug with markIV?

2008-09-19 Thread Chen Shen
Hi all,

I wonder if anyone could help with this problem with Units in mkiv.
Thanks a lot.

regards,
shenchen

On Wed, Sep 3, 2008 at 9:36 AM, Chen Shen <[EMAIL PROTECTED]> wrote:
> Hi all,
> "\Micro" in the "units" module failed, while "\Nano" and "\Milli" works fine.
> "$\mu$" works, so it doesn't look like a font problem.
> The following code works with pdftex/MarkII, but fails under Luatex
> 0.29beta/MarkIV.
>
> \usemodule[units]
> \starttext Hello world! $1\Micro\Meter$ $1\Micro\Second$
> \stoptext
>
> Any hints? Thanks a lot!
>
> regards,
> shenchen
>
___
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] units module has bug with markIV?

2008-09-02 Thread Chen Shen
Hi all,
"\Micro" in the "units" module failed, while "\Nano" and "\Milli" works fine.
"$\mu$" works, so it doesn't look like a font problem.
The following code works with pdftex/MarkII, but fails under Luatex
0.29beta/MarkIV.

\usemodule[units]
\starttext Hello world! $1\Micro\Meter$ $1\Micro\Second$
\stoptext

Any hints? Thanks a lot!

regards,
shenchen
___
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
___