pages=format discussion

"jdbillett" <[email protected]>
Newsgroups gmane.comp.tex.bibtex.jurabib.user
Message-ID <[email protected]>
The discussion on pages=format has been very useful, and encourages me
to make a go of it, rather than defining lots of silly commands!

The following two requests are based both on my university's style
requirements and on the Modern Humanities Research Association Style
Guide (6th edn).  To have an MHRA option in Jurabib (rather like the
current Oxford option), would be a great "some day" project. 
The style guide can be downloaded for free, and already has an Endnote
package:

http://www.mhra.org.uk/Publications/Books/StyleGuide/download.shtml

On to the desiderata:

1.  Jens has shown how pages=format can be turned off for certain
entry types (in this case @article).  This is superb and really
useful.  There are some exceptions, however.  For instance, when I
cite an article for the first time, I have to give the full reference
with the full page range, and the specific page(s) to which I'm
referring in that citation.  For example, I might want a \footcite to
say:

Cambridge University History Faculty Style:
===========================================
J. R. Hall, `Some liturgical notes on \AE lfric's \emph{Letter to the
Monks at Eynsham}', \emph{Downside Review} 93 (1975), 297--303, at p.
298.

MHRA Style:
===========
J. R. Hall, `Some Liturgical Notes on \AE lfric's \emph{Letter to the
Monks at Eynsham}', \emph{Downside Review}, 93 (1975), 297--303 (p.
298).

In all subsequent citations (i.e. "<Last Name>, <Short Title>,
<page>"), the page numbers are simply given as "p." or "pp.":

Hall, `Some liturgical notes', p. 299.

Is there a way to test for a "fullcite" and to apply a special kind of
formatting if a specific page or page range is being cited?

2. In books of several volumes, page numbers are preceded by a
lowercase roman numeral in small caps:

R.-J. Hesbert, \emph{Corpus Antiphonalium Officii}, 6 vols (Rome:
Herder, 1963--79), \textsc{i}, 15.

These, naturally, are not preceded by "p.".  They present an
additional challenge if you ever want to change the formatting of the
volume.  For instance, if you wanted it to say "vol. 1, p. 15" at any
later stage, you'd have to go through and change them all by hand, and
add the "p.".

I'd love to have a \volpage command with two arguments, but I think
this would depend on counters.  Will counters resolve in jurabib
citations?  I've tried a pretty simplistic solution:

\newcommand{\volpage}[2]{%
\newcounter{volume}%
\setcounter{volume}{#1}%
\textsc{\roman{volume}},#2}

When I try something like \volpage{5}{27--9}]{cubitt:1997}, I get the
following error message, which I cannot interpret: 

! Undefined control sequence.
\reserved@a ->\@nil

I assume the problem is that the value of the counter is not resolved
in the first two latex (in my case pdflatex) passes.

Peter Wilson devised a solution to a similar(?) request for his ledmac
package, so that \ref commands could be used in the footnote
apparatus of a critical edition.  The idea is that the first pass
just assumes a value of 0, and the real value is put in on the second
(or third?) pass (comp.text.tex, 16 Feb 2005):
.

\newcommand*{\saferef}[1]{%
  \expandafter\ifx\csname r@#1\endcsname\relax 0\else
  \ref{#1}\fi} 

Could we come up with something similar for jurabib?

Many thanks,

Jesse Billett




Please remember -- this is an international english speaking mailing list!

If you have a problem, please provide a complete minimal example document (with a small bibliography database), which runs out of he box without any superfluous packages loaded, otherwise we could not help. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/jurabib/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.