我用 LaTeX () 撰写了论文xepesian
,并自定义了章节标题,如下所示:
\makeatletter
\def\thickhrule{\leavevmode \leaders \hrule height .5ex \hfill \kern \z@}
\def\position{\centering}
%% Note the difference between the commands the one is
%% make and the other one is makes
\renewcommand{\@makechapterhead}[1]{%
\vspace*{10\p@}%
{\parindent \z@ \position \reset@font
{\Huge\bfseries \@chapapp\space \thechapter}%\Huge \scshape \thechapter }
\par\nobreak
\vspace*{140\p@}%
\interlinepenalty\@M
\thickhrule
\par\nobreak
\vspace*{2\p@}%
{\Huge \bfseries #1\par\nobreak}
\par\nobreak
\vspace*{2\p@}%
\thickhrule
\vskip 40\p@
\vskip 100\p@
}
}
现在我想从其中一章(参考文献(未编号)章节)中删除此标题。我该怎么做?
我的主要文件:
\documentclass[a4paper,12pt]{report}
\usepackage{graphicx} % inserting images
\usepackage{hyperref} % PDF links
\usepackage{setspace} % for switching between double/single space in document
\usepackage{amsthm,amssymb,amsmath}
%\usepackage{amsmath}
\usepackage{multirow}
\usepackage{float}
\usepackage{pdfpages}
\usepackage{cite}
\usepackage[font=scriptsize]{caption}
\usepackage{subfigure}
%\usepackage{subcaption}
\usepackage{float}
\usepackage{caption}
\usepackage{enumerate}
\usepackage{cite}
\usepackage{fancyhdr} % package for changing Headings style
% setting the margins of page
%\usepackage[top=3cm,right=4cm,bottom=3cm,left=3cm]{geometry}
\usepackage[top=3cm,right=3cm,bottom=3cm,left=4cm]{geometry1}
\usepackage{xepersian}
\usepackage{xcolor}% sets colour
\usepackage{sectsty}% sets colour
\usepackage{float}
\usepackage{fixltx2e}%for sub and superscript in text
\newcommand{\zir}{\LTRfootnote}
\newcommand{\sub}{\textsubscript}
%\newcommand{\super}{\textsuperscript}
\newcommand{\marja}{\textcolor{blue}}
\newcommand{\angstrom}{\textup{\AA}}
\setcounter{tocdepth}{5} % sets numbering in contents
\setcounter{secnumdepth}{5}% sets numbering in subsubsection
%\chapterfont{\color{blue}} % sets colour of chapters
%\sectionfont{\color{red}} % sets colour of sections
%\subsectionfont{\color{brown}}
%\DefaultMathsDigits
\hypersetup{%
colorlinks=true,% hyperlinks will be coloured
linkcolor=blue,% hyperlink text will be blue
citecolor=red,% color of links to bibliography
}
% tell tex engine address of folder containing your pictures
\graphicspath{{pics/}}
% commands to print the page number in header
\cfoot{}
\lhead{\thepage}
% commands related to XePersian package
\defpersianfont\nastaliq[Scale=2]{XB Niloofar}
\settextfont[Scale=1.1]{XB Niloofar}%Zar}
\setdigitfont{XB Niloofar}%Times New Roman}
%\setlatintextfont{LinLibertine}
\makeatletter
\def\@myabjad#1{\ifcase#1\or أ\or ب\or ج\or د\or ه\or و\or
ز\or ح\or ط\or ی\or ک\or ل\or م\or ن\or س\or ع\or ف\or ص\or ق\orر\or
ش\or ت\or ث\or خ\or ذ\or ض\or ظ\or غ\or ء\or \else\@ctrerr\fi}
\def\myabjad#1{\expandafter\@myabjad\csname c@#1\endcsname}
\makeatother
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\makeatletter
\def\thickhrule{\leavevmode \leaders \hrule height .5ex \hfill \kern \z@}
\def\position{\centering}
%% Note the difference between the commands the one is
%% make and the other one is makes
\renewcommand{\@makechapterhead}[1]{%
\vspace*{10\p@}%
{\parindent \z@ \position \reset@font
{\Huge\bfseries \@chapapp\space \thechapter}%\Huge \scshape \thechapter }
\par\nobreak
\vspace*{140\p@}%
\interlinepenalty\@M
\thickhrule
\par\nobreak
\vspace*{2\p@}%
{\Huge \bfseries #1\par\nobreak}
\par\nobreak
\vspace*{2\p@}%
\thickhrule
\vskip 40\p@
\vskip 100\p@
}}
%% The following commands must be used if we want to change the Form of the title of tableofcontent ,...
%\def\@makeschapterhead#1{%
% \vspace*{10\p@}%
%{\parindent \z@ \position \reset@font
% {\Huge \scshape \vphantom{\thechapter}}
% \par\nobreak
% \vspace*{10\p@}%
% \interlinepenalty\@M
% \thickhrule
% \par\nobreak
% \vspace*{2\p@}%
% {\Huge \bfseries #1\par\nobreak}
% \par\nobreak
% \vspace*{2\p@}%
% \thickhrule
% \vskip 100\p@
%}}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\renewcommand{\bibname}{مراجع}
%\renewcommand{\eqnumcolor}{\color{red}}
\input{jeld_info}
\begin{document}
\include{cover_fa}
\input{besmellah}
\baselineskip 27pt
\include{ezharnameh}
\include{taeid}
\baselineskip 27pt
%\pagenumbering{Alph}
\include{setayesh}
\baselineskip 27pt
\pagenumbering{myabjad}
\include{taghdim}
\baselineskip 27pt
\include{sepas}
\baselineskip 27pt
%\pagenumbering{harfi}
\include{abstract_fa}
\tableofcontents
% insert each of your chapters with a \include{filename} command as below
\doublespacing
\baselineskip 27pt
\include{chap1}
\singlespacing
\baselineskip 27pt
\include{references}
\end{document}
参考文献如下:
\chapter*{مراجع}%\markboth{مراجع}{مراجع}
\addcontentsline{toc}{chapter}{مراجع}
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
%\pagenumbering{arabic}
\thispagestyle{empty}
\begin{thebibliography}{99} \small
\begin{latin}
\bibitem{Janssen}
P. J. C. Janssen and C .R . Acad. Sci. Paris \textbf{67}, 494 (1868).
\bibitem{Lockyer}
J. N. Lockyer and C. R. Acad. Sci. Paris \textbf{67}, 836 (1868).
\bibitem{Ramsay}
W. Ramsay, Nature (London) \textbf{51}, 512 (1895); \textbf{52}, 7 (1895).
\end{latin}
\end{thebibliography}
(抱歉,文档太长了)。
在导出的文件中我有以下内容:
我想删除仅包含章节标题 (مراجع) 的寻呼机。除此之外,一切都正常。
答案1
在您的参考文件中,删除行
\chapter*{مراجع}%\markboth{مراجع}{مراجع}
问题就解决了。
请注意,thebibliography
环境会自动插入章节标题,因此不需要上面的行。
还要注意,您正在\include
执行它,因此\clearpage
在此之前会发出一个,\addcontentsline
并将引用正确的页面。