From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40925 Path: news.gmane.org!not-for-mail From: "Zhichu Chen" Newsgroups: gmane.comp.tex.context Subject: Re: How to define my own list entry? Date: Wed, 7 May 2008 15:40:32 +0800 Message-ID: <769ba7780805070040jbc9e170gd15c4df6c4d129a2@mail.gmail.com> References: <769ba7780805061955u65c7fe2asf976b7258c569629@mail.gmail.com> <115224fb0805062315x221b3d1fsfb7511db7d92a25f@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="===============1965109800==" X-Trace: ger.gmane.org 1210146154 18208 80.91.229.12 (7 May 2008 07:42:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2008 07:42:34 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed May 07 09:43:06 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 1JteIp-0002Yd-ON for gctc-ntg-context-518@m.gmane.org; Wed, 07 May 2008 09:43:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FB001FBBE; Wed, 7 May 2008 09:42:17 +0200 (CEST) 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 01776-05-2; Wed, 7 May 2008 09:41:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 630221FB98; Wed, 7 May 2008 09:41:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 768D31FB95 for ; Wed, 7 May 2008 09:41:24 +0200 (CEST) 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 02042-02-4 for ; Wed, 7 May 2008 09:40:41 +0200 (CEST) Original-Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.241]) by ronja.ntg.nl (Postfix) with ESMTP id 0282A1FB98 for ; Wed, 7 May 2008 09:40:34 +0200 (CEST) Original-Received: by rv-out-0708.google.com with SMTP id f25so213540rvb.14 for ; Wed, 07 May 2008 00:40:32 -0700 (PDT) Original-Received: by 10.142.165.9 with SMTP id n9mr725174wfe.241.1210146032670; Wed, 07 May 2008 00:40:32 -0700 (PDT) Original-Received: by 10.142.78.2 with HTTP; Wed, 7 May 2008 00:40:32 -0700 (PDT) In-Reply-To: <115224fb0805062315x221b3d1fsfb7511db7d92a25f@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:40925 Archived-At: --===============1965109800== Content-Type: multipart/alternative; boundary="----=_Part_2930_23585188.1210146032625" ------=_Part_2930_23585188.1210146032625 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Wolfgang, After looking through the file you mentioned above, I finally find that \writeutilitycommand and \doutilities are what I want now. Maybe I should look into core-uti.tex to get more. On Wed, May 7, 2008 at 2:15 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > On Wed, May 7, 2008 at 4:55 AM, Zhichu Chen wrote: > > Hi everybody, > > > > I'm just writing a module to typeset the traditional Chinese books. > > Here is the thing: I use page-arrangement to put like 15 pages on > > one page or actually 30 pages on one page in a double-sided mode > > (I mean page 1 and page 2---which contain 15 mini-pages each---are > > on the same page), and yes I want to make a table of contents and > > some PDF bookmarks. But having searched the list, I find that I > > should use > > texexec --arrange file.tex > > to compile the file and get the real page number. That's not what I > > want. Because if I get one chapter on the second page, the page > > number is 31 rather than 2 which I really want it to be. And so do > > the bookmarks behave. If I click the bookmark of the first chapter, > > it will go to the 31st page of the PDF file if it has page 31. I don't > > really like the mess. > > > > I know it's normal, but I would like to know if there's any way to > > write the page counters I defined to the .tui or .tuo file so that I can > > totally handle them and display them on the contents and make > > the bookmarks not crazy any more. > > core-lst: > > - \definelist > - \writetolist > - \writebetweenlist > - \placelist > > 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 > > ___________________________________________________________________________________ > -- 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_2930_23585188.1210146032625 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks Wolfgang,

After looking through the file you mentioned above, I finally find that \writeutilitycommand
and \doutilities  are what I want now. Maybe I should look into core-uti.tex to get more.

On Wed, May 7, 2008 at 2:15 PM, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
On Wed, May 7, 2008 at 4:55 AM, Zhichu Chen <zhichu.chen@gmail.com> wrote:
> Hi everybody,
>
> I'm just writing a module to typeset the traditional Chinese books.
> Here is the thing: I use page-arrangement to put like 15 pages on
> one page or actually 30 pages on one page in a double-sided mode
> (I mean page 1 and page 2---which contain 15 mini-pages each---are
> on the same page), and yes I want to make a table of contents and
> some PDF bookmarks. But having searched the list, I find that I
> should use
> texexec --arrange file.tex
> to compile the file and get the real page number. That's not what I
> want. Because if I get one chapter on the second page, the page
> number is 31 rather than 2 which I really want it to be. And so do
> the bookmarks behave. If I click the bookmark of the first chapter,
> it will go to the 31st page of the PDF file if it has page 31. I don't
> really like the mess.
>
> I know it's normal, but I would like to know if there's any way to
> write the page counters I defined to the .tui or .tuo file so that I can
> totally handle them and display them on the contents and make
> the bookmarks not crazy any more.

core-lst:

- \definelist
- \writetolist
- \writebetweenlist
- \placelist

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
___________________________________________________________________________________



--
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_2930_23585188.1210146032625-- --===============1965109800== 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 ___________________________________________________________________________________ --===============1965109800==--