如何删除书目中的悬挂项目?

如何删除书目中的悬挂项目?

我想删除问答中的悬挂缩进:如何删除书目条目中的悬挂缩进在此处输入图片描述

我正在写一篇论文,我使用了许多软件包。我试图在下面给出一个最小的工作示例。参考书目风格实际上是相似的,但为了改变 bibsymbol [1] 至 1. 我使用它的副本作为 tapalike。

\documentclass[12pt,twoside,fleqn]{report}
\usepackage[turkish]{babel}
\usepackage{fontspec}
\usepackage{enumerate,letltxmacro}
\usepackage{enumitem}
\usepackage{etoolbox}
\usepackage{caption}
\usepackage[numbers,sort]{natbib}
\def\bibindent{0em}
\setlength{\bibhang}{0pt}
\setlist[itemize]{leftmargin=*}
\DeclareCaptionLabelSeparator{dot}{. }
\captionsetup{labelsep=dot}
\addto\captionsturkish{\renewcommand\bibname{{\normalsize REFERENCES}}}
\makeatletter\renewcommand{\@biblabel}[1]{#1.}\makeatother
\patchcmd{\thebibliography}{\leftmargin\labelwidth}{\leftmargin\labelwidth\labelsep=.4cm}{}{}
\bibliographystyle{tapalike}
\begin{document}
THERMAL...\cite{pankaj2011}.
Convection ...\cite{benard1901}.
\bibliography{tezbib}
\end{document}

答案1

我不知道我在序言中到底做了什么,但这段代码似乎解决了这个问题。感谢@Gonzalo Medina 和@Skillmon:Natbib 和 bibhang 与数字或超级不合拍 在此处输入图片描述

\documentclass[12pt,twoside,fleqn]{report}
\usepackage[turkish]{babel}
\usepackage{fontspec}
\usepackage{enumerate,letltxmacro}
\usepackage{enumitem}
\usepackage{etoolbox}
\usepackage{caption}
\usepackage[numbers,sort]{natbib}
\setlist[itemize]{leftmargin=*}
\DeclareCaptionLabelSeparator{dot}{. }
\captionsetup{labelsep=dot}
\addto\captionsturkish{\renewcommand\bibname{{\normalsize REFERENCES}}}
\bibliographystyle{tapalike}
\newlength\mybibindent
\setlength\mybibindent{7pt}
\bibliographystyle{tapalike}
\makeatletter\renewcommand{\@biblabel}[1]{#1.}\makeatother
\makeatletter
\renewenvironment{thebibliography}[1]
 {\chapter*{{\vspace*{-3.5em}}\centerline\bibname}%
  \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
  \list{\@biblabel{\@arabic\c@enumiv}}%
       {\settowidth\mybibindent{\@biblabel{#1. }}%
\setlength\labelsep{\mybibindent}
 \leftmargin\dimexpr\labelwidth
        \@openbib@code
        \usecounter{enumiv}
        \let\p@enumiv\@empty
        \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}
 {\def\@noitemerr
   {\@latex@warning{Empty `thebibliography' environment}}%
  \endlist}
\makeatother
\begin{document}
THERMAL...\cite{pankaj2011}.
Convection ...\cite{benard1901}.
\cite{perkins2011}
\cite{rayleigh1916}
\cite{boussinesq1903}
\cite{roh2001}
\cite{kaya2009}
\cite{cannon1980}
\cite{morimoto1992}
\cite{robinson2001}
\bibliography{tezbib}
\end{document}

相关内容