emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Beamer presentation in the document
@ 2010-06-09  9:25 Sébastien Vauban
  2010-06-09 17:18 ` Eric Schulte
  2010-06-10  8:36 ` Sébastien Vauban
  0 siblings, 2 replies; 12+ messages in thread
From: Sébastien Vauban @ 2010-06-09  9:25 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

Got a few questions about a beamer presentation that is a subtree in the
document.

Let's take this example:

--8<---------------cut here---------------start------------->8---
#+TITLE:     Complete Minimal Example
#+AUTHOR:    Sébastien Vauban
#+EMAIL:     wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org
#+DATE:      2010-06-09
#+LANGUAGE:  en_US

* Document

** Amounts

*** Data

    Here, I study different cases, with the data provided by the client.

*** Assumptions

    Having made the following assumptions:
    - first
    - second
    - third

*** Results

    I get this resulting table:

    #+ATTR_LaTeX: align=lr
    | Rate (%) |  Interests |
    |----------+------------|
    |     3.50 | 2564935.21 |
    |     4.00 | 2931354.52 |
    |     4.50 | 3297773.83 |
    |     5.00 | 3664193.15 |
    |     5.50 | 4030612.46 |
    #+TBLFM: $2=(73283863*$1)/100;%.2f

* Presentation
  :PROPERTIES:
  :TITLE: Beamer slides
  :LaTeX_CLASS: beamer
  :LaTeX_CLASS_OPTIONS: [presentation,t]
  :BEAMER_FRAME_LEVEL: 1
  :BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
  :COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
  :END:

** Amounts

  - Here is the table:

    #+ATTR_LaTeX: align=lr
    | Rate (%) |  Interests |
    |----------+------------|
    |     3.50 | 2564935.21 |
    |     4.00 | 2931354.52 |
    |     4.50 | 3297773.83 |
    |     5.00 | 3664193.15 |
    |     5.50 | 4030612.46 |
    #+TBLFM: $2=(73283863*$1)/100;%.2f

    See document for full analysis.
--8<---------------cut here---------------end--------------->8---

Questions are:

1. How could I use the same table in the slides as in the document, without
   copy/pasting it?

   Is there, maybe, some Babel black magic at hand?  Export/import?

2. How can I use a title, for the slides, different from the heading
   `Presentation'?

   You can see that my `TITLE' property gets ignored.

3. How can I easily switch between exporting:
   - the document, or
   - the slides?

   I guess I must use include/exclude tags?  Right?

   Anything standardized in that direction?

Best regards,
  Seb

PS- Carsten, have hyper-ultra-mega nice holidays!

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Beamer presentation in the document
  2010-06-09  9:25 Beamer presentation in the document Sébastien Vauban
@ 2010-06-09 17:18 ` Eric Schulte
  2010-06-10  8:03   ` Sébastien Vauban
  2010-06-10  8:36 ` Sébastien Vauban
  1 sibling, 1 reply; 12+ messages in thread
From: Eric Schulte @ 2010-06-09 17:18 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

Hi Sébastien,

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

[...]
>
> 1. How could I use the same table in the slides as in the document, without
>    copy/pasting it?
>
>    Is there, maybe, some Babel black magic at hand?  Export/import?
>

The following babel solution should work.  It uses a code block to copy
the contents of the table into the presentation on export.  I think I'll
add the "echo" code block in the below example to the library of babel,
so in the future this should work w/o having to include the code block
in the file.

--8<---------------cut here---------------start------------->8---
#+TITLE:     Complete Minimal Example
#+AUTHOR:    Sébastien Vauban
#+EMAIL:     wxhgmqzgwmuf@spammotel.com
#+DATE:      2010-06-09
#+LANGUAGE:  en_US

# This code block won't show in any export
#+source: echo
#+begin_src emacs-lisp :var tab='(("echo")) :exports none
  tab
#+end_src

* Document

** results

#+ATTR_LaTeX: align=lr
#+tblname: rate-&-interests
| Rate (%) |  Interests |
|----------+------------|
|     3.50 | 2564935.21 |
|     4.00 | 2931354.52 |
|     4.50 | 3297773.83 |
|     5.00 | 3664193.15 |
|     5.50 | 4030612.46 |

* presentation

Amounts -- here is the table
#+call: echo(tab=rate-&-interests) :exports results

#+ATTR_LaTeX: align=lr
#+results: echo(tab=rate-&-interests)
| Rate (%) |  Interests |
|----------+------------|
|      3.5 | 2564935.21 |
|      4.0 | 2931354.52 |
|      4.5 | 3297773.83 |
|      5.0 | 3664193.15 |
|      5.5 | 4030612.46 |
--8<---------------cut here---------------end--------------->8---

Best -- Eric

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

* Re: Beamer presentation in the document
  2010-06-09 17:18 ` Eric Schulte
@ 2010-06-10  8:03   ` Sébastien Vauban
  2010-06-10 17:11     ` Eric Schulte
  0 siblings, 1 reply; 12+ messages in thread
From: Sébastien Vauban @ 2010-06-10  8:03 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Eric,

"Eric Schulte" wrote:
> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>>
>> 1. How could I use the same table in the slides as in the document, without
>>    copy/pasting it?
>>
>>    Is there, maybe, some Babel black magic at hand?  Export/import?
>
> The following babel solution should work.

I was sure you had "black magic" to provide us with. Thanks a lot (once
again)!


> It uses a code block to copy the contents of the table into the presentation
> on export.

I played a bit with this example. Remarks follow.

--8<---------------cut here---------------start------------->8---
#+TITLE:     Complete Minimal Example
#+AUTHOR:    Sébastien Vauban
#+EMAIL:     wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org
#+DATE:      2010-06-10
#+LANGUAGE:  en_US

# This code block won't show in any export
#+source: echo
#+begin_src emacs-lisp :var tab='(("echo")) :exports none
  tab
#+end_src

* Document

** Results

   #+ATTR_LaTeX: align=lr
#+tblname: rate-&-interests
   | Rate (%) |   Interests |
   |----------+-------------|
   |     3.50 |  2564935.21 |
   |     4.00 |  2931354.52 |
   |     4.50 |  3297773.83 |
   |     5.00 |  3664193.15 |
   |     5.50 |  4030612.46 |
   |----------+-------------|
   |     22.5 | 16488869.17 |
   #+TBLFM: @7$1=vsum(@-I..@-II)::@7$2=vsum(@-I..@-II)

* Presentation

  Amounts -- here is the table
  #+call: echo(tab=rate-&-interests) :exports results

#+results: echo(tab=rate-&-interests)
| Rate (%) |   Interests |
|      3.5 |  2564935.21 |
|      4.0 |  2931354.52 |
|      4.5 |  3297773.83 |
|      5.0 |  3664193.15 |
|      5.5 |  4030612.46 |
|     22.5 | 16488869.17 |
  #+ATTR_LaTeX: align=lr

  and the small explanation.
--8<---------------cut here---------------end--------------->8---

1. On the echo functionality itself, everything is perfect, but for the
   horizontal lines that are not echo'ed.

2. For Babel, more generally, some remarks that I have for a while, but always
   forget to report (as you're allowed to consider them as "details" ;-)):

   - Babel does not find the tables if the `#+tblname: XXX' instruction is not
     located at column 0 -- annoying for me, as I try to perfectly align all
     the text and source code based on `org-indent'-like functionality;

   - the `results' block is not "naturally" aligned either;

   - less a detail than the 2 above: would it be possible to leave some text
     between the `call' and the `results': in this example, so that the
     `align' statement does not move after the table whenever we `C-c C-c' the
     block for executing the `echo'?


> I think I'll add the "echo" code block in the below example to the library
> of babel, so in the future this should work w/o having to include the code
> block in the file.

I think so as well. This is a must for enabling us to insert slides into a
document. And something nobody else (PowerPoint, even plain LaTeX?) can do
(AFAIK).

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Beamer presentation in the document
  2010-06-09  9:25 Beamer presentation in the document Sébastien Vauban
  2010-06-09 17:18 ` Eric Schulte
@ 2010-06-10  8:36 ` Sébastien Vauban
  2010-06-11  7:29   ` Sébastien Vauban
  1 sibling, 1 reply; 12+ messages in thread
From: Sébastien Vauban @ 2010-06-10  8:36 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

Sébastien Vauban wrote:
> 3. How can I easily switch between exporting:
>    - the document, or
>    - the slides?
>
>    I guess I must use include/exclude tags?  Right?

To exclude the slides is done via:

--8<---------------cut here---------------start------------->8---
#+EXPORT_EXCLUDE_TAGS: presentation


* Introduction

* Chapter 1

* Chapter 2

* Conclusion

* Presentation                                                  :presentation:
  :PROPERTIES:
  :LaTeX_CLASS: beamer
  :LaTeX_CLASS_OPTIONS: [presentation,t]
  :BEAMER_FRAME_LEVEL: 1
  :BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
  :COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
  :END:

** Slide 1

** Slide 2

--8<---------------cut here---------------end--------------->8---

"To only get the slides" is equivalent to "to exclude the document"; so, one
solution can be to tag all the chapters in my document, and exclude such tags.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Re: Beamer presentation in the document
  2010-06-10  8:03   ` Sébastien Vauban
@ 2010-06-10 17:11     ` Eric Schulte
  2010-06-10 21:36       ` Sébastien Vauban
  0 siblings, 1 reply; 12+ messages in thread
From: Eric Schulte @ 2010-06-10 17:11 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

Hi 

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

> Hi Eric,
>
> "Eric Schulte" wrote:
>> Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:
>>>
>>> 1. How could I use the same table in the slides as in the document, without
>>>    copy/pasting it?
>>>
>>>    Is there, maybe, some Babel black magic at hand?  Export/import?
>>
>> The following babel solution should work.
>
> I was sure you had "black magic" to provide us with. Thanks a lot (once
> again)!
>
>
>> It uses a code block to copy the contents of the table into the presentation
>> on export.
>
> I played a bit with this example. Remarks follow.
>
> #+TITLE:     Complete Minimal Example
> #+AUTHOR:    Sébastien Vauban
> #+EMAIL:     wxhgmqzgwmuf@spammotel.com
> #+DATE:      2010-06-10
> #+LANGUAGE:  en_US
>
> # This code block won't show in any export
> #+source: echo
> #+begin_src emacs-lisp :var tab='(("echo")) :exports none
>   tab
> #+end_src
>
> * Document
>
> ** Results
>
>    #+ATTR_LaTeX: align=lr
> #+tblname: rate-&-interests
>    | Rate (%) |   Interests |
>    |----------+-------------|
>    |     3.50 |  2564935.21 |
>    |     4.00 |  2931354.52 |
>    |     4.50 |  3297773.83 |
>    |     5.00 |  3664193.15 |
>    |     5.50 |  4030612.46 |
>    |----------+-------------|
>    |     22.5 | 16488869.17 |
>    #+TBLFM: @7$1=vsum(@-I..@-II)::@7$2=vsum(@-I..@-II)
>
> * Presentation
>
>   Amounts -- here is the table
>   #+call: echo(tab=rate-&-interests) :exports results
>
> #+results: echo(tab=rate-&-interests)
> | Rate (%) |   Interests |
> |      3.5 |  2564935.21 |
> |      4.0 |  2931354.52 |
> |      4.5 |  3297773.83 |
> |      5.0 |  3664193.15 |
> |      5.5 |  4030612.46 |
> |     22.5 | 16488869.17 |
>   #+ATTR_LaTeX: align=lr
>
>   and the small explanation.
>

Great points Thanks.

>
> 1. On the echo functionality itself, everything is perfect, but for
>    the horizontal lines that are not echo'ed.
>

hlines are preservable with the :hlines header argument, see the example
below [1].

Were working on integrating the babel documentation in the org-mode
documentation which should really help in terms of making these more
exotic header arguments accessible/discoverable to users.

>
> 2. For Babel, more generally, some remarks that I have for a while,
>but always
>    forget to report (as you're allowed to consider them as "details" ;-)):
>
>    - Babel does not find the tables if the `#+tblname: XXX' instruction is not
>      located at column 0 -- annoying for me, as I try to perfectly align all
>      the text and source code based on `org-indent'-like functionality;
>

Good catch, this has been fixed.

>
>    - the `results' block is not "naturally" aligned either;
>

Again, thanks for pointing this out.  This has been fixed for results
which already have an indented

  #+results:

line, for the first time a block is run the results will not be indented
currently, although it would probably be worthwhile to default to
indenting the results to the same level as the code block -- I'll add
this as a TODO.

>
>    - less a detail than the 2 above: would it be possible to leave
>    some text between the `call' and the `results': in this example, so
>    that the `align' statement does not move after the table whenever
>    we `C-c C-c' the block for executing the `echo'?
>

See the example below [1], is it sufficient to squeeze the #+results
line in between the #+attr_latex line and the table?  If not I'll update
the results handling so that we allow preservation of comment lines
between #+results and it's contents.

>
>
>> I think I'll add the "echo" code block in the below example to the library
>> of babel, so in the future this should work w/o having to include the code
>> block in the file.
>
> I think so as well. This is a must for enabling us to insert slides into a
> document. And something nobody else (PowerPoint, even plain LaTeX?) can do
> (AFAIK).
>

done.

Thanks for all the great feedback! -- Eric

>
> Best regards,
>   Seb

Footnotes: 
[1]  
--8<---------------cut here---------------start------------->8---
#+TITLE:     Complete Minimal Example
#+AUTHOR:    Sébastien Vauban
#+EMAIL:     wxhgmqzgwmuf@spammotel.com
#+DATE:      2010-06-10
#+LANGUAGE:  en_US

# This code block won't show in any export
#+source: echo
#+begin_src emacs-lisp :var tab='(("echo")) :exports none
  tab
#+end_src

* Document

** Results

   #+ATTR_LaTeX: align=lr
   #+tblname: rate-&-interests
   | Rate (%) |   Interests |
   |----------+-------------|
   |     3.50 |  2564935.21 |
   |     4.00 |  2931354.52 |
   |     4.50 |  3297773.83 |
   |     5.00 |  3664193.15 |
   |     5.50 |  4030612.46 |
   |----------+-------------|
   |     22.5 | 16488869.17 |
   #+TBLFM: @7$1=vsum(@-I..@-II)::@7$2=vsum(@-I..@-II)

* Presentation

  Amounts -- here is the table
  #+call: echo(tab=rate-&-interests) :exports results :hlines yes

  #+ATTR_LaTeX: align=lr
  #+results: echo(tab=rate-&-interests)
  | Rate (%) |   Interests |
  |----------+-------------|
  |      3.5 |  2564935.21 |
  |      4.0 |  2931354.52 |
  |      4.5 |  3297773.83 |
  |      5.0 |  3664193.15 |
  |      5.5 |  4030612.46 |
  |----------+-------------|
  |     22.5 | 16488869.17 |

  and the small explanation.
--8<---------------cut here---------------end--------------->8---

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

* Re: Beamer presentation in the document
  2010-06-10 17:11     ` Eric Schulte
@ 2010-06-10 21:36       ` Sébastien Vauban
  2010-06-10 21:55         ` Eric Schulte
  0 siblings, 1 reply; 12+ messages in thread
From: Sébastien Vauban @ 2010-06-10 21:36 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Eric,

"Eric Schulte" wrote:
> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>> "Eric Schulte" wrote:
>>> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>>>>
>>>> 1. How could I use the same table in the slides as in the document,
>>>>    without copy/pasting it?
>>>
>>> The following babel solution should work.
>>> It uses a code block to copy the contents of the table into the presentation
>>> on export.
>>
>> I played a bit with this example. Remarks follow.
>>
>> 1. On the echo functionality itself, everything is perfect, but for
>>    the horizontal lines that are not echo'ed.
>
> hlines are preservable with the :hlines header argument, see the example
> below [1].

OK. Thanks.


> Were working on integrating the babel documentation in the org-mode
> documentation which should really help in terms of making these more
> exotic header arguments accessible/discoverable to users.

Now that's we (/ I) can't live anymore without both of them, it'd clearly be
great having a unified documentation.


>> 2. For Babel, more generally, some remarks that I have for a while,
>>but always
>>    forget to report (as you're allowed to consider them as "details" ;-)):
>>
>>    - Babel does not find the tables if the `#+tblname: XXX' instruction is not
>>      located at column 0 -- annoying for me, as I try to perfectly align all
>>      the text and source code based on `org-indent'-like functionality;
>
> Good catch, this has been fixed.

Simply great. It caused me some minutes to understand why tables were reported
as not found...


>>    - the `results' block is not "naturally" aligned either;
>
> Again, thanks for pointing this out.  This has been fixed for results
> which already have an indented
>
>   #+results:
>
> line

That's already great.


> for the first time a block is run the results will not be indented
> currently, although it would probably be worthwhile to default to indenting
> the results to the same level as the code block -- I'll add this as a TODO.

Less important, even if nice when it will be there.


>>    - less a detail than the 2 above: would it be possible to leave
>>    some text between the `call' and the `results': in this example, so
>>    that the `align' statement does not move after the table whenever
>>    we `C-c C-c' the block for executing the `echo'?
>
> See the example below [1], is it sufficient to squeeze the #+results
> line in between the #+attr_latex line and the table?  If not I'll update
> the results handling so that we allow preservation of comment lines
> between #+results and it's contents.

Why only preserving comment lines?  Why couldn't we imagine having the code
somewhere and the results much farther?  Even twice the results -- that'd be a
work around for the echo command.


>>> I think I'll add the "echo" code block in the below example to the library
>>> of babel, so in the future this should work w/o having to include the code
>>> block in the file.
>>
>> I think so as well. This is a must for enabling us to insert slides into a
>> document. And something nobody else (PowerPoint, even plain LaTeX?) can do
>> (AFAIK).
>
> done.

Thanks a lot. I'll update tomorrow morning and test all of this.


> Thanks for all the great feedback! -- Eric

*Thank you very much*. Reporting is quite easy. Making it happen much less.
Thanks a lot for your continuous help, and quick resolution of my problems.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Re: Beamer presentation in the document
  2010-06-10 21:36       ` Sébastien Vauban
@ 2010-06-10 21:55         ` Eric Schulte
  2010-06-21  9:34           ` Sébastien Vauban
  0 siblings, 1 reply; 12+ messages in thread
From: Eric Schulte @ 2010-06-10 21:55 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

Hi Sébastien,

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

[...]
>> for the first time a block is run the results will not be indented
>> currently, although it would probably be worthwhile to default to indenting
>> the results to the same level as the code block -- I'll add this as a TODO.
>
> Less important, even if nice when it will be there.
>

This should be possible now -- I've done a fairly thorough examination
of the Org-babel code and tried to ensure that *everything* works well
with indentation.

It's very possible I've introduced some bugs in the process, please let
me know if you find any.

>
>>>    - less a detail than the 2 above: would it be possible to leave
>>>    some text between the `call' and the `results': in this example, so
>>>    that the `align' statement does not move after the table whenever
>>>    we `C-c C-c' the block for executing the `echo'?
>>
>> See the example below [1], is it sufficient to squeeze the #+results
>> line in between the #+attr_latex line and the table?  If not I'll update
>> the results handling so that we allow preservation of comment lines
>> between #+results and it's contents.
>
> Why only preserving comment lines?  Why couldn't we imagine having the code
> somewhere and the results much farther?  Even twice the results -- that'd be a
> work around for the echo command.
>

This is another feature which may not be well enough advertised.

If a code block is named, then we already allow the block and it's
results to live arbitrarily far apart as long as they're in the same
buffer e.g. [1].

That allows for separation of code and results which I think is an
important feature.

What I don't want to separate by too far is the

  #+results: name

line, and the actual results.  Mainly because the purpose of that
#+results: line is to identify the results.  Given that I think allowing
a continuous string of comment lines between a #+results and it's target
e.g.

--8<---------------cut here---------------start------------->8---
#+results: time
# some comment about the time
: Thu Jun 10 14:48:09 2010
: Thu Jun 10 14:47:58 2010
--8<---------------cut here---------------end--------------->8---

is acceptable, but I think allowing arbitrary distance between them
subverts the purpose of the #+results: line.

I hope that sheds some light on this issue.

Please let me know if you agree/disagree of if you do think comment
separation like the above does make sense, in which case I'll add it to
the queue.

Cheers -- Eric

>
>
>>>> I think I'll add the "echo" code block in the below example to the library
>>>> of babel, so in the future this should work w/o having to include the code
>>>> block in the file.
>>>
>>> I think so as well. This is a must for enabling us to insert slides into a
>>> document. And something nobody else (PowerPoint, even plain LaTeX?) can do
>>> (AFAIK).
>>
>> done.
>
> Thanks a lot. I'll update tomorrow morning and test all of this.
>
>
>> Thanks for all the great feedback! -- Eric
>
> *Thank you very much*. Reporting is quite easy. Making it happen much less.
> Thanks a lot for your continuous help, and quick resolution of my problems.
>

Thanks, it's always a please hacking on Org-mode. -- Eric

>
> Best regards,
>   Seb

Footnotes: 
[1]  
--8<---------------cut here---------------start------------->8---
* top

#+results: time
: Thu Jun 10 14:48:09 2010
: Thu Jun 10 14:47:58 2010

** subheading

#+srcname: time
#+begin_src emacs-lisp :results prepend
  (current-time-string)
#+end_src
--8<---------------cut here---------------end--------------->8---

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

* Re: Beamer presentation in the document
  2010-06-10  8:36 ` Sébastien Vauban
@ 2010-06-11  7:29   ` Sébastien Vauban
  2010-06-21  9:46     ` Sébastien Vauban
  0 siblings, 1 reply; 12+ messages in thread
From: Sébastien Vauban @ 2010-06-11  7:29 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi all,

Sébastien Vauban wrote:
> Sébastien Vauban wrote:
>> 3. How can I easily switch between exporting:
>>    - the document, or
>>    - the slides?
>>
>>    I guess I must use include/exclude tags?  Right?
>
> To exclude the slides is done via:
>
> #+EXPORT_EXCLUDE_TAGS: presentation
>
>
> * Chapter 1
>
> * Chapter 2
>
> * Presentation                                                  :presentation:
>   :PROPERTIES:
>   :LaTeX_CLASS: beamer
>   :LaTeX_CLASS_OPTIONS: [presentation,t]
>   :BEAMER_FRAME_LEVEL: 1
>   :BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
>   :COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
>   :END:
>
> ** Slide 1
>
> ** Slide 2
>
>
> "To only get the slides" is equivalent to "to exclude the document"; so, one
> solution can be to tag all the chapters in my document, and exclude such tags.

This does not work properly, in fact. It is also related to my question #2:

>> 2. How can I use a title, for the slides, different from the heading
>>    `Presentation'?
>>
>>    You can see that my `TITLE' property gets ignored.

Doing the above way takes "Presentation  :presentation:" as title (tag
included).

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Beamer presentation in the document
  2010-06-10 21:55         ` Eric Schulte
@ 2010-06-21  9:34           ` Sébastien Vauban
  0 siblings, 0 replies; 12+ messages in thread
From: Sébastien Vauban @ 2010-06-21  9:34 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Eric,

"Eric Schulte" wrote:
> Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
>>
>> Thanks a lot. I'll update tomorrow morning and test all of this.

Later than said... I come back to this.


>>>>    - less a detail than the 2 above: would it be possible to leave
>>>>    some text between the `call' and the `results': in this example, so
>>>>    that the `align' statement does not move after the table whenever we
>>>>    `C-c C-c' the block for executing the `echo'?
>>>
>>> See the example below [1], is it sufficient to squeeze the #+results line
>>> in between the #+attr_latex line and the table? If not I'll update the
>>> results handling so that we allow preservation of comment lines
>>> between #+results and it's contents.
>>
>> Why only preserving comment lines? Why couldn't we imagine having the code
>> somewhere and the results much farther? Even twice the results -- that'd be
>> a work around for the echo command.
>
> This is another feature which may not be well enough advertised.
>
> If a code block is named, then we already allow the block and it's results
> to live arbitrarily far apart as long as they're in the same buffer e.g.
> [1].
>
> That allows for separation of code and results which I think is an important
> feature.

OK. I did not take enough attention when reading. I thought you only preserved
comment lines between the call and the results. No, you were speaking of
comment lines between the #+results line and the actual result contents.


> What I don't want to separate by too far is the
>
>   #+results: name
>
> line, and the actual results. Mainly because the purpose of that
> #+results: line is to identify the results.  Given that I think allowing
> a continuous string of comment lines between a #+results and it's target
> e.g.
>
> #+results: time
> # some comment about the time
> : Thu Jun 10 14:48:09 2010
> : Thu Jun 10 14:47:58 2010
>
> is acceptable, but I think allowing arbitrary distance between them subverts
> the purpose of the #+results: line.
>
> I hope that sheds some light on this issue.
>
> Please let me know if you agree/disagree of if you do think comment
> separation like the above does make sense, in which case I'll add it to the
> queue.

The above makes perfectly sense to me. If I were you, I would never allow
separation between the #+results line and the actual results, for the same
reason as you invoked: the #+results line is for identifying the actual
results.

Though, allowing comment lines is a great feature (even, if I don't use it yet).


>>>>> I think I'll add the "echo" code block in the below example to the library
>>>>> of babel, so in the future this should work w/o having to include the code
>>>>> block in the file.
>>>>
>>>> I think so as well. This is a must for enabling us to insert slides into a
>>>> document. And something nobody else (PowerPoint, even plain LaTeX?) can do
>>>> (AFAIK).
>>>
>>> done.

I just updated Org this morning, and I can't remove the echo snippet from the
Org buffer. Do I have to do something extra regarding the lob?

--8<---------------cut here---------------start------------->8---
#+TITLE:     Complete Minimal Example
#+AUTHOR:    Sébastien Vauban
#+EMAIL:     wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org
#+DATE:      2010-06-21
#+LANGUAGE:  en_US

# This code block won't show in any export
#+source: echo
#+begin_src emacs-lisp :var tab='(("echo")) :exports none
  tab
#+end_src

* Document

** Results

   #+ATTR_LaTeX: align=lr
   #+tblname: rate-&-interests
   | Rate (%) |  Interests |
   |----------+------------|
   |     3.50 | 2564935.21 |
   |     4.50 | 3297773.83 |
   |     5.50 | 4030612.46 |
   |----------+------------|
   |    13.50 | 9893321.50 |
   #+TBLFM: @5$1=vsum(@-I..@-II);%.2f::@5$2=vsum(@-I..@-II);%.2f

* Presentation

  Amounts -- here is the table

  #+call: echo(tab=rate-&-interests) :exports results :hlines yes

  #+ATTR_LaTeX: align=lr

  This line does not hinder the "echo table" operation to succeed.

  #+results: echo(tab=rate-&-interests)
  | Rate (%) |  Interests |
  |----------+------------|
  |      3.5 | 2564935.21 |
  |      4.5 | 3297773.83 |
  |      5.5 | 4030612.46 |
  |----------+------------|
  |     13.5 |  9893321.5 |

  and the small explanation.
--8<---------------cut here---------------end--------------->8---

Two extra comments:

- Why don't you make `:hlines yes' the default value?  I guess, if we wanna
  copy a table, it's "as it is" by default, so with hlines and all...

- Not really a detail: the "echo" is perfect, but for the decimal precision.
  The `%.2f' spec is not preserved, as you can see above. That'd be great if
  it could be.

Best regards and *many thanks* as always,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Beamer presentation in the document
  2010-06-11  7:29   ` Sébastien Vauban
@ 2010-06-21  9:46     ` Sébastien Vauban
  2010-06-21 20:03       ` Eric S Fraga
  2010-06-24  6:39       ` Carsten Dominik
  0 siblings, 2 replies; 12+ messages in thread
From: Sébastien Vauban @ 2010-06-21  9:46 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi all,

Sébastien Vauban wrote:
> Sébastien Vauban wrote:
>> Sébastien Vauban wrote:
>>> 3. How can I easily switch between exporting:
>>>    - the document, or
>>>    - the slides?
>>>
>>>    I guess I must use include/exclude tags?  Right?
>>
>> To exclude the slides is done via:
>>
>> #+EXPORT_EXCLUDE_TAGS: presentation
>>
>>
>> * Chapter 1
>>
>> * Chapter 2
>>
>> * Presentation                                                  :presentation:
>>   :PROPERTIES:
>>   :LaTeX_CLASS: beamer
>>   :LaTeX_CLASS_OPTIONS: [presentation,t]
>>   :BEAMER_FRAME_LEVEL: 1
>>   :BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
>>   :COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) %4BEAMER_col(Col) %8BEAMER_extra(Extra)
>>   :END:
>>
>> ** Slide 1
>>
>> ** Slide 2
>>
>>
>> "To only get the slides" is equivalent to "to exclude the document"; so, one
>> solution can be to tag all the chapters in my document, and exclude such tags.
>
> This does not work properly, in fact. It is also related to my question #2:
>
>>> 2. How can I use a title, for the slides, different from the heading
>>>    `Presentation'?
>>>
>>>    You can see that my `TITLE' property gets ignored.
>
> Doing the above way takes "Presentation  :presentation:" as title (tag
> included).

Does someone have a solution for being able to have another TITLE than the
headings for the presentation part?

Note -- This could be extended for AUTHOR, and other meta-properties of the
        document.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Re: Beamer presentation in the document
  2010-06-21  9:46     ` Sébastien Vauban
@ 2010-06-21 20:03       ` Eric S Fraga
  2010-06-24  6:39       ` Carsten Dominik
  1 sibling, 0 replies; 12+ messages in thread
From: Eric S Fraga @ 2010-06-21 20:03 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode

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


[...]

> Does someone have a solution for being able to have another TITLE than the
> headings for the presentation part?
> 
> Note -- This could be extended for AUTHOR, and other meta-properties of the
>         document.

The only thing I can suggest is not so elegant solution of inserting
directly the appropriate latex commands (\title, \author)...

[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Re: Beamer presentation in the document
  2010-06-21  9:46     ` Sébastien Vauban
  2010-06-21 20:03       ` Eric S Fraga
@ 2010-06-24  6:39       ` Carsten Dominik
  1 sibling, 0 replies; 12+ messages in thread
From: Carsten Dominik @ 2010-06-24  6:39 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode


On Jun 21, 2010, at 11:46 AM, Sébastien Vauban wrote:

> Hi all,
>
> Sébastien Vauban wrote:
>> Sébastien Vauban wrote:
>>> Sébastien Vauban wrote:
>>>> 3. How can I easily switch between exporting:
>>>>   - the document, or
>>>>   - the slides?
>>>>
>>>>   I guess I must use include/exclude tags?  Right?
>>>
>>> To exclude the slides is done via:
>>>
>>> #+EXPORT_EXCLUDE_TAGS: presentation
>>>
>>>
>>> * Chapter 1
>>>
>>> * Chapter 2
>>>
>>> *  
>>> Presentation 
>>>                                                   :presentation:
>>>  :PROPERTIES:
>>>  :LaTeX_CLASS: beamer
>>>  :LaTeX_CLASS_OPTIONS: [presentation,t]
>>>  :BEAMER_FRAME_LEVEL: 1
>>>  :BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
>>>  :COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args)  
>>> %4BEAMER_col(Col) %8BEAMER_extra(Extra)
>>>  :END:
>>>
>>> ** Slide 1
>>>
>>> ** Slide 2
>>>
>>>
>>> "To only get the slides" is equivalent to "to exclude the  
>>> document"; so, one
>>> solution can be to tag all the chapters in my document, and  
>>> exclude such tags.
>>
>> This does not work properly, in fact. It is also related to my  
>> question #2:
>>
>>>> 2. How can I use a title, for the slides, different from the  
>>>> heading
>>>>   `Presentation'?
>>>>
>>>>   You can see that my `TITLE' property gets ignored.
>>
>> Doing the above way takes "Presentation  :presentation:" as title  
>> (tag
>> included).
>
> Does someone have a solution for being able to have another TITLE  
> than the
> headings for the presentation part?

Do the properties

EXPORT_TITLE
EXPORT_AUTHOR
EXPORT_DATE

work for this?

Cheers

- Carsten

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

end of thread, other threads:[~2010-06-24  8:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-09  9:25 Beamer presentation in the document Sébastien Vauban
2010-06-09 17:18 ` Eric Schulte
2010-06-10  8:03   ` Sébastien Vauban
2010-06-10 17:11     ` Eric Schulte
2010-06-10 21:36       ` Sébastien Vauban
2010-06-10 21:55         ` Eric Schulte
2010-06-21  9:34           ` Sébastien Vauban
2010-06-10  8:36 ` Sébastien Vauban
2010-06-11  7:29   ` Sébastien Vauban
2010-06-21  9:46     ` Sébastien Vauban
2010-06-21 20:03       ` Eric S Fraga
2010-06-24  6:39       ` Carsten Dominik

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