From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: Problem with org-export--delete-comments Date: Thu, 17 Dec 2015 22:12:32 +0000 Message-ID: References: <87h9jgrec8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9gn0-0002AI-Cq for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 17:12:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9gmx-00061V-5t for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 17:12:46 -0500 Received: from plane.gmane.org ([80.91.229.3]:35204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9gmw-00060p-Vh for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 17:12:43 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a9gmt-0000cv-5L for emacs-orgmode@gnu.org; Thu, 17 Dec 2015 23:12:39 +0100 Received: from cpc92322-cmbg19-2-0-cust549.5-4.cable.virginm.net ([86.26.34.38]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2015 23:12:39 +0100 Received: from andreas.leha by cpc92322-cmbg19-2-0-cust549.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Dec 2015 23:12:39 +0100 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: emacs-orgmode@gnu.org Hi Nicolas and Ethan, Nicolas Goaziou writes: > Hello, > > Ethan Ligon writes: > >> I've long used the following construction for displayed equations in org >> # >> \[ >> u_i(c)=p_i\lambda >> \] >> # >> which (i) gives nice space for reading equations in the org-source, and >> (ii) nicely protects the display equation from (fill-paragraph) and >> friends. >> >> However, exporting with this construction *stopped* working after commit >> 53a4209; what happens now is that ox.el replaces the # with a blank line, >> breaking my single paragraph into three. > > I see only one paragraph above. Could you elaborate a bit? I think the problem is in the exported latex file rather than in the org document. While the org document indeed has one paragraph the exported latex file does not. I can reproduce this. With this org document: --8<---------------cut here---------------start------------->8--- * Test I've long used the following construction for displayed equations in org # \[ u_i(c)=p_i\lambda \] # which (i) gives nice space for reading equations in the org-source, and (ii) nicely protects the display equation from (fill-paragraph) and friends. --8<---------------cut here---------------end--------------->8--- I get this latex doc (relevant part only): --8<---------------cut here---------------start------------->8--- \section{Test} \label{sec:orgheadline1} I've long used the following construction for displayed equations in org \[ u_i(c)=p_i\lambda \] which (i) gives nice space for reading equations in the org-source, and (ii) nicely protects the display equation from (fill-paragraph) and friends. --8<---------------cut here---------------end--------------->8--- I agree that the paragraph should not be broken in the exported document. There are also other use cases for comments inside paragraphs. [ ... ] Regards, Andreas