-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb-example1.export
More file actions
239 lines (201 loc) · 9.14 KB
/
web-example1.export
File metadata and controls
239 lines (201 loc) · 9.14 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# ==========================================================================
# ____ _ _ _____ __ ______
# | __ )(_) |_|_ _|__\ \/ / ___|___ _ ____ __
# | _ \| | '_ \| |/ _ \ / | / _ \| '_ \ \ / /
# | |_) | | |_) | | __// \ |__| (_) | | | \ V /
# |____/|_|_.__/|_|\___/_/\_\____\___/|_| |_|\_/
#
# --- BibTeX Converter ---
# https://www.nntb.no/~dreibh/bibtexconv/
# ==========================================================================
#
# BibTeXConv XHTML 1.1 Export Example
# Copyright (C) 2010-2026 by Thomas Dreibholz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Contact: thomas.dreibholz@gmail.com
# Select entries:
# citeAll
cite Globecom2010
cite LCN2005-EdgeDevice
cite PAMS2014-LEDBAT
cite PAMS2013-NorNet
cite CAIA2014
cite Dre2012
cite LinuxTag2005
cite CRNA-Rapport2022
cite CommMag2022
# Usually, there should be a more fine-granular selection.
# For convenience, it is useful to make them in included files.
#include dreibholz-others.export
#include dreibholz-papers.export
#include dreibholz-rfcs.export
#include dreibholz-thesises.export
#include dreibholz-id-workinggroup.export
#include dreibholz-id-individual.export
#include dreibholz-journals.export
#include dreibholz-posters-and-demos.export
#include dreibholz-talks.export
sort year/D month/D day/D title/A
# ###########################################################################
# #### Export to XHTML 1.1 ####
# ###########################################################################
# ====== Set header and trailer of each publication entry ===================
# ----- Encode strings in XML style, e.g. <, >, &, etc.----------------------
xmlStyle
# ----- Non-breakable space character and line-break ------------------------
nbsp
linebreak <br />
# ------ Write the HTML header ----------------------------------------------
echo <?xml version="1.0" encoding="utf-8" ?>\n
echo <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n
echo <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">\n
echo <head>\n
echo <title>Publications</title>\n
echo <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n
echo <meta name="Author" content="BibTeXConv" />\n
echo <meta name="Description" content="List of Publications" />\n
echo <meta name="Keywords" content="Publications" />\n
echo <meta name="Classification" content="Publications" />\n
echo <meta name="Viewport" content="width=device-width; initial-scale=1" />\n
echo <link rel="stylesheet" href="https://www.nntb.no/~dreibh/stylesheet.css" type="text/css" />\n
echo <script type="text/javascript" src="publication-list-treeview.js"></script>\n
echo <style type="text/css">\n
echo li.treeview-collapsed {\n
echo list-style-image: url(Images/ListItem-Collapsed.svg);\n
echo }\n
echo li.treeview-expanded {\n
echo list-style-image: url(Images/ListItem-Expanded.svg);\n
echo }\n
echo </style>\n
echo </head>\n
echo <body>\n\n
echo <!-- ###### Publications ############################################# -->\n
echo <h2 id="Publications">Publications</h2>\n\n
echo <!-- BEGIN-OF-PUBLICATIONS -->\n\n
# ====== This is the printing template ======================================
templatenew
# ***** Begin of Subsection: YEAR *******************************************
template+ [%{begin-subdivision-year}<h3 id="Publications-%{year}">%{year}</h3><ul>\n\n]
# ****** Begin of Entry *****************************************************
template+ <li id="Publications-%{html-label}" class="treeview-collapsed">
# ****** Begin of Main Block ************************************************
template+ <div>
template+ <p class=\"description\">
# ***** Authors *************************************************************
# Begin of author loop:
template+ %{begin-author-loop}
# Separator, for first/last/middle author:
template+ [%{is-first-author?}|%{is-last-author?} and |; ]
# Add the current author form the loop:
# Execute the script "./get-author-url", which reads authors.list and provides
# in the author with hyperlink, if a URL is defined. Otherwise, it just fills
# in the author name.
template+ [./get-author-url authors.list '%{author-family-name}[, %{author-give-name}]' '%{author-family-name}[, %{author-give-name}]'%{exec}]
# End of author loop:
template+ %{end-author-loop}
template+ :
# ***** Title ***************************************************************
template+ <span[ xml:lang="%{xml-language}" lang="%{xml-language}"]>
# If there is a URL, make a hyperlink, else only print the title:
template+ [``<a[ type="%{url-mime}"] href="%{url}">%{title}</a>´´|``%{title}´´]
template+ </span>
# ****** Document details ***************************************************
# The document details appear in braces ( ... ), if they are available.
# Add opening parenthesis "(", if "url" or "language" are set:
template+ [%{url}%{is-not?}%{url-type}%{is-not?HTML} \(|%{language}%{is-not?} \(]
# ------ Download -----------------------------------------------------------
template+ [
# Only show file type and length for non-HTML types:
template+ [%{url-type}%{is-not?HTML}
template+ [<a type="%{url-mime}" href="%{url}">%{url-type}</a>]
template+ [, %{url-size-kib}~KiB]
template+ ]
# Use plural or singular for number of pages: "n pages", or just "1 page":
template+ [(%{numpages}%{is-not?1}), %{numpages}~pages|, %{numpages}~page]
template+ ]
# ------ Language -----------------------------------------------------------
template+ [%{url}%{is-not?}[%{language}%{is-not?}, ]]
template+ [
template+ [%{content-language}|%{language}]%{is?german}auf Deutsch|
template+ [%{content-language}|%{language}]%{is?ngerman}auf Deutsch|
template+ [%{content-language}|%{language}]%{is?norsk}på norsk|
template+ [%{content-language}|%{language}]%{is?chinese}in Chinese|
template+ [%{content-language}|%{language}]%{is?french}au français|
template+ [%{content-language}|%{language}]%{is?english}in English|
template+ in %{content-language}|
template+ in %{language}
template+ ]
# Add closing parenthesis ")", if "url" or "language" are set:
template+ [%{url}%{is-not?}%{url-type}%{is-not?HTML}\)|%{language}%{is-not?}\)]
# ***** Bibliographic data of publication ***********************************
template+ [, %{how-published}]
template+ [, in <em>%{journal}</em>]
template+ [, in <em>%{booktitle}</em>]
template+ [
template+ , %{type}[~%{number}][, %{series}][, vol.~%{volume}][, pp.~%{pages}]|
template+ [, %{series}][, vol.~%{volume}][, no.~%{number}][, pp.~%{pages}]
template+ ]
template+ [, %{publisher}]
template+ [, %{school}]
template+ [, %{institution}]
template+ [, URN~<a href="https://nbn-resolving.org/%{urn}">%{urn}</a>]
template+ [, DOI~<a href="https://dx.doi.org/%{doi}">%{doi}</a>]
template+ [, %{isbn}]
template+ [, %{issn}]
template+ [, %{address}]
template+ [, %{note}]
template+ [, [%{month-name}~%{day}, |%{month-name}~]%{year}]
template+ .
# ****** Awards *************************************************************
template+ [ <strong>%{custom-1}.</strong>]
# ****** End of Main Block **************************************************
template+ </p>
template+ </div>
# ***** Details block *******************************************************
# A details block is to be added, if "keywords", "abstract", "url" or
# "url-md5" exist:
template+ [
template+ [%{keywords}][%{abstract}][%{url}][%{url-md5}]%{is-not?}\n
template+ <div class="publication-details-hiddenbox">
template+ [
template+ <p class="publication-details"><strong>Keywords:</strong>[ ]
template+ <span[ xml:lang="%{xml-language}"]>%{keywords}</span>
template+ </p>
template+ ]
template+ [
template+ <p class="publication-details"><strong>Abstract:</strong>[ ]
template+ <span[ xml:lang="%{xml-language}"]>%{abstract}</span>
template+ </p>
template+ ]
template+ [
template+ <p class="publication-details" style="text-align: left;"><strong>URL:</strong>[ ]
template+ <a[ type="%{url-mime}"] href="%{url}">%{url}</a>
template+ </p>
template+ ]
template+ [
template+ <p class="publication-details"><strong>MD5:</strong>[ ]%{url-md5}</p>
template+ ]
template+ </div>\n
template+ ]
# ****** End of Entry *******************************************************
template+ </li>\n\n
# ***** End of Subsection: YEAR *********************************************
template+ [%{end-subdivision-year}</ul>\n\n]
# ====== Finally, export all selected publications ==========================
export
echo <!-- END-OF-PUBLICATIONS -->\n\n
# ====== Write the HTML footer ==============================================
echo </body>\n
echo </html>\n