0

I would like to break the url of the command

\href{https://www.nature.com/nature-research/editorial-policies/reporting-standards#data}
            {policies}

in the source file as follows:

\href{https://
      www.nature.com/
      nature-
      research/
      editorial-
      policies/
      reporting-
      standards#
      data}
      {policies}

Is there any way to do this?

1
  • 1
    Do you want the URL to be linkable? Feb 19, 2020 at 1:19

1 Answer 1

1

I hope to have understood well your question. Something as this?
enter image description here

\documentclass[a4paper]{article}
\usepackage{hyperref}
\begin{document}
\noindent
\sloppy
\url{https://
      www.nature.com/
      nature-
      research/
      editorial-
      policies/
      reporting-
      standards#
      datapolicies}
\end{document}

or this?

\documentclass[a4paper]{article}
\usepackage{hyperref}
\begin{document}
\noindent
\sloppy
\url{https://
      www.nature.com/
      nature-
      research/
      editorial-
      policies/
      reporting-
      standards#
      data}

\noindent \url{policies}
\end{document}

enter image description here

2
  • 1
    Thank you for posting your answer. In my question only "policies" appears in the PDF, pointing to the page determined by the URL. However, when trying to split another link with the url command (nature.com/authors/policies BREAK data/data-availability-statements-data-citations.pdf), then the link is dead due to an extra space.
    – TobiR
    Feb 21, 2020 at 12:23
  • @TobiR The solution exist I think. If you edit your question and you can explain as you want break a long link surely other users can give you an answer.
    – Sebastiano
    Feb 21, 2020 at 23:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .