all messages for Emacs-related lists mirrored at yhetil.org
 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

* Re: Problems with Org-mode & Minted
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Schmitt @ 2017-12-07 10:18 UTC (permalink / raw)
  To: jerome moliere; +Cc: emacs-orgmode

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

Hello,

On 2017-12-07 10:42, jerome moliere <jerome.moliere@gmail.com> writes:

>         org-latex-minted-options   '(("frame" "lines") ("linenos=true")
> ("fontsize=\scriptsize") )

I think this is wrong, you should have two strings in each list. Have
you tried
'(("frame" "lines") ("linenos" "true") ("fontsize" "\\scriptsize")
?

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-11: 405.14, 2016-11: 403.53

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

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

* Re: Problems with Org-mode & Minted
  2017-12-07 10:18 ` Alan Schmitt
@ 2017-12-07 13:12   ` jerome moliere
  2017-12-11  9:13     ` jerome moliere
  0 siblings, 1 reply; 4+ messages in thread
From: jerome moliere @ 2017-12-07 13:12 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

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

Thanks Alan I wondered about this strange syntax mix ..
I will investigate , following thi strack...

Regards

J.MOLIERE - Mentor/J


2017-12-07 11:18 GMT+01:00 Alan Schmitt <alan.schmitt@polytechnique.org>:

> Hello,
>
> On 2017-12-07 10:42, jerome moliere <jerome.moliere@gmail.com> writes:
>
> >         org-latex-minted-options   '(("frame" "lines") ("linenos=true")
> > ("fontsize=\scriptsize") )
>
> I think this is wrong, you should have two strings in each list. Have
> you tried
> '(("frame" "lines") ("linenos" "true") ("fontsize" "\\scriptsize")
> ?
>
> Alan
>
> --
> OpenPGP Key ID : 040D0A3B4ED2E5C7
> Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-11: 405.14, 2016-11: 403.53
>

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

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

* Re: Problems with Org-mode & Minted
  2017-12-07 13:12   ` jerome moliere
@ 2017-12-11  9:13     ` jerome moliere
  0 siblings, 0 replies; 4+ messages in thread
From: jerome moliere @ 2017-12-11  9:13 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

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

Hi all,
thanks Alan , after unifying the syntax it works like a charm..
Problem solved!!!

Kind regards

J.MOLIERE - Mentor/J


2017-12-07 14:12 GMT+01:00 jerome moliere <jerome.moliere@gmail.com>:

> Thanks Alan I wondered about this strange syntax mix ..
> I will investigate , following thi strack...
>
> Regards
>
> J.MOLIERE - Mentor/J
>
>
> 2017-12-07 11:18 GMT+01:00 Alan Schmitt <alan.schmitt@polytechnique.org>:
>
>> Hello,
>>
>> On 2017-12-07 10:42, jerome moliere <jerome.moliere@gmail.com> writes:
>>
>> >         org-latex-minted-options   '(("frame" "lines") ("linenos=true")
>> > ("fontsize=\scriptsize") )
>>
>> I think this is wrong, you should have two strings in each list. Have
>> you tried
>> '(("frame" "lines") ("linenos" "true") ("fontsize" "\\scriptsize")
>> ?
>>
>> Alan
>>
>> --
>> OpenPGP Key ID : 040D0A3B4ED2E5C7
>> Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-11: 405.14, 2016-11: 403.53
>>
>
>

[-- Attachment #2: Type: text/html, Size: 2215 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 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.