<div dir="ltr">Hello everyone,<div><br></div><div>During the Akademy I talked to a user (Ran Lu, if I typed his name correctly) who did a cool modification (see attached snapshot) on Okular, so I thought it would be good sharing this with you.</div>

<div><br></div><div>This modification is really useful to quickly look for the references of an article. If you ever read an article and needed to go the the references page every now and then, you'll probably enjoy this.</div>

<div>Of course all of this is a hack and only works for a particular scenario but since ideas are always welcome I couldn't keep this to myself. What if someone on this mailing list come up with a definitive solution for that? Who knows?</div>

<div><br></div><div>I'm quoting the original author:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<span style="font-family:arial,sans-serif;font-size:13px">The basic idea is to get meta information of the certain pdf file and show them<br></span><span style="font-family:arial,sans-serif;font-size:13px">in okular. I works on high energy physics, and everyone upload their paper to<br>

</span><a href="http://arxiv.org/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">arxiv.org</a><span style="font-family:arial,sans-serif;font-size:13px">. For most of the high energy papers, there is another website<br>

</span><a href="http://inspirehep.net/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">inspirehep.net</a><span style="font-family:arial,sans-serif;font-size:13px"> contains all the metadata of those paper(it is not 100%<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">accurate, for papers uploaded to arXiv in the current week it is more like<br></span><span style="font-family:arial,sans-serif;font-size:13px">20%, but that is the best they can do).</span><br style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:arial,sans-serif;font-size:13px">Now you have the background. What I did with okular is when it opens a file<br></span><span style="font-family:arial,sans-serif;font-size:13px">directly from arXiv, the file name is the unique id(not really before 2000,<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">when they have prefix like "hep-ph" or "hep-th" in front of the number id) of<br></span><span style="font-family:arial,sans-serif;font-size:13px">the papers. I use this id to search inspirehep for the meta data of this<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">paper, mostly references and citations, and if the refered or cited paper is<br></span><span style="font-family:arial,sans-serif;font-size:13px">also on arXiv, download and show it when people click on the item. Inspirehep<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">is like the facebook for high energy physicists, citing others is like be<br></span><span style="font-family:arial,sans-serif;font-size:13px">friend with them ;) so you can think these patches as adding social functions<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">to okular</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Implementation wise as I said it is a hack, I use two python scripts I wrote<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">in a few hours to fetch the reference and citation and print information to<br></span><span style="font-family:arial,sans-serif;font-size:13px">stdio, okular gets the information from QProcess and show it in the side<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">panel. I put the scripts and the code for reference panel, there are several<br></span><span style="font-family:arial,sans-serif;font-size:13px">other commits in my local branch related to the citation annd history panel,<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">but the general idea is the same.</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">And finally here is the snapshots, and the scripts and patches. You can see<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">from the snapshot the result is far from perfect, but I do not know any way to<br></span><span style="font-family:arial,sans-serif;font-size:13px">improve it. I am more than happy if these can help okular development in any<br>

</span><span style="font-family:arial,sans-serif;font-size:13px">possible way.</span></blockquote><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><br></div></div>