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

article in list citation

Post by ankhi »

Hi

I am back with a more specific q...

I want to cite an article in a book like

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.

so the .bib entry I made as

Code: Select all

@BOOK{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 ",
  chapter = "Atmospheric CO2 and 13CO2 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",
  TITLE =        "A History of Atmospheric CO2 and its effects on Plants, Animals, and Ecosystems",
  PUBLISHER =    "Springer Verlag, New York",
  YEAR =         "2005",
}
but in the output reference list I got only:

Charles D. Keeling, Stephen C. Piper,
Robert B. Bacastow, Martin Wahlen,
Timothy P. Whorf, Martin Heimann, and
Harro A. Meijer.

and no more.... no other @book is doing this....

also with @inbook it is giving

Charles D. Keeling, Stephen C. Piper,
Robert B. Bacastow, Martin Wahlen,
Timothy P. Whorf, Martin Heimann, and
Harro A. Meijer. chapter Atmospheric
CO2 and 13CO2 Exchange with the Terrestrial
Biosphere and Oceans from 1978
to 2000: Observations and Carbon Cycle
Implications.

should I write @article or @articleinbook or some such thing?

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 »

Other than “you're missing a comma after the chapter entry” I can't say anything. We would need a compilable Infominimal working example to be more specific.

You should also consider using mhchem (or chemmacros but that's a little much for that purpose) for formatting the chemical formulas.

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

article in list citation

Post by ankhi »

Well the comma doesnt solve anything...

gave the .bib entry above and giving the call here:

Code: Select all

\citep{kel05}
preamble

Code: Select all

\usepackage[square,numbers]{natbib}
\bibliographystyle{unsrt}
\bibliography{reflist}
everything else is working fine.... so this should be the the min working example
Last edited by cgnieder on Fri Aug 31, 2012 8:56 am, edited 1 time in total.
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

Also,

"You should also consider using mhchem (or chemmacros but that's a little much for that purpose) for formatting the chemical formulas."

they are for chemical typesetting.... do they solve referencing too???
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

article in list citation

Post by cgnieder »

ankhi wrote:this should be the the min working example
No, a Infominimal working example always starts with \documentclass and ends with \end{document} so anyone willing to help can simply copy, paste and compile to start testing and finding a solution.
ankhi wrote:they are for chemical typesetting.... do they solve referencing too???
No, but as someone with a chemical background I'd say you should at least consider defining

Code: Select all

\newcommand*\chem[1]{\ensuremath{\mathrm{#1}}}
% and then use like
\chem{CO_2}
(not formatting chemical formulas seems plain wrong to me)

The following real MWE is only fixing the missing comma (and added chemical formatting) and looks like this:
cite.png
cite.png (30.05 KiB) Viewed 8764 times

Code: Select all

\documentclass[10pt]{article}
\usepackage[version=3]{mhchem}% for chemical formatting
\usepackage{filecontents}% to keep the example self-contained
\begin{filecontents}{\jobname.bib}
@BOOK{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 ",
  chapter = "Atmospheric CO2 and 13CO2 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",
  TITLE =        "A History of Atmospheric \ce{CO2} and its effects on Plants, Animals,
    and Ecosystems",
  PUBLISHER =    "Springer Verlag, New York",
  YEAR =         "2005",
} 
\end{filecontents}

\usepackage[square,numbers]{natbib}
\bibliographystyle{unsrt}

\begin{document}

\citep{kel05}

\bibliography{\jobname}

\end{document}
site moderator & package author
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

I think that will work out... Thanks.... :D
ankhi
Posts: 32
Joined: Sun Aug 26, 2012 6:07 pm

Re: article in list citation

Post by ankhi »

but the article name is not coming in ref na!!! :?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

article in list citation

Post by cgnieder »

Even if I repeat myself: we're going to need a Infominimal working example! You said you have other entries that look like you want them to. So maybe add one of them to my code and post it here (try first if that really works. If it doesn't the MWE misses something from your real code like the actual document class, any other bliography related package...)

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

article in list citation

Post by ankhi »

I dont have other article in book ones!!!

only @book ones so those are working fine: added that one....

Code: Select all

\documentclass[10pt]{article}
%\usepackage[version=3]{mhchem}% for chemical formatting
\usepackage{filecontents}% to keep the example self-contained
%Maths
\usepackage{amsmath, amsthm, amssymb}

%made commands
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
\newcommand{\del}[1]{\ensuremath{\delta}}
\newcommand{\lrarw}[1]{\ensuremath{\longrightarrow}}

\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 ",
  chapter = "Atmospheric CO\subscript{2} and \superscript{13}CO\subscript{2} 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",
  TITLE =        "A History of Atmospheric \superscript{13}CO\subscript{2} and its effects on Plants, Animals, and Ecosystems",
  PUBLISHER =    "Springer Verlag, New York",
  YEAR =         "2005",
}

@BOOK{ant10,
  Author =       "Howard Anton and Chris Rorres ",
  TITLE =        "Elementary Linear Algebra with Supplemental Applications",
  PUBLISHER =    "Wiley and Sons",
  YEAR =         "2010",
}
\end{filecontents}

\usepackage[square,numbers]{natbib}
\bibliographystyle{unsrt}

\begin{document}

\citep{kel05}
\citep{ant10}
\del~\superscript{13}CO\subscript{2}

\bibliography{\jobname}

\end{document}
This is giving the output:
Image
which is slightly different than the chapterinbook 1 I wanted.....

Also I am using the following for subscript and superscript...but \ce was a good idea.... but does it take care of \del~\superscript{13}CO\subscript{2} like printing?

Code: Select all

%made commands
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
\newcommand{\del}[1]{\ensuremath{\delta}}
\newcommand{\lrarw}[1]{\ensuremath{\longrightarrow}}
Last edited by cgnieder on Fri Aug 31, 2012 2:03 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

article in list citation

Post by cgnieder »

Now, slowly I get it… this seems to be a bibliography style related question. If you now could provide us with a picture of how you want it to look I'm sure someone can help (*).
ankhi wrote:Also I am using the following for subscript and superscript...but \ce was a good idea.... but does it take care of \del~\superscript{13}CO\subscript{2} like printing?
Yes, it can:

Code: Select all

\documentclass{article}
\usepackage[version=3]{mhchem}
\begin{document}
\ce{$\delta$~^{13}CO2}
\end{document}
Have a look at it's manual: mhchem.

BTW: there's already a \textsuperscript defined in the standard classes (no \textsubscript, though).

Regards

(*) I'm not around until Sunday evening…
site moderator & package author
Post Reply