ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Idris S Hamid <ishamid@lamar.colostate.edu>
Subject: page references
Date: Tue, 04 Feb 2003 19:29:55 -0700	[thread overview]
Message-ID: <3E407723.910FF4F6@lamar.colostate.edu> (raw)

Dear posse,

For this journal, I would like to have a description of the journal
placed at the bottom of the first page of each article. This description
gives the name of the journal, volume, year, publisher, and the range of
pages over which the article spans. Here is what I came up with:

\def\JSSlogo{\vbox
                    {\noindent{\it \IJSS} {\bf 1} (2003)
                    \at[#1]--\at[#2]}\\
                    \noindent\copyright{} 2003 {\it by Global Scholarly
                    Publications}}

\definelogo[ijss][footer][left][command=\JSSlogo]

\setuphead[title][after={\placelogos[ijss]}

This seems to work in regular ConTeXt, but is there a simpler way?

In Gamma I have a problem: the \at[#1]--\at[#2] line does not work with
\pagereference[].  Here is a test:

============
\starttext

\at{}[test1]--\at{}[test2]

\pagereference[test1]

\dorecurse{10}{\input tufte \input knuth \par}

\pagereference[test2]

\stoptext
=============

and the error:

=============
! Argument of \dodododoinatreference has an extra }.
<inserted text>
                \par
<to be read again>
                   }
\doifelsenothing #1->\edef \!!stringa {#1}
                                          \ifx \!!stringa \empty
\expandafte...
<argument> ...ce \ignorespaces \rightofreference }
                                                  {\egroup
\dosymbolreferenc...

\doifreferencefoundelse ...ce \ifreferencefound #2
                                                  \else #3\fi \egroup
\dores...

\dododododoinatreference ...eference {#1}{#2}[#3]}
                                                  \referentieinfo
<{#3}\glob...
...
l.3 \at{}[test1]
                --\at{}[test2]
?
=============

it appears to work if press `q' and enter, but that's no way to run
TeX...

Idris

             reply	other threads:[~2003-02-05  2:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-05  2:29 Idris S Hamid [this message]
2003-02-08 16:43 ` Hans Hagen
2003-02-09 22:29   ` Idris S Hamid
2003-02-13 22:56     ` Idris S Hamid
2003-02-14 10:00       ` Hans Hagen
2003-02-15 21:06         ` Idris S Hamid

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=3E407723.910FF4F6@lamar.colostate.edu \
    --to=ishamid@lamar.colostate.edu \
    --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).