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
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 -------------------------------------------------------------------------
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
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
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 -------------------------------------------------------------------------
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]}]
participants (2)
-
Hans Hagen
-
Idris S Hamid