1

Based off the same issue and MWE provided in:

Move entire DOI to the next line rather than sticking into the margin

would you indicate how to achieve the same result for any URL as opposed to just a DOI? For example, replace any of the DOI={whatever} with URL={https://www.jstor.org/stable/248204_this_URL_is_tooooooooooooooo_long}.

Update: solved with this:

\DeclareFieldFormat{url}{%
  \hfil\penalty90\hfilneg\space
  \ifhyperref
    {\href{#1}{\nolinkurl{#1}}}
    {\nolinkurl{#1}}}
Bernard
  • 271,350
CraigS
  • 23
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jul 09 '22 at 18:04
  • Provided by https://tex.stackexchange.com/a/572416/161015 – Simon Dispa Jul 09 '22 at 18:38

1 Answers1

1

Solved with this:

\DeclareFieldFormat{url}{%
  \hfil\penalty90\hfilneg\space
  \ifhyperref
    {\href{#1}{\nolinkurl{#1}}}
    {\nolinkurl{#1}}}
CraigS
  • 23