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 am trying to make my bibliography have two columns with each \bibitem appearing in the first one (a regular two-column table). This is an example of what the desired output looks like:

enter image description here

For a reason, I am using thebibliography to generate biblio manually. My code looks e.g. like this:

\begin{thebibliography}{13}
\footnotesize
...
\bibitem[Blog]{bib.blog} \emph{CloverETL's Blog on Data Integration:
CloverETL tips and advice from data integration experts} [online]. 2012 [quoted 2012-03-14]. Available  at: \url{http://blog.cloveretl.com/}
...
\end{thebibliography} 

I have been experimenting with minipage, multicols(*), tables (TeX will not let me separate \bibitem from the rest of the entries by &) with no success.

share|improve this question

1 Answer 1

Redefine the thebibliography environment and the \@biblabel command:

\documentclass[a4paper]{article}
\usepackage{url}

\makeatletter
\renewenvironment{thebibliography}[1]
     {\section*{\refname}%
      \footnotesize
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\bfseries[#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}
\renewcommand{\@biblabel}[1]{\smash{\parbox[t]{\labelwidth}{\raggedright\bfseries[#1]}}}
\makeatother

\begin{document}

\begin{thebibliography}{Axaptapedia, Sure Step}

\bibitem[Blog]{bib.blog} \emph{CloverETL's Blog on Data Integration: CloverETL tips and advice from data integration 
experts} [online]. 2012 [quoted 2012-03-14]. Available at: \url{http://blog.cloveretl.com/}

\bibitem[Axaptapedia, Sure Step Methodology]{axa} \emph{CloverETL's Blog on Data Integration: CloverETL tips and 
advice from data integration experts} [online]. 2012 [quoted 2012-03-14]. Available at: 
\url{http://blog.cloveretl.com/}

\end{thebibliography} 

\end{document}

The argument to the environment will tell LaTeX how big you want the labels to appear.

enter image description here

share|improve this answer
1  
That was some speed. Excellent, it works!! Thanks a ton. Furthermore, I tweaked your snippet by setting: \setlength{\labelsep}{1cm} \renewcommand\refname{Bibliography} EDIT (off-topic, I admit): Could we make those brackets round () instead of square []? So that they would appear like that both in Bibliography and in-document quotations when I use \cite{}. I know this is a kind of tough to achieve when not using natbib. –  sousedovic.maly Apr 9 '12 at 14:16
    
@user1059971 The brackets are, as you can see, in the definition of \@biblabel; just change them into parentheses. –  egreg Apr 9 '12 at 14:21
    
You are right, this did help me with () in Bibliography. However, because I use custom labels as in \bibitem[Blog]{bib.blog}, what I get when citing is always like [Blog]. I have been trying to figure out how to change it to (Blog). \parencite does exactly what I want, but I cannot use it beacuse biblatex is not compatible with my source. Any clues? –  sousedovic.maly Apr 9 '12 at 15:00
    
@user1059971 Add \renewcommand{\@cite}[2]{({#1\if@tempswa, #2\fi})} before \makeatother –  egreg Apr 9 '12 at 15:08
    
Smooth!! That is exactly what my dissertation needed :-). Thank you very much. This is such a splendid website, saving me a lot of effort. Looks like I will be popping in more often. –  sousedovic.maly Apr 9 '12 at 15:19

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.