[texhax] biblatex \printfield is undefined

Chris Yocum cyocum at gmail.com
Sun Nov 6 22:18:20 CET 2011


D'oh, I figured out what I needed...sorry to bother.

Chris

On 06/11/11 18:54, Chris Yocum wrote:
> Hi Everyone,
> 
> I am a bit stuck and I am hoping someone could help me out. I am trying
> to write a biblatex style for MHRA (a British standard).  I have two
> files mhra.bbx and mhra.cbx in my test directory (local).  It seems that
> these files are picked up (I am using
> \RequireBibliographyStyle{verbose-ibid} in mhra.bbx to just do something
> until I can get to it).
> 
> Anyway, the problem that I am having is that the mhra.cbx file is saying
> that \printfield is undefined.  I am rather baffled as to why this is
> happening.  The test file, cbx file, and bib file are below.
> 
> Any help would be gratefully received.
> 
> All the best,
> Chris Yocum
> 
> The error is this:
> 
> cyocum at keiichi:~/academic/test-mhra$ latex test-mhra.tex
> This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
>  restricted \write18 enabled.
> entering extended mode
> (./test-mhra.tex
> LaTeX2e <2011/06/27>
> Babel <v3.8m> and hyphenation patterns for english, dumylang,
> nohyphenation, ge
> rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek,
> ibycus, arabi
> c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian,
> czech, danis
> h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi,
> finnis
> h, french, galician, german, ngerman, swissgerman, monogreek, greek,
> hungarian,
>  icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam,
> marathi, or
> iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian,
> kurmanji,
>  lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal,
> nynorsk, pol
> ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak,
> sloven
> ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh,
> loaded
> .
> (/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2011/texmf-dist/tex/latex/base/size10.clo))
> (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.sty
> (/usr/local/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty
> (/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty))
> (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)
> (/usr/local/texlive/2011/texmf-dist/tex/latex/logreq/logreq.sty
> (/usr/local/texlive/2011/texmf-dist/tex/latex/logreq/logreq.def))
> (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)
> (/usr/local/texlive/2011/texmf-dist/tex/latex/url/url.sty)
> (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/blx-compat.def)
> (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.def)
> (./mhra.bbx
> (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/verbose-ibid.bbx
> (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/authortitle.bbx
> (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))))
> (./mhra.cbx
> (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/cbx/verbose-ibid.cbx)
> ! Undefined control sequence.
> <argument> \printfield
>                        [title]{title}
> l.31 }
>       %
> ? X
> No pages of output.
> Transcript written on test-mhra.log.
> 
> Test-Mhra.tex file
> 
> \documentclass{article}
> 
> \usepackage[style=mhra, backend=biber]{biblatex}
> \bibliography{test}
> 
> \begin{document}
> 
> blah\footnote{\cite[1]{Breatnach2005}}
> foo\footnote{\cite[29]{Gerriets1988}.}
> 
> \printbibliography
> 
> \end{document}
> 
> mhra.cbx file:
> \ProvidesFile{mhra.cbx}[$Id: 2011/11/6 v0.1 biblatex citation style$]
> 
> \RequireCitationStyle{verbose-ibid}
> \renewcommand*{\newunitpunct}{\addcomma\addspace}
> 
> \DeclareFieldFormat{title}{\mkbibemph{#1}}
> \DeclareFieldFormat{edition}{#1\addspace\bibstring{edn}\isdot}
> \DeclareFieldFormat{volume}{#1\addspace\bibstring{vol}\isdot}
> \DeclareFieldFormat{series}{#1}
> \DeclareFieldFormat{volumes}{\textsc #1}
> \DeclareFieldFormat{pages}{\mkpageprefix[bookpagination]{#1}}
> 
> \DeclareFieldFormat[book]{%
>   \printfield{author}%
> %\newunit\newblock %
> %\printfield[title]{title} %
> %\newunit\newblock %
> %\usebibmacro{editor+others} %
> %\newunit\newblock %
> %\printfield{series} %
> %\newunit\newblock %
> %\printfield{edition} %
> %\newunit\newblock
> %\printfield{volumes} %
> %\newunit\newblock
> %\bibstring{(}\printfield{address}\addcolon\printfield{publisher}\addcomma\printfield{year}\bibstring{)}%
> %\newunit\newblock
> %\printfield{volume} %
> %\newunit\newblock
> %\printfield{pages} %
> }%
> \endinput
> 
> @Book{Breatnach2005,
>   author =	 {Breatnach, Liam},
>   title =	 {A Companion to the Corpus Iuris Hibernici},
>   publisher =	 {Dublin Institute for Advanced Studies},
>   year =	 {2005},
>   address =	 {Dublin},
>   annote =	 {The index to the corpus}
> }
> 
> @Article{Gerriets1988,
>   author =	 {Gerriets, Marilyn},
>   title =	 {The King as Judge in Early Ireland},
>   journal =	 {Celtica},
>   year =	 {1988},
>   volume =	 {20},
>   pages =	 {29-52},
>   annote =	 {Argues that the king was the real judge in early
>                   ireland and not his behons}
> }
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://tug.org/pipermail/texhax/attachments/20111106/d6f28d87/attachment.bin>


More information about the texhax mailing list