在参考资料中包装互联网地址长度

在参考资料中包装互联网地址长度

引用中的 URL 超出了列宽,我想知道该如何换行?

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\title{my title} 
\maketitle
\section{Section 1}
Paper~\cite{Nsight18} shows

\begin{thebibliography}{00}
\bibitem{Nsight18} NVIDIA Nsight Visual Studio Edition, https://docs.nvidia.com/gameworks/content/developertools/desktop/analysis/report/cudaexperiments/kernellevel/achievedflops.htm [online], 2018.
\end{thebibliography}
\vspace{12pt}
\end{document}

查看输出

在此处输入图片描述

答案1

如果您的 TeX 发行版具有该xurl包,那么您应该使用它。

在此处输入图片描述

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{xurl}
\title{my title} 
\begin{document}
\maketitle
\section{Section 1}
Paper~\cite{Nsight18} shows \dots

\begin{thebibliography}{00}

\bibitem{Nsight18} NVIDIA Nsight Visual Studio Edition, 
\url{https://docs.nvidia.com/gameworks/content/developertools/desktop/analysis/report/cudaexperiments/kernellevel/achievedflops.htm} 
[online], 2018.

\end{thebibliography}
\end{document}

相关内容