[Top][All Lists]

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

[O] Problems with Org-mode & Minted

From: jerome moliere
Subject: [O] Problems with Org-mode & Minted
Date: Thu, 7 Dec 2017 10:42:51 +0100

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"))
        '("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 
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"));

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

reply via email to

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