From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antony Ware Subject: Re: beamer export Date: Thu, 19 Aug 2010 15:35:40 -0600 Message-ID: <14645044-61C0-4D6E-9BB1-71300E6AE5C6@ucalgary.ca> References: <9275E4D6-FB42-45DE-8593-CE7FD51A7A75@ucalgary.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0893884736==" Return-path: Received: from [140.186.70.92] (port=33969 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmCmB-0007LJ-QP for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 17:36:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmCm7-0006jz-Op for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 17:35:55 -0400 Received: from smtp.ucalgary.ca ([136.159.37.49]:55517 helo=smtp4.ucalgary.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmCm7-0006jm-8L for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 17:35:51 -0400 In-Reply-To: Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: "emacs-orgmode@gnu.org" --===============0893884736== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_1464504461C04D6E9BB171300E6AE5C6ucalgaryca_" --_000_1464504461C04D6E9BB171300E6AE5C6ucalgaryca_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Carsten - thanks for looking into this. I pulled the latest version and = the problem was still present. Here's a minimal setup. I run /usr/bin/emacs -Q -l test.el example.org with test.el containing (setq load-path (cons "~/.emacs.d/site-lisp/org/lisp" load-path)) (setq load-path (cons "~/.emacs.d/site-lisp/org/contrib/lisp" load-path)) (require 'org-install) ;; The following lines are always needed. Choose your own keys. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)= ) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(case-fold-search nil)) and the example.org containing the org document at the = end of http://orgmode.org/manual/Beamer-class-export.html#Beamer-class-expo= rt: #+LaTeX_CLASS: beamer #+TITLE: Example Presentation #+AUTHOR: Carsten Dominik #+LaTeX_CLASS_OPTIONS: [presentation] #+BEAMER_FRAME_LEVEL: 2 #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default} #+COLUMNS: %35ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Args) %4BEAMER= _col(Col) %8BEAMER_extra(Ex) * This is the first structural section ** Frame 1 \\ with a subtitle *** Thanks to Eric Fraga :BMCOL:B= _block: :PROPERTIES: :BEAMER_env: block :BEAMER_envargs: C[t] :BEAMER_col: 0.5 :END: for the first viable beamer setup in Org *** Thanks to everyone else :BMCOL:B= _block: :PROPERTIES: :BEAMER_col: 0.5 :BEAMER_env: block :BEAMER_envargs: <2-> :END: for contributing to the discussion **** This will be formatted as a beamer note :B_note: ** Frame 2 \\ where we will not use columns *** Request :B_block= : Please test this stuff! :PROPERTIES: :BEAMER_env: block :END: Cheers, Tony On 2010-08-19, at 3:06 PM, Carsten Dominik wrote: On Aug 19, 2010, at 5:16 PM, Antony Ware wrote: I've been having a problem exporting to beamer. I've now found the problem and fixed it, but it was (to my mind) something pretty obscure, and I think it might be of interest to the list, at least as a salutary tale. When I opened an org file such as the example beamer presentation from the manual (section 12.6.6) and executed C-c C-e d, it kept generating a .tex file with an article document class, instead of the expected beamer class. After a few days of frustrated searching through the manual and tutorials, and this list, for any clues, I found some advice to run something like /usr/bin/emacs -Q -l test.el with a series of versions of test.el progressively approximating my .emacs file. I was expecting the problem to lie in one of my org- or latex-specific settings, but eventually found the cause of the problem to be that the variable case-fold-search was being set to nil (its default value) as one of my custom-set- variables. I don't remember why. Anyway, according to the information from C-h v, this makes the setting buffer-local, and for some reason that fouled up the beamer export. When I commented out that line, everything worked as advertised. I'd be interested to hear from anyone who could shed light on why that might be. Well, apparently Org does do a search that relies on case-fold-search being t. Normally when this is the case I try to set this explicitly to t during the function call. Can you make a minimal example with your setup and a small file which reproduced the error? - Carsten --_000_1464504461C04D6E9BB171300E6AE5C6ucalgaryca_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Carsten - thanks for looking into thi= s. I pulled the latest version and the problem was still present.

=
Here's a mini= mal setup.
I run

/usr/bin/emacs -Q -l test.el ex= ample.org

with test.el containing

(setq load-path (cons "~/.emac= s.d/site-lisp/org/lisp" load-path))
(setq load-path (cons "~/.emacs.d/site-li= sp/org/contrib/lisp" load-path))
(require 'org-install)
;; The following lines = are always needed.  Choose your own keys.
     (add-to-li= st 'auto-mode-alist '("\\.org\\'" . org-mode)= )
=      (global-set-key "\C-cl" 'org-store-link)
   &nb= sp; (global-set-key "\C-ca" 'org-agenda)
     (global-set-key = "\C-cb" 'org-iswitchb)

(custom-set-variables
  ;; custom-set-vari= ables was added by Custom.
  ;; If you edit it by hand, you could m= ess it up, so be careful.
  ;; Your init file should contain only o= ne such instance.
  ;; If there is more than one, they won't work r= ight.
 '(case-fold-search nil))


#+LaTeX_CLASS: beamer
     #+TITLE: Example Presentation
     #+AUTHOR: Carsten Dominik
     #+LaTeX_CLASS_OPTIONS: [presentation]
     #+BEAMER_FRAME_LEVEL: 2
     #+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
     #+COLUMNS: %35ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Args) %4BEAMER=
_col(Col) %8BEAMER_extra(Ex)
    =20
     * This is the first structural section
    =20
     ** Frame 1 \\ with a subtitle
     *** Thanks to Eric Fraga                                      :BMCOL:B=
_block:
         :PROPERTIES:
         :BEAMER_env: block
         :BEAMER_envargs: C[t]
         :BEAMER_col: 0.5
         :END:
         for the first viable beamer setup in Org
     *** Thanks to everyone else                                   :BMCOL:B=
_block:
         :PROPERTIES:
         :BEAMER_col: 0.5
         :BEAMER_env: block
         :BEAMER_envargs: <2->
         :END:
         for contributing to the discussion
     **** This will be formatted as a beamer note                  :B_note:
     ** Frame 2 \\ where we will not use columns
     *** Request                                                   :B_block=
:
         Please test this stuff!
         :PROPERTIES:
         :BEAMER_env: block
         :END:
Cheers,

Tony=



On 2010-08-19,= at 3:06 PM, Carsten Dominik wrote:


On Aug 19, 2010, at 5:16 PM, Anton= y Ware wrote:

I've been having a problem e= xporting to beamer. I've now found the  
problem and fixed it, but it was (to my mind) something pretty=  
obscure, and I think it m= ight be of interest to the list, at least  
as a salutary tale.

When I opened an org file suc= h as the example beamer presentation  
from the manual (section 12.6.6) and executed C-c C-e d, it kept=  
generating a .tex file wi= th an article document class, instead of  
the expected beamer class.

After a few days of fr= ustrated searching through the manual and  
tutorials, and this list, for any clues, I found some advic= e to run  
something like

/usr/bin/emacs -Q -l test.el

with a series of versions = of test.el progressively approximating  
my .emacs file. I was expecting the problem to lie in one of m= y org-  
or latex-specific s= ettings, but eventually found the cause of the  
problem to be that the variable

case-fold-se= arch

was being set to nil (its default value) as one of my custom= -set-
variables. I don't remembe= r why. Anyway, according to the  
information from C-h v, this makes the setting buffer-local, and for =  
some reason that fouled up= the beamer export. When I commented out  
that line, everything worked as advertised.
=

I'd be= interested to hear from anyone who could shed light on why  
that might be.

Well,<= br>
apparently Org does do a search that relies on case-fold-search
b= eing t.  Normally when this is the case
I try to set this explicitl= y to t during the function call.
Can you make a minimal example with you= r setup and a small file which  
reproduced the error?

- Car= sten


= --_000_1464504461C04D6E9BB171300E6AE5C6ucalgaryca_-- --===============0893884736== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0893884736==--