From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Links in tables and LaTeX export Date: Mon, 04 Jul 2011 23:10:43 -0400 Message-ID: <23620.1309835443@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdw3f-0007bC-Qn for emacs-orgmode@gnu.org; Mon, 04 Jul 2011 23:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qdw3e-0005sq-5x for emacs-orgmode@gnu.org; Mon, 04 Jul 2011 23:12:19 -0400 Received: from vms173003pub.verizon.net ([206.46.173.3]:49531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdw3e-0005nZ-2Z for emacs-orgmode@gnu.org; Mon, 04 Jul 2011 23:12:18 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LNU002N0BKE8XH8@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Mon, 04 Jul 2011 22:12:14 -0500 (CDT) In-reply-to: Message from tsd@tsdye.com (Thomas S. Dye) of "Mon, 04 Jul 2011 15:58:04 -1000." 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: "Thomas S. Dye" Cc: nicholas.dokos@hp.com, Org-mode Thomas S. Dye wrote: > Aloha all, > > Links in tables have changed recently. > > I have this link definition: > > #+source: define-citep-link > #+begin_src emacs-lisp :results silent > (org-add-link-type > "citep" 'ebib > (lambda (path desc format) > (cond > ((eq format 'html) > (format "(%s)" path)) > ((eq format 'latex) > (if (or (not desc) (equal 0 (search "citep:" desc))) > (format "\\citep{%s}" path) > (format "\\citep[%s]{%s}" desc path) > ))))) > #+end_src > > Links outside of a table export correctly: > > [[citep:wagner90][598]] exports to \citep[598]{wagner} > > Inside a table the same link exports like this: > > [[citep:wagner90]\footnote{DEFINITION NOT FOUND: 598}] > > I'm using Org-mode version 7.5 (release_7.5.566.g8d45). > Reproduced and bisected it to the following commit: ,---- | ab9c52fd7911763a903a3d673dce2876ada9e551 is the first bad commit | commit ab9c52fd7911763a903a3d673dce2876ada9e551 | Author: Nicolas Goaziou | Date: Wed May 11 18:02:15 2011 +0200 | | Improve footnotes handling in exporters | | * lisp/org-exp.el (org-export-footnotes-markers, | org-export-footnotes-data): new variables. | (org-export-preprocess-string): use a more explicit argument. | | * lisp/org-html.el (org-export-as-html): initialize new variables. | | * lisp/org-docbook.el (org-export-as-docbook): initialize new variables. | | * lisp/org-latex.el (org-export-latex-footmark-seen): new variable. | (org-export-as-latex): initialize new variables. | (org-export-latex-preprocess): allow to export two or more footnotes | in a row. Also permit to have footnotes refering to previously | defined footnotes. | | * lisp/org-ascii.el (org-export-as-ascii): feed org-footnote-normalize | with data so it can normalize footnotes before first headline, or | footnotes with their definition outside exported region. | | :040000 040000 1fb022cb1d6f845963e80eeb3e165b77c0371f14 9233dfeee6e7889cc389181aaa6995b381fc49c6 M lisp `---- Nick