How do I horizontally compress or unstretch paragraph text?












3














My references section sometimes shows a lot of whitespace between words that I would like to remove.



For example, in the following screenshot, I would like to remove the extra spaces within the text "Describing a link":



enter image description here



I know that I can use mbox (for example, mbox{Describing a link}), but I'd like to apply some option to avoid this globally.



Here is the full example document:



documentclass[12pt, a4paper, twocolumn]{article}

usepackage{hyperref}
hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

usepackage[super,comma,sort&compress]{natbib}

usepackage{abstract}
renewcommand{abstractnamefont}{normalfontbfseries}
renewcommand{abstracttextfont}{normalfontsmallitshape}

title{Test Article}
author{Test Author}

begin{document}

twocolumn[
begin{@twocolumnfalse}
maketitle
begin{abstract}
noindent
Test abstract.
newlinenewline
end{abstract}
end{@twocolumnfalse}
]

section{Section1}

Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

section{Section2}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

begin{thebibliography}{99}
bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
end{thebibliography}

end{document}









share|improve this question









New contributor




freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    3














    My references section sometimes shows a lot of whitespace between words that I would like to remove.



    For example, in the following screenshot, I would like to remove the extra spaces within the text "Describing a link":



    enter image description here



    I know that I can use mbox (for example, mbox{Describing a link}), but I'd like to apply some option to avoid this globally.



    Here is the full example document:



    documentclass[12pt, a4paper, twocolumn]{article}

    usepackage{hyperref}
    hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

    usepackage[super,comma,sort&compress]{natbib}

    usepackage{abstract}
    renewcommand{abstractnamefont}{normalfontbfseries}
    renewcommand{abstracttextfont}{normalfontsmallitshape}

    title{Test Article}
    author{Test Author}

    begin{document}

    twocolumn[
    begin{@twocolumnfalse}
    maketitle
    begin{abstract}
    noindent
    Test abstract.
    newlinenewline
    end{abstract}
    end{@twocolumnfalse}
    ]

    section{Section1}

    Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

    section{Section2}

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

    begin{thebibliography}{99}
    bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
    end{thebibliography}

    end{document}









    share|improve this question









    New contributor




    freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      3












      3








      3







      My references section sometimes shows a lot of whitespace between words that I would like to remove.



      For example, in the following screenshot, I would like to remove the extra spaces within the text "Describing a link":



      enter image description here



      I know that I can use mbox (for example, mbox{Describing a link}), but I'd like to apply some option to avoid this globally.



      Here is the full example document:



      documentclass[12pt, a4paper, twocolumn]{article}

      usepackage{hyperref}
      hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

      usepackage[super,comma,sort&compress]{natbib}

      usepackage{abstract}
      renewcommand{abstractnamefont}{normalfontbfseries}
      renewcommand{abstracttextfont}{normalfontsmallitshape}

      title{Test Article}
      author{Test Author}

      begin{document}

      twocolumn[
      begin{@twocolumnfalse}
      maketitle
      begin{abstract}
      noindent
      Test abstract.
      newlinenewline
      end{abstract}
      end{@twocolumnfalse}
      ]

      section{Section1}

      Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

      section{Section2}

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

      begin{thebibliography}{99}
      bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
      end{thebibliography}

      end{document}









      share|improve this question









      New contributor




      freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      My references section sometimes shows a lot of whitespace between words that I would like to remove.



      For example, in the following screenshot, I would like to remove the extra spaces within the text "Describing a link":



      enter image description here



      I know that I can use mbox (for example, mbox{Describing a link}), but I'd like to apply some option to avoid this globally.



      Here is the full example document:



      documentclass[12pt, a4paper, twocolumn]{article}

      usepackage{hyperref}
      hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

      usepackage[super,comma,sort&compress]{natbib}

      usepackage{abstract}
      renewcommand{abstractnamefont}{normalfontbfseries}
      renewcommand{abstracttextfont}{normalfontsmallitshape}

      title{Test Article}
      author{Test Author}

      begin{document}

      twocolumn[
      begin{@twocolumnfalse}
      maketitle
      begin{abstract}
      noindent
      Test abstract.
      newlinenewline
      end{abstract}
      end{@twocolumnfalse}
      ]

      section{Section1}

      Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

      section{Section2}

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

      begin{thebibliography}{99}
      bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
      end{thebibliography}

      end{document}






      hyperref urls white-space






      share|improve this question









      New contributor




      freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 17 mins ago









      Mico

      274k30371757




      274k30371757






      New contributor




      freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 1 hour ago









      freeradical

      182




      182




      New contributor




      freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      freeradical is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          6














          In your case you can simply add usepackage{xurl} in your preamble. Be sure to call xurl before package hyperref (if you omit that, hyperref itself calls package url with the result you got ...)!



          With the following code



          documentclass[12pt, a4paper, twocolumn]{article}

          usepackage{xurl} % <===================================================
          usepackage{hyperref}
          hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

          usepackage[super,comma,sort&compress]{natbib}

          usepackage{abstract}
          renewcommand{abstractnamefont}{normalfontbfseries}
          renewcommand{abstracttextfont}{normalfontsmallitshape}

          title{Test Article}
          author{Test Author}

          begin{document}

          twocolumn[
          begin{@twocolumnfalse}
          maketitle
          begin{abstract}
          noindent
          Test abstract.
          newlinenewline
          end{abstract}
          end{@twocolumnfalse}
          ]

          section{Section1}

          Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          section{Section2}

          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          begin{thebibliography}{99}
          bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
          end{thebibliography}

          end{document}


          you get the result:



          enter image description here






          share|improve this answer























          • Thanks! That worked.
            – freeradical
            43 mins ago










          • @Mico Thanks, I added it ...
            – Kurt
            35 mins ago










          • @freeradical You are welcome!
            – Kurt
            35 mins ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          freeradical is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468474%2fhow-do-i-horizontally-compress-or-unstretch-paragraph-text%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          6














          In your case you can simply add usepackage{xurl} in your preamble. Be sure to call xurl before package hyperref (if you omit that, hyperref itself calls package url with the result you got ...)!



          With the following code



          documentclass[12pt, a4paper, twocolumn]{article}

          usepackage{xurl} % <===================================================
          usepackage{hyperref}
          hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

          usepackage[super,comma,sort&compress]{natbib}

          usepackage{abstract}
          renewcommand{abstractnamefont}{normalfontbfseries}
          renewcommand{abstracttextfont}{normalfontsmallitshape}

          title{Test Article}
          author{Test Author}

          begin{document}

          twocolumn[
          begin{@twocolumnfalse}
          maketitle
          begin{abstract}
          noindent
          Test abstract.
          newlinenewline
          end{abstract}
          end{@twocolumnfalse}
          ]

          section{Section1}

          Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          section{Section2}

          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          begin{thebibliography}{99}
          bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
          end{thebibliography}

          end{document}


          you get the result:



          enter image description here






          share|improve this answer























          • Thanks! That worked.
            – freeradical
            43 mins ago










          • @Mico Thanks, I added it ...
            – Kurt
            35 mins ago










          • @freeradical You are welcome!
            – Kurt
            35 mins ago
















          6














          In your case you can simply add usepackage{xurl} in your preamble. Be sure to call xurl before package hyperref (if you omit that, hyperref itself calls package url with the result you got ...)!



          With the following code



          documentclass[12pt, a4paper, twocolumn]{article}

          usepackage{xurl} % <===================================================
          usepackage{hyperref}
          hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

          usepackage[super,comma,sort&compress]{natbib}

          usepackage{abstract}
          renewcommand{abstractnamefont}{normalfontbfseries}
          renewcommand{abstracttextfont}{normalfontsmallitshape}

          title{Test Article}
          author{Test Author}

          begin{document}

          twocolumn[
          begin{@twocolumnfalse}
          maketitle
          begin{abstract}
          noindent
          Test abstract.
          newlinenewline
          end{abstract}
          end{@twocolumnfalse}
          ]

          section{Section1}

          Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          section{Section2}

          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          begin{thebibliography}{99}
          bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
          end{thebibliography}

          end{document}


          you get the result:



          enter image description here






          share|improve this answer























          • Thanks! That worked.
            – freeradical
            43 mins ago










          • @Mico Thanks, I added it ...
            – Kurt
            35 mins ago










          • @freeradical You are welcome!
            – Kurt
            35 mins ago














          6












          6








          6






          In your case you can simply add usepackage{xurl} in your preamble. Be sure to call xurl before package hyperref (if you omit that, hyperref itself calls package url with the result you got ...)!



          With the following code



          documentclass[12pt, a4paper, twocolumn]{article}

          usepackage{xurl} % <===================================================
          usepackage{hyperref}
          hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

          usepackage[super,comma,sort&compress]{natbib}

          usepackage{abstract}
          renewcommand{abstractnamefont}{normalfontbfseries}
          renewcommand{abstracttextfont}{normalfontsmallitshape}

          title{Test Article}
          author{Test Author}

          begin{document}

          twocolumn[
          begin{@twocolumnfalse}
          maketitle
          begin{abstract}
          noindent
          Test abstract.
          newlinenewline
          end{abstract}
          end{@twocolumnfalse}
          ]

          section{Section1}

          Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          section{Section2}

          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          begin{thebibliography}{99}
          bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
          end{thebibliography}

          end{document}


          you get the result:



          enter image description here






          share|improve this answer














          In your case you can simply add usepackage{xurl} in your preamble. Be sure to call xurl before package hyperref (if you omit that, hyperref itself calls package url with the result you got ...)!



          With the following code



          documentclass[12pt, a4paper, twocolumn]{article}

          usepackage{xurl} % <===================================================
          usepackage{hyperref}
          hypersetup{colorlinks = true, urlcolor = blue, linkcolor = blue, citecolor = blue}

          usepackage[super,comma,sort&compress]{natbib}

          usepackage{abstract}
          renewcommand{abstractnamefont}{normalfontbfseries}
          renewcommand{abstracttextfont}{normalfontsmallitshape}

          title{Test Article}
          author{Test Author}

          begin{document}

          twocolumn[
          begin{@twocolumnfalse}
          maketitle
          begin{abstract}
          noindent
          Test abstract.
          newlinenewline
          end{abstract}
          end{@twocolumnfalse}
          ]

          section{Section1}

          Lorem ipsum dolor sit ametcite{Reference1}, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          section{Section2}

          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce maximus nisi ligula. Morbi laoreet ex ligula, vitae lobortis purus mattis vel. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec ac metus ut turpis mollis placerat et nec enim. Duis tristique nibh maximus faucibus facilisis. Praesent in consequat leo. Maecenas condimentum ex rhoncus, elementum diam vel, malesuada ante. Fusce pulvinar, mauris pretium placerat venenatis, lectus ex tempus lacus, id suscipit libero lorem eu augue. Interdum et malesuada fames ac ante ipsum primis in faucibus.

          begin{thebibliography}{99}
          bibitem{Reference1} Describing a link, url{https://example.com/this_is_a_really_long_link_that_wraps_many_lines}
          end{thebibliography}

          end{document}


          you get the result:



          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 37 mins ago

























          answered 53 mins ago









          Kurt

          35.6k847159




          35.6k847159












          • Thanks! That worked.
            – freeradical
            43 mins ago










          • @Mico Thanks, I added it ...
            – Kurt
            35 mins ago










          • @freeradical You are welcome!
            – Kurt
            35 mins ago


















          • Thanks! That worked.
            – freeradical
            43 mins ago










          • @Mico Thanks, I added it ...
            – Kurt
            35 mins ago










          • @freeradical You are welcome!
            – Kurt
            35 mins ago
















          Thanks! That worked.
          – freeradical
          43 mins ago




          Thanks! That worked.
          – freeradical
          43 mins ago












          @Mico Thanks, I added it ...
          – Kurt
          35 mins ago




          @Mico Thanks, I added it ...
          – Kurt
          35 mins ago












          @freeradical You are welcome!
          – Kurt
          35 mins ago




          @freeradical You are welcome!
          – Kurt
          35 mins ago










          freeradical is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          freeradical is a new contributor. Be nice, and check out our Code of Conduct.













          freeradical is a new contributor. Be nice, and check out our Code of Conduct.












          freeradical is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f468474%2fhow-do-i-horizontally-compress-or-unstretch-paragraph-text%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Eastern Orthodox Church

          Zagreb

          Understanding the information contained in the Deep Space Network XML data?