emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [beamer] blank outline slide?
@ 2011-05-12 13:43 zwz
  2011-05-13  9:43 ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: zwz @ 2011-05-12 13:43 UTC (permalink / raw)
  To: emacs-orgmode

In a org file, I have

* item1
** aaa
*** bbb
    123
* item2
** ccc
*** ddd
    123

The generated slides have just a blank outline page.
However, if I modify the org content as

* item1
** aaa
*** bbb
* item2
** ccc
*** ddd

The outline page contains item1 and item2, just as expected.

here is my settings:

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
#+BEAMER_FRAME_LEVEL: 2
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t

Is there anything wrong with my settings or is it a bug?

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

* Re: [beamer] blank outline slide?
  2011-05-12 13:43 [beamer] blank outline slide? zwz
@ 2011-05-13  9:43 ` Eric S Fraga
  2011-05-14 15:08   ` zwz
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2011-05-13  9:43 UTC (permalink / raw)
  To: zwz; +Cc: emacs-orgmode

zwz <zhangweize@gmail.com> writes:

> In a org file, I have
>
> * item1
> ** aaa
> *** bbb
>     123
> * item2
> ** ccc
> *** ddd
>     123
>
> The generated slides have just a blank outline page.
> However, if I modify the org content as
>
> * item1
> ** aaa
> *** bbb
> * item2
> ** ccc
> *** ddd
>
> The outline page contains item1 and item2, just as expected.
>
> here is my settings:
>
> #+startup: beamer
> #+LaTeX_CLASS: beamer
> #+LaTeX_CLASS_OPTIONS: [presentation]
> #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
> #+BEAMER_FRAME_LEVEL: 2
> #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
> #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
>
> Is there anything wrong with my settings or is it a bug?

I think you may need to be a bit more specific.  Can you attach an org
file which demonstrates the problem?  

However, as a stab in the dark, latex will need to be run more than once
on the same input in order to pick up the section headings generated in
the first run.  What is the setting for org-latex-to-pdf-process?

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.274.gd6aba.dirty)

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

* Re: [beamer] blank outline slide?
  2011-05-13  9:43 ` Eric S Fraga
@ 2011-05-14 15:08   ` zwz
  2011-05-14 19:57     ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: zwz @ 2011-05-14 15:08 UTC (permalink / raw)
  To: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> zwz <zhangweize@gmail.com> writes:
>
>> In a org file, I have
>>
>> * item1
>> ** aaa
>> *** bbb
>>     123
>> * item2
>> ** ccc
>> *** ddd
>>     123
>>
>> The generated slides have just a blank outline page.
>> However, if I modify the org content as
>>
>> * item1
>> ** aaa
>> *** bbb
>> * item2
>> ** ccc
>> *** ddd
>>
>> The outline page contains item1 and item2, just as expected.
>>
>> here is my settings:
>>
>> #+startup: beamer
>> #+LaTeX_CLASS: beamer
>> #+LaTeX_CLASS_OPTIONS: [presentation]
>> #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
>> #+BEAMER_FRAME_LEVEL: 2
>> #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args)
> %4BEAMER_col(Col) %10BEAMER_extra(Extra)
>> #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
>>
>> Is there anything wrong with my settings or is it a bug?
>
> I think you may need to be a bit more specific.  Can you attach an org
> file which demonstrates the problem?  
>
> However, as a stab in the dark, latex will need to be run more than once
> on the same input in order to pick up the section headings generated in
> the first run.  What is the setting for org-latex-to-pdf-process?

OK. 

Here is "works.org" (which is all right with the outline slide):
--8<--------------------->8--
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
#+BEAMER_FRAME_LEVEL: 2
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t

* item1
** aaa
*** bbb
* item2
** ccc
*** ddd
--8<--------------------->8--

And here is Here is "does_not_work.org" (which result in a blank outline
slide):
--8<--------------------->8--
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
#+BEAMER_FRAME_LEVEL: 2
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t

* item1
** aaa
*** bbb
    123
* item2
** ccc
*** ddd
    123
--8<--------------------->8--

My setting for org-latex-to-pdf-process is 
("pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex
-interaction nonstopmode -output-directory %o %f" "pdflatex -interaction
nonstopmode -output-directory %o %f")

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

* Re: [beamer] blank outline slide?
  2011-05-14 15:08   ` zwz
@ 2011-05-14 19:57     ` Eric S Fraga
  2011-05-15 12:40       ` zwz
  0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2011-05-14 19:57 UTC (permalink / raw)
  To: zwz; +Cc: emacs-orgmode

zwz <zhangweize@gmail.com> writes:

[...]

>
> And here is Here is "does_not_work.org" (which result in a blank outline
> slide):
> --8<--------------------->8--
> #+startup: beamer
> #+LaTeX_CLASS: beamer
> #+LaTeX_CLASS_OPTIONS: [presentation]
> #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
> #+BEAMER_FRAME_LEVEL: 2
> #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)
> #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
>
> * item1
> ** aaa
> *** bbb
>     123
> * item2
> ** ccc
> *** ddd
>     123
> --8<--------------------->8--

Well, this one works for me just fine.  The outline slide has both item1
and item2 on it.

> My setting for org-latex-to-pdf-process is 
> ("pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex
> -interaction nonstopmode -output-directory %o %f" "pdflatex -interaction
> nonstopmode -output-directory %o %f")

Which looks just fine.

Can you export the above org file to latex and send that?  You might
like to look at the log file generated by pdflatex just in case there is
some strange error message.  You may need to change
=org-export-pdf-remove-logfiles= to nil to have these files left behind
after exporting.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.279.ga2f2.dirty)

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

* Re: [beamer] blank outline slide?
  2011-05-14 19:57     ` Eric S Fraga
@ 2011-05-15 12:40       ` zwz
  2011-05-16  9:57         ` Eric S Fraga
  0 siblings, 1 reply; 6+ messages in thread
From: zwz @ 2011-05-15 12:40 UTC (permalink / raw)
  To: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> zwz <zhangweize@gmail.com> writes:
>
> [...]
>
>>
>> And here is Here is "does_not_work.org" (which result in a blank
> outline
>> slide):
>> --8<--------------------->8--
>> #+startup: beamer
>> #+LaTeX_CLASS: beamer
>> #+LaTeX_CLASS_OPTIONS: [presentation]
>> #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
>> #+BEAMER_FRAME_LEVEL: 2
>> #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args)
> %4BEAMER_col(Col) %10BEAMER_extra(Extra)
>> #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
>>
>> * item1
>> ** aaa
>> *** bbb
>>     123
>> * item2
>> ** ccc
>> *** ddd
>>     123
>> --8<--------------------->8--
>
> Well, this one works for me just fine. The outline slide has both item1
> and item2 on it.
>
>> My setting for org-latex-to-pdf-process is 
>> ("pdflatex -interaction nonstopmode -output-directory %o %f" "pdflatex
>> -interaction nonstopmode -output-directory %o %f" "pdflatex
> -interaction
>> nonstopmode -output-directory %o %f")
>
> Which looks just fine.
>
> Can you export the above org file to latex and send that?  You might
> like to look at the log file generated by pdflatex just in case there is
> some strange error message.  You may need to change
> =org-export-pdf-remove-logfiles= to nil to have these files left behind
> after exporting.

I found the problem. In fact I forgot there's a hook 
(add-hook 'org-mode-hook
          (lambda ()
            (org-set-local 'yas/trigger-key [tab])
            (define-key yas/keymap [tab] 'yas/next-field)
            (if (member "XeTeX" org-todo-keywords-1)
                (setq org-latex-to-pdf-process
                      '("xelatex -interaction nonstopmode -output-directory %o %f")))))

As org-latex-to-pdf-process is not a buffer-local variable, the value is
changed after the first exporting.

Now to get the outline slide, I just
(setq org-latex-to-pdf-process
  '("xelatex -interaction nonstopmode -output-directory %o %f"
    "xelatex -interaction nonstopmode -output-directory %o %f"))

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

* Re: [beamer] blank outline slide?
  2011-05-15 12:40       ` zwz
@ 2011-05-16  9:57         ` Eric S Fraga
  0 siblings, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2011-05-16  9:57 UTC (permalink / raw)
  To: zwz; +Cc: emacs-orgmode

zwz <zhangweize@gmail.com> writes:

[...]

> I found the problem. In fact I forgot there's a hook 
> (add-hook 'org-mode-hook
>           (lambda ()
>             (org-set-local 'yas/trigger-key [tab])
>             (define-key yas/keymap [tab] 'yas/next-field)
>             (if (member "XeTeX" org-todo-keywords-1)
>                 (setq org-latex-to-pdf-process
>                       '("xelatex -interaction nonstopmode -output-directory %o %f")))))
>
> As org-latex-to-pdf-process is not a buffer-local variable, the value is
> changed after the first exporting.
>
> Now to get the outline slide, I just
> (setq org-latex-to-pdf-process
>   '("xelatex -interaction nonstopmode -output-directory %o %f"
>     "xelatex -interaction nonstopmode -output-directory %o %f"))

Ah ha!  Excellent.  Glad you solved it.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.284.g2a8fb)

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

end of thread, other threads:[~2011-05-16  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12 13:43 [beamer] blank outline slide? zwz
2011-05-13  9:43 ` Eric S Fraga
2011-05-14 15:08   ` zwz
2011-05-14 19:57     ` Eric S Fraga
2011-05-15 12:40       ` zwz
2011-05-16  9:57         ` 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).