emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Adding new switch or header
@ 2015-11-03 15:54 Phillip Lord
  2015-11-03 16:58 ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: Phillip Lord @ 2015-11-03 15:54 UTC (permalink / raw)
  To: emacs-orgmode



I am trying to implement a new backend based on the HTML export. I need
to do some post-processing to the source blocks that needs to be
optional. For some blocks I need to replace "[" with "\[" and for some I
don't.

I am not sure whether to use headers or switches.

So

#+begin_src java -s
  student[ 4 ]
#+end_src

would produce html with

  student\[ 4 ]

inside, while

#+begin_src java
  student[ 4 ]
#+end_src

would produce just

  student[ 4 ]


Is it possible to add new switches? And in the exporter how do I know
which switches are present on a block?

Phil

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-04 22:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-03 15:54 Adding new switch or header Phillip Lord
2015-11-03 16:58 ` Eric S Fraga
2015-11-03 21:57   ` Phillip Lord
2015-11-04  9:05     ` Eric S Fraga
2015-11-04 17:24       ` Phillip Lord
2015-11-04 22:50       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).