如何在latex正文中引用参考文献去掉方括号,并且以上标形式显示。

如何在latex正文中引用参考文献去掉方括号,并且以上标形式显示。


参考ChatGPT的回答得到以下代码。

\documentclass{article}

% 去掉引用中的方括号并以上标形式显示
\makeatletter
\renewcommand\@cite[1]{\textsuperscript{#1}}
\makeatother

\begin{document}

This is an example of a citation\cite{AA1}, and there is another citation\cite{BB1}.

\begin{thebibliography}{1}

\bibitem{AA1}
G. M. Amdahl, G. A. Blaauw, and F. P. Brooks, ``Architecture of the IBM System/360,'' {\it IBM J. Res. Dev}., vol. 8, no. 2, pp. 87--101, 1964. (Journal)

\bibitem{BB1}
IBM Corporation, IBM Knowledge Center - IBM Secure Service Container (Secure Service Container). [Online]. Available: {https://www.ibm.com/support/\break knowledgecenter/en/HW11R/com.ibm.hwmca.kc\_se.doc/\break introductiontotheconsole/wn2131zaci.html} (URL)

\end{thebibliography}

\end{document}

在这个代码中:

\makeatletter 和 \makeatother 命令用来允许对 LaTeX 内部命令进行重新定义。
\renewcommand@cite[1]{\textsuperscript{#1}} 重新定义了 \cite 命令的格式,使其生成的引用以上标形式显示,并去掉了默认的方括号。
这样,正文中的引用将会以上标的形式显示,并且没有方括号,最终效果图:
在这里插入图片描述

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值