texlive[49368] Master/texmf-dist: xurl (9dec18)
commits+karl at tug.org
commits+karl at tug.org
Sun Dec 9 23:41:45 CET 2018
Revision: 49368
http://tug.org/svn/texlive?view=revision&revision=49368
Author: karl
Date: 2018-12-09 23:41:45 +0100 (Sun, 09 Dec 2018)
Log Message:
-----------
xurl (9dec18)
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 2018-12-09 22:40:55 UTC (rev 49367)
+++ trunk/Master/texmf-dist/doc/latex/xurl/Changes 2018-12-09 22:41:45 UTC (rev 49368)
@@ -1,3 +1,4 @@
+0.05 2018-12-08 - added support for biblatex
0.04 2018-06-02 - change \Urlmuskip to allow stretchability
0.03 2018-01-09 - added UrlOrd characters
0.02 2017-12-20 - first CTAN version
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 2018-12-09 22:40:55 UTC (rev 49367)
+++ trunk/Master/texmf-dist/doc/latex/xurl/xurl.tex 2018-12-09 22:41:45 UTC (rev 49368)
@@ -1,7 +1,17 @@
%% $Id: xltabular-doc.tex 635 2017-10-24 18:22:59Z herbert $
%
\listfiles\setcounter{errorcontextlines}{100}
-\documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
+\RequirePackage{filecontents}
+\begin{filecontents*}{\jobname.bib}
+ at online{asdf,
+ sortname={BSI},label={BSI},
+ organization={BSI (Bundesamt für Sicherheit in der Informationstechnik)},
+ title={Angaben des BSI für die Algorithmenkataloge der Vorjahre, Empfehlungen zur Wahl der Schlüssellängen},
+ date={2016},
+ url={https://www.bundesnetzagentur.de/DE/Service-Funktionen/ElektronischeVertrauensdienste/HinweiseEmpfehlungen/Empfehlungen/Empfehlungen_node.html},
+}
+\end{filecontents*}
+\documentclass[paper=a4,fontsize=11pt,DIV=14,parskip=half-,
captions=tableabove,twoside=on]{scrartcl}
\usepackage{fontspec}
%\usepackage[%usefilenames,
@@ -31,6 +41,9 @@
\automark*[subsection]{}
\pagestyle{scrheadings}
+\usepackage{biblatex}
+\addbibresource{\jobname.bib}
+
%\usepackage{selnolig}
%\nolig{oe}{o|e}
@@ -40,6 +53,7 @@
\begin{document}
\maketitle
+\section{How it works}
Package xurl loads package url by default and defines
possible url breaks for all alphanumerical characters
and \verb|= / . : * - ~ ' "|
@@ -73,8 +87,36 @@
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}}
+\section{Using \texttt{biblatex}}
+Package \texttt{biblatex} has it's own url handling. If you want the the same behaviour as \texttt{xurl} has, you have to
+set
+\begin{verbatim}
+\setcounter{biburllcpenalty}{1}
+\setcounter{biburlucpenalty}{1}
+\setcounter{biburlnumpenalty}{1}
+\end{verbatim}
+However, if you load \texttt{xurl} \emph{after} \texttt{biblatex} then it is done
+by default. Compare the following bibliographies. IF you do not want that \texttt{xurl}
+should set these counters, then load the package \emph{before} \texttt{biblatex} or
+use the optional argument \texttt{nobiblatex}:
+
+\begin{verbatim}
+\usepackage[...]{biblatex}
+\usepackage[nobiblatex]{xurl}
+\end{verbatim}
+
+\nocite{*}
+
+\printbibliography[title={With urlbreaks}]
+
+\setcounter{biburllcpenalty}{0}
+\setcounter{biburlucpenalty}{0}
+\setcounter{biburlnumpenalty}{0}
+
+\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 2018-12-09 22:40:55 UTC (rev 49367)
+++ trunk/Master/texmf-dist/tex/latex/xurl/xurl.sty 2018-12-09 22:41:45 UTC (rev 49368)
@@ -1,4 +1,4 @@
-%% $Id: xurl.sty 705 2018-01-09 08:16:14Z herbert $
+%% $Id: xurl.sty 849 2018-12-08 09:00:57Z herbert $
%%
%% This is file `xurl.sty',
%%
@@ -16,13 +16,24 @@
%% `xurl' is a package for extended URL breaks
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xurl}[2018/06/02 v 0.04 modify URL breaks]
+\ProvidesPackage{xurl}[2018/12/08 v 0.05 modify URL breaks]
+\newif\if at no@biblatex \@no at biblatexfalse
+\DeclareOption{nobiblatex}{\@no at biblatextrue}
+
\DeclareOption*{\PassOptionsToPackage\CurrentOption{url}}
\ProcessOptions\relax
%
\RequirePackage{url}
%
+\if at no@biblatex\else
+ \@ifpackageloaded{biblatex}{%
+ \setcounter{biburllcpenalty}{1}%
+ \setcounter{biburlucpenalty}{1}%
+ \setcounter{biburlnumpenalty}{1}%
+ }{} % biblatex has it's own url handling
+\fi
+%
\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%
@@ -34,6 +45,8 @@
%
\Urlmuskip=0mu plus 0.1mu
%
+%
+
\endinput
\def\UrlSpecials{%
@@ -101,7 +114,7 @@
\do\'{'\penalty\UrlBreakPenalty}%
\do\"{"\penalty\UrlBreakPenalty}%
}
-\fi
+%\fi
%
More information about the tex-live-commits
mailing list