From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: [beamer] blank outline slide? Date: Sun, 15 May 2011 20:40:11 +0800 Message-ID: <877h9si1ck.fsf@gmail.com> References: <87ei44t4ow.fsf@gmail.com> <87pqnnaqbs.fsf@ucl.ac.uk> <87tycxz5ec.fsf@gmail.com> <878vu9awdv.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLaZG-0004PZ-Ef for emacs-orgmode@gnu.org; Sun, 15 May 2011 08:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QLaZF-0000QO-8O for emacs-orgmode@gnu.org; Sun, 15 May 2011 08:37:06 -0400 Received: from lo.gmane.org ([80.91.229.12]:36948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QLaZE-0000QC-O1 for emacs-orgmode@gnu.org; Sun, 15 May 2011 08:37:05 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QLaZC-0002LD-DJ for emacs-orgmode@gnu.org; Sun, 15 May 2011 14:37:02 +0200 Received: from 221.12.171.101 ([221.12.171.101]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 May 2011 14:37:02 +0200 Received: from zhangweize by 221.12.171.101 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 May 2011 14:37:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga writes: > zwz 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"))