如何对“参考”标题进行编号和集中

如何对“参考”标题进行编号和集中

根据期刊格式,我希望我的“参考文献”标题单独编号为一个部分。编号应遵循“致谢”的编号,我已将其编号为 8。现在只需将参考文献部分编号为“9. 参考文献”,并将其集中。但我将其用于bibtex参考。如何实现“参考文献”标题的编号和集中?

或者,我如何禁用“参考”标题,使标题为空白。我可以使用手动添加“9 标题” \section{9. Heading}

我对所有其他部分进行的居中都是手动进行的,没有使用任何包。我使用以下示例进行了其他居中:

\begin{center}{\large\textbf{{5.    Grid approach to the Jouannaud-Lescanne submultiset-based multiset ordering}}}\end{center}

以下是供大家参考的 MWE:

\documentclass[10pt, twoside]{article}
\usepackage[spanish,english]{babel}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[dvips]{graphicx}
\usepackage{mathabx}    
\usepackage{fancyhdr}
\pagestyle{fancy}
\thispagestyle{fancy}
\usepackage[numbers]{natbib}
\usepackage{enumerate}
\setcounter{page}{158}
\renewcommand{\thepage}{\arabic{page}}
\lfoot{\textrm{\textit{bla bla bla...}}}
\fancypagestyle{plain}{
\fancyhead[RO,LE]{\textrm{\textit{bla bla bla...}}}
}
\markright{\textrm{\textit{bla bla bla...}}}
\tolerance 1000
\title{\LARGE{\textbf{bla bla bla...
}}}
\author{\large{bla bla bla $^{1}$ and bla bla bla $^{2}$}\\ \\ \small{$^{1}$bla bla bla...} \\ \small{(bla...).} \\ \small\textit{bla...} \\ \\ \small{$^{2}$(bla bla bla...)} \\ \small{bla bla bla...} \\ \small{\textit{bla...}}}
\date{}
\begin{document}
\maketitle
\begin{center}{\large\textbf{{1.    Introduction}}}\end{center}
%...body of article
\renewcommand{\markboth}[2]{}
\bibliography{C:/Users/HP/Macpee_Document/bibliography_data/RefDatabase}
\bibliographystyle{apa}
\end{document}

输出

答案1

你的做法确实违背了使用 LaTeX 的所有良好做法。LaTeX 的整个理念是将格式与内容分开,而你正在手动格式化所有内容,这就是你发现事情如此困难的原因。你应该做的是使用适当的软件包来格式化你的章节标题,然后事情应该或多或少自动进行。这是你的文档的一个版本,供你入门。

我使用该authblk包来格式化作者块,使用该titling包来格式化标题,并使用titlesectitleps包来格式化章节标题和页眉和页脚。

natbib包默认将参考部分设为未编号部分。要对其进行编号,您只需将宏重新定义\bibsection为常规部分。当然,这只有在您首先使用正确的分段命令时才有效。

\documentclass[twoside]{article}
% This part just makes the document self-contained and is not needed
% except for the example code
\begin{filecontents}{\jobname.bib}
@book{Saussure1995,
    Author = {Ferdinand de Saussure},
    Origyear = {1916},
    Publisher = {Payot},
    Title = {Cours de Linguistique G{\'e}n{\'e}rale},
    Year = {1995}}
\end{filecontents}
\usepackage{titlesec}
\usepackage{titleps}
% The following code formats sections as centered and numbered.
\titleformat{\section}[block]
  {\filcenter\large\bfseries}%
  {\thesection.}{1em}{}
% And the same for subsection
\titleformat{\subsection}[block]
  {\filcenter\normalfont\bfseries}%
  {\thesubsection.}{1em}{}
% This code creates the headers and footers using a pagestyle called 'main'
\newpagestyle{main}{
  \sethead[\thepage][][] % even
          {}{}{\thepage}} % odd
\pagestyle{main}
\setcounter{page}{158}
% This package adds dummy text for the example
\usepackage{lipsum}
% This package allows finer control over the formatting of the title elements
\usepackage{titling}
\pretitle{\begin{center}\Large\bfseries}
\posttitle{\end{center}}
% This package allows a simple formatting of the author blocks
\usepackage{authblk}
\author[1]{First Author}
\author[2]{Second Author}
\affil[1]{First Affiliation\authorcr Address\bigskip}
\affil[2]{Second Affiliation\authorcr Address}
\title{A title}
\date{}

\usepackage[numbers]{natbib}
% Since natbib uses an unnumbered section by default we define \bibsection
% to make it a regular numbered section.
\renewcommand\bibsection{\section{\refname}}
\bibliographystyle{apa}
\begin{document}
\maketitle
\thispagestyle{empty}
\section{A section}
\subsection{A subsection}
\cite{Saussure1995}\lipsum[1-3]
\section{Another section}
\lipsum[1-2]
\section{Acknowledgements}
Thanks.
\bibliography{\jobname}
\end{document}

代码输出

相关内容