These patches allow to handle the following piece of Org code, and then to export it in both LaTeX (both with and without evaluating the `setup' code block) and HTML. #+BEGIN_SRC org ,#+TITLE: Testing inline code blocks The following code and its result src_emacs-lisp[:exports both]{(message "foo!")} should be inline. The following src_sh[:exports code]{eval `cat ~/.emacs`;} should also be inline. Ibid for src_emacs-lisp[:exports code]{(let ((x 10)) (< (* x 3) 2))} and src_emacs-lisp[:exports both]{(message "foo!\nbar!")} (as expected?). ,* COMMENT setup ,#+NAME: setup ,#+BEGIN_SRC emacs-lisp :exports code :results silent (eval-after-load "ox-latex" '(progn (set (make-local-variable 'org-latex-listings) t) (add-to-list (make-local-variable 'org-latex-packages-alist) '("" "listings")))) ,#+END_SRC #+END_SRC I have started the FSF copyright assignment process, in case these patches are accepted. Nicolas -- Nicolas Berthier FSF Member #7975