1

How do I get rid of this warning:

"Package breakurl Warning: You are using breakurl while processing via pdflatex.(breakurl) \burl will be just a synonym of \url. on input line 48."

Why do I care? The journal we're submitting to states there should no latex warnings.

Context: I'm on Overleaf. There are some urls. I'm not calling the function burl (nor using packages hyperref/breakurl).

What I've tried:

E. Tucker
  • 113
  • 1
    Welcome to TeX.SE. – Mico Aug 26 '22 at 17:55
  • 2
    Can you tell from the log file whether breakurl is being loaded? If so, can you identify the package that is doing it? – John Palmieri Aug 26 '22 at 17:55
  • why can't you avoid to load breakurl? (It is not needed) – Ulrike Fischer Aug 26 '22 at 18:01
  • @JohnPalmieri: Yes, if I put \listfiles in the preamble, breakurl does show up in the file list portion of the log. I'm not sure what's calling it. I'll keep looking. – E. Tucker Aug 26 '22 at 18:27
  • @UlrikeFischer: that would be great. I don't currently know how. I'm not calling it directly, but perhaps I can remove/adjust the package that's calling it – E. Tucker Aug 26 '22 at 18:27
  • If I look for \RequirePackage{breakurl} in my TeX distribution, I see these packages (may not be a complete list): FUpowerdot.cls, tui.cls, abntex2cite.sty, pst-doc.cls, cclayout.sty. – John Palmieri Aug 26 '22 at 18:53
  • Aha - it looks like the journal template calls it: \RequirePackage{hyperref}% %%\RequirePackage{hypcap}% \gdef\breakurldefns{% \if@pdflatex\else% \RequirePackage[hyphenbreaks]{breakurl}% \let\href\burlalt% \fi}% \breakurldefns% – E. Tucker Aug 26 '22 at 19:03
  • Does that mean we'll just be stuck with the warning? [Or should I pursue turning it off further?] – E. Tucker Aug 26 '22 at 19:06
  • 1
    well you can suppress the loading. Add \makeatletter \@namedef{ver@breakurl.sty}{}\makeatother at the begin of your document. – Ulrike Fischer Aug 26 '22 at 20:39
  • Thank you both! – E. Tucker Aug 27 '22 at 13:38

1 Answers1

3

My bet is that you're using some Springer Nature class.

The (scanty) documentation doesn't tell it, but if you want to avoid that warning you need to pass the class the option pdflatex.

Example 1

\documentclass{sn-jnl}

\begin{document}

\title{Test} \author{Test} \maketitle

\end{document}

In the log file you get

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.

Example 2

\documentclass[pdflatex]{sn-jnl}

\begin{document}

\title{Test} \author{Test} \maketitle

\end{document}

No warning in the log file.

Other classes

If you're not with a Springer Nature class, add

\makeatletter
\disable@package@load{burl}{}
\makeatother

at the very beginning of your file, before the \documentclass line.

egreg
  • 1,121,712
  • I am indeed. Thank you!! The full command (for future readers) was: \documentclass[sn-mathphys, pdflatex]{sn-jnl} – E. Tucker Aug 27 '22 at 13:38