From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38490 Path: news.gmane.org!not-for-mail From: "Zhichu Chen" Newsgroups: gmane.comp.tex.context Subject: Re: Weird behavior about metafun Date: Mon, 7 Jan 2008 19:50:31 +0800 Message-ID: <769ba7780801070350k47271019v8c4885192f854669@mail.gmail.com> References: <769ba7780801061845u371877a2m265f07559e988746@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0565481071==" X-Trace: ger.gmane.org 1199717633 15647 80.91.229.12 (7 Jan 2008 14:53:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 14:53:53 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 15:54:11 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JBtMd-0005lo-Jm for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2008 15:54:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A88C01FC20; Mon, 7 Jan 2008 15:53:44 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04511-01; Mon, 7 Jan 2008 15:53:06 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5C9461FD55; Mon, 7 Jan 2008 13:04:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0EF01FD51 for ; Mon, 7 Jan 2008 13:04:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10916-01-14 for ; Mon, 7 Jan 2008 13:04:01 +0100 (CET) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by ronja.ntg.nl (Postfix) with ESMTP id ED7501FBA8 for ; Mon, 7 Jan 2008 12:50:33 +0100 (CET) Original-Received: by py-out-1112.google.com with SMTP id p76so13148314pyb.5 for ; Mon, 07 Jan 2008 03:50:32 -0800 (PST) Original-Received: by 10.142.88.20 with SMTP id l20mr79553wfb.72.1199706631144; Mon, 07 Jan 2008 03:50:31 -0800 (PST) Original-Received: by 10.142.87.10 with HTTP; Mon, 7 Jan 2008 03:50:31 -0800 (PST) In-Reply-To: <769ba7780801061845u371877a2m265f07559e988746@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38490 Archived-At: --===============0565481071== Content-Type: multipart/alternative; boundary="----=_Part_30685_7039502.1199706631137" ------=_Part_30685_7039502.1199706631137 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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 ---------------------------------------------------------------- ------=_Part_30685_7039502.1199706631137 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 <zhichu.chen@gmail.com> 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
---------------------------------------------------------------- ------=_Part_30685_7039502.1199706631137-- --===============0565481071== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0565481071==--