BibTeX, biblatex and biberarticle in list citation

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

see my first post ... at the top first thing I posted is the way I want it to look like..... added here too:

Charles D. Keeling, Stephen C. Piper, Robert B. Bacastow, Martin Wahlen, Timothy P. Whorf, Martin Heimann, and Harro A. Meijer; Atmospheric CO2 and 13CO2 Exchange with the Terrestrial Biosphere and Oceans from 1978 to 2000: Observations and Carbon Cycle Implications; in: A History of Atmospheric CO2 and its effects on Plants, Animals, and Ecosystems, edited by, Ehleringer, J.R., T. E. Cerling, M. D. Dearing, Springer Verlag, New York, 2005.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

article in list citation

Post by cgnieder »

This is clearly a bibliography style issue. Does the style you need have a name or is following a known convention or something? With some luck someone already wrote a style file for it. If not one would need to modify the corresponding bst file into a custom one.

(I am by no means an expert here as I have always simply used the standard styles… I hope someone with more expertise will join this conversation!)

Regards
site moderator & package author
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

its the convention I know....

how to edit .bst???
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

article in list citation

Post by cgnieder »

ankhi wrote:its the convention I know....
So even if there exists a BiBTeX style providing what you need we will never know…
ankhi wrote:how to edit .bst???
This is beyond my expertise :(

I know that it is easier (or at least better documented) how to customize biblatex styles (which is not BiBTeX!). So if you're willing to switch to biblatex I could at least point you at some references how to start customizing the style.

Regards
site moderator & package author
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

I dont mind switching to anything which works!!!

tell me about biblatex.... :)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

article in list citation

Post by cgnieder »

Well for starters the switch isn't hard at all with an up to date TeX system:

Instead of:

Code: Select all

\documentclass{article}

\begin{document}

\cite{companion}

\bibliographystyle{unsrt}
\bibliography{biblatex-examples}

\end{document}
you use

Code: Select all

\documentclass{article}

\usepackage[backend=bibtex,sorting=none,style=numeric]{biblatex}
\addbibresource{biblatex-examples.bib}

\begin{document}

\cite{companion}

\printbibliography

\end{document}
With the backend=bibtex option the compilation order is exactly the same. biblatex however works best if you use backend=biber and compile
  1. (pdf)latex
  2. biber
  3. (pdf)latex
  4. (pdf)latex
Biblatex has a comprehensive manual: biblatex. It provides quite a number of predefined bibliography styles and additional fileds to the ones used with BiBTeX. Additionally lots of people have designed styles for biblatex to match their needs.

On TeX.SE the three current maintainers of biblatex are very active so you can find loads and loads of useful information there. One of the maintainers, Joseph Wright is also active here.

Starting information on customizing biblatex styles may be found here: Guidelines for customizing biblatex styles.

Regards
site moderator & package author
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

Will try that... later today ... thanks for going into so much detail.... :D
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

Well I tried that but I couldnt figure out how to predefine the output of a @INBOOK citation should look like when called.

also protex doesnt have biblatex option for compilation which may be a problem....
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

article in list citation

Post by cgnieder »

This is new to me, too. First of all I want to cite from the biblatex manual concerning this topic:
2.3.1 The Entry Type @inbook

Use the @inbookentry type for a self-contained part of a book with its own title only. It
relates to @book just like @incollection relates to @collection. See § 2.3.5 for examples.
If you want to refer to a chapter or section of a book, simply use the book type and add
a chapter and/or pages field. Whether a bibliography should at all include references to
chapters or sections is controversial because a chapter is not a bibliographic entity.
So it might be worth considering an other approach altogether.

That being said, this is how far I got. Roughly speaking it is only a copy of another custom format by someone else and I really do not know if this is the best way. In fact I'm willing to bet there are better ways. Anyway:

Code: Select all

% arara: pdflatex
% arara: biber
% arara: pdflatex
\documentclass{article}
\usepackage[version=3]{mhchem}% for chemical formatting

\usepackage[backend=biber]{biblatex}
\addbibresource{\jobname.bib}
\DeclareFieldFormat[inbook]{chapter}{\mkbibemph{#1}}
\DeclareFieldFormat[inbook]{title}{In: \mkbibemph{#1}}
\DeclareBibliographyDriver{inbook}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor+others/translator+others}%
  \setunit{\labelnamepunct}\newblock
  \usebibmacro{chapter+pages}%
  \newunit\newblock
  \usebibmacro{maintitle+title}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor+others}%
  \newunit\newblock
  \usebibmacro{publisher+location+date}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \newunit\newblock
  \printfield{note}%
  \newunit\newblock
  \usebibmacro{addendum+pubstate}%
  \setunit{\bibpagerefpunct}\newblock
  \usebibmacro{pageref}%
  \usebibmacro{finentry}}

\usepackage{filecontents}% to keep the example self-contained
\begin{filecontents}{\jobname.bib}
@inbook{kel05,
  author    = "Charles D. Keeling and Stephen C. Piper and Robert B. Bacastow
    and Martin Wahlen and Timothy P. Whorf and Martin Heimann and Harro A. Meijer ",
  title     = "A History of Atmospheric \ce{CO2} and its effects on Plants, Animals,
    and Ecosystems",
  chapter   = "Atmospheric \ce{CO2} and \ce{^{13}CO2} Exchange with the Terrestrial
    Biosphere and Oceans from 1978 to 2000: Observations and Carbon Cycle Implications",
  editor    = "Ehleringer, J.R. and T. E. Cerling and M. D. Dearing",
  publisher = "Springer Verlag, New York",
  year      = "2005",
}
\end{filecontents}
\begin{document}

\cite{kel05}

\printbibliography

\end{document}
inbook.png
inbook.png (41.18 KiB) Viewed 5742 times
Regards
site moderator & package author
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

ok... looks good ... will try tht ASAP........
Post Reply