summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xurl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/xurl')
-rw-r--r--Master/texmf-dist/tex/latex/xurl/xurl.sty27
1 files changed, 18 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/xurl/xurl.sty b/Master/texmf-dist/tex/latex/xurl/xurl.sty
index 0724dc27b71..37d32bb1aec 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 849 2018-12-08 09:00:57Z herbert $
+%% $Id: xurl.sty 871 2018-12-16 21:11:43Z 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.05 modify URL breaks]
+\ProvidesPackage{xurl}[2018/12/08 v 0.06 modify URL breaks]
\newif\if@no@biblatex \@no@biblatexfalse
\DeclareOption{nobiblatex}{\@no@biblatextrue}
@@ -28,22 +28,32 @@
%
\if@no@biblatex\else
\@ifpackageloaded{biblatex}{%
- \setcounter{biburllcpenalty}{1}%
- \setcounter{biburlucpenalty}{1}%
- \setcounter{biburlnumpenalty}{1}%
+ \setcounter{biburllcpenalty}{100}%
+ \setcounter{biburlucpenalty}{200}%
+ \setcounter{biburlnumpenalty}{100}%
}{} % biblatex has it's own url handling
\fi
%
+%\mathchardef\UrlBigBreakPenalty=100
+%\mathchardef\UrlBreakPenalty=200
+
\def\UrlBreaks{%
\do\/%
\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\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%
- \do0\do1\do2\do3\do4\do5\do6\do7\do8\do9\do=\do/\do.\do:%
- \do\*\do\-\do\~\do\'\do\"\do\-}
+ \do\*\do\-\do\~\do\'\do\"\do\-}
%
-\Urlmuskip=0mu plus 0.1mu
+\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
%
%
@@ -114,7 +124,6 @@
\do\'{'\penalty\UrlBreakPenalty}%
\do\"{"\penalty\UrlBreakPenalty}%
}
-%\fi
%