emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with Org-mode & Minted
@ 2017-12-07  9:42 jerome moliere
  2017-12-07 10:18 ` Alan Schmitt
  0 siblings, 1 reply; 4+ messages in thread
From: jerome moliere @ 2017-12-07  9:42 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1863 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2732 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-11  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07  9:42 Problems with Org-mode & Minted jerome moliere
2017-12-07 10:18 ` Alan Schmitt
2017-12-07 13:12   ` jerome moliere
2017-12-11  9:13     ` jerome moliere

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).