[OS X TeX] Re: html output from bib file (BibDesk)
James Owen
jhgowen at mac.com
Tue May 16 02:46:47 CEST 2006
Dear Graham,
I use several different html export templates, according to what I
want to do. For example, I have one style which just outputs the
reference, while another will show the abstract when you hover over
the reference.
The output, along with the css can be seen here: http://
homepage.mac.com/jhgowen/research/publications.html
I assume you know that you can change these by editing the
htmlexporttemplate, and htmlitemexporttemplate files in
~/Library/Application\ Support/BibDesk/ .
Actually, I have several now, and it is a pain to change from one to
the other. It would be nice to incorporate the export functions into
a pref. pane for BibDesk, so that you can change your export template
within the program, just like with the Preview pane.
The htmlexporttemplate file defines the basic webpage, and here adds
a ref to my css file, where the formatting is done.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><$fileName.lastPathComponent/></title>
<link rel="stylesheet" type="text/css" media="screen" href="../
base.css" />
<link rel="stylesheet" type="text/css" media="print" href="../
print.css" />
</head>
<body>
<div class="content">
<ol>
<$publicationsAsHTML/>
</ol>
</div>
</body>
</html>
The htmlitemexporttemplate file is essentially a bunch of spans with
appropriate names, which I hope is more search-engine friendly.
The citekey is used as an id, so I can refer to papers elsewhere in
my website, and have a link directly to the right item
in the list.
The <ul> containing the Abstract field, allows me to use a css hover
property, so that when I hover over the reference,
the abstract appears. I am not currently using this on my webpage,
however.
<li class="Pub" id="<$citeKey/>">
<span class="Title"><$pubFields.Title/></span>
<br />
<span class="Author"><
$pubAuthors.abbreviatedName. at componentsJoinedByCommaAndAnd/></
span><br />
<span class="Journal"><$pubFields.Journal/></span>
<span class="Volume"><$pubFields.Volume/></span>
<span class="Pages"><$pubFields.Pages/></span>
(<span class="Date"><$pubFields.Year/></span>)
<span class="url"><a href="http://dx.doi.org/<$pubFields.Doi/>"><
$pubFields.Doi/></a></span>
<span class="Citations"><$pubFields.Citations/> Citations</span>
<ul>
<li class="Abstract">Abstract:<$pubFields.Abstract/></li>
</ul>
</li>
What is nice is that all of this imports with styling into Pages, if
you use a print.css style file, from which you can make a nice
pdf version of your publications.
Hope this helps,
James
On 3 May 2006, at 12:32, Graham Powrie wrote:
> Hi,
>
> I'm interesting your html output templates. I'm looking to put
> together an MLA style annotated bibliography. Maybe there is an
> easier way to do this with BibDesk, but I haven't found it. Lemmy
> know. Thanks.
>
> Graham Powrie
> Graham at Votary.net
>
>
>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list