更改参考书目标题的样式

更改参考书目标题的样式

我使用 bibtex 生成参考书目。如何让参考书目的标题具有自定义文本、大小和对齐方式?

编辑:

我使用\documentclass[12pt,a4paper]{article}和,\bibliographystyle{gost2008}这是其他人制作的自定义书目样式。

我还使用 babel 包来提供语言支持。

\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[english,russian]{babel}
\usepackage{cite}
\usepackage[nottoc]{tocbibind} %% add bibliography to table of contents

\begin{document}

%%%%%%%%%%%%%%%%%%%%%%%%%
%% TEXT OF MY DOCUMENT %%
%%%%%%%%%%%%%%%%%%%%%%%%%

\bibliographystyle{gost2008}
\bibliography{main_bib,extra_bib}

\end{document}

答案1

我会建议反对改变文档中间元素的样式。

spiderfaceBibHeading

\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{cite}
\usepackage[nottoc]{tocbibind} %% add bibliography to table of contents

\begin{document}
\tableofcontents

\section{Wombats are cool}
\cite{doody}
\renewcommand{\tocbibname}{\sffamily\small Proof of Coolness}
\bibliographystyle{gost2008}
\bibliography{biblatex-examples.bib}

\end{document}

另一个例子,也改变对齐方式。

蜘蛛脸玛拉

\documentclass[12pt,a4paper,dvipsnames]{article}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{xcolor}
\usepackage{cite}
\usepackage{titlesec}
\usepackage[nottoc]{tocbibind} %% add bibliography to table of contents

\begin{document}
\tableofcontents

\section{Maras are cute}
Look at them, they really are.~\cite{doody}
\renewcommand{\refname}{Proof of Cuteness}
\titleformat{\section}{\sffamily\centering\bfseries\color{BrickRed}}{\thesection.}{\enspace}{}{}
\bibliographystyle{gost2008}
\bibliography{biblatex-examples.bib}

\end{document}

相关内容