summaryrefslogtreecommitdiff
path: root/biblio/ctan-bibdata/biblatex-ctan/ctan.bbx
blob: ed1a53070d3f40a2754f6b0ecd4a517f50e247b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
\ProvidesFile{ctan.bbx}[2022/10/08 v0.01]

\RequireBibliographyStyle{authortitle}

\DeclareDatamodelFields[type=field,datatype=literal]{pkgurl}
\DeclareDatamodelFields[type=field,datatype=literal]{license}

\DeclareFieldFormat{pkgurl}{\textsc{pkg-url}: \url{#1}}
\DeclareFieldFormat{license}{\textsc{License}: #1}

\newbibmacro*{pkgurl}{%
  \iffieldundef{pkgurl}%
    {}
    {\printfield{pkgurl}}}

\newbibmacro*{license}{%
  \iffieldundef{license}%
    {}
    {\printfield{license}}}

\DeclareBibliographyDriver{manual}{%
  \usebibmacro{bibindex}%
  \usebibmacro{begentry}%
  \usebibmacro{author/editor}%
  \setunit{\printdelim{nametitledelim}}\newblock
  \usebibmacro{title}%
  \newunit
  \printlist{language}%
  \newunit\newblock
  \usebibmacro{byauthor}%
  \newunit\newblock
  \usebibmacro{byeditor}%
  \newunit\newblock
  \printfield{edition}%
  \newunit\newblock
  \usebibmacro{series+number}%
  \newunit\newblock
  \printfield{type}%
  \newunit
  \usebibmacro{publisher+location+date}%
  \newunit
  \printfield{version}%
  \newunit
  \usebibmacro{license}%
  \newunit
  \printfield{note}%
  \newunit\newblock
  \printlist{organization}%
  \newunit\newblock
  \usebibmacro{chapter+pages}%
  \newunit
  \printfield{pagetotal}%
  \newunit\newblock
  \iftoggle{bbx:isbn}
    {\printfield{isbn}}
    {}%
  \setunit{\bibpagerefpunct}\newblock
  \newline
  \usebibmacro{url}%
  \newline
  \usebibmacro{pkgurl}%
%  \usebibmacro{pageref}%
%  \usebibmacro{finentry}
}

\endinput