[texhax] LaTeX bibliography woes.

medvedev at project7.ru medvedev at project7.ru
Mon Jul 16 00:33:22 CEST 2007


Barbara Beeton wrote:

> the code that is suggested there should work
> for you, with perhaps some adjustments to the
> vertical spacing.

	Thanks, it did, after much tweaking. However, I ran into another
problem that further confuses the issue.

	The local tradition and requirements involve putting the entire
citation into a footnote AND having it in the aforementioned sectioned
list at the end.
	My script parses the .bbl generated by BibTeX, sorts it, and inserts
those virtual section headings into the right places.
	However, I'm using the bibentry package (from the depths of natbib) to
put citations into footnotes. (nothing else did it right) It does this
through some code that I can't properly understand -- from what I see,
it redefines \thebibliography, redefines the \bibitem command within
that, and sucks all the citations up into variables, which later end up
in footnotes when invoked with the appropriate key.
	Since it has to do that before any citations appear in the document, I
call it with the provided \nobibliography* command. Without virtual
section headings, this command produces no output.
	This is not the case when the .bbl file contains virtual section
headings, since they don't get caught by the redefined commands, so they
come out wherever \nobibliography* was called, and since I also have to
print \bibliograpy normally, they show up where they aren't wanted.
Since the goal is to get a good pdf file fit for distribution, I can't
settle them on a page I could later just remove.
	I don't really understand the code, so I'm not sure if I can make it
handle anything beyond \bibitem, and more importantly, the moment the
virtual section heading needs to be changed, it'll probably break.
	After much googling and shotgun debugging I decided that the only way
to do it is to somehow invoke the \nobibliography command for it's side
effects only, completely discarding whatever paragraphs it might
generate by wrapping it in something -- and just printing it in white or
outside the page boundary won't do either...
	Is there a way to do that?

-- 
Evgenie Medvedev


More information about the texhax mailing list