From: Grant Rettke <gcr@wisdomandwonder.com>
To: "Berry, Charles" <ccberry@ucsd.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
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 [thread overview]
Message-ID: <CAAjq1mft+cY+iV7gpA4DUGmto9UjVX6+ayqgXTQrFCt6FodWbw@mail.gmail.com> (raw)
In-Reply-To: <A7BFE14A-72C2-4377-90D7-8896146E19F1@ucsd.edu>
On Wed, Aug 2, 2017 at 11:15 AM, Berry, Charles <ccberry@ucsd.edu> wrote:
>> On Aug 1, 2017, at 10:20 PM, Grant Rettke <gcr@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))
> #+END_SRC
>
>
> #+MACRO: bar (eval (foo $1 $2))
>
>
> {{{bar("abc" "def")}}}
Thank you. That helps a lot.
prev parent reply other threads:[~2017-08-07 1:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 5:20 Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup Grant Rettke
2017-08-02 16:15 ` Berry, Charles
2017-08-02 23:22 ` Jeremie Juste
2017-08-03 16:56 ` Berry, Charles
2017-08-03 19:16 ` Jeremie Juste
2017-08-07 1:06 ` Grant Rettke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAjq1mft+cY+iV7gpA4DUGmto9UjVX6+ayqgXTQrFCt6FodWbw@mail.gmail.com \
--to=gcr@wisdomandwonder.com \
--cc=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).