Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In a beamer presentation I want to cite some bibliography. I prepared the following minimal example:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}



@article{ZINC,
author = {Irwin, John J and Shoichet, Brian K},
title = {{ZINC--a free database of commercially available compounds for virtual screening.}},
journal = {Journal of Chemical Information and Modeling},
year = {2005},
volume = {45},
number = {1},
pages = {177--182},
}



@article{Jorgensen,
author = {Jorgensen, WL},
title = {{The many roles of computation in drug discovery}},
journal = {Science},
year = {2004},
volume = {303},
number = {5665},
pages = {1813--1818},
}

\end{filecontents*}


\documentclass{beamer}
\begin{document}


\begin{frame}
This is a nice paper \cite{ZINC,Jorgensen}
\end{frame}

\begin{frame}
\bibliographystyle{alpha}

\bibliography{\jobname}
\end{frame}

\end{document}

I get at the end of the presentation a slide with both citations, in the exact style I need them (sorry if "style" is not the exact word here). But I do not want this, I want, on the slide I cite them, them to appear with this format, and omit the final slide with all the bibliography. How can this be done? I hope my question is more clear now

PS: The format I want is

John J Irwin and Brian K Shoichet. ZINC–a free database of commercially available compounds for virtual screening. Journal of Chemical Information and Modeling, 45(1):177–182, 2005.

with the title of the journal in italics (Journal of Chemical Information and Modeling in this case) in italics

share|improve this question
1  
What is the citation style of the American Medical Society? –  N.N. Aug 30 '11 at 12:10
2  
Your message is quite uninformative, like the linked one. I didn't downvote, but I wouldn't upvote either. Please, try and improve your message with an example frame, a couple of bibliography items and a pointer to the Am. Med. Soc. format. –  egreg Aug 30 '11 at 12:15
    
Ok, I will do it –  flow Aug 30 '11 at 12:20
    
That is not a complete minimal working example (MWE). Also, you haven't described the format you want them to appear in. –  N.N. Aug 30 '11 at 12:42
    
I did it, I hope it is more clear now –  flow Aug 30 '11 at 12:42

1 Answer 1

up vote 1 down vote accepted

This should be what you want.

\documentclass{beamer}

\usepackage[style=verbose]{biblatex}

\renewbibmacro{in:}{%
  \ifentrytype{article}{}{%
  \printtext{\bibstring{in}\intitlepunct}}}

\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat[article]{title}{#1}

\renewbibmacro*{journal+issuetitle}{%
  \renewbibmacro*{note+pages}{}% NEW
  \usebibmacro{journal}%
%   \setunit*{\addspace}%
  \setunit*{\addcomma\space}% NEW
  \iffieldundef{series}{%
  }{%
    \newunit
    \printfield{series}%
    \setunit{\addspace}%
  }%
  \printfield{volume}%
%   \setunit*{\adddot}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}%
  \setunit{\addspace}%
  \printfield{note}% NEW
  \setunit{\addcolon}% NEW
  \printfield{pages}% NEW
  \setunit{\addspace}% NEW
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \newunit
}

\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{ZINC,
author = {Irwin, John J and Shoichet, Brian K},
title = {ZINC--a free database of commercially available compounds for virtual screening},
journal = {Journal of Chemical Information and Modeling},
year = {2005},
volume = {45},
number = {1},
pages = {177--182},
}
@article{Jorgensen,
author = {Jorgensen, WL},
title = {The many roles of computation in drug discovery},
journal = {Science},
year = {2004},
volume = {303},
number = {5665},
pages = {1813--1818},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\begin{frame}
This is a nice paper: \textcite{ZINC,Jorgensen}
\end{frame}

\end{document}
share|improve this answer
1  
great! It works but I think it is something really complicated, not everybody can do that. Imagine every morning you prepare your coffee or tee or whatever, you had to write down the molecular formulae of the implicated compounds in order to get a good roast, would not it be a bit tiring? –  flow Aug 30 '11 at 21:53
1  
My theory is that later versions of biblatex will be just as easy to use as the current version is powerful. For now, enjoy your coffee. ;-) –  lockstep Aug 30 '11 at 21:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.