From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: [Bug] beamer backend and org-reload Date: Tue, 5 Mar 2013 23:26:52 +0100 Message-ID: <20130305222652.GQ7544@kuru.dyndns-at-home.com> References: <20130305154434.GM7544@kuru.dyndns-at-home.com> <87obex1z4h.fsf@Rainer.invalid> <20130305202607.GO7544@kuru.dyndns-at-home.com> <87k3pl1sh6.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD0K4-0002ma-4b for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:27:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD0K2-0002sh-SP for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:27:00 -0500 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:37040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD0K2-0002sa-M9 for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 17:26:58 -0500 Received: by mail-we0-f178.google.com with SMTP id u7so6068624wey.9 for ; Tue, 05 Mar 2013 14:26:58 -0800 (PST) Content-Disposition: inline In-Reply-To: <87k3pl1sh6.fsf@Rainer.invalid> 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 Hi Achim, On Tue, Mar 05, 2013 at 09:50:29PM +0100, Achim Gratz wrote: > Suvayu Ali writes: > > (add-to-list 'org-latex-classes > > '("beamer" > > "\\documentclass\[presentation\]\{beamer\}" > > ("\\section\{%s\}" . "\\section*\{%s\}") > > ("\\subsection\{%s\}" . "\\subsection*\{%s\}") > > ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}"))) >=20 > Pilot error, I'd say: org-latex-classes is a defcustom, I don't think it > is a good idea to muck with the data directly (it doesn't have > getter/setter methods IIRC, but still). So what happens when you add > the beamer classes properly, via customize =E2=80=94 and then do an org-r= eload? I see the same problem when I put the following in my minimal-org.el (custom-set-variables '(org-latex-classes (quote (("beamer" "\\documentclass[presentation]{beame= r}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsectio= n*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("chapter" "\\do= cumentclass[11pt]{report}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section= {%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\su= bsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11p= t]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\= subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\para= graph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%= s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s= }") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}= ") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\s= ubsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . = "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\s= ection*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{= %s}" . "\\subsubsection*{%s}"))))) ) I did encounter another curious problem though. When in the customise buffer I try to add a new class, I get a customize interface similar to what is shown below. [INS] [DEL] List: LaTeX class: beamer LaTeX header: \documentclass[presentation]{article} Choice: [Value Menu] Heading: numbered: \section{%s} unnumbered: \section*{%s} [INS] [DEL] List: LaTeX class: article LaTeX header: \documentclass[11pt]{article} Levels: [INS] [DEL] Choice: [Value Menu] Heading: numbered: \section{%s} unnumbered: \section*{%s} [INS] [DEL] Choice: [Value Menu] Heading: numbered: \subsection{%s} unnumbered: \subsection*{%s} [...] As you can see, there is no way to add deeper sectioning entries for the new entry (beamer). I worked around it for the moment to proceed with my test, but I find this very curious indeed. Cheers, --=20 Suvayu Open source is the future. It sets us free.