继续这个问题:如何删除“参考文献”标题
我想删除文档主要参考书目中的它,而不仅仅是章节中的它(我只有一个参考书目)...
我正在使用XeTeX
和BibTeX
....
梅威瑟:
% Preview source code
%% LyX 2.3.6.1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{fontspec}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\parindent}{0bp}
\usepackage{color}
\usepackage{pifont}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true]
{hyperref}
\hypersetup{
linkcolor=blue}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\newfontfamily\hebrewfont[Script=Hebrew]{David CLM}
\newfontfamily\hebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
\newfontfamily\hebrewfontsf[Script=Hebrew]{Bellefair}
\AtBeginDocument{
\renewcommand\footnoterule{%
\kern -3pt
\hbox to \textwidth{\hfill\vrule height 0.4pt width .4\textwidth}
\kern 2.6pt
}}
\addtokomafont{disposition}{\rmfamily}
}
\makeatother
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\begin{document}
שלום
\begin{english}
\bibliographystyle{plain}
\nocite{*}
\bibliography{bib1}
\end{english}
\end{document}
谢谢你!
答案1
由于这是显而易见的scrartcl
,没有natbib
书目可能由scrartcl
在其来源中我们发现
\makeatletter
\renewcommand*{\bib@heading}{}
\makeatother
应该完全删除标题,包括标题上方和下方的间距。
答案2
使用
\addto\captionsenglish{% Added <<<<<<<<<<<<<<<<<<<
\renewcommand{\refname}{}
}
标题为空白的章节将产生垂直空白空间,可以将其删除以供参考书目使用。
更新了 MWE 的最后一部分
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\addto\captionsenglish{% Added <<<<<<<<<<<<<<<<<<<
\renewcommand{\refname}{}
}
\begin{document}
שלום
\vspace*{-40pt} % remove the vertical space produced by a chapter with no title
\begin{english}
\nocite{*}
\bibliographystyle{plain}
\bibliography{examplebib}
\end{english}
\end{document}