作者和页码之间的逗号

作者和页码之间的逗号

我需要帮助完成我的学期论文。当我使用 引用时\cite[px]{author},我想删除作者和页码 (px) 之间的逗号。

我明白了:(作者,px)

我需要这个:(作者 px)

谢谢你!

这是文件:

\documentclass[12pt]{scrartcl}

\usepackage{geometry}                % See geometry.pdf to learn the layout options.     There are lots.

\geometry{a4paper, top=25mm, left=35mm, right=35mm, bottom=25mm}                 
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{ulem}
\usepackage{enumitem}
\usepackage{stmaryrd}
\usepackage{makeidx}
\makeindex
\usepackage{amsmath}
\numberwithin{equation}{section}
\usepackage{hyperref}
\usepackage{underlin}
\usepackage{qtree}
\usepackage{tipa}
\usepackage{natbib}
\usepackage{subfigure}
\usepackage{ifthen}

\makeatletter
\renewcommand\@cite[2]{
({ #1\ifthenelse{\boolean{@tempswa}}{ \nolinebreak[3] #2}{}})
}
\makeatother



\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}


\newpage                                        % Activate to display a given date or no date

\begin{document}
\newcommand{\attrib}[1]{\nopagebreak{\raggedleft\footnotesize #1\par}}                  
\tableofcontents
\thispagestyle{empty}
\newpage    
\section{Introduction}
As a young author "who was yet to find a public he was cautious about immediately   identifying himself with a work hat he himself regarded as shocking"
\cite[x]{Ziff}
\setcounter{page}{1}
\renewcommand{\baselinestretch}{1.50}\normalsize

\newpage
\begin{thebibliography}{------}

\bibitem[Ziff]{Ziff}
Ziff, Larzer. "Introduction" \textit{Maggie: A Girl of the Streets and Other Tales of New York.} Stephen Crane. London: Penguin Books, 2000. vii-xxv. 
\end{document}

好的,在这里我添加了所有 usepackages 和与上文中给出的示例相关的参考书目部分。输出是作者 Ziff 和页码 x 之间的逗号。我想删除逗号,以便新输出为 (Ziff x) 而不是 (Ziff, x)。希望您能帮助我!

答案1

编辑:由于您正在使用natbib,只需将其添加到文档的序言中(在之后\usepackage{natbib}和之前的某个地方\begin{document}):

\setcitestyle{notesep={  }}

相关内容