emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Zack Piper <zack@apertron.net>
To: emacs-orgmode@gnu.org
Subject: ox-latex doesn't export with `\newminted`.
Date: Fri, 7 Aug 2015 13:11:53 +0000	[thread overview]
Message-ID: <20150807131153.GA960@apertron.net> (raw)

Apparently ox-latex doesn't add `\newminted` to languages that I wish
to use.

This is required to use:

    \begin{common-lispcode}
    (format t "test")
    \end{common-lispcode}

That being the `${LANG}code` environment, which Org-mode uses for my
entire document.

https://github.com/gpoore/minted/issues/83

The author responded with:

╭────
│ Environments ${LANG}code are not created by default. You can create
│ whichever ones you need using the \newminted command. In this case,
│ \newminted{python}{}. Note the trailing, empty {}. If you wanted to
│ specify default options for the new environment, that's where you
│ would put them. Also, if you didn't want to call the new environment
│ pythoncode, you could give \newminted an optional argument. More
│ details are in the docs.
│ 
│ If Org-mode is exporting LaTeX using the ${LANG}code form, then it
│ should really be creating the corresponding environments automatically
│ by default. But I would think it would really be simpler for it to
│ export standard minted environments. I haven't used it, so I can't
│ make any suggestions about configuration.
╰────

Thanks!

-- 
Zack Piper <zack@apertron.net> http://apertron.net

             reply	other threads:[~2015-08-07 13:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-07 13:11 Zack Piper [this message]
2015-08-07 13:22 ` ox-latex doesn't export with `\newminted` Rasmus
2015-08-07 13:40   ` Zack Piper
2015-08-07 13:31 ` Nicolas Goaziou

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=20150807131153.GA960@apertron.net \
    --to=zack@apertron.net \
    --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).