[NTG-context] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
Hi Hans and Wolfgang,

I'm just trying to make some illustrations about the Chinese typesetting
features. So I choose the way which is described in Chapter 5 of the metafun
manual. And I wanna draw a line from the text I wanna comment on to the
marginal notes which my comments lay on.

To highlight them, I drew an underline below the contexts which is to be
commented
and put a square around the comments. Everything is under control except
I put \fpos and \tpos around the comments, the framed box is not exactly
what
I want. It seems that metafun still thought it's in the main text so it drew
the bounding
around the body.

I found the mpos:par was defined in core-pgr.tex and it used show_par or
draw_par which
are defined in mp-core.mp. I don't think it's a good way to define another
MPpositiongraphic
called like mpos:marginpar to match my case. Do you think it's possible to
change
some of the core codes to make metafun recognize where she is.


-- 
Best Regards
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
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] Weird behavior about metafun

2008-01-07 Thread Hans Hagen
Zhichu Chen wrote:
 Oh, by the way, if I put \fpos at the beginning of a paragraph,
 it adds an extra blank line. I have to force it to the
 horizontal mode like:
 \leavevmode\fpos{A-1} . . . \tpos{A-1}

\dontleavehmode \fpos ...

 So is it safe to change the definition of \fpos to add
 \leavevmode at the beginning of the macro?

no, that could happen in the macro that uses \fpos, not in \fpos itself

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] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
Oh, by the way, if I put \fpos at the beginning of a paragraph,
it adds an extra blank line. I have to force it to the
horizontal mode like:
\leavevmode\fpos{A-1} . . . \tpos{A-1}
So is it safe to change the definition of \fpos to add
\leavevmode at the beginning of the macro?


On Jan 7, 2008 10:45 AM, Zhichu Chen [EMAIL PROTECTED] wrote:

 Hi Hans and Wolfgang,

 I'm just trying to make some illustrations about the Chinese typesetting
 features. So I choose the way which is described in Chapter 5 of the
 metafun
 manual. And I wanna draw a line from the text I wanna comment on to the
 marginal notes which my comments lay on.

 To highlight them, I drew an underline below the contexts which is to be
 commented
 and put a square around the comments. Everything is under control except
 I put \fpos and \tpos around the comments, the framed box is not exactly
 what
 I want. It seems that metafun still thought it's in the main text so it
 drew the bounding
 around the body.

 I found the mpos:par was defined in core-pgr.tex and it used show_par or
 draw_par which
 are defined in mp-core.mp. I don't think it's a good way to define another
 MPpositiongraphic
 called like mpos:marginpar to match my case. Do you think it's possible to
 change
 some of the core codes to make metafun recognize where she is.


 --
 Best Regards
 Chen
 

  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn
 




-- 
Best Regards
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
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] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
On Jan 7, 2008 9:41 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Zhichu Chen wrote:
  Oh, by the way, if I put \fpos at the beginning of a paragraph,
  it adds an extra blank line. I have to force it to the
  horizontal mode like:
  \leavevmode\fpos{A-1} . . . \tpos{A-1}

 \dontleavehmode \fpos ...

  So is it safe to change the definition of \fpos to add
  \leavevmode at the beginning of the macro?

 no, that could happen in the macro that uses \fpos, not in \fpos itself

Cool, then I'll define my own macro to do that.

Thanks.



 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

 ___




-- 
Best Regards
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

___
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] Weird behavior about metafun

2008-01-07 Thread Aditya Mahajan
On Mon, 7 Jan 2008, Zhichu Chen wrote:

 Hi Hans and Wolfgang,

 I'm just trying to make some illustrations about the Chinese typesetting
 features. So I choose the way which is described in Chapter 5 of the metafun
 manual. And I wanna draw a line from the text I wanna comment on to the
 marginal notes which my comments lay on.

Something like this:
http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf

It will be nice to have a ConTeXt module that can do this.

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] symbols in luatex?

2008-01-07 Thread Wolfgang Schuster
On Jan 6, 2008 9:26 PM, Hans Hagen [EMAIL PROTECTED] wrote:
 Wolfgang Schuster wrote:

  Do you really a contextname for every adobename in the list?

 no, in mkiv we can have use adobe names as well

  I would be enough for me access the glyphs by name, I don't a macro for
  every character but the list for adobenames should be filled with the
  information from glyphlist.txt.
 
  http://www.adobe.com/devnet/opentype/archives/glyph.html

 taht's what char-def is for

  Hans, should contextnames.txt be deleted now? So that only one list
  will be kept up to date.

 well, we can keep it for a while for sentimental reasons

  XeTeX offers \XeTeXglyphdindex{angleleft} (in LuaTeX you can achieve
  the same with some coding), but I agree that some high-level macro to
  access glyphs by name might be handy.
 
  I know XeTeX offers this method but method for XeTeX and LuaTeX would
  be better, it could be used as replacement for \symbol a many
  cases, untill you have the requestet glyph in your font but a fallback
  mode would be nice in this situation.

 maybe a big fallback virtual font covering all of unicode ...

With Arial Unicode as fallback ;-)

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] page=yes often ignored

2008-01-07 Thread Wolfgang Schuster
On Jan 6, 2008 10:50 PM, Mojca Miklavec [EMAIL PROTECTED] wrote:
 Hello,

 I often have problems with page breaks in ConTeXt (section titles are
 often placed at the bottom of the page, but changing anything there
 might lead to strange side-effects), but perhaps this specific problem
 is solvable somehow:

 \setuphead
 [section]
 [page=yes]
 \setuphead
 [subsection]
 [page=yes]

 \starttext

 \section{a}
 \input tufte

 % I would expect a page break here without having to say \page
 \subsection{b}
 \input tufte

 \stoptext

This is a feature in ConTeXt but you could disable it,

\setuphead[section,subsection][page=yes,continue=no]

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] weird (italic) math braces in antt

2008-01-07 Thread Hans Hagen
Mojca Miklavec wrote:
 Hello,
 
 I don't understand why I get italic braces in the following example.
 The font itself seems to be OK (and if I recall correctly, this has
 already worked OK in the past).
 
 \usetypescript[antykwa-torunska][ec]
 
 \starttext
 $\{a\}$
 \showfont[lmex10]
 
 \setupbodyfont[antykwa,16pt]
 $\{a\}[]$
 \showfont[ex-anttr]
 \stoptext

i haven't changed anything

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] ConTeXt 2008.01.02

2008-01-07 Thread luigi scarso
At pragma site last release is ConTeXt 2008.01.02 ,
while at
http://wiki.contextgarden.net/Release_Notes

last release is Context 2007.12.31


-- 
luigi

it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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 2008.01.02

2008-01-07 Thread Hans Hagen
luigi scarso wrote:
 At pragma site last release is ConTeXt 2008.01.02 ,
 while at
 http://wiki.contextgarden.net/Release_Notes
 
 last release is Context 2007.12.31

sure, but release notes are made when the release is submitted to svn 
which is not always the same time as i upload

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] ConTeXt 2008.01.02

2008-01-07 Thread luigi scarso
 sure, but release notes are made when the release is submitted to svn
 which is not always the same time as i upload
Ah, ok.


-- 
luigi

it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] symbols in luatex?

2008-01-07 Thread Mojca Miklavec
On Jan 7, 2008 5:18 PM, Wolfgang Schuster wrote:
 On Jan 6, 2008 9:26 PM, Hans Hagen wrote:

  maybe a big fallback virtual font covering all of unicode ...

 With Arial Unicode as fallback ;-)

I can try to get some Microsofties* to the meeting. Perhaps they'll agree :-) :p

After all, if I forget about all the advantages of it (covering
unicode symbols where typeface doesn't matter so much etc.), the
approach would be fully compatible with Word in that respect,
replacing all accented letters with the ones from the fallback font
:-)

But after all: there's LinLibertine or the (symbol) Unicode font that
one of you has mantioned a few days ago.

Mojca

* = trying to figure out an expression for people working there
___
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] Windows installer updated

2008-01-07 Thread Mojca Miklavec
On Jan 7, 2008 9:47 PM, David Roderick wrote:
 pop-up texlua.exe Application Error
 The application failed to initialize properly (0xc022)

Hello,

First: thanks a lot for reporting. (I have no windows here, but I had
so many problems with rsync on windows ... that I might be willing to
torture you until it works, just as I have tortured the windows
machine I have been working on a while back :)

I'm clueless about this (apart from the fact that it might be a rsync
problem). Which windows are you using (XP or Vista)? (Not that I know
if it's relevant at all.)

Can you please try to dowload this:
   http://minimals.contextgarden.net/setup/context-setup-mswin.zip
and try to run texlua.exe first?
Then, please try to run the following (from command and cd
path-to-unzipped-stuff\bin):
   set CYGWIN=nontsec
   rsync -av rsync://contextgarden.net/minimals/setup/mswin/bin/texlua.exe .
and then see if texlua still has any problems. If not, try to run
(single line, it will probably be broken in this mail):
   rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll'
rsync://contextgarden.net/minimals/setup/mswin/bin/ .

Alternatively, you can try to run first-setup.bat (from command line
as well) and see if your machine has problems with that.

If you will be able to run texlua after that, then it's installer's
fault (perhaps variables are not set properly) and you should complain
to Vyatcheslav. If you'll have problems running texlua after that
(same error as what you have already mentioned), then you should
complan to rsync developers :) But it's definitely not my fault :) :)
:)

Mojca

PS: alternatively, you might try to send an email to Akira (the
windows compiling specialist), asking him if he's willing to try to
compile rsync for windows :) since any other version of rsync is
causing problems. The more requests he gets, ... :)
___
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] symbols in luatex?

2008-01-07 Thread luigi scarso
 I can try to get some Microsofties* to the meeting. Perhaps they'll agree :-) 
 :p

Maybe you can try  by saying that a few (?) of us have  some interest on
xps as an output alternative of pdf ; with luatex should be no so difficult .

You can even do better getting some Adobies to the meeting too,
because a few (again, ?) of us have some interest on mars too .


-- 
luigi

it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] Weird behavior about metafun

2008-01-07 Thread Zhichu Chen
On Jan 7, 2008 11:52 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:

 On Mon, 7 Jan 2008, Zhichu Chen wrote:

  Hi Hans and Wolfgang,
 
  I'm just trying to make some illustrations about the Chinese typesetting
  features. So I choose the way which is described in Chapter 5 of the
 metafun
  manual. And I wanna draw a line from the text I wanna comment on to the
  marginal notes which my comments lay on.

 Something like this:
 http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf


Yes! That's what I'm trying to do. I think there's a chance
to implement that with few modifications on the existing
core-pgr.tex and mp-core.mp.


 http://www.fauskes.net/media/pgftikzexamples/PDF/todo-notes.pdf

 It will be nice to have a ConTeXt module that can do this.

 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

 ___




-- 
Best Regards
Chen


 Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
  | www.sinap.ac.cn

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