I would like to shrink to a single line or a single paragraph my bibliography once I print it by \putbib[<mybibfile>] within a section using bibunit package. A related post suggests a potential way yet for a global bilbiography environment. And in fact adding the \renewenvironment{thebibliography} as suggested in that post before loading natbib and bibunit does not have any effect in my case. If I do it after natbib or bibunit the compilation halts with several errors. Any suggestions? I specify that I am using BibTeX and compiling either with PDFLateX or 'XeLateX` insofar as unfortunately, this is a preset class for a job application that I cannot modify.

In particular my setup looks right now as following:

\documentclass{<my_doc_class>} %my_doc_class is a child of 'article'
\usepackage[latin1]{inputenc} %% For ISO-latin1 chars (accented letters).
\usepackage{txfonts} % Use Times, Helvetica fonts

\usepackage{graphicx} % For the Inria logo and other figures
\parindent 0pt
\usepackage[cm]{fullpage} % Use the entire page (1.5 cm margins everywhere)






\subsection{\BiLingual{Description de la contribution}{ / }{Description of the contribution}}

<some text with several \citep{...} commands>



<some text with several \citep{...} commands>


Each command \putbib will print the "Bibliography" per each section as:

[1] Ref. 1

[2] Ref. 2

[3] Ref. 3

Instead what I would like, due to the space limitations of the document I am working with, is to have each Bibliography as

[1] Ref. 1 [2] Ref. 2 [3] Ref. 3 ...

The naturemag_doi bst file is some custom bibliography style that I preliminarly compiled by makebst. It is not crucial here. You can consider and other standard natbib style like apalike if it ease to work out a solution.

  • 1
    Welcome to TeX.SX! Could you show us your set-up in more detail in an MWE? That will allow us to assess your situation more easily and accurately. Maybe you could also give more details about the expected outcome with a 'mock-up' of what you'd like to see.
    – moewe
    Feb 9, 2017 at 10:27
  • Sure Let me edit a bit my question. Sorry about that.
    – maurizio
    Feb 9, 2017 at 10:38

1 Answer 1


Ok, after a while, I ultimately figured out that biblatex is better to handle this case. So in the preamble, I declared:

            maxnames = 3,
% Add BIB files            

% Define environment for single-line bibliography in the subsection

This will automatically make the bibliography in each section/subsection lumped in a single line or paragraph. It is not, properly speaking, the answer to my original question, but rather a workaround. Nevertheless, the reason I ultimately switched to biblatex in this case is because I needed to do several fine tunings on my bibliography, in addition to this one posted here, and as excellently explained here, and in the biblatex manual, the advantages bore by biblatex over natbib in customizing bibliographies are worth to spend an initial additional time to figure out how to make it work.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .