From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Quiniou Subject: Export options processed in example block Date: Thu, 18 Oct 2012 11:33:33 +0200 Message-ID: <507FCCED.8000605@mdl29.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOmTf-0001MT-KR for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 05:33:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOmTb-00040J-HI for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 05:33:19 -0400 Received: from ip2.mdl29.net ([91.217.154.233]:57825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOmTb-0003zv-Au for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 05:33:15 -0400 Received: from localhost (localhost [127.0.0.1]) by mail (Postfix) with ESMTP id 5B55720086 for ; Thu, 18 Oct 2012 11:33:12 +0200 (CEST) Received: from ip2.mdl29.net ([127.0.0.1]) by localhost (mail.mdl29.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bq-WAfE4TyZL for ; Thu, 18 Oct 2012 11:33:11 +0200 (CEST) Received: from [192.168.1.11] (ARennes-259-1-234-82.w2-12.abo.wanadoo.fr [2.12.241.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail (Postfix) with ESMTPSA id 15AF520084 for ; Thu, 18 Oct 2012 11:33:10 +0200 (CEST) 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, When I put #+TITLE in a block example and try to export an Org file in HTML (with org-export), results are unexpected : Org file -- #+TITLE: Testing example block #+begin_example #+TITLE: My title #+end_example HTML file -- [..] My title [..] To obtain expected results, I found two solutions : - prefix "#+TITLE: My title" with ';' - put "#+TITLE: Testing example block" *after* "#+TITLE: My title" To my mind, example is a protecting-block. Therefore, as mentionned in org-protecting-blocks documentation, his content should not be "processed as Org syntax". Regards, -- Emacs : GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.4) of 2012-08-28 on shaun Package: Org-mode version 7.9.2 (7.9.2-dist @ /usr/share/emacs/site-lisp/org/) Value of org-exporting-blocks : ("src" "example" "latex" "ascii" "html" "docbook" "ditaa" "dot" "r" "R") Tested with org-minimal.el. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Export options processed in example block Date: Thu, 18 Oct 2012 12:32:04 +0200 Message-ID: <20121018103204.GA16407@kuru.dyndns-at-home.com> References: <507FCCED.8000605@mdl29.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOnOd-0004YA-31 for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 06:32:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOnOc-0004DE-3J for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 06:32:10 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOnOb-0004DA-TE for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 06:32:10 -0400 Received: by mail-wi0-f171.google.com with SMTP id hj13so1407631wib.12 for ; Thu, 18 Oct 2012 03:32:09 -0700 (PDT) Content-Disposition: inline In-Reply-To: <507FCCED.8000605@mdl29.net> 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, On Thu, Oct 18, 2012 at 11:33:33AM +0200, Nicolas Quiniou wrote: > Hi, > > When I put #+TITLE in a block example and try to export an Org file in > HTML (with org-export), results are unexpected : > > Org file > -- > #+TITLE: Testing example block > #+begin_example > #+TITLE: My title > #+end_example > As far as I know org syntax in example blocks need to be protected by a comma. So something like this should work: #+TITLE: Testing example block #+begin_example ,#+TITLE: My title #+end_example Hope this helps, -- Suvayu Open source is the future. It sets us free. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Quiniou Subject: Re: Export options processed in example block Date: Thu, 18 Oct 2012 14:59:05 +0200 Message-ID: <507FFD19.5000702@mdl29.net> References: <507FCCED.8000605@mdl29.net> <20121018103204.GA16407@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOpga-0001Wm-5U for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 08:58:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOpgU-0005g4-F7 for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 08:58:52 -0400 Received: from ip2.mdl29.net ([91.217.154.233]:59156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOpgU-0005fd-9s for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 08:58:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail (Postfix) with ESMTP id 802E420086 for ; Thu, 18 Oct 2012 14:58:44 +0200 (CEST) Received: from ip2.mdl29.net ([127.0.0.1]) by localhost (mail.mdl29.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sFn9QnKwj8EK for ; Thu, 18 Oct 2012 14:58:43 +0200 (CEST) Received: from [192.168.1.11] (ARennes-259-1-169-195.w2-12.abo.wanadoo.fr [2.12.88.195]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail (Postfix) with ESMTPSA id 758BD20084 for ; Thu, 18 Oct 2012 14:58:43 +0200 (CEST) In-Reply-To: <20121018103204.GA16407@kuru.dyndns-at-home.com> 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 Le 18/10/2012 12:32, Suvayu Ali a =E9crit : > So something like this should work: >=20 > #+TITLE: Testing example block >=20 > #+begin_example > ,#+TITLE: My title > #+end_example That's right. Thanks you. Could we improve org-protecting-blocks documentation or Org manual on that point ? From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Export options processed in example block Date: Thu, 18 Oct 2012 16:55:21 +0200 Message-ID: <20121018145521.GC16407@kuru.dyndns-at-home.com> References: <507FCCED.8000605@mdl29.net> <20121018103204.GA16407@kuru.dyndns-at-home.com> <507FFD19.5000702@mdl29.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOrVZ-0003iX-GJ for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 10:55:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOrVS-0001kD-AJ for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 10:55:37 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:35844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOrVS-0001jg-4R for emacs-orgmode@gnu.org; Thu, 18 Oct 2012 10:55:30 -0400 Received: by mail-wg0-f49.google.com with SMTP id gg4so5529678wgb.30 for ; Thu, 18 Oct 2012 07:55:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <507FFD19.5000702@mdl29.net> 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, On Thu, Oct 18, 2012 at 02:59:05PM +0200, Nicolas Quiniou wrote: > Le 18/10/2012 12:32, Suvayu Ali a écrit : > > So something like this should work: > > > > #+TITLE: Testing example block > > > > #+begin_example > > ,#+TITLE: My title > > #+end_example > > That's right. Thanks you. > > Could we improve org-protecting-blocks documentation or Org manual on > that point ? > It is documented in the manual; see here: [[info:org#Literal%20examples][info:org#Literal examples]] If you edit the example block with C-c ', then Org mode takes care of the comment characters. However I'm not sure how to tell that what you are entering is org source when all you have is a line with keywords or comments. If you feel the documentation could be clearer, please feel free to send a patch. One immediate improvement I could think of was to include that little discussion and footnote in the manual index under comments. Hope this helps. -- Suvayu Open source is the future. It sets us free.