Re: [NTG-context] Define exercise captions

2009-11-02 Thread Longmin Wang
On Mon, Nov 02, 2009 at 01:31:02PM +0200, Vyatcheslav Yatskovsky wrote:
Hello Aditya,

Thanks for help again. However, the result is far from OK.

[title=yes, text=Вправа, way=bysection, prefix=yes, width=broad]

I use enumeration within subsubsection, namely 1.3.1. If I put 
prefix=yes, the first exercise is 1.3.1.1. That is, it is numbered 
within subsubsection, while I want to be only 
SectionNumber.ExerciseNumber, like 1.1, 1.2, etc.

You may try prefixset=section. 


I suspected that [way=bysection] key does the job but it does nothing in 
this case.

And another major issue is: why the text is put in the frame and is 
either a few centimenters wide (without width=broad) or goes out of the 
page (with width=broad)? I need just ordinary paragraph.

 Please, try

 \starttext
 \defineenumeration[exercise][title=yes, text=Вправа, way=bysection, 
 width=broad]

 \exercise{Розрахунок кривої, яка з'єднує три точки на площині}
 \stoptext


 The Вправа is putted twice, next time inside some strange brackets. 
 The text gets out of the page.

 Looks like a bug in mkiv. Hans, text need to be handled differently in 
 descriptions and enumerations.

 How to setup so that numeration will be done by subsection (1.1, 1.2, 
 etc.)?

 prefix=yes,

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

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

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] Mplib problem of latest beta on luatex 0.40

2009-04-26 Thread Longmin Wang
On Mon, Apr 27, 2009 at 08:33:04AM +0800, Wei-Wei Guo wrote:
Dear developers,

Here is the example and warnings.

The compiled result has no underline and ConTeXt complains during compilation:

 mplib   : making 'metafun.mp' into 
'/var/cache/texmf/luatex-cache/context/b51cb04348b3b14d1dfc7333fc9b63f2/formats/cont-en-metafun.mem'
 mplib   : problems with 'metafun.mp' from 
'/var/cache/texmf/luatex-cache/context/b51cb04348b3b14d1dfc7333fc9b63f2/formats/cont-en-metafun.mem'

It works fine here with the latest beta and luatex 0.40. You may try
to delete luatex-cache and regenerate it. 

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] \startalign broken in the lastest beta?

2009-04-13 Thread Longmin Wang
Dear Hans, 

Please see the example below, which is not correctly compiled in the
lastest beta. 

\starttext
\startformula \startalign
 \NC v \NC = u + at \NR
 \NC h \NC= ut + \frac12 gt^2 \NR
\stopalign \stopformula
\stoptext

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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-13 Thread Longmin Wang
On Fri, Apr 10, 2009 at 03:38:03PM +0200, Wolfgang Schuster wrote:
Hi,

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



\currentcounterreference is undefined in the latest beta. 

\starttext
\defineenumeration
  [theorem]
  [text=Theorem,
number=yes]

\starttheorem[test]
  Test. 
\stoptheorem

\in[test]. 
\stoptext

Best Wishes. 

Longmin Wang

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] \startalign broken in the lastest beta?

2009-04-13 Thread Longmin Wang
On Mon, Apr 13, 2009 at 04:46:52PM +0200, Taco Hoekwater wrote:

Anyway, the fix in luatex svn already. I expect to release
0.39 on wednesday.

Best wishes,
Taco

Many thanks. It works. 

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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-10 Thread Longmin Wang
On Fri, Apr 10, 2009 at 10:02:24PM +0800, Yanrui Li wrote:
2009/4/10 Hans Hagen pra...@wxs.nl:
 Hi,

 I uploaded a new beta, one that needs luatex beta 0.38, which has just been
 released. The most important things:


I failed to update it and got an error message.

ConTeXt  ver: 2009.04.10 13:59 MKIV  fmt: 2009.4.10  int: dutch/dutch

! LuaTeX error ...text/tex/texmf-context/tex/context/base/luat-sto.lua:58:
attempt to call method 'gmatch' (a nil value)
stack traceback:
   ...text/tex/texmf-context/tex/context/base/luat-sto.lua:58: in function 
 'dump'
   main ctx instance:1: in main chunk.
inserted text ...on \fi \ctxlua {storage.dump()}
  \ctxlua {nodes.cleanup_res...
\dump -\the \everydump
\normaldump
l.343 \protect \errorstopmode \dump
\endinput
?

It may be caused by your patches for Chinese fonts punctuation. 

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] defineenumeration

2009-02-22 Thread Longmin Wang
\setupenumerations[subRemark][text=subRemark]

On Sun, Feb 22, 2009 at 11:42:41AM +, batela wrote:


 Dear Sirs,

 I need to define a enumeration with the text label =  Remark.  For that I 
 define \defineenumeration[Remark][text=Remark]. The label for the subRemark 
 should be subRemark.  Is there a easy way to do that? The subRemark is a 
 son of Remark and the numeration expected is:

 Remark 1

 subRemark 1.1

 subRemark 1.2


 Remark 2

 subRemark 2.1

 


 thanks

 Have a nice day

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

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] Typing unicode

2009-02-20 Thread Longmin Wang
You may try \uchar{20}{19}. 

On Thu, Feb 19, 2009 at 09:48:50PM -0300, Maur憝cio wrote:
 Hi,

 This is probably a really basic question
 already asked many times, but I wasn't able
 to find an answer.

 How to type an unicode character using its
 number? Searching for messages, I found
 things like:

 2019
 \char2019
 \char{2019}
 \utfchar{2019}

 but I wasn't able to get any of them to
 work. (I don't know for sure they actually
 should do what I want.)

 'texexec --version' says:

 TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 Thanks,
 Maur韈io

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

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] MKIV bug

2009-01-17 Thread Longmin Wang
But it works fine here with both context=experimental and
context=beta. The versions are ``2009.01.17 00:15'' for experimental
and ``2009.01.14 11:29'' for beta. 

On Sat, Jan 17, 2009 at 10:55:48PM +0800, Yue Wang wrote:
Hi, Hans

Using context=experimental, the following cross references all appear as ??
MKII works fine.


\placeformula \startformula \startalign
 \NC v \NC = u + at \NR[eq:v]
 \NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
\stopalign \stopformula
Equation (\in[eq:v]) tells the final velocity after
time $t$ and equation (\in[eq:h]) tells the distance
travelled in time $t$.


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

-- 
Longmin Wang longminw...@gmail.com
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] Thank you for the Chinese support, but still one question.

2008-08-11 Thread Longmin Wang
On Mon, Aug 11, 2008 at 12:17:15PM +0200, Hans Hagen wrote:
Longmin Wang wrote:

 Hi, Hans, Thank you for the great works. But there is still a problem when
 I test a more complicated file which is attached below. In this file,
 both \bf and \bi give the same font lmroman10-bold.

experimental patch in beta


Now it works fine. Thank you. 

-- 
Longmin Wang [EMAIL PROTECTED]
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] Thank you for the Chinese support, but still one question.

2008-08-10 Thread Longmin Wang
On Fri, Aug 08, 2008 at 11:55:21AM +0200, Hans Hagen wrote:
there was a bug as well as the fact that your definition is wrong

% engine=luatex

\ctxlua{fonts.collections.trace = true}

\definefontfeature[zh][mode=node,script=hang,lang=zhs]

\starttypescript [serif] [zhfont]
 \definefontsynonym [zhserif]  [AdobeSongStd-Light] 
[features=zh]
 \definefontsynonym [zhserifbold]  [AdobeHeitiStd-Regular] 
[features=zh]
 \definefontfallback[serifwhatever][lmroman10-regular] 
[0x-0x0400] [force=yes]
 \definefontfallback[serifboldwhatever][lmroman10-bold] 
[0x-0x0400] [force=yes]
\stoptypescript

\starttypescript [serif] [zhfont] [name]
 \definefontsynonym[Serif][zhserif][fallbacks=serifwhatever]
 \definefontsynonym[SerifBold][zhserifbold][fallbacks=serifboldwhatever]
\stoptypescript

\starttypescript[myfont]
 \definetypeface[myfont][rm][serif][zhfont]
\stoptypescript

\usetypescript[myfont]
\setupbodyfont[myfont, rm, 12pt]

\starttext
 A 字体测试。 {\bf A 字体测试。{\tfx A 字体测试。 \bfx A 字体测试。} }
\stoptext

works with the beta (i uploaded a new version)

Hans

Hi, Hans, Thank you for the great works. But there is still a problem when
I test a more complicated file which is attached below. In this file,
both \bf and \bi give the same font lmroman10-bold.

I guess the reason is that I use the same Chinese font
AdobeHeitiStd-Regular for both SerifBold and SerifBoldItalic. But this
cannot be avoided since Chinese fonts have much fewer typefaces than
English fonts.

Would you give some suggestions to solve this problem? Thanks a lot.

Longmin Wang

The test file:
--
% engine=luatex
\ctxlua{fonts.collections.trace = true}
\definefontfeature[zh][mode=node,script=hang,lang=zhs]

\starttypescript [serif] [zhfont]
\definefontsynonym [zhserif][AdobeSongStd-Light][features=zh]
\definefontsynonym [zhserifbold][AdobeHeitiStd-Regular][features=zh]
\definefontsynonym [zhserifitalic][AdobeKaitiStd-Regular][features=zh]
\definefontsynonym [zhserifbolditalic][AdobeHeitiStd-Regular][features=zh]


\definefontfallback[serifwhatever][lmroman10-regular][0x-0x0400][force=yes]

\definefontfallback[serifboldwhatever][lmroman10-bold][0x-0x0400][force=yes]

\definefontfallback[serifitalicwhatever][lmroman10-italic][0x-0x0400][force=yes]

\definefontfallback[serifbolditalicwhatever][lmroman10-bolditalic][0x-0x0400][force=yes]
\stoptypescript

\starttypescript [serif][zhfont][name]
\definefontsynonym[Serif][zhserif][fallbacks=serifwhatever]
\definefontsynonym[SerifBold][zhserifbold][fallbacks=serifboldwhatever]

\definefontsynonym[SerifItalic][zhserifitalic][fallbacks=serifitalicwhatever]

\definefontsynonym[SerifBoldItalic][zhserifbolditalic][fallbacks=serifbolditalicwhatever]
\stoptypescript

\starttypescript[myfont]
\definetypeface[myfont][rm][serif][zhfont]
\stoptypescript

\usetypescript[myfont]
\setupbodyfont[myfont, rm, 12pt]

\starttext

fonts {\bf fonts} {\bi fonts} {\it fonts}

\stoptext
-- 
Longmin Wang [EMAIL PROTECTED]
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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] About the indent after a displayed formula

2007-12-19 Thread Longmin Wang
Dear all, 

I found that if a paragraph is ended by a displayed formula, the first
line of the next paragraph will not indent. It is a feature or bug?
And how do I enable this indent? 

The following is a very simple example. Please note the second
paragraph. 

\setupindenting[medium, yes]
\starttext
This is a test file.
\startformula
x^2+y^2=1.
\stopformula

This is a test file.

This is a test file.
\stoptext


-- 
Longmin Wang [EMAIL PROTECTED]
Math. Dept., Nankai Univ., China
http://math.nankai.edu.cn/~wanglm/
GnuPG-Key ID: 1024D/2A5CFA5C
Fingerprint: 8587 1246 3AAD C185 D419  ADF1 B620 D8B8 2A5C FA5C
___
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
___