diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/xurl/xurl.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/xurl/xurl.tex | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/xurl/xurl.tex b/Master/texmf-dist/doc/latex/xurl/xurl.tex index 760867911a7..a2ec6766147 100644 --- a/Master/texmf-dist/doc/latex/xurl/xurl.tex +++ b/Master/texmf-dist/doc/latex/xurl/xurl.tex @@ -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} +@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,7 +87,35 @@ some text \url{iszv://dsf.tqsdatmdtdls.ctm/cudfsdvqfqll-ocd/bdcbcfqlf-lcclldh/cb 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} |