\documentclass[hidelinks,12pt]{amsbook}
\RequirePackage[bookmarks, bookmarksopen=true, plainpages=false, pdfpagelabels, pdfpagelayout=SinglePage, breaklinks = true]{hyperref}
\begin{document}
\chapter{Troubleshooting long URLs}
\section{Test 1}
A complete list of participants and presentations can be found on the conference web site: \href
{http://ruraro.rintint.edu/events/shipshops/index.php/Perplexity_and_Action_-_an_Interdisciplinary_Approach_to_Rationale_Synchro_Theory}%
{\texttt{http://ruraro.rintint.edu/events/ship\linebreak shops/index.php/Perplexity\string_and\string_Action\string_-\string_an\string_Interdisciplina\linebreak ry\string_Approach\string_to\string_Rationale\string_Synchro\string_Theory}}
\end{document}
EDIT2:
According to the hyperref-manual, breaklinks is automatically set by the driver. A manual override as tried results in the behaviour as experienced by QO.
If you don't mask the URL in
\href{long URL goes here}{here goes a masking label}
then you could simply use (using \usepackage{hyperref}
or \usepackage[hyphens]{url}
)
\url{long URL}
with the result of having a correctly typeset URL.
Code as follows. See result in 1:
\documentclass[english]{amsart}
\usepackage[
bookmarksopen,
bookmarksdepth=2,
breaklinks=true
]{hyperref}
\begin{document}
Here's a longish sentence so I can just keep track of where the
end of the page is as far as normal line breaks are concerned.
However, Blah de blah de blah de blah
blah ~\url{https://blahblaaaaaaaaaaaaaaa.aaaaaaaaa.com/xxxx/xx/xx/blaaah-bl-blaaaah-bla/} an argument which shows that\ldots
\end{document}
EDIT:
Same code with some improvements. See result in 2:
\documentclass[english]{amsart}
\usepackage{xcolor}
\usepackage[
bookmarksopen,
bookmarksdepth=2,
%breaklinks=true
colorlinks=true,
urlcolor=blue]{hyperref}
\begin{document}
%using \url{URL}
However, Blah de blah de blah de blah
blah \url{https://blahblaaaaaaaaaaaaaaa.aaaaaaaaa.com/xxxx/xx/xx/blaaah-bl-blaaaah-bla/} an argument which shows that\ldots
%using \href{URL}{text}
\href{https://blahblaaaaaaaaaaaaaaa.aaaaaaaaa.com/xxxx/xx/xx/blaaah-bl-blaaaah-bla/}{here is link to web}
\end{document}
Best Answer
The command
\setbreakpoints
is made for that. Setting\setbreakpoints [compound]
enables a break point after/
,+
,(
,)
and-
. For more information see ConTeXt wiki Composed words.Example: