书目环境的变化

书目环境的变化

我正在尝试对环境进行两项更改thebibliography。具体来说,我需要两件事:

1) 我需要“参考文献”标题的样式与环境不同\section。具体来说,我需要参考文献出现在标题正下方,没有垂直空格。

2)我需要参考文献与正文对齐。现在,我不知道为什么参考文献看起来像是缩进的。

\documentclass[12pt,twoside]{article}
\usepackage[a4paper,width=150mm,top=30mm,bottom=30mm,bindingoffset=10mm]{geometry}
\linespread{1}
\setlength\parindent{1.25cm}
\renewcommand{\footnotesize}{\small}
\usepackage[hang]{footmisc}
\setlength\footnotemargin{1.25cm}
%\usepackage[utf8]{inputenc} %Standard diachritics in Romance languages (accents, umlauts)
\usepackage{times} %Uses Times New Roman font
\usepackage{tikz}
%\noautomath
\usepackage{url}
\usepackage{multicol}
\usepackage[all,defaultlines=2]{nowidow}
\usepackage{mathtools}
\usepackage{forest}
\usepackage{tipa}
\usepackage[normalem]{ulem}
\usepackage{xpatch}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\pagenumbering{arabic}

\makeatletter
\renewcommand\@biblabel[1]{}
\makeatother


\usepackage[tiny]{titlesec}
\titlelabel{\thetitle.\quad}
\titleformat*{\subsection}{\itshape}
\titlespacing*{\section}
{0pt}{2\baselineskip}{\baselineskip}
\titlespacing*{\subsection}
{0pt}{1\baselineskip}{0\baselineskip}
\titleformat*{\subsubsection}{\itshape}
\titlespacing*{\subsubsection}
{0pt}{1\baselineskip}{0\baselineskip}




\let\OLDthebibliography\thebibliography
\renewcommand\thebibliography[1]{
  \OLDthebibliography{#1}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt plus 0.3ex}
}


\makeatletter
% patch \maketitle so that it doesn't center
\patchcmd{\@maketitle}{center}{flushleft}{}{}
\patchcmd{\@maketitle}{center}{flushleft}{}{}
% patch \maketitle so that the font size for the title is normal
\patchcmd{\@maketitle}{\LARGE}{\normalsize}{}{}

\def\maketitle{{%
        \renewenvironment{tabular}[2][]
        {\begin{flushleft}}
            {\end{flushleft}}
        \AB@maketitle}}
\makeatother

\def\bibindent{3em}
\makeatletter
\let\old@biblabel\@biblabel
\def\@biblabel#1{\old@biblabel{#1}\kern\bibindent}
\let\old@bibitem\bibitem
\def\bibitem#1{\old@bibitem{#1}\leavevmode\kern-\bibindent}
\makeatother

\usepackage{lipsum}



\begin{document}

    \section{First section}
\lipsum[3]

    \subsection{Subsection}
 \lipsum[3]

 \subsection{Subsubsection}
 \lipsum[3]

\begin{thebibliography}{57}

\bibitem{key-1}Adger, David. 2003. \emph{Core Syntax. A minimalist
Approach}. Oxford University Press, New York.
\bibitem{key-16}Alberdi, Xabier. 1994. \emph{Euskararen tratamenduak: erabilera. }EHU-UPV.
\bibitem{key-2}Albizu, Pablo. 1991. ``Sobre la existencia del Movimiento
Largo de N\'{u}cleos en Euskera." Manuscript, Instituto Universitario
Ortega y Gasset, Madrid.



\end{thebibliography}







\end{document}

答案1

vspace您可以在 new 末尾添加负数thebibliography以减少此间距。解决第二个问题的一种方法是设置\itemindent负值,以便项目向左移动。如下所示:

\let\OLDthebibliography\thebibliography
\renewcommand\thebibliography[1]{
  \OLDthebibliography{#1}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt plus 0.3ex}
  \setlength{\itemindent}{-1ex}
   \vspace{-2ex}
}

enter image description here

相关内容