ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: NTG-ConTeXt <ntg-context@ntg.nl>
Subject: Re: Print "number of pages"
Date: Sun, 26 Jul 1998 19:49:57 +0200	[thread overview]
Message-ID: <35BB6C45.11787722@wxs.nl> (raw)

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

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


             reply	other threads:[~1998-07-26 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-26 17:49 Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-07-27 18:19 Tobias Burnus
1998-07-27  6:33 Berend de Boer
1998-07-26 16:27 Tobias Burnus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=35BB6C45.11787722@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).