4

I want to insert a picture after the references title. For example:

enter image description here

The result I would like would be this:

enter image description here

Does anyone have any suggestions for solving this problem? I would like them to use the codes as shown below. I am using a documentclass of type "Abntex2".

\documentclass[12pt, a4paper]{abntex2}
\usepackage[utf8]{inputenc} 
\usepackage{graphicx}       
\usepackage{amssymb,amsmath,latexsym,amsfonts,amsthm}
\usepackage{lipsum} 

%%% CITE        
\usepackage[alf,abnt-etal-list=0,abnt-etal-cite=3]{abntex2cite}

\begin{document}


template test:
\cite{lamport1994latex}

\renewcommand{\bibname}{Bib name test}
\bibliography{references}


\end{document}
  • I can't quite tell by the two lines of code, but it looks suspiciously like you are not actually using biblatex (as your TeX suggests), but classical BibTeX instead. In that case a solution will be completely different. Since you got two biblatex-based answers already, I suggest you ask a new question (with appropriate tagging) and a full MWE (tex.meta.stackexchange.com/q/228/35864) instead of a code snippet. (See also tex.meta.stackexchange.com/q/7678/35864) – moewe Jan 15 at 19:08
  • @moewe, or we could turn the question into a generic one and offer answers that suit both biblatex and bibtex. As it stands now, the edit has likely made both answers wrong. – David Purton Jan 15 at 23:27
  • @DavidPurton My preferred way of action would have been to roll back the edit, edit this question to make clearer that it is about biblatex and then ask a new question about BibTeX. But I guess a combined question works as well. The trouble with BibTeX/thebibliography is that there the solution may possibly depend on the document class (or another package that redefines thebibliography), so even there a generic question is tricky. – moewe Jan 16 at 6:25
  • 1
    This shows why you must always give a complete minimal example when you ask a question. Without a proper example, we just waste time giving solutions to a question that keeps changing. – David Purton Jan 18 at 7:01
  • 1
    @moewe is right. (I should have listened to him to start with and not modified my answer.) If you roll back the question, I'll roll back my answer to it's initial state. You should then accept one of the answers and we'll look at your new question. – David Purton Jan 18 at 11:55
6

You can use the prenote argument to \printbibliography. Simply define the content you want to typeset between the heading and the bibliography with \defbibnote.

MWE adapted from David Purton's answer

\documentclass{article}
\usepackage{graphicx}
\usepackage{biblatex}

\defbibnote{addimage}{%
  \begin{center}
    \includegraphics{example-image}
  \end{center}}

\addbibresource{biblatex-examples.bib}
\begin{document}
\LaTeX{} \cite{companion} is a set of macros built atop \TeX{}
\cite{knuth:ct:a}.

\printbibliography[prenote=addimage]
\end{document}

"References" heading//Picture//Bibliography items

  • Oh, nice! biblatex has endless options. – David Purton Jan 14 at 13:11
6

A Classical BibTeX solution

You can patch \thebibliography to insert the image after the heading and before the list of references starts:

\documentclass{article}

\usepackage{graphicx}

\usepackage{xpatch}

\xpatchcmd{\thebibliography}
  {\list}
  {\begin{center}
     \includegraphics{example-image}
   \end{center}
   \list}
  {}
  {}

\begin{document}
\LaTeX{} \cite{companion} is a set of macros built atop \TeX{}
\cite{knuth:ct:a}.

\bibliographystyle{plain}
\bibliography{biblatex-examples.bib}
\end{document}

Classical BibTeX output

BibTeX output


A BibLaTeX solution

You can separate out the heading from the list of references and then put the image in between:

\documentclass{article}
\usepackage{graphicx}
\usepackage{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\LaTeX{} \cite{companion} is a set of macros built atop \TeX{}
\cite{knuth:ct:a}.

\printbibheading

\begin{center}
  \includegraphics{example-image}
\end{center}

\printbibliography[heading=none]
\end{document}

BibLaTeX output

BibLaTeX Output

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.