我想删除引文周围的方括号,而不使用任何包(如 natbib)。如何做到这一点?这是一个带有方括号的几乎最小的 WE:
\documentclass[12pt]{book}
\makeatletter
\def\@biblabel#1{}
\makeatother
\begin{document}
This is a sentence with a citation, namely, \cite{last2000word}.
Note the square brackets around the citation.
\bibliographystyle{apalike}
\bibliography{example}
\end{document}
例如.bib 为:
@article{last2000word,
title={Word words},
author={Last, First},
journal={Journal},
pages={1--100},
year={2000},
}
答案1
你可以这样做(或多或少取自 LaTeX 伴侣):
\documentclass[12pt]{book}
\makeatletter
\def\@biblabel#1{}
\renewcommand\@cite[2]{{#1\if@tempswa,\nolinebreak[3] #2\fi}}
\makeatother
\begin{document}
This is a sentence with a citation, namely, \cite{doody}.
Note the square brackets around the citation.
\bibliographystyle{apalike}
\bibliography{biblatex-examples}
\end{document}