From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: 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 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1deWUn-0004Bp-9B for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 21:06:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1deWUm-0005AH-3L for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 21:06:13 -0400 Received: from mail-io0-x229.google.com ([2607:f8b0:4001:c06::229]:34400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1deWUl-0005A3-Ty for emacs-orgmode@gnu.org; Sun, 06 Aug 2017 21:06:12 -0400 Received: by mail-io0-x229.google.com with SMTP id o9so20953095iod.1 for ; Sun, 06 Aug 2017 18:06:11 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Berry, Charles" Cc: "emacs-orgmode@gnu.org" On Wed, Aug 2, 2017 at 11:15 AM, Berry, Charles wrote: >> On Aug 1, 2017, at 10:20 PM, Grant Rettke wrot= e: >> >> 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=E2=80=99 and `)', so the = following emits =E2=80=9Cdef=E2=80=99 in all but latex exports and =E2=80= =9Cabc=E2=80=9D 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.