From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tristan Nakagawa Subject: Citation links pointing to .pdf file - zotero-bibtex-org-oxbibtex-(ebib?) [[cite: Date: Wed, 12 Feb 2014 19:24:26 +0100 Message-ID: <52FBBC5A.9050406@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDeU8-00017d-MG for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 13:24:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDeU2-0005uB-FA for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 13:24:36 -0500 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:54476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDeU2-0005tX-8U for emacs-orgmode@gnu.org; Wed, 12 Feb 2014 13:24:30 -0500 Received: by mail-wi0-f178.google.com with SMTP id cc10so7371465wib.17 for ; Wed, 12 Feb 2014 10:24:28 -0800 (PST) Received: from [10.80.24.160] ([193.145.48.8]) by mx.google.com with ESMTPSA id ff9sm7599580wib.11.2014.02.12.10.24.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Feb 2014 10:24:28 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Mailing List Hi all, I just found out that link-format export in the ox-bibtex exporter goes via ebib. My workflow goes pretty much by managing my bibliography and exporting via autozotbib to a .bib file, and citing in my org drafts so far via the \citep{} etc. commands. the link form ([cite:]) also works. However, the link, if clicked itself in the orgfile, opens ebib. I found these link definitions, but I want something slightly different: http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17_2 Now I would be a happy camper if I could just click on the link and open the pdf in the org file, while in the exported document, the link would point to the bibliograpy, as now correctly happens... Is it possible to define citep, citet, etc.. links to get this behaviour done? I noticed that ebib doesn't even open the files from zotero due to the format zotero outputs the files. The zotero format can include various files in one entry, starts with the full filename (which includes spaces), is separated by a colon, then gives the full filename, and, after a semicolon, starts over for the next attached file (e.g. for various pdfs, supp information, etc) so the bibtex entry reads: file = {author and author - titleisshortenediftolong.pdf:/home/user/Zotero/storage/somethingsdfawer/author and author - titleisshortenediftolong.pdf:application/pdf;another file:/home/user/Zotero/storage/somethingelsezxdfce/html file or some other.pdf:} I guess in the case of several files there is no surefire way to identify the correct file, but its reasonable to assume it should be the first full path name including the authors name and ending in .pdf so, would it be easier to just define custom links that hack-parse the .bib file to get the right filename, without ebib? what would such a custom link look like? thanks a lot, tristan