apacite 使用自定义边距和 parindent 时会在文本区域外产生内联引用

apacite 使用自定义边距和 parindent 时会在文本区域外产生内联引用

引文超出了文本区域。这似乎与自定义边距和引文规范有关。有没有办法保留自定义设置,但仍然让引文按预期换行?

谢谢。

这是一个 MWE .tex 文件:

\documentclass[11 pt]{article}
\usepackage{apacite}
\setlength{\textwidth}{6.5in}\setlength{\textheight}{9.2in}
\setlength{\oddsidemargin}{-.05in} \setlength{\topmargin}{-.5in}
\setlength{\parindent}{30pt}

\begin{document}
\par Text text text text text text text text text text text text text text     text text textsss \cite{mweauth}. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text.
\bibliographystyle{apacite}
\bibliography{mwe_bib}
\end{document}

和 MWE .bib 文件:

@book{mweauth,
    Author={Firstname Longlastname},
    Title={Book Title},
    Publisher={Publishing Company},
    Address={City, State},
    Year={2015} }

这就是问题所在。

答案1

您应该natbibapa在加载apacite包时添加该选项。

在此处输入图片描述

\RequirePackage{filecontents}
\begin{filecontents}{mwe_bib.bib}
@book{mweauth,
    Author={Firstname Longlastname},
    Title={Book Title},
    Publisher={Publishing Company},
    Address={City, State},
    Year={2015} }
\end{filecontents}

\documentclass[11pt]{article}
\usepackage[natbibapa]{apacite}  % <-- new option: "natbibapa"
\setlength{\textwidth}{6.5in}\setlength{\textheight}{9.2in}
\setlength{\oddsidemargin}{-.05in} \setlength{\topmargin}{-.5in}
\setlength{\parindent}{30pt}

\begin{document}
\par Text text text text text text text text text text text text text text     text text textsss \cite{mweauth}. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text. Text text text text text text text text text text text text text.
\bibliographystyle{apacite}
\bibliography{mwe_bib}
\end{document}

相关内容