From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Bug in latex export of <> Date: Sun, 01 May 2011 11:22:44 -0500 Message-ID: <4DBD88D4.1080803@sift.info> References: <4DBB2891.80004@sift.info> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGZQ4-0006wO-5t for emacs-orgmode@gnu.org; Sun, 01 May 2011 12:22:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGZPy-0001BE-NO for emacs-orgmode@gnu.org; Sun, 01 May 2011 12:22:52 -0400 Received: from mpls.sift.info ([75.146.46.193]:32850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGZPy-0001B4-Gf for emacs-orgmode@gnu.org; Sun, 01 May 2011 12:22:46 -0400 In-Reply-To: <4DBB2891.80004@sift.info> 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 On 4/29/11 Apr 29 -4:07 PM, Robert Goldman wrote: > I have this header in my org-mode file: > > **** Documentation <> > > it gets translated into the following, which formats poorly: > > \item Documentation \label{documentationPseudoProp}documentationPseudoProp\\ > > Any idea why this would happen? Seems like a bona fide bug, but perhaps > I'm just doing something wrong. This block of org-latex seems to have the problem in it: (while (re-search-forward (concat "<<>>?\\((INVISIBLE)\\)?") nil t) (org-if-unprotected-at (+ (match-beginning 0) 2) (replace-match (concat (org-export-latex-protect-string (format "\\label{%s}" (save-match-data (org-solidify-link-text (match-string 1))))) * (if (match-string 2) "" (match-string 1))) t t))) I suspect that the "INVISIBLE" up there indicates some way I am supposed to flag this as a non-printing link, but there's no documentation (AFAICT) about this. Anyone know what that's supposed to do? The manual suggests putting these targets in comments, but that only works for HTML export --- if you do that in LaTeX export, the \label{} command gets commented out! Finding a solution that works equally well in HTML and LaTeX export would be a good thing, I think. Commenting out the starred s-expression in the block above would probably fix my problem, but I have no way of telling what collateral damage there might be. Can anyone clarify? If someone can fill me in, I will supply a patch to either the manual or the code, whichever is appropriate thanks! r