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'm using multibib to typeset two "bibliographies": references and bibliographies. My supervisors don't want any keys/number in the text nor in the bibliographies section. I'm using \nocite{key} to suppress the key appearance in the text, but this still generates citations keys in the bibliography section. How do I simply insert full citation without a key (inverse of what is printed by the \cite)?

Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit.[1] Vivamus urna nisi, mattis eget convallis eget, sollicitudin eget quam. Duis lobortis odio vitae nulla vestibulum id suscipit ante elementum. Nulla vitae justo nec risus vehicula commodo.[2] Aenean commodo diam eget mi tincidunt condimentum. Nunc dolor nibh, mollis in vehicula auctor, porta aliquam lorem. Ut sagittis ipsum vel lorem sagittis sed bibendum ipsum molesti

References
[1] Citation
[2] Citation

Bibliography
Citation
Citation - This one is best to read last.

share|improve this question
    
I see, much clearer now. I've updated my answer to address your actual problem. –  Juan A. Navarro Aug 3 '10 at 16:36
add comment

4 Answers

up vote 9 down vote accepted

Use whatever bibliography style you're currently using to \cite and render your references section. Then use the bibentry package to generate your bibliography section.

share|improve this answer
    
I needed numbered style for the "references", but no keys in text and no keys in the style for the "bibliography" –  Dima Aug 3 '10 at 16:02
    
Couldn't believe my eyes =) this is exactly what I need! –  Dima Aug 3 '10 at 16:55
    
I'm glad it helped :D –  Juan A. Navarro Aug 3 '10 at 21:20
add comment

I expect that there's a package that would do it better, and I second the suggestion to check natbib. However, if nothing turns up, here's a hack that does it. I copied the definition of the thebibliography environment from article.cls and removed the bit where it prints a label (the empty first argument to the \list{}% line). With two bibliographies, you will probably want to keep the original bibliography environment as well so you should give this one a unique name. If you're using the \bibliography command to import the bibliographies rather than specifying them in the document then you will need to hack one of them to use the new command rather than the original one (unless the multibib thing that you mention does this automatically).

\documentclass{article}

\makeatletter
\renewenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother
\begin{document}

\begin{thebibliography}{KPMS82}

\bibitem{bm}
Michael Barr.
\newblock Coalgebras over a commutative ring.
\newblock {\em J. Algebra}, 32(3):600--610, 1974.

\end{thebibliography}
\end{document}
share|improve this answer
    
woow.. sorry but this is ugly, ugly, ugly. Why do this if other packages already do the work for you? –  Juan A. Navarro Aug 3 '10 at 16:31
    
Hmmmm... Looks good but I would prefer if it was a BibTeX style based on IEEEtrans. I know, I'm asking too much =) –  Dima Aug 3 '10 at 16:59
    
@Juan A. Navarro: Ugly is in the eye of the beer holder! I could counter with: Why use a package if it's just a minor hack? The package that does this might be huge and load lots of extra code which isn't necessary (imagine using TikZ just to draw a horizontal line). Plus, by seeing how it might be done in "raw" code, someone might get the "TeX bug" and turn from TeX user to TeX hacker! But I do have some sympathy with your position and note my "get out" clause at the beginning. –  Andrew Stacey Aug 3 '10 at 17:24
    
@Dima: I'd need to test to be sure, but this should be independent of BibTeX style since it modifies the bibliography environment, not the style of the BibTeX entries. Try it! –  Andrew Stacey Aug 3 '10 at 17:24
    
I get that. But that's the point that references will look different from bibliography. I want both of them use same bibtex styles (e.g. change on the fly). –  Dima Aug 3 '10 at 17:36
show 2 more comments

Taken from here

On Mar 23 2009, 12:44 pm, Christian Riesch wrote:

I got very helpful replies, especially from Michael Shell. I used this code: \documentclass{article}
\usepackage{multibib}
\newcites{apubs}{AuthorPublications}

\begin{document}
\cite{pub1,pub2,pub3}
\nociteapubs{apub1,apub2}

% authorpublications
\begingroup
\labelsep 0pt % set left indentation
\makeatletter
\def\@biblabel#1{\relax} % turn off biblabels
\makeatother
\bibliographystyleapubs{IEEEtran}
\bibliographyapubs{mybibfile}
\endgroup

% "global" bibliography
\begingroup
\continuouslabelsfalse
\bibliographystyle{IEEEtran}
\bibliography{mybibfile}
\endgroup

\end{document}

share|improve this answer
    
link is broken. –  Yossi Farjoun Dec 13 '10 at 17:51
add comment

Maybe the jurabib packages/bibstyle together with \nocite for the "bibliography" bibliography provides what you want?

share|improve this answer
    
I looked trough jurabib. It looks good, but not for my field. I'm using IEEEtrans style for engineering reference style. –  Dima Aug 3 '10 at 17:00
add comment

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.