From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: another blog exporter Date: Tue, 04 Mar 2014 10:51:36 +0100 Message-ID: <5315A228.1040105@roklein.de> References: <52F5137D.2000003@roklein.de> <52F6966C.2040409@roklein.de> <87ppmwra82.fsf@bzg.ath.cx> <52F78FDC.8090402@roklein.de> <874n47bbf3.fsf@bzg.ath.cx> <87ha87mch5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKm0x-0008Lo-BP for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 04:52:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKm0r-0005Jn-Gv for emacs-orgmode@gnu.org; Tue, 04 Mar 2014 04:51:55 -0500 In-Reply-To: <87ha87mch5.fsf@gmail.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: Nicolas Goaziou , Bastien Cc: emacs-orgmode@gnu.org Hello, thank you very much for your feedback. On 02/10/2014 12:30 PM, Nicolas Goaziou wrote: > Hello, > > Bastien writes: > >> Somehow this calls for a way to let a backend use several affiliated >> keywords. For example you would have: >> >> #+ATTR_HTML: :width 400px >> #+ATTR_BLOG: :lineno t > > Org already provided a syntax to number lines in source blocks. Couldn't > it be used instead? > > #+begin_src emacs-lisp -n > ... > #+end_src > Thanks a lot, I didn't know about this feature. Now I use the -n/+n flags. When using -n flag the ATTR_BLOG attribute :firstline is used as the first line number; the default is 1 as in the LaTeX exporter. >> and the exporter would take both into account, letting you to simply >> export to HTML without the need to add redundant information. >> >> Nicolas, did this cross your mind? Or maybe this is already feasible? > > This is already feasible. See `org-beamer-plain-list' for an example. > Both #+attr_latex and #+attr_beamer are read but the latter has > precedence over the former. I already use this, but I felt a need to document those attributes that get extra treatment: wordpress uses class="alignleft" instead of HTML align="right" and I changed the style handling to support surrounding double quotes ( :style "margin: 9pt; background: red;" ) Best regards Robert