J. Klymak --- Bibtex Scripts

JMK Home

Publications

Curriculum Vitae

Teaching

OtherStuff

Work Calendar

Jody Klymak's 
citations

I keep my list of publications in Bibtex. I use bibtex2html to output my publications to this website using the following script. It is horribly inefficient, but I am not a good shell programmer.

This is based on the much better example given by: http://www.lri.fr/~filliatr/bibtex2html/examples/Mario-Valle/

If interested, you can get my bibliography style here. It too is a horrible hack...

Muse page

#title Publications

<include file="Pubs.html" markup="nil">

**** This was made using bibtex2html and some scripts

Modified bibtex entries

I keep my bibliography in one large main.bib file. Things I want to appear in my list of articles get two extra entries: pdf and JMKPubtype. For now JMKPubtype is one of "other", "refereed", or "in prep".

@InProceedings{klymakgregg00,
  author =       {Jody M. Klymak and Michael C. Gregg},
  title =        {Stratified Flow Separation in the Lee of the {Knight} {Inlet} Sill},
  booktitle = {Proceedings of the IAHR 5th International Symposium on Stratified FLows},
  year =         2000,
  pdf = {http://web.uvic.ca/~jklymak/KnightInlet/KlymakGregg00.pdf},
  JMKPubtype = {other}
}

Shell script

#!/bin/bash
#
# Make bibliography...
#

# Run bib2bib first to extract stuff I want.  Added fields JMKPubtype
# and pdf to bibtex entries of my papers, i.e.:
# @Article{klymaketal06a,
#   author =     {Jody M. Klymak and Robert Pinkel and
#                 Cho-Teng Liu and Anthony K. Liu and Laura David},
#   title =      {Prototypical solitons in the {South} {China} {Sea}},
#   journal =    grl,
#   year =       {2006},
#   volume =     33,
#   pages =      {doi:10.1029/2006GL025932},
#   pdf = {http://web.uvic.ca/~jklymak/pdfs/KlymakEtAl06a.pdf},
#   JMKPubtype = {refereed}
# }

# Make separate bibs for each "type" of publication...
bib2bib ~/texmf/bibtex/main.bib -ob refbib.bib  -c 'JMKPubtype : "refereed"'
bib2bib ~/texmf/bibtex/main.bib -ob inreviewbib.bib  -c 'JMKPubtype : "inreview"'
bib2bib ~/texmf/bibtex/main.bib -ob inprepbib.bib  -c 'JMKPubtype : "inprep"'


# make html.  unsrtLast is a version of unsrt.bst that puts the last
# name first.  -d means we sort by the date. -r means to do a reverse
# sort.

bibtex2html  -noabstract -nokeywords -nodoc\
   -t "Published" -s unsrtLast -nf pdf "pdf"\
 -noheader -nofooter -dl\
 -d -r -o PubsPub refbib.bib

bibtex2html  -noabstract -nokeywords -nodoc\
   -t "In Review" -s unsrtLast -nf pdf "pdf"\
 -noheader -nofooter -dl\
 -d -r -o PubsRev inreviewbib.bib

bibtex2html  -noabstract -nokeywords -nodoc\
   -t "In Preperation" -s unsrtLast -nf pdf "pdf"\
 -noheader -nofooter -dl\
 -d -r -o PubsPrep inprepbib.bib

cat PubsPub.html PubsRev.html PubsPrep.html > Pubs0.html

# For some reason bibtex2html wants to put everything into lists or
# tables. I prefer paragraphs, so this sed does this. It also demotes
# the headings from <h1> to <h2>.  And I remove a <br> I didn't like.

sed -e 's/<dl>//' \
-e 's/<dt>//' \
-e 's/<dd>/<p>/' \
-e "s/<\/dd>/<\/p>/" \
-e "s/<\/dt>//" \
-e "s/<br \/>/    /" \
-e '/a name/d' \
-e 's/h1/h2/g'\
 Pubs0.html > Pubs.html

# Now this is done.  I use muse to publish my website, so I have a
# command in "PublicationList.muse" that looks like:
#
# <include file="Pubs.html" markup="nil">

# this copies the bib files to my website...
cp Pubs*_bib.html ~/Sites/
cp ./makeBib.sh ~/Sites/
See also CVMaintenance

Last Modified: July 31, 2011
Powered by Emacs Muse Jody Klymak - jklymak@uvic.ca