From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Questions about exporting: subtitle, level formating, custom highlight markers error Date: Tue, 28 Jul 2015 13:05:42 +0100 Message-ID: <87y4i01o89.fsf@ucl.ac.uk> References: <55B4DAEC.7030805@laposte.net> <87egjugfry.fsf@ucl.ac.uk> <55B63847.5050101@laposte.net> <871tftprsd.fsf@ucl.ac.uk> <55B769D0.8060306@laposte.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK3dr-0003gR-R4 for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 08:05:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK3dl-0003GQ-9E for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 08:05:55 -0400 Received: from mail-am1on0128.outbound.protection.outlook.com ([157.56.112.128]:61904 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK3dk-0003F6-Qy for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 08:05:49 -0400 In-Reply-To: <55B769D0.8060306@laposte.net> (xiha@laposte.net's message of "Tue, 28 Jul 2015 13:38:56 +0200") 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: Xiha Cc: emacs-orgmode@gnu.org You need to differentiate between two aspects: highlighting of text within a org buffer and what happens to text when exported. In the new exporter, I don't think you can implement anything that covers both use cases. I am not entirely sure what it is you want. If you want just one of these, for the former, font-lock-add-keywords is probably what you want to pursue. For the latter, you probably want to use a macro with @@latex:...@@ and/or @@html:...@@ code embedded in the macro to export the text the way you want it, as in #+macro: coloured @@latex:{\color{red} $1}@@ This is some {{{coloured(text)}}} when exported. HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1293-g985420