emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How can I continue my code listing in Beamer slides?
@ 2014-02-26 15:48 etimecowboy
  2014-02-27  7:10 ` Alan Schmitt
  2014-03-07 16:34 ` Eric S Fraga
  0 siblings, 2 replies; 8+ messages in thread
From: etimecowboy @ 2014-02-26 15:48 UTC (permalink / raw)
  To: emacs-orgmode

Hi everyone,

I have a question about beamer export in org.

I have some code to be put in my slides. The problem is that one slide 
(or one column block) does not have enough space for it. How can I split 
it into two slides or several column blocks? Please help me with it.

etimecowboy

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

* Re: How can I continue my code listing in Beamer slides?
  2014-02-26 15:48 How can I continue my code listing in Beamer slides? etimecowboy
@ 2014-02-27  7:10 ` Alan Schmitt
  2014-02-27 10:37   ` etimecowboy
  2014-02-27 10:45   ` Sebastien Vauban
  2014-03-07 16:34 ` Eric S Fraga
  1 sibling, 2 replies; 8+ messages in thread
From: Alan Schmitt @ 2014-02-27  7:10 UTC (permalink / raw)
  To: etimecowboy; +Cc: emacs-orgmode

etimecowboy <etimecowboy@gmail.com> writes:

> Hi everyone,
>
> I have a question about beamer export in org.
>
> I have some code to be put in my slides. The problem is that one slide
> (or one column block) does not have enough space for it. How can I split
> it into two slides or several column blocks? Please help me with it.
>
> etimecowboy

This is what I recently did to have the result of an evaluation (a
fancy verbatim block) on two slides:

--8<---------------cut here---------------start------------->8---
#+latex_header: \usepackage{multicol}

#+BEGIN_LaTeX
\begin{multicols}{2}
#+END_LaTeX

#+results: huffman_res

#+BEGIN_LaTeX
\end{multicols}
#+END_LaTeX
--8<---------------cut here---------------end--------------->8---

Hope this helps,

Alan

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

* Re: How can I continue my code listing in Beamer slides?
  2014-02-27  7:10 ` Alan Schmitt
@ 2014-02-27 10:37   ` etimecowboy
  2014-02-27 10:59     ` Alan Schmitt
  2014-02-27 10:45   ` Sebastien Vauban
  1 sibling, 1 reply; 8+ messages in thread
From: etimecowboy @ 2014-02-27 10:37 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

Dear Alan,

Thanks for your reply.

Your solution works on the results part, but makes my source code part 
unprocessed by listing package. I mean there are no syntax highlights 
for the source code.

Is there any solution for it?

Cheers,
etimecowboy

On 2014/2/27 7:10, Alan Schmitt wrote:
> etimecowboy <etimecowboy@gmail.com> writes:
>
>> Hi everyone,
>>
>> I have a question about beamer export in org.
>>
>> I have some code to be put in my slides. The problem is that one slide
>> (or one column block) does not have enough space for it. How can I split
>> it into two slides or several column blocks? Please help me with it.
>>
>> etimecowboy
> This is what I recently did to have the result of an evaluation (a
> fancy verbatim block) on two slides:
>
> --8<---------------cut here---------------start------------->8---
> #+latex_header: \usepackage{multicol}
>
> #+BEGIN_LaTeX
> \begin{multicols}{2}
> #+END_LaTeX
>
> #+results: huffman_res
>
> #+BEGIN_LaTeX
> \end{multicols}
> #+END_LaTeX
> --8<---------------cut here---------------end--------------->8---
>
> Hope this helps,
>
> Alan

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

* Re: How can I continue my code listing in Beamer slides?
  2014-02-27  7:10 ` Alan Schmitt
  2014-02-27 10:37   ` etimecowboy
@ 2014-02-27 10:45   ` Sebastien Vauban
  2014-02-27 11:14     ` Alan Schmitt
  1 sibling, 1 reply; 8+ messages in thread
From: Sebastien Vauban @ 2014-02-27 10:45 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Alan,

Alan Schmitt wrote:
> This is what I recently did to have the result of an evaluation (a
> fancy verbatim block) on two slides:
>
> #+latex_header: \usepackage{multicol}
>
> #+BEGIN_LaTeX
> \begin{multicols}{2}
> #+END_LaTeX
>
> #+results: huffman_res
>
> #+BEGIN_LaTeX
> \end{multicols}
> #+END_LaTeX

Nitpicking (just wondering): why don't you use

--8<---------------cut here---------------start------------->8---
  #+LaTeX: \begin{multicols}{2}
--8<---------------cut here---------------end--------------->8---

instead of

--8<---------------cut here---------------start------------->8---
  #+BEGIN_LaTeX
  \begin{multicols}{2}
  #+END_LaTeX
--8<---------------cut here---------------end--------------->8---

?

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: How can I continue my code listing in Beamer slides?
  2014-02-27 10:37   ` etimecowboy
@ 2014-02-27 10:59     ` Alan Schmitt
  2014-02-27 11:02       ` etimecowboy
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Schmitt @ 2014-02-27 10:59 UTC (permalink / raw)
  To: etimecowboy; +Cc: emacs-orgmode

etimecowboy <etimecowboy@gmail.com> writes:

> Your solution works on the results part, but makes my source code part
> unprocessed by listing package. I mean there are no syntax highlights
> for the source code.

I don't know. A first step would be to find out how to do a multicolumn
listing in LaTeX using the listings package. Then you can try to get
this output from org.

Alan

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

* Re: How can I continue my code listing in Beamer slides?
  2014-02-27 10:59     ` Alan Schmitt
@ 2014-02-27 11:02       ` etimecowboy
  0 siblings, 0 replies; 8+ messages in thread
From: etimecowboy @ 2014-02-27 11:02 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

Yes you are right. It is a problem of listing package other than org.

etimecowboy

On 2014/2/27 10:59, Alan Schmitt wrote:
> etimecowboy <etimecowboy@gmail.com> writes:
>
>> Your solution works on the results part, but makes my source code part
>> unprocessed by listing package. I mean there are no syntax highlights
>> for the source code.
> I don't know. A first step would be to find out how to do a multicolumn
> listing in LaTeX using the listings package. Then you can try to get
> this output from org.
>
> Alan

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

* Re: How can I continue my code listing in Beamer slides?
  2014-02-27 10:45   ` Sebastien Vauban
@ 2014-02-27 11:14     ` Alan Schmitt
  0 siblings, 0 replies; 8+ messages in thread
From: Alan Schmitt @ 2014-02-27 11:14 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

Hi Sébastien,

"Sebastien Vauban" <sva-news@mygooglest.com> writes:

> Hi Alan,
>
> Alan Schmitt wrote:
>> This is what I recently did to have the result of an evaluation (a
>> fancy verbatim block) on two slides:
>>
>> #+latex_header: \usepackage{multicol}
>>
>> #+BEGIN_LaTeX
>> \begin{multicols}{2}
>> #+END_LaTeX
>>
>> #+results: huffman_res
>>
>> #+BEGIN_LaTeX
>> \end{multicols}
>> #+END_LaTeX
>
> Nitpicking (just wondering): why don't you use
>
>   #+LaTeX: \begin{multicols}{2}
>
> instead of
>
>   #+BEGIN_LaTeX
>   \begin{multicols}{2}
>   #+END_LaTeX
>
> ?

Because there is so much I still have to learn ... Thank you for the
suggestion, it's much better!

Alan

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

* Re: How can I continue my code listing in Beamer slides?
  2014-02-26 15:48 How can I continue my code listing in Beamer slides? etimecowboy
  2014-02-27  7:10 ` Alan Schmitt
@ 2014-03-07 16:34 ` Eric S Fraga
  1 sibling, 0 replies; 8+ messages in thread
From: Eric S Fraga @ 2014-03-07 16:34 UTC (permalink / raw)
  To: etimecowboy; +Cc: emacs-orgmode

etimecowboy <etimecowboy@gmail.com> writes:

> Hi everyone,
>
> I have a question about beamer export in org.
>
> I have some code to be put in my slides. The problem is that one slide
> (or one column block) does not have enough space for it. How can I
> split it into two slides or several column blocks? Please help me with
> it.
>
> etimecowboy

I use the ~allowframebreaks~ option in beamer:

#+begin_src org
  ,** Octave program
  :PROPERTIES:
  :BEAMER_opt: allowframebreaks,label=
  :END:
      
  ,#+begin_src octave :exports code :results none
    ## a long segment of code goes here
  ,#+end_src
#+end_src
  
and this works like a charm without any need for columns or direct LaTeX
code.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.5h-660-gef207f

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

end of thread, other threads:[~2014-03-07 18:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26 15:48 How can I continue my code listing in Beamer slides? etimecowboy
2014-02-27  7:10 ` Alan Schmitt
2014-02-27 10:37   ` etimecowboy
2014-02-27 10:59     ` Alan Schmitt
2014-02-27 11:02       ` etimecowboy
2014-02-27 10:45   ` Sebastien Vauban
2014-02-27 11:14     ` Alan Schmitt
2014-03-07 16:34 ` Eric S Fraga

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).