From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Print "number of pages" Date: Sun, 26 Jul 1998 19:49:57 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <35BB6C45.11787722@wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035390931 20917 80.91.224.250 (23 Oct 2002 16:35:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:35:31 +0000 (UTC) Cc: NTG-ConTeXt Original-To: burnus@berlin1.netsurf.de Xref: main.gmane.org gmane.comp.tex.context:69 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:69 Tobias Burnus wrote: > how can I print the number of pages a document has? the internal quantity is: \lastpage and you can bet that there is also \firstpage, \prevpage, \lastpage, \nofsubpages \nextsubpage, \prevsubpage etc. There are also \realpageno (counts all pages) \userpageno (only the ones with a pagenumber) etc etc etc. So, in dutch \totaalaantalpaginas I'll add the german translation if you give it to me: totaalaantalpaginas totalnumberofpages > Something I miss in ConTeXt is an advanced and full-featured biblographic > module, similar to BibTeX. I show an example how it might work: Right, I never needed it. > \usemodules[bibliographic] > \bibaddentry[Burnus,T:myExample] > [title={This is an example for a \CONTEXT > version of \LATEX's \BIBTEXT}, > author={Tobias P. Burnus}] Probably more symmetric, but I understand what you mean. > \bibsynonym[thisdoc][Burnus,T:myExample] What exactly do you mean here? > \bibaddtofile[thisdoc][file=myOwnBibs] % taken care of by TeXUtil Filtered by texutil for sorting purposes? > \bibloadfile[file=myOwnBibs] % My Articles > \bibloadfile[file=groupBibs] % Articles of my group or freq. used articles > \bibloadfile[file=standard_bibs, prefix=TEXprefix] Probably only one one file, the one texutil constructed from \bibaddtofile What does the prefix do? > \starttext > \titlepage > {\bibprint[thisdoc][title]} > {\bibprint[thisdoc][author][order=FirstLastName]} Ok, selection is not the problem. > This thesis is taken from \bibref[Burnus,T:Theses], \bibref[Foo,B:Another one]. > You will find also something on page 4444 in \bibref[TEXprefix:Knuth:TeXBook]. \page[about ...] > (printed like [1][2] etc. ^1 ^2 ^3 or [Knut76]. Using 1,2,3... it should be > possible to group them: [1,2,3,5] or [1-3,5] Yes, not that hard too > ConTeXt's bibligraphic modul should also be able to read LaTeX's BibTeX files, > making it possible to use the old one or those of colleagues. For sure. I was thinking of XINDY too, but that's not finished yet (I discussed thsi with the authors at EuroTeX, I need attributes before I can use it.) The nice thing of Xindy is that is does advanced sorting. Maybe we should look into that first. Implementing a bib mechanism is not that hard to do. You could think of a mechanism like the block moves, which have a selective typeseting option (class, subclasses), but I'm more thinking of extending the the mechanism we already use for years to typeset addresses (this mechanism is rather fast, and we use it for mailings, individual or grouped, for letters, envelopes, etc.) I never came to generalizing it, but implementing it would only take a few days, think of: (1) a general database interface (generalizing core-02a.tex) (2) a bibliographic module The funny thing is that I don't even have bibliographic libs at hand, and I need them to practice. I think we should discuss this with Taco too. The typesetting part is rather trivial once the concept is ok. Can you collect some things for me? (BTW Nelson Beebe published something on this in the tugboat. Maybe I should download his stuff first.) Hans PS. I have written a dos binary for stripping TEX, sometime back in 1993. I probably could do a better job in Perl nowadays. ----------------------------------------------------------------- Hans Hagen | PRAGMA Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl -----------------------------------------------------------------