From mboxrd@z Thu Jan 1 00:00:00 1970 From: jerome moliere Subject: Problems with Org-mode & Minted Date: Thu, 7 Dec 2017 10:42:51 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113587307ab7b3055fbce525" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMsi2-0000QC-8t for emacs-orgmode@gnu.org; Thu, 07 Dec 2017 04:43:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMsi1-0008CC-8B for emacs-orgmode@gnu.org; Thu, 07 Dec 2017 04:43:14 -0500 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]:38062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eMsi1-0008Bt-1E for emacs-orgmode@gnu.org; Thu, 07 Dec 2017 04:43:13 -0500 Received: by mail-it0-x22c.google.com with SMTP id r6so13017410itr.3 for ; Thu, 07 Dec 2017 01:43:12 -0800 (PST) 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" To: emacs-orgmode@gnu.org --001a113587307ab7b3055fbce525 Content-Type: text/plain; charset="UTF-8" Hi all Org-mode gurus, I am trying to use the minted package with Org-mode to generate a big slides deck containing java code & XML code listtings... It's almost OK execpted that I am unaable to set any option to adapt the listings to my needs.. As a consequence the listings come in raw excepted the language attribute set accordingly to my config and the theme as specified in my config file (spacemacs).... I tried to specify a couple of options but they are simply ignored and are not exported... excerpt from my .spacemacs file (setq org-latex-listings 'minted org-latex-packages-alist '(("" "minted")) org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f" "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f") org-latex-minted-options '(("frame" "lines") ("linenos=true") ("fontsize=\scriptsize") ) ) I tried already with org-export-latex-minted-options but does not work .. This a listing as generated in my .tex file output from org-mode export \begin{minted}[]{java} public class ComplexLayoutDemo extends JFrame { public ComplexLayoutDemo(){ JPanel main_panel = (JPanel)getContentPane(); main_panel.setLayout(new BorderLayout()); JPanel north = new JPanel(); north.add(new JLabel("Texte au nord")); JPanel south = new JPanel(); south.setLayout(new FlowLayout()); south.add(new JLabel("Autre texte")); south.add(new JLabel("texte au sud")); main_panel.add("North",north); main_panel.add("South",south); pack(); setVisible(true); } \end{minted} As already stated I can't see no minted options... I would like to shorten the font size with tiny or script size and may be activate frames around listings J.MOLIERE - Mentor/J --001a113587307ab7b3055fbce525 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi all Org-mode gurus,
I am trying to u= se the minted package with Org-mode to generate a big slides deck containin= g=C2=A0
java code & XML code listtings...
It's = almost OK execpted that I am unaable to set any option to adapt the listing= s to my needs..
As a consequence the listings come in raw excepte= d the language attribute set accordingly to my config and the theme as spec= ified in my config file (spacemacs)....

I tried to= specify a couple of options but they are simply ignored and are not export= ed...
excerpt from my .spacemacs file

=C2=A0(setq org-latex-listings 'minted
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 org-latex-packages-alist '(("" "minted")= )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 org-latex-pdf-process
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 '("pdflatex -shell-escape -interaction no= nstopmode -output-directory %o %f"
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 "pdflatex -shell-escape -interaction nonstopmode -output-di= rectory %o %f")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 org-latex-minted= -options=C2=A0 =C2=A0'(("frame" "lines") ("lin= enos=3Dtrue") ("fontsize=3D\scriptsize") )
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 )


I trie= d already with org-export-latex-minted-options but does not work ..

This a listing as generated in my .tex file output from o= rg-mode export=C2=A0
\begin{minted}[]{java}
public= class ComplexLayoutDemo extends JFrame {
=C2=A0 =C2=A0 public Co= mplexLayoutDemo(){
=C2=A0 =C2=A0 =C2=A0 =C2=A0 JPanel main_panel = =3D (JPanel)getContentPane();
=C2=A0 =C2=A0 =C2=A0 =C2=A0 main_pa= nel.setLayout(new BorderLayout());
=C2=A0 =C2=A0 =C2=A0 =C2=A0 JP= anel north =3D new JPanel();
=C2=A0 =C2=A0 =C2=A0 =C2=A0 north.ad= d(new JLabel("Texte au nord"));
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 JPanel south =3D new JPanel();
=C2=A0 =C2=A0 =C2=A0 =C2=A0= south.setLayout(new FlowLayout());
=C2=A0 =C2=A0 =C2=A0 =C2=A0 s= outh.add(new JLabel("Autre texte"));
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 south.add(new JLabel("texte au sud"));
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 main_panel.add("North",north);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 main_panel.add("South",south);
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 pack();
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 setVisible(true);
=C2=A0 =C2=A0 }
\end{minted}


As already stated I can't see= no minted options...

I would like to shorten the = font size with tiny or script size and may be activate frames around listin= gs


J.MOLIERE - Mentor/J

--001a113587307ab7b3055fbce525--