summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xurl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-12-23 23:04:34 +0000
committerKarl Berry <karl@freefriends.org>2018-12-23 23:04:34 +0000
commita1c68df946eccb702965e3c4baa739cbcd8abd97 (patch)
treef409dbda019c8fadb811557ed655fdf486d56f7d /Master/texmf-dist/tex/latex/xurl
parent13cae12a372b2095aa728c7f7dc41b712d9beef1 (diff)
xurl (23dec18)
git-svn-id: svn://tug.org/texlive/trunk@49488 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xurl')
-rw-r--r--Master/texmf-dist/tex/latex/xurl/xurl.sty26
1 files changed, 21 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/xurl/xurl.sty b/Master/texmf-dist/tex/latex/xurl/xurl.sty
index 37d32bb1aec..0a5e92ea85a 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 871 2018-12-16 21:11:43Z herbert $
+%% $Id: xurl.sty 876 2018-12-23 10:26:11Z herbert $
%%
%% This is file `xurl.sty',
%%
@@ -16,7 +16,7 @@
%% `xurl' is a package for extended URL breaks
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xurl}[2018/12/08 v 0.06 modify URL breaks]
+\ProvidesPackage{xurl}[2018/12/23 v 0.07 modify URL breaks]
\newif\if@no@biblatex \@no@biblatexfalse
\DeclareOption{nobiblatex}{\@no@biblatextrue}
@@ -28,9 +28,10 @@
%
\if@no@biblatex\else
\@ifpackageloaded{biblatex}{%
+ \typeout{xurl: Set penalties for biblatex}%
\setcounter{biburllcpenalty}{100}%
\setcounter{biburlucpenalty}{200}%
- \setcounter{biburlnumpenalty}{100}%
+ \global\setcounter{biburlnumpenalty}{100}%
}{} % biblatex has it's own url handling
\fi
%
@@ -43,14 +44,15 @@
\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z%
\do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L%
\do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X\do\Y\do\Z%
- \do\*\do\-\do\~\do\'\do\"\do\-}
+ \do\*\do\-\do\~\do\'\do\"\do\-%
+ \do0\do1\do2\do3\do4\do5\do6\do7\do8\do9\do=\do/\do.\do:%
+}
%
\def\UrlSpecials{%
\do\ {\Url@space}%
\do\%{\Url@percent}%
\do\^^M{\Url@space}%
\Url@force@Tilde
- \do0\do1\do2\do3\do4\do5\do6\do7\do8\do9\do=\do/\do.\do:%
}
\Urlmuskip=0mu plus 1mu
@@ -123,6 +125,20 @@
\do\~{~\penalty\UrlBreakPenalty}%
\do\'{'\penalty\UrlBreakPenalty}%
\do\"{"\penalty\UrlBreakPenalty}%
+ \do\0{/\penalty\UrlBreakPenalty}%
+ \do\1{/\penalty\UrlBreakPenalty}%
+ \do\2{/\penalty\UrlBreakPenalty}%
+ \do\3{/\penalty\UrlBreakPenalty}%
+ \do\4{/\penalty\UrlBreakPenalty}%
+ \do\5{/\penalty\UrlBreakPenalty}%
+ \do\6{/\penalty\UrlBreakPenalty}%
+ \do\7{/\penalty\UrlBreakPenalty}%
+ \do\8{/\penalty\UrlBreakPenalty}%
+ \do\9{/\penalty\UrlBreakPenalty}%
+ \do\={/\penalty\UrlBreakPenalty}%
+ \do\/{/\penalty\UrlBreakPenalty}%
+ \do\.{/\penalty\UrlBreakPenalty}%
+ \do\:{/\penalty\UrlBreakPenalty}%
}
%