From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Mitchell Subject: [PATCH 0/2] References auto-generated labels with \ref in LaTeX export Date: Thu, 20 Jan 2011 13:23:21 +0000 Message-ID: Return-path: Received: from [140.186.70.92] (port=51903 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfuUS-0007eA-M3 for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 08:23:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfuUR-0005Tg-He for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 08:23:52 -0500 Received: from e450.epcc.ed.ac.uk ([129.215.56.230]:40333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfuUR-0005Ta-83 for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 08:23:51 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Lawrence Mitchell when writing latex, I prefer referring to previous sections by saying "As we saw earlier in section \ref{some-section}". When writing with Org and then exporting to latex, there doesn't appear to be any way to reproduce this. Using "As we saw earlier in section [[section header]]" produces a hyperref, rather than a plain ref. This patch set introduces a new option `org-latex-unprettify-internal-links' which, if non-nil, converts "bare" references to auto-generated section labels into a \ref rather than a \hyperref. The first patch fixes up treatment of the options plist, so that options that are the suffix of another option do not inadvertantly match both. This should probably be applied either way, since the current behaviour seems like a bug. The second patch introduces the new functionality and attempts to document it in the most obvious place I could find in the manual. Cheers, Lawrence Lawrence Mitchell (2): Only match complete words in org-export-add-options-to-plist Allow option of using bare \ref links in LaTeX export doc/org.texi | 37 +++++++++++++++++++++++++++++++++++++ lisp/org-exp.el | 6 ++++-- lisp/org-latex.el | 25 +++++++++++++++++++++---- 3 files changed, 62 insertions(+), 6 deletions(-) -- 1.7.4.rc1.7.g2cf08