2

My code is something like this:

\newpage
\section{Referências Bibliográficas}
\bibliographystyle{abntex2-alf}
\bibliography{bibliografia.bib}

I get something like this: I have this

What I want to get is something like this: I want this

What should I do?

Doug
  • 21

1 Answers1

3

Just use \renewcommand{\refname}{Referências Bibliográficas} for class article or \renewcommand{\bibname}{Referências Bibliográficas} for class report, book. That command renames the heading for the bibliography and you can delete your used command \section{Referências Bibliográficas}.

See the following MWE

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
\end{filecontents*}


\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\renewcommand{\refname}{Referências Bibliográficas} % bibname for report,book


\begin{document}

Text~\cite{adams} % citing one bib entry 
\nocite{*}   % all not cited bib entrys are shown in bibliography ...
\bibliographystyle{plain} 
\bibliography{\jobname} % to use file created by filecontents ...

\end{document}

and the result:

enter image description here

What excact you need depends on your code you did not show. Please have a look to this question to get more informations ...

EDIT:

Following the comments one (dirty) way can be:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
\end{filecontents*}


\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\renewcommand{\refname}{} % bibname for report,book


\begin{document}

\tableofcontents

Text~\cite{adams} % citing one bib entry 
\nocite{*}   % all not cited bib entrys are shown in bibliography ...

\section{Referências Bibliográficas}
\vspace{-1cm}

\bibliographystyle{plain} 
\bibliography{\jobname} % to use file created by filecontents ...

\end{document}

with the result:

enter image description here

Mensch
  • 65,388