ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* page references
@ 2003-02-05  2:29 Idris S Hamid
  2003-02-08 16:43 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Idris S Hamid @ 2003-02-05  2:29 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: page references
  2003-02-05  2:29 page references Idris S Hamid
@ 2003-02-08 16:43 ` Hans Hagen
  2003-02-09 22:29   ` Idris S Hamid
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2003-02-08 16:43 UTC (permalink / raw)


At 07:29 PM 2/4/2003 -0700, you wrote:
>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?

another option is to put it in the backgrounds, or use log space directly 
(instead of head), or simpler:

\setuplayout[bottom=1cm,bottomdistance=.5cm]
\setupbottomtexts[...]

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


maybe an expansion problem (good try for eomega)

   \unexpanded\def\JSSlogo ....

may help

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: page references
  2003-02-08 16:43 ` Hans Hagen
@ 2003-02-09 22:29   ` Idris S Hamid
  2003-02-13 22:56     ` Idris S Hamid
  0 siblings, 1 reply; 6+ messages in thread
From: Idris S Hamid @ 2003-02-09 22:29 UTC (permalink / raw)


Hans Hagen wrote:

> At 07:29 PM 2/4/2003 -0700, you wrote:
> >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?
>
> another option is to put it in the backgrounds, or use log space directly
> (instead of head), or simpler:
>
> \setuplayout[bottom=1cm,bottomdistance=.5cm]
> \setupbottomtexts[...]

After solving some other things I want to try this, but how do I couple
\setupbottomtexts[...] with each \title page? That is, I only want the
logo at
the bottom of the first page of each article and nowhere else.

>  \unexpanded\def\JSSlogo ....
>
> may help

This does not appear to work. In Plain mode (which Omega mode mimics, at
least
till we get a working eomega),  pageref's don't work in the following
test
file:

==========test=======
\def\IJSS{International Journal of Foo Studies}

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

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

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

\starttext

\title{Test}

\pagereference[test1]

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

\pagereference[test2]

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

I hope I won't have to enter the page ranges manually...

Thnx
Idris

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: page references
  2003-02-09 22:29   ` Idris S Hamid
@ 2003-02-13 22:56     ` Idris S Hamid
  2003-02-14 10:00       ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Idris S Hamid @ 2003-02-13 22:56 UTC (permalink / raw)


Just a friendly reminder to see if this can be solved for Plain (and hence
Gamma) mode. Got to get this journal sent off soon...

best wishes
Idris

Idris S Hamid wrote:

> ==========test=======
> \def\IJSS{International Journal of Foo Studies}
>
> \unexpanded\def\JSSlogo{\vbox
>                     {\noindent{\it \IJSS} {\bf 1} (2003)
>                     \at[#1]--\at[#2]}\\
>                     \noindent\copyright{} 2003 {\it by Foo
>                     Publications}}
>
> \definelogo[ijss][footer][left][command=\JSSlogo]
>
> \setuphead[title][after={\placelogos[ijss]}]
>
> \starttext
>
> \title{Test}
>
> \pagereference[test1]
>
> \dorecurse{10}{\input tufte \input knuth \par}
>
> \pagereference[test2]
>
> \stoptext
> ===================
>
> I hope I won't have to enter the page ranges manually...
>
> Thnx
> Idris
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: page references
  2003-02-13 22:56     ` Idris S Hamid
@ 2003-02-14 10:00       ` Hans Hagen
  2003-02-15 21:06         ` Idris S Hamid
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2003-02-14 10:00 UTC (permalink / raw)


At 03:56 PM 2/13/2003 -0700, you wrote:
>Just a friendly reminder to see if this can be solved for Plain (and hence
>Gamma) mode. Got to get this journal sent off soon...

\website -> /temp/mag-0005.pdf


>best wishes
>Idris
>
>Idris S Hamid wrote:
>
> > ==========test=======
> > \def\IJSS{International Journal of Foo Studies}
> >
> > \unexpanded\def\JSSlogo{\vbox
> >                     {\noindent{\it \IJSS} {\bf 1} (2003)
> >                     \at[#1]--\at[#2]}\\
> >                     \noindent\copyright{} 2003 {\it by Foo
> >                     Publications}}
> >
> > \definelogo[ijss][footer][left][command=\JSSlogo]
> >
> > \setuphead[title][after={\placelogos[ijss]}]
> >
> > \starttext
> >
> > \title{Test}
> >
> > \pagereference[test1]
> >
> > \dorecurse{10}{\input tufte \input knuth \par}
> >
> > \pagereference[test2]
> >
> > \stoptext
> > ===================
> >
> > I hope I won't have to enter the page ranges manually...
> >
> > Thnx
> > Idris
> >
> > _______________________________________________
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
>
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>================================================================
>Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd 
>op virussen.
>Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst 
>waar op wordt gecontroleerd.

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: page references
  2003-02-14 10:00       ` Hans Hagen
@ 2003-02-15 21:06         ` Idris S Hamid
  0 siblings, 0 replies; 6+ messages in thread
From: Idris S Hamid @ 2003-02-15 21:06 UTC (permalink / raw)


This worked on the very first try! Thnx Hans for this great feature!

Idris
======================

\setupsubpagenumber[way=bytitle,
                    state=start]

\def\IJSS{International Journal of Foo Studies}
\def\JSSlogo{\vbox
                    {\tfx\setupinterlinespace
                    \noindent{\it \IJSS} {\bf 1}(1)
                    \firstsubpage--\lastsubpage\crlf
                    \noindent\copyright{} 2003 {\it by Global Scholarly
                    Publications}}}

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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-02-15 21:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-05  2:29 page references Idris S Hamid
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

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