* 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
* Re: ox-latex doesn't export with `\newminted`.
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
1 sibling, 1 reply; 4+ messages in thread
From: Rasmus @ 2015-08-07 13:22 UTC (permalink / raw)
To: emacs-orgmode
Zack Piper <zack@apertron.net> writes:
> 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.
What is the org code you use to produce this?
From a clean Emacs, I get
#+BEGIN_SRC emacs-lisp
x
#+END_SRC
Translated to
\begin{minted}[]{common-lisp}
x
\end{minted}
When (setq org-latex-listings 'minted).
Rasmus
--
It was you, Jezebel, it was you
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ox-latex doesn't export with `\newminted`.
2015-08-07 13:22 ` Rasmus
@ 2015-08-07 13:40 ` Zack Piper
0 siblings, 0 replies; 4+ messages in thread
From: Zack Piper @ 2015-08-07 13:40 UTC (permalink / raw)
To: emacs-orgmode
On Fri, Aug 07, 2015 at 03:22:32PM +0200, Rasmus wrote:
> Zack Piper <zack@apertron.net> writes:
>
> > 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.
>
> What is the org code you use to produce this?
>
> From a clean Emacs, I get
>
> #+BEGIN_SRC emacs-lisp
> x
> #+END_SRC
>
Same as that.
> Translated to
>
> \begin{minted}[]{common-lisp}
> x
> \end{minted}
>
> When (setq org-latex-listings 'minted).
>
I solved the "problem" I was using the wrong setting
("org-latex-custom-lang-environments") when i should be using
("org-latex-minted-langs").
Thanks! Sorry for the noise.
--
Zack Piper <zack@apertron.net> http://apertron.net
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ox-latex doesn't export with `\newminted`.
2015-08-07 13:11 ox-latex doesn't export with `\newminted` Zack Piper
2015-08-07 13:22 ` Rasmus
@ 2015-08-07 13:31 ` Nicolas Goaziou
1 sibling, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2015-08-07 13:31 UTC (permalink / raw)
To: Zack Piper; +Cc: emacs-orgmode
Hello,
Zack Piper <zack@apertron.net> writes:
> 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.
This is not very clear to me. Org doesn't generate LANGcode by default,
unless you configured `org-latex-custom-lang-environments'.
What Org document are you using? What LaTeX code do you want to generate
from it?
Regards,
--
Nicolas Goaziou
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.