On Wed, Aug 2, 2017 at 11:15 AM, Berry, Charles <ccbe...@ucsd.edu> wrote:
>> On Aug 1, 2017, at 10:20 PM, Grant Rettke <g...@wisdomandwonder.com> wrote:
>> I'm happily exporting an Org-Mode document to LaTeX using the nifty
>> `letterine' package. An example is attached. Writing using it has been
> Putting together a macro seems like the best option.  Recall that you can use 
> elisp in macros by placing it between `(eval’ and `)', so the following emits 
> “def’ in all but latex exports and “abc” for latex.
> #+BEGIN_SRC emacs-lisp
> (defun foo (a b) (if (eq 'latex org-export-current-backend) a b))
> #+MACRO: bar (eval (foo $1 $2))
> {{{bar("abc" "def")}}}

Thank you. That helps a lot.

Reply via email to