我当时正在看这一页如何在 LaTeX 中设置简短的参考书目。当我写
\begin{thebibliography}{1}
\bibitem{notes} John W. Dower {\em Readings compiled for History
21.479.} 1991.
\bibitem{impj} The Japan Reader {\em Imperial Japan 1800-1945} 1973:
Random House, N.Y.
\bibitem{norman} E. H. Norman {\em Japan's emergence as a modern
state} 1940: International Secretariat, Institute of Pacific
Relations.
\bibitem{fo} Bob Tadashi Wakabayashi {\em Anti-Foreignism and Western
Learning in Early-Modern Japan} 1986: Harvard University Press.
\end{thebibliography}
它的编译如下:
我想知道如何修改它以便不显示数字?
答案1
\documentclass{article}
\makeatletter
\renewcommand\@biblabel[1]{}
\makeatother
\begin{document}
\begingroup
\setlength{\labelsep}{0pt}
\begin{thebibliography}{}
\bibitem{notes} John W. Dower {\em Readings compiled for History
21.479.} 1991.
\bibitem{impj} The Japan Reader {\em Imperial Japan 1800-1945} 1973:
Random House, N.Y.
\bibitem{norman} E. H. Norman {\em Japan's emergence as a modern
state} 1940: International Secretariat, Institute of Pacific
Relations.
\bibitem{fo} Bob Tadashi Wakabayashi {\em Anti-Foreignism and Western
Learning in Early-Modern Japan} 1986: Harvard University Press.
\end{thebibliography}
\endgroup
\end{document}
答案2
您可以重新定义thebibliography
:
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\list{}%
{\leftmargin0pt
\@openbib@code
\usecounter{enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
请注意,由于代码使用了,因此需要命令\makeatletter
和。\makeatother
@
拥有完整的 MWE
\documentclass{article}
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\list{}%
{\leftmargin0pt
\@openbib@code
\usecounter{enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
\begin{document}
\begin{thebibliography}{1}
\bibitem{notes} John W. Dower {\em Readings compiled for History
21.479.} 1991.
\bibitem{impj} The Japan Reader {\em Imperial Japan 1800-1945} 1973:
Random House, N.Y.
\bibitem{norman} E. H. Norman {\em Japan's emergence as a modern
state} 1940: International Secretariat, Institute of Pacific
Relations.
\bibitem{fo} Bob Tadashi Wakabayashi {\em Anti-Foreignism and Western
Learning in Early-Modern Japan} 1986: Harvard University Press.
\end{thebibliography}
\end{document}
你得到: