编辑:

编辑:

我的代码是这样的:

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

我得到了这样的信息: 我有这个

我想要得到的是这样的: 我要这个

我应该怎么办?

答案1

只需使用\renewcommand{\refname}{Referências Bibliográficas}for classarticle\renewcommand{\bibname}{Referências Bibliográficas}for class即可reportbook该命令将重命名参考书目的标题,您可以删除使用的命令\section{Referências Bibliográficas}

请参阅以下 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}

结果:

在此处输入图片描述

具体需要什么取决于你未显示的代码。请查看这个问题获取更多信息...

编辑:

按照评论,一种(肮脏的)方法可以是:

\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}

结果如下:

在此处输入图片描述

相关内容