From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Custom formatting during export Date: Wed, 03 Sep 2014 06:44:23 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPDfy-0008Ep-G4 for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 12:45:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPDfs-0006Kg-AX for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 12:44:54 -0400 Received: from gproxy1-pub.mail.unifiedlayer.com ([69.89.25.95]:38179) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XPDfs-0006Ac-3L for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 12:44:48 -0400 In-Reply-To: (Gabe Becker's message of "Wed, 3 Sep 2014 06:36:37 -0700") 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: Gabe Becker Cc: Julian Gehring , emacs-orgmode@gnu.org Aloha Gabe, Gabe Becker writes: > orgmode developers and power-users, > > I'd like to be able to declare custom entities (apologies if I'm using that > term incorrectly) within the text of an orgmode document which I can > specify custom formatting for when my .org is exported, e.g. to PDF or HTML. > > I have a background in Docbook, so the analogue there would be defining a > custom xml tag and then extending the XSL files to handle it as desired. > Please see the following snippet: > > > * section title > > Here is some text, but I want [specialthing: this bit here] to be formatted > differently than [newanddifferent: this other big over here]. > > > Where I would have defined specific custom formatting rules for > "specialthing" and "newanddifferent" type entities. > > Is there a way to do this in orgmode? If not, it seems like it would be a > very useful feature (at least to me:) ). Note: I don't care about the > syntax as long as the result is the same. > > Thanks for your help, > ~G > -- > Computational Biologist > Genentech Research > orgmode developers and power-users, Macros, links, derived back-ends -- so many ways to achieve what you want. Here is another: @@html:@@bold text@@html:@@ #+HTML: Literal HTML code for export #+BEGIN_HTML All lines between these markers are exported literally #+END_HTML For pdf export via LaTeX there are @@latex, #+LATEX, and #+BEGIN_LATEX ... #+END_LATEX. hth, Tom -- Thomas S. Dye http://www.tsdye.com