%% $Id: xltabular-doc.tex 635 2017-10-24 18:22:59Z herbert $ % \listfiles\setcounter{errorcontextlines}{100} \documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-, captions=tableabove,twoside=on]{scrartcl} \usepackage{fontspec} %\usepackage[%usefilenames, % TT={Scale=0.88,FakeStretch=0.9}, % SS={Scale=0.9}, % RM={Scale=0.9}, % DefaultFeatures={Ligatures=TeX}]{lucida-otf} % support opentype math fonts \setmainfont{AccanthisADFStdNo3}[ UprightFont =*-Regular, BoldFont =*-Bold, ItalicFont =*-Italic, BoldItalicFont=*-BoldItalic, RawFeature = -rlig, ] \setsansfont{GilliusADF}[ UprightFont =*-Regular, BoldFont =*-Bold, ItalicFont =*-Italic, BoldItalicFont=*-BoldItalic, RawFeature = -rlig, ] \setmonofont{Anonymous Pro}[Scale=MatchLowercase,FakeStretch=0.9] \usepackage[english]{babel} \usepackage{scrlayer-scrpage} \automark[section]{section} \automark*[subsection]{} \pagestyle{scrheadings} %\usepackage{selnolig} %\nolig{oe}{o|e} \usepackage{xurl} \title{Package \texttt{xurl}} \author{Herbert Voß\thanks{herbert@dante.de}} \begin{document} \maketitle Package xurl loads package url by default and defines possible url breaks for all alphanumerical characters and \verb|= / . : * - ~ ' "| All arguments which are valid for url can be used. It will be passed to package url. xurl itself has no special optional argument. For more information read the documentation of package url. \noindent \frame{\begin{minipage}{0.5\linewidth} \noindent some text \url{very-long-url-very-long-url-very-long-url-very-long-url-very-long-url-} and another url: \url{https://tex.stackexchange.com/questions/3033/forcing-linebreaks-in-url/10419?noredirect=1#comment1021887_10419} \end{minipage}} \noindent \frame{\begin{minipage}{0.75\linewidth} \noindent some text \url{very-long-url-very-long-url-very-long-url-very-long-url-very-long-url-} and another url: \url{https://tex.stackexchange.com/questions/3033/forcing-linebreaks-in-url/10419?noredirect=1#comment1021887_10419} \end{minipage}} \noindent \frame{\begin{minipage}{\dimexpr\linewidth-2\fboxrule} \noindent some text \url{iszv://dsf.tqsdatmdtdls.ctm/cudfsdvqfqll-ocd/bdcbcfqlf-lcclldh/cbsntwgqke-esbptb-vvylhy/zkhqnqidf-obedbacpf-lzlal-pxaccqa-gwki.lfof/} and another url: \url{koff://osb.ccdngagkkg.raa/qrkxzvi/dxfsiaa/xidf-lata-dgdqmhp-uoxdl-vst-vcsbhl-aisdsasih-skl-aezb-fhixvyy-qqlachd-achhfc-koe-xgfqp-iyplcu-1.696884} \end{minipage}} \end{document}