texlive[53405] Master/texmf-dist: xurl (14jan20)

commits+karl at tug.org commits+karl at tug.org
Tue Jan 14 22:52:19 CET 2020


Revision: 53405
          http://tug.org/svn/texlive?view=revision&revision=53405
Author:   karl
Date:     2020-01-14 22:52:18 +0100 (Tue, 14 Jan 2020)
Log Message:
-----------
xurl (14jan20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/xurl/Changes
    trunk/Master/texmf-dist/doc/latex/xurl/xurl.pdf
    trunk/Master/texmf-dist/doc/latex/xurl/xurl.tex
    trunk/Master/texmf-dist/tex/latex/xurl/xurl.sty

Modified: trunk/Master/texmf-dist/doc/latex/xurl/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xurl/Changes	2020-01-14 21:52:06 UTC (rev 53404)
+++ trunk/Master/texmf-dist/doc/latex/xurl/Changes	2020-01-14 21:52:18 UTC (rev 53405)
@@ -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

Modified: trunk/Master/texmf-dist/doc/latex/xurl/xurl.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xurl/xurl.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xurl/xurl.tex	2020-01-14 21:52:06 UTC (rev 53404)
+++ trunk/Master/texmf-dist/doc/latex/xurl/xurl.tex	2020-01-14 21:52:18 UTC (rev 53405)
@@ -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 @@
 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,9 +85,33 @@
 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}
 \noindent
 some text \url{iszv://dsf.tqsdatmdtdls.ctm/cudfsdvqfqll-ocd/bdcbcfqlf-lcclldh/cbsntwgqke-esbptb-vvylhy/zkhqnqidf-obedbacpf-lzlal-pxaccqa-gwki.lfof/}
@@ -109,6 +140,7 @@
 
 \nocite{*}
 
+
 \printbibliography[title={With urlbreaks}]
 
 \setcounter{biburllcpenalty}{0}
@@ -117,6 +149,10 @@
 
 \printbibliography[title={xurl with option nobiblatex}]
 
+
+
+
+
 \end{document}
 
 

Modified: trunk/Master/texmf-dist/tex/latex/xurl/xurl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xurl/xurl.sty	2020-01-14 21:52:06 UTC (rev 53404)
+++ trunk/Master/texmf-dist/tex/latex/xurl/xurl.sty	2020-01-14 21:52:18 UTC (rev 53405)
@@ -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 at no@biblatex \@no at biblatexfalse
 \DeclareOption{nobiblatex}{\@no at 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 at space}\do\%{\Url at percent}\do\^^M{\Url at space}%
+   \Url at force@Tilde}% package option may force faked text-ascii-tilde
+}
 
 \endinput
 



More information about the tex-live-commits mailing list