diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/xurl/xurl.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/xurl/xurl.tex | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/xurl/xurl.tex b/Master/texmf-dist/doc/latex/xurl/xurl.tex index 856b1f4f148..79d48dc2e7b 100644 --- a/Master/texmf-dist/doc/latex/xurl/xurl.tex +++ b/Master/texmf-dist/doc/latex/xurl/xurl.tex @@ -1,4 +1,4 @@ -%% $Id: xurl.tex 876 2018-12-23 10:26:11Z herbert $ +%% $Id: xurl.tex 1133 2020-01-14 12:10:03Z herbert $ % \listfiles\setcounter{errorcontextlines}{100} \RequirePackage{filecontents} @@ -63,7 +63,14 @@ It will be passed to package url. xurl itself has no special optional argument. For more information read the documentation of package url. +\section{With the original setting from package url} +The original behaviour of package \texttt{url} can be optained +by using the macro \texttt{\textbackslash useOriginalUrlSetting} +which should be used inside a group: + +\begingroup +\useOriginalUrlSetting \noindent \frame{\begin{minipage}{0.5\linewidth} \noindent @@ -78,7 +85,31 @@ some text \url{very-long-url-very-long-url-very-long-url-very-long-url-very-long 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}} +\endgroup + + +\section{With the setting from package xurl} + + +\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} @@ -109,6 +140,7 @@ use the optional argument \texttt{nobiblatex}: \nocite{*} + \printbibliography[title={With urlbreaks}] \setcounter{biburllcpenalty}{0} @@ -117,6 +149,10 @@ use the optional argument \texttt{nobiblatex}: \printbibliography[title={xurl with option nobiblatex}] + + + + \end{document} |