From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Different exporters behave differently re exporter-specific lines Date: Tue, 29 Oct 2019 16:54:34 +0100 Message-ID: <87imo735tx.fsf@nicolasgoaziou.fr> References: <87a79jy99x.fsf@thb.lt> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46389) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPTpU-0001p6-BT for emacs-orgmode@gnu.org; Tue, 29 Oct 2019 11:54:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPTpS-00053I-QY for emacs-orgmode@gnu.org; Tue, 29 Oct 2019 11:54:43 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42909) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iPTpS-00051p-Kq for emacs-orgmode@gnu.org; Tue, 29 Oct 2019 11:54:42 -0400 In-Reply-To: <87a79jy99x.fsf@thb.lt> (Thibault Polge's message of "Tue, 29 Oct 2019 14:24:26 +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" To: Thibault Polge Cc: emacs-orgmode@gnu.org Hello, Thibault Polge writes: > I'm not sure how this feature is called, but in Org you can restrict a line > to a given exporter by prepending it with, eg, #+latex: > > There's a bug with some exporters f treat these lines as paragraph breaks, > some don't. For example, the following input: This is not a bug in the exporters. The discrepancy exists in the output languages, in particular in paragraphs. Org uses a definition of a paragraph close to LaTeX's, so an Org paragraph isn't quite a HTML paragraph. > Hello > > #+latex: \TeX{} > World > > #+html: Wide Web > ! > > Is exported to LaTeX as a single line, I doubt it. There are 3 paragraphs, even for LaTeX, since there are empty lines. > "Hello TeX World !", but to HTML > as separate paragraphs: > >

> Hello >

>

> World >

> Wide Web >

> ! >

> > I wouldn't except these lines to introduce any paragraphs break. Of course they should. You should look at the definition of a paragraph, per Org syntax. Keywords cannot belong to a paragraph. Regards, -- Nicolas Goaziou