From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zack Piper Subject: ox-latex doesn't export with `\newminted`. Date: Fri, 7 Aug 2015 13:11:53 +0000 Message-ID: <20150807131153.GA960@apertron.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNhRL-00074M-6R for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 09:12:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNhRE-00034G-8S for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 09:12:03 -0400 Received: from apertron.net ([94.23.236.101]:44671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNhRE-00032p-13 for emacs-orgmode@gnu.org; Fri, 07 Aug 2015 09:11:56 -0400 Received: from apertron.net (apertron.net [94.23.236.101]) by apertron.net (Postfix) with ESMTPS id 510225FE11 for ; Fri, 7 Aug 2015 13:11:54 +0000 (UTC) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 Environments ${LANG}code are not created by default. You can cr= eate =E2=94=82 whichever ones you need using the \newminted command. In this c= ase, =E2=94=82 \newminted{python}{}. Note the trailing, empty {}. If you wante= d to =E2=94=82 specify default options for the new environment, that's where y= ou =E2=94=82 would put them. Also, if you didn't want to call the new enviro= nment =E2=94=82 pythoncode, you could give \newminted an optional argument. Mor= e =E2=94=82 details are in the docs. =E2=94=82=20 =E2=94=82 If Org-mode is exporting LaTeX using the ${LANG}code form, then= it =E2=94=82 should really be creating the corresponding environments automa= tically =E2=94=82 by default. But I would think it would really be simpler for it= to =E2=94=82 export standard minted environments. I haven't used it, so I ca= n't =E2=94=82 make any suggestions about configuration. =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Thanks! --=20 Zack Piper http://apertron.net