summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xurl
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-01-15 03:00:56 +0000
committerNorbert Preining <norbert@preining.info>2020-01-15 03:00:56 +0000
commit3bd863734612dc2fe9c5c7c1405358ffb1228afb (patch)
tree9f7d421c227b998debe92dac90f4cf8634a8f94f /macros/latex/contrib/xurl
parentb3225c4301e7724de481f410444fef5463799b9d (diff)
CTAN sync 202001150300
Diffstat (limited to 'macros/latex/contrib/xurl')
-rw-r--r--macros/latex/contrib/xurl/Changes1
-rw-r--r--macros/latex/contrib/xurl/doc/xurl.pdfbin42438 -> 56280 bytes
-rw-r--r--macros/latex/contrib/xurl/doc/xurl.tex38
-rw-r--r--macros/latex/contrib/xurl/latex/xurl.sty11
4 files changed, 46 insertions, 4 deletions
diff --git a/macros/latex/contrib/xurl/Changes b/macros/latex/contrib/xurl/Changes
index 2c92b953aa..d597e39621 100644
--- a/macros/latex/contrib/xurl/Changes
+++ b/macros/latex/contrib/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/macros/latex/contrib/xurl/doc/xurl.pdf b/macros/latex/contrib/xurl/doc/xurl.pdf
index d16fa080d1..81d81ddfbf 100644
--- a/macros/latex/contrib/xurl/doc/xurl.pdf
+++ b/macros/latex/contrib/xurl/doc/xurl.pdf
Binary files differ
diff --git a/macros/latex/contrib/xurl/doc/xurl.tex b/macros/latex/contrib/xurl/doc/xurl.tex
index 856b1f4f14..79d48dc2e7 100644
--- a/macros/latex/contrib/xurl/doc/xurl.tex
+++ b/macros/latex/contrib/xurl/doc/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/macros/latex/contrib/xurl/latex/xurl.sty b/macros/latex/contrib/xurl/latex/xurl.sty
index 0a5e92ea85..154cfd1b90 100644
--- a/macros/latex/contrib/xurl/latex/xurl.sty
+++ b/macros/latex/contrib/xurl/latex/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