Perfect. Thanks a lot. I knew I read about this. This is good for me. Fabrice 2012/11/6 Nicolas Goaziou > Hello, > > Fabrice Popineau writes: > > > Maybe this is a silly question but who knows. > > Htmlize is able to tag elemnts in src blocks and wrap them with classes. > > I'd like to be able to do it for normal text too. > > > > There is // ++ == ** but I would like to define personalized modifiers. > > There is also the ability to inline src blocks like : > > src_{} > > > > This is closer to what I would like. Something like > > class_{} > > that would get exported to \{} > > or to
body
(LaTeX or HTML). > > > > Any chance ? > > I would say export-snippets + macros. The former allows to generate raw > code geared towards latex or html back-ends while the latter introduces > syntactic sugar. > > For example: > > --8<---------------cut here---------------start------------->8--- > #+MACRO: my-mod @@e-latex:\something{$1}@@@@e-html:
class="something">$1
@@ > > This is an example: {{{my-mod(text)}}}. > --8<---------------cut here---------------end--------------->8--- > > > Regards, > > -- > Nicolas Goaziou >