From: Grant Rettke <gcr@wisdomandwonder.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup
Date: Wed, 2 Aug 2017 00:20:16 -0500 [thread overview]
Message-ID: <CAAjq1md+Nf=sHXKObz3n1QEyPf92ys30cw=OgkWOEj6s9=77-w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Good morning,
I'm happily exporting an Org-Mode document to LaTeX using the nifty
`letterine' package. An example is attached. Writing using it has been
so fun that naturally now I want to export it both to text and HTML.
My source document looks like this for reference and all of this works
fine:
> start
#+TITLE: A Poem Title
#+AUTHOR:
#+DATE:
#+OPTIONS: num:nil
#+LATEX: \pagenumbering{gobble}
#+BEGIN_CENTER
@@latex:\lettrine[lines=1]{T}{this}@@ is line 1.
@@latex:\lettrine[lines=1]{H}{ere}@@ is line 2.
@@latex:\lettrine[lines=1]{O}{ver}@@ there is line 3.
#+END_CENTER
> end
Now I'm left be wondering how I can using a single document and export
it correctly to LaTeX, HTML and text. Here are some ideas I came up
with:
- Write the same line two times, one for each exporter. Redundant but
it would work.
- Use a source block that takes a line of text, checks the type of
exporter running, and returns an appropriate markup then on export it
works right.
- Maybe there is a macro for this?
- I'm out of ideas
My Internet search results found a lot of answers about easy stuff.
However this article
https://emacs.stackexchange.com/questions/18636/create-a-custom-block-in-org-mode-that-exports-to-latex-and-html
looked interesting. I haven't started coding anything up yet and I
wanted to talk to you before that.
Thank you.
[-- Attachment #2: poem.pdf --]
[-- Type: application/pdf, Size: 12178 bytes --]
next reply other threads:[~2017-08-02 5:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 5:20 Grant Rettke [this message]
2017-08-02 16:15 ` Happily exporting LaTeX, now want to export to text and HTML, can't figure how to handle latex markup 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
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='CAAjq1md+Nf=sHXKObz3n1QEyPf92ys30cw=OgkWOEj6s9=77-w@mail.gmail.com' \
--to=gcr@wisdomandwonder.com \
--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).