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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
%%
%% Ein Beispiel der DANTE-Edition
%% Bibliografie mit LaTeX
%% 2. Auflage
%% Beispiel 04-11-1 auf Seite 212.
%% Copyright (C) 2016 Herbert Voss
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% See http://www.latex-project.org/lppl.txt for details.
%%
%% ==biber==
% Show page(s) 1
%%
%%
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\usepackage{fontspec}
\usepackage{libertine}
\setmonofont[Scale=MatchLowercase,FakeStretch=0.95]{AnonymousPro}
\usepackage[ngerman]{babel}
\usepackage[margin=3.5cm]{geometry}
\usepackage{ragged2e}
\setlength\parindent{0pt}
\usepackage{filecontents}
\begin{filecontents}{\jobname.dbx}
\DeclareDatamodelEntrytypes{adress}
\DeclareDatamodelFields[type=field, datatype=literal]{%
name,organization,city,zip,street,phone,fax,mobile,email,url,note}
\DeclareDatamodelEntryfields{%
name,organization,city,zip,street,phone,fax,mobile,email,url,note}
\end{filecontents}
\begin{filecontents}{\jobname.data}
@adress{ant,
name = {Ant},
zip = {030},
}
@adress{zebra,
name = {zebra},
zip = {030},
city = {Berlin},
}
@adress{MalteserPsycho,
name = {Psychosoziale Angebote},
sortas = {},
title = {},
organization = {Malteser Traumanetzwerk\\Christina Sturzegger},
city = {Berlin},
zip = {},
country = {},
street = {},
phone = {02372/12345},
fax = {02372/54321},
mobile = {},
email = {malteserwerke@malteser.de},
url = {http://www.malteser-traumanetzwerk.de},
note = {Die Malteserwerke bieten auf dieser Homepage eine deutschlandweite Datenbank mit Therapeuten, Psychologen und
Fachärzten, die mit traumatisierten Flüchtlingen arbeiten.}
}
@adress{BochumCaritas,
name = {Beratungsstelle in NRW, Reg.-Bez. Arnsberg, ABH: Bochum},
sortas = {},
title = {},
organization = {Caritasverband Bochum e.V. Fachdienst für
Migration und Integration -- Flüchtlingsberatungsstelle},
city = {Bochum},
zip = 44787,
country = {},
street = {Huestraße 15},
phone = {0234/1234-50; -33},
fax = {0234/543210},
mobile = {},
email = {migration@caritas-bochum.de},
url = {http://www.caritas-bochum.de},
note = {Sprechzeit: Mo und Do 8.30--12.30 Uhr},
}
\end{filecontents}
\usepackage[datamodel=\jobname,defernumbers]{biblatex}
\usepackage{tcolorbox}
\setlength{\bibitemsep}{3ex}
\defbibenvironment{orgentries}
{\list{}{%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}%
\setlength{\rightmargin}{0pt}}}
{\endlist}{\item}%
\defbibheading{bibliography}{}
\DeclareFieldFormat{organization}{\mkbibemph{#1}}
\DeclareFieldFormat{email}{\url{#1}}
\DeclareFieldFormat{small}{{\small#1}}
\renewcommand{\newblockpunct}{\par}
\DeclareBibliographyDriver{adress}{%
\usebibmacro{begentry}%
\iffieldundef{name}{}{\printfield{name}}\newblock%
\printfield{organization}\newblock%
\printfield{street}\newblock%
\iffieldundef{city}{}{\iffieldundef{zip}{\typeout{Warning: zip code missing}}{\printfield{zip}\setunit{\addspace}\printfield{city}}}\newblock%
\printfield{phone}\newblock
\printfield{fax}\newblock
\printfield{mobile}\newblock
\printfield{email}\newblock
\printfield{url}\newblock
\printfield{note}
\usebibmacro{finentry}}
\DeclareSortingScheme{name}{\sort{\field{name}}}
\DeclareCiteCommand{\printaddress}{}{%
\printtext{\par\noindent}%
\printfield[small]{name}%
\setunit{\\}\printfield{organization}%
\setunit{\\}\printfield{street}%
\setunit{\\}\iffieldundef{city}{}{\iffieldundef{zip}{\typeout{Warning: zip code missing}}{\printfield{zip}\setunit{\addspace}\printfield{city}}}%
\setunit{\\}\printfield{phone}%
\setunit{\\}\printfield{fax}%
\setunit{\\}\printfield{mobile}%
\setunit{\\}\printfield{email}%
\setunit{\\}\printfield{url}%
\setunit{\\}\printfield{note}%
}{}{}
%StartShownPreambleCommands
\usepackage[datamodel=\jobname,defernumbers]{biblatex}
\addbibresource{\jobname.data}
%StopShownPreambleCommands
\begin{document}
\printaddress{MalteserPsycho}\par
\printaddress{BochumCaritas}
\end{document}
|