diff options
Diffstat (limited to 'macros/latex/contrib/koma-script/doc/scrguide.cls')
-rw-r--r-- | macros/latex/contrib/koma-script/doc/scrguide.cls | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/macros/latex/contrib/koma-script/doc/scrguide.cls b/macros/latex/contrib/koma-script/doc/scrguide.cls index d622ace1e4..7c0a63bdc1 100644 --- a/macros/latex/contrib/koma-script/doc/scrguide.cls +++ b/macros/latex/contrib/koma-script/doc/scrguide.cls @@ -178,7 +178,6 @@ % In future we should use biblatex instead of babelbib, but currently some % things are still missing: % \begin{itemize} -% \item prefix \texttt{CTAN://}, % \item line breaks after the author (but not full \texttt{openbib} style like % \texttt{block=nbpar}), % \item removing language tag \texttt{ngerman} from output. @@ -191,7 +190,18 @@ \newcommand*{\printbibliography}[1][]{\bibliography{scrguide}} \else \RequirePackage[backend=bibtex,style=alphabetic,block=ragged]{biblatex} - \DeclareFieldFormat{url}{\url{#1}} + \DeclareSourcemap{ + \maps[datatype=bibtex]{ + \map{ + \step[fieldsource=url, final=true] + \step[fieldset=verba, origfieldval, final=true] + \step[fieldsource=verba, match=\regexp{CTAN:\/\/}, replace={https://www.ctan.org/}] + } + } + } + \DeclareFieldFormat{url}{% + \href{\thefield{verba}}{\nolinkurl{#1}}% + } \fi \RequirePackage{afterpage} \RequirePackage{makeidx} |