包 breakurl 警告:您正在通过 pdflatex 处理时使用 breakurl。(breakurl) \burl 将只是 \url 的同义词。在输入行 48

包 breakurl 警告:您正在通过 pdflatex 处理时使用 breakurl。(breakurl) \burl 将只是 \url 的同义词。在输入行 48

如何消除以下警告?

Package breakurl Warning: You are using breakurl while processing via pdflatex.

(breakurl)                \burl will be just a synonym of \url.
(breakurl)                 on input line 48.

这是我在 \begin{document} 之前的代码

%\documentclass[review]{elsarticle}
\documentclass[sn-mathphys]{sn-jnl}

\usepackage{lineno}

\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{supertabular}
\usepackage{multirow}
%\usepackage[skip=0.5\baselineskip,skip=0.5\abovecaptionskip]{caption}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}

\usepackage{verbatim}
% \usepackage{subfiles}
\hyphenation{presents}
\setlength{\textfloatsep}{3pt}
\date{February 2022}
%%% journal %%%

%%%%%%%%%%%%%%%%%%%%%%%
%% Elsevier bibliography styles
%%%%%%%%%%%%%%%%%%%%%%%
%% To change the style, put a % in front of the second line of the current style and
%% remove the % from the second line of the style you would like to use.
%%%%%%%%%%%%%%%%%%%%%%%

%% Numbered
%\bibliographystyle{model1-num-names}

%% Numbered without titles
%\bibliographystyle{model1a-num-names}

%% Harvard
%\bibliographystyle{model2-names.bst}\biboptions{authoryear}

%% Vancouver numbered
%\usepackage{numcompress}\bibliographystyle{model3-num-names}

%% Vancouver name/year
%\usepackage{numcompress}\bibliographystyle{model4-names}\biboptions{authoryear}

%% APA style
%\bibliographystyle{model5-names}\biboptions{authoryear}

%% AMA style
%\usepackage{numcompress}\bibliographystyle{model6-num-names}

%% `Elsevier LaTeX' style
%\bibliographystyle{elsarticle-num}
%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\textfloatsep}{3pt}
\setlength{\abovedisplayskip}{3pt} %%% 3pt 

\setlength{\belowdisplayskip}{3pt}
\begin{document}

答案1

\burl关于被视为同义词的消息\url是一条警告消息,不是\burl错误消息。您不需要对此采取任何措施 —— 尤其是当文档正文中没有指令时。

如果您真的无法忍受收到这个无害的警告信息,我建议您sn-jnl.cls在文本编辑器中打开该文件并找到以下代码块:

\gdef\breakurldefns{%
\if@pdflatex\else%
  \RequirePackage[hyphenbreaks]{breakurl}%
  \let\href\burlalt%
\fi}%
\breakurldefns%

然后,注释掉(或删除)整个块,或者更简单地删除它的最后一条指令,

\breakurldefns%

答案2

要抑制警告,请使用以下选项加载类pdflatex

\documentclass[pdflatex]{sn-jnl}
\begin{document}
xxxx

\end{document}

相关内容