Charles Stewart is right - don't do this.
That said, here's a solution using biblatex
. Note that biblatex treats the @inbook
type in a different way than traditional BibTeX, and for "Chapter X" entries you should use the type @book
. If you want to change the term "Chapter" for certain entries, add the execute
field and the tailor-made code of my example.
\documentclass{article}
\usepackage[abbreviate=false]{biblatex}
\newbool{specialchap}
\newcommand*{\specialchapname}{(Special chapter name)}
\DeclareFieldFormat{chapter}{%
\ifbool{specialchap}{%
\specialchapname~#1%
}{%
\bibstring{chapter}~#1%
}%
}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
chapter = {11},
}
@book{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
chapter = {12},
execute = {\booltrue{specialchap}\renewcommand*{\specialchapname}{Section}},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\nocite{*}
\begin{document}
\printbibliography
\end{document}
