emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-latex doesn't export with `\newminted`.
@ 2015-08-07 13:11 Zack Piper
  2015-08-07 13:22 ` Rasmus
  2015-08-07 13:31 ` Nicolas Goaziou
  0 siblings, 2 replies; 4+ messages in thread
From: Zack Piper @ 2015-08-07 13:11 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-07 13:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-07 13:11 ox-latex doesn't export with `\newminted` Zack Piper
2015-08-07 13:22 ` Rasmus
2015-08-07 13:40   ` Zack Piper
2015-08-07 13:31 ` Nicolas Goaziou

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).