summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/xurl/Changes1
-rw-r--r--Master/texmf-dist/doc/latex/xurl/xurl.pdfbin42438 -> 56280 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xurl/xurl.tex38
-rw-r--r--Master/texmf-dist/tex/latex/xurl/xurl.sty11
4 files changed, 46 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/xurl/Changes b/Master/texmf-dist/doc/latex/xurl/Changes
index 2c92b953aa1..d597e39621d 100644
--- a/Master/texmf-dist/doc/latex/xurl/Changes
+++ b/Master/texmf-dist/doc/latex/xurl/Changes
@@ -1,3 +1,4 @@
+0.08 2020-01-14 - define macro \useOriginalUrlSetting
0.07 2018-12-23 - move numbers into \UrlBreaks
0.06 2018-12-16 - define \UrlSpecials
0.05 2018-12-08 - added support for biblatex
diff --git a/Master/texmf-dist/doc/latex/xurl/xurl.pdf b/Master/texmf-dist/doc/latex/xurl/xurl.pdf
index d16fa080d1b..81d81ddfbf4 100644
--- a/Master/texmf-dist/doc/latex/xurl/xurl.pdf
+++ b/Master/texmf-dist/doc/latex/xurl/xurl.pdf
Binary files differ
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}
diff --git a/Master/texmf-dist/tex/latex/xurl/xurl.sty b/Master/texmf-dist/tex/latex/xurl/xurl.sty
index 0a5e92ea85a..154cfd1b908 100644
--- a/Master/texmf-dist/tex/latex/xurl/xurl.sty
+++ b/Master/texmf-dist/tex/latex/xurl/xurl.sty
@@ -1,4 +1,4 @@
-%% $Id: xurl.sty 876 2018-12-23 10:26:11Z herbert $
+%% $Id: xurl.sty 1133 2020-01-14 12:10:03Z herbert $
%%
%% This is file `xurl.sty',
%%
@@ -16,7 +16,7 @@
%% `xurl' is a package for extended URL breaks
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xurl}[2018/12/23 v 0.07 modify URL breaks]
+\ProvidesPackage{xurl}[2020/01/14 v 0.08 modify URL breaks]
\newif\if@no@biblatex \@no@biblatexfalse
\DeclareOption{nobiblatex}{\@no@biblatextrue}
@@ -57,7 +57,12 @@
\Urlmuskip=0mu plus 1mu
%
-%
+\def\useOriginalUrlSetting{%
+\def\UrlBreaks{\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]%
+ \do\)\do\,\do\?\do\&\do\'\do+\do\=\do\#}%
+\def\UrlSpecials{\do\ {\Url@space}\do\%{\Url@percent}\do\^^M{\Url@space}%
+ \Url@force@Tilde}% package option may force faked text-ascii-tilde
+}
\endinput