forked from backtracking/bibtex2html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
100 lines (76 loc) · 2.78 KB
/
TODO
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
From: Manuel López-Ibáñez <[email protected]>
Subject: bibtex2html
Date: Wed, 14 Sep 2005 16:27:32 +0100
Hi,
first, thanks and congratulations for your great program, it makes happy
a lot of people.
However, there are a few thinks that might be improved. I have tried to
modify the sources by myself. Unfortunately, I have no idea of Object
Caml so it was a wasted effort. So, here are my comments:
* Local references should be local. For example, if the output file is
LopezIbanez.html, then any reference as
<a name="./LopezIbanez.html#publication1"> or
<a href="./LopezIbanez.html#publication1">,
should be instead
<a name="#publication1"> or
<a href="#publication1">
This way, if the name of the output file is changed or it is embedded
into another html file, there is no need to change all local references.
* When invoked using `bibtex2html -dl -nofooter -nodoc -s plain -single
...`, after each publication there is a <p> without an ending </p>.
* Also, when using the previous invocation in a file generated by
bib2bib, comments inserted by bib2bib are repeated in the bibtex code of
each publication, producing a very awful output.
* bibtex2html generates <br /> tags. These are XHTML tags and since the
output of bibtex2html is HTML, the resulting file is not either HTML nor
XHTML valid. The tags should be <br> .
* Finally, the most important thing for me would be that in the output
HTML, every field would be enclosed in an appropriate CSS class. This
would ease a lot to define a custom layout. For example, given the
bibtex entry:
@BOOK{texbook,
author = "Donald E. Knuth",
title= "The {{\TeX}book}",
publisher = "Addison-Wesley",
year = 1984
}
my desired output HTML would be something like:
<dl>
<dt>
<a name="texbook"></a>[1]
</dt>
<dd class="BOOK">
<span class="AUTHOR">Donald E. Knuth</span>.
<span class="TITLE">The TeXbook.</span>
<span class="PUBLISHER">Addison-Wesley</span>, <span
class="year">2005</span>.<br>
<pre class="bibtex" id="texbook">
@BOOK{texbook,
author = "Donald E. Knuth",
title= "The {{\TeX}book}",
publisher = "Addison-Wesley",
year = 1984
}
</pre>
</dd>
</dl>
The <span>, class and id tags doesn't do anything by themselves.
However, they allow to modify the layout easily using CSS. For example,
I would be able to use something like this:
.AUTHOR {
font-weight: bold;
}
.TITLE {
font-variant: italic;
}
pre.bibtex {
overflow: auto; /* if larger than maximum width, will produce scrollbars */
}
Moreover, implementing layout properties of different bibliographic
styles will be rather straightforward since the CSS can be embedded in
the header of the html file.
I hope you would consider some of my comments for future releases.
Cheers,
Manuel.