emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] ox-latex doesn't export with `\newminted`.


From: Zack Piper
Subject: [O] ox-latex doesn't export with `\newminted`.
Date: Fri, 7 Aug 2015 13:11:53 +0000
User-agent: Mutt/1.5.23+113 (34ca1c5fdd45) (2014-03-12)

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 <address@hidden> http://apertron.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]