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.

I have a bibtex database which I'm sharing between a beamer presentation and my thesis. I would like the former to show just the title and authors of the article instead of the whole citation, since it doesn't otherwise fit in the presentation frame.

Any ideas on how to do that?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can modify the bibliography style (.bst) to achieve your goal. However, is a laborious task, and may be error prune.

So, lets say you have the plain.bst style. Then you just need to find the FUNCTION {article}, FUNCTION {book}, and so on. In general, you need to modify each FUNCTION {<entry>} that you want to use in your bibliography, and remove the undesired fields from there.

Like this example

FUNCTION {article}
{ output.bibitem
  format.authors "author" output.check
  new.block
  format.title "title" output.check
%  new.block
%  crossref missing$
%    { journal emphasize "journal" output.check
%      format.vol.num.pages output
%      format.date "year" output.check
%    }
%    { format.article.crossref output.nonnull
%      format.pages output
%    }
%  if$
%  new.block
%  note output
  fin.entry
}

the commented parts are the ones that will get removed from the final part. And you can save the modified style, let's say myplain.bst and use it like:

\documentclass{standalone}
\usepackage{cite}

\usepackage{filecontents}

\begin{filecontents}{mybib.bib}
@ARTICLE{Bar2011,
  author = {F. Foo and F. Bar},
  title = {Foo and Bar},
  journal = {Journal of Foo},
  year = {2011},
  volume = {1},
  pages = {1--3}
}

@ARTICLE{Foo2011,
  author = {F. Foo and F. Bar},
  title = {More on Foo and Bar},
  journal = {Journal of Bar},
  year = {2011},
  volume = {1},
  pages = {1--3},
  owner = {adin},
  timestamp = {2011.12.01}
}
\end{filecontents}

\begin{document}

Test~\cite{Bar2011,Foo2011}.

%\bibliographystyle{plain}
\bibliographystyle{myplain}
\bibliography{mybib}

\end{document}

Minimal (using myplain.bst):

minimal

Full (using plain.bst):

full

share|improve this answer
1  
Thanks for describing the nightmare :-) –  krlmlr Feb 2 '12 at 13:56

The rendering of BibTeX entries is performed by a bibliography style file (.bst). The file to be used is selected with the \bibliographystyle{...} command. Check out the styles available by default and see if there is one that fits your needs -- cj or abbrv seem to be interesting, but both include the year.

If you really want to get rid of the year (I wouldn't do that in a scientific presentation), you'll have to copy and edit one of the .bst files, but this is quite a nightmare.

share|improve this answer

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.