4

Possible Duplicate:
Citations with no bibliography at the end

I have a document with a very tight space restriction and I've found that it is easier to compact my references by copying them from a compiled PDF into the document. However this obviously gives two copies of the bibliography in the document. Is there any way in which to compile the references for a document, so that the citations are numbered correctly etc. but not actually print the references?

Leda
  • 367

2 Answers2

5

run your document as usual and then run it one time with a commented %\blibliography{...}

2

Try this:

\makeatletter
\def\bibliography#1{%
   \if@filesw
   \immediate\write\@auxout{\string\bibdata{#1}}%
\fi}
\makeatother

Note that in latex.ltx this command is defined as

\def\bibliography#1{%
  \if@filesw
    \immediate\write\@auxout{\string\bibdata{#1}}%
  \fi
 \@input@{\jobname.bbl}}

This command writes the bibliography files to the .aux file, and the last line reads the .bbl file and inserts it at the point. By redefining the command you keep the first part and get rid of the last one.

Boris
  • 38,129
  • 3
    Would you care to elaborate on your answer? Suggesting "Try this..." or "Here you go..." solutions provides little context and no justification as to the choice of your code. – Werner Oct 27 '11 at 18:24
  • Would you care to elaborate on your answer? Suggesting "Try this..." or "Here you go..." solutions provides little context and no justification as to the choice of your cod
    Surely
    – Boris Oct 27 '11 at 18:48