[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Happily exporting LaTeX, now want to export to text and HTML, ca
From: |
Grant Rettke |
Subject: |
Re: [O] Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup |
Date: |
Sun, 6 Aug 2017 20:06:10 -0500 |
On Wed, Aug 2, 2017 at 11:15 AM, Berry, Charles <address@hidden> wrote:
>> On Aug 1, 2017, at 10:20 PM, Grant Rettke <address@hidden> 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))
> #+END_SRC
>
>
> #+MACRO: bar (eval (foo $1 $2))
>
>
> {{{bar("abc" "def")}}}
Thank you. That helps a lot.