我想删除部分和参考文献之间的两个空行,如下所示。解决这个不寻常的问题会很好。这是我的 latex 脚本。
\documentclass[a4paper,12pt]{article}
%% Pick the one corresponding to your system
%\usepackage[latin1]{inputenc}
%\usepackage[ansinew]{inputenc}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage[colorlinks=true,linkcolor=black,citecolor=black,urlcolor=blue]{hyperref}
\usepackage{geometry}
\geometry{top=2.5cm,bottom=2.5cm,left=3.0cm,right=3.0cm}
\pagestyle{empty}
\usepackage{titlesec}
\titleformat{\section}
{\bfseries\uppercase}{\thesection.}{1em}{}
\titleformat{\subsection}
{\bfseries}{\thesection.\thesubsection.}{1em}{}
\renewcommand{\labelitemi}{\textendash}
\renewcommand{\labelitemii}{\textendash}
\renewcommand{\refname}{}
\usepackage{graphicx} % used to insert the figure
\usepackage{multirow} % used for the table
\usepackage[font=it]{caption}
\usepackage{cite}
\usepackage{breakurl}
\usepackage{indentfirst}
\usepackage{amsmath, amssymb, amsfonts, bm}
\usepackage{txfonts}
\usepackage{enumitem}
\hyphenpenalty=10000
\setlength{\emergencystretch}{3em}
\columnsep 1cm
\setlength{\parindent}{0.5cm}
\renewcommand\eqref[1]{Equation~\ref{#1}}
\begin{document}
\section{References}
\nocite{*}
\bibliographystyle{unsrt}
\bibliography{biblio}
\end{document}
答案1
你基本上把参考文献标题放了两次,一次使用\section{References}
,一次(不可见,但占用空间)使用\renewcommand{\refname}{}
。假设你想要一个编号的参考列表,你可以这样做
\documentclass[a4paper,12pt]{article}
\usepackage[numbib]{tocbibind}
\usepackage{filecontents}
\begin{filecontents}{biblio.bib}
@article{foo,
author={Foo, Bar},
year={2019}}
\end{filecontents}
\bibliographystyle{unsrt}
\begin{document}
\nocite{*}
\bibliography{biblio}
\end{document}