{"id":86,"date":"2010-12-21T19:43:25","date_gmt":"2010-12-21T19:43:25","guid":{"rendered":"http:\/\/graham-kendall.com\/blog\/?p=86"},"modified":"2020-09-22T02:01:19","modified_gmt":"2020-09-22T02:01:19","slug":"displaying-bibtex-on-web-site","status":"publish","type":"post","link":"https:\/\/graham-kendall.com\/blog\/displaying-bibtex-on-web-site\/","title":{"rendered":"Displaying BibTeX on web site"},"content":{"rendered":"<p>For a long time I have been wanting to automate the way that I display my publications on my web site. There are facilites such as <a title=\"bib2html\" href=\"http:\/\/www.litech.org\/~wkiri\/bib2html\/\" target=\"_blank\" rel=\"noopener noreferrer\">bib2html<\/a>. They are very good at what they do but they never did <em>exactly<\/em> what I wanted.\u00a0 In fact, at the\u00a0 <a title=\"ALIO-INFORMS\" href=\"http:\/\/meetings2.informs.org\/BuenosAires2010\/\" target=\"_blank\" rel=\"noopener noreferrer\">ALIO-INFORMS<\/a> conference in June I recall having long conversations (yes plural) with a good friend of mine about the best way to take a bibTeX file and create a list of publications that is suitable to display on the web. What came across was that we both had slightly different requirements and none of the &#8220;off the shelf&#8221; solutions completely fitted the bill.<\/p>\n<p>Then I came across the web site by <a title=\"Andreas Classen\" href=\"http:\/\/www.classen.be\/bibtex2html\/\" target=\"_blank\" rel=\"noopener noreferrer\">Andreas Classen<\/a>. This was the closest I had come across that did everything I needed, largely due to the fact that the scripts could be parameterised.<\/p>\n<p>If there is a downside it is that you need to be able to run PHP on the server which serves your web pages. I susppose you also need to understand PHP, but you can get the scripts running without an in-depth understanding. I know, as I didn&#8217;t understand PHP, but I got them running!<\/p>\n<p>Once I had got the scripts up and running,\u00a0 I took the opportunity to learn PHP, as it was a language that I had never used before. If you have used almost any other language (C++, Java etc.) you won&#8217;t have any problems learning PHP. Of course, it&#8217;s slightly different as you are now dealing with a server side language, rather than a general pupose language. Still a quick google of any issues that you are unsure of usually brings up a solution.<\/p>\n<p>Once I had got to grips with PHP (but I am still far from expert) I decided to start changing things for myself.<\/p>\n<p>If you take a look at <a title=\"Graham Kendall - Publications Page\" href=\"http:\/\/www.graham-kendall.com\/publications\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.graham-kendall.com\/publications\/<\/a>, you see the end result. It is still very much <em>Work In Progress<\/em> (in that many of my publications are still not correct as I need to overhaul my bibTeX file) but the things to take a look at, in the context of the main message of this blog, are:<\/p>\n<ol>\n<li>As well as displaying all publications, you can view just journals, just conference proceedings, just book chapters etc.<\/li>\n<li>If you look around my site, you can see that it is possible to view different types of papers (e.g. hyper-heuristics, sports scheduling, cutting and packing etc.). This is done by simply searching through the title, abstract and keywords and, if a match is found, then that publication is displayed.<\/li>\n<li>Each publication leads to a separate page where you can download the file (assuming a PDF is available), look at the abstract, go directly to where the publication is help (via the doi) etc.<\/li>\n<\/ol>\n<p>I still want to do some work on the scripts, but at least I now have the ability to do almost anything I want. The main effort at the moment though is to get the underlying bibTeX correct, so that all my publications display correctly.<\/p>\n<p>But, once it is all up and running, then the only maintenance required is to keep the bibTeX file up to date.<\/p>\n<p>So, thank you Andreas. You provided the inspiration to enable me to do something that I have wanted to do for ages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a long time I have been wanting to automate the way that I display my publications on my web site. There are facilites such as bib2html. They are very good at what they do but they never did exactly what I wanted.\u00a0 In fact, at the\u00a0 ALIO-INFORMS conference in June I recall having long [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[177,87],"tags":[103,66],"class_list":["post-86","post","type-post","status-publish","format-standard","hentry","category-archive","category-bibtex","tag-citations-2","tag-php"],"_links":{"self":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":1,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":1679,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/posts\/86\/revisions\/1679"}],"wp:attachment":[{"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/graham-kendall.com\/blog\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}