From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: cannot export to beamer. Date: Mon, 17 Dec 2018 06:21:02 +1100 Message-ID: <87a7l5wa5d.fsf@gmail.com> References: <87zht6adx2.fsf@mat.ucm.es> <87y38qmzd9.fsf@gmail.com> <87sgyy4j38.fsf@mat.ucm.es> <87y38pg444.fsf@gmail.com> <87lg4pmj64.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYbyU-0007Pu-21 for emacs-orgmode@gnu.org; Sun, 16 Dec 2018 14:21:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYbyS-0001wT-Qt for emacs-orgmode@gnu.org; Sun, 16 Dec 2018 14:21:14 -0500 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:40062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYbyS-0001w6-Jl for emacs-orgmode@gnu.org; Sun, 16 Dec 2018 14:21:12 -0500 Received: by mail-pf1-x432.google.com with SMTP id i12so5252258pfo.7 for ; Sun, 16 Dec 2018 11:21:12 -0800 (PST) In-reply-to: <87lg4pmj64.fsf@mat.ucm.es> 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" To: Uwe Brauer Cc: emacs-orgmode@gnu.org Just a shot in the dark here ..... You mentioned you used custom to modify the org-latex-classes variable. Does the code in the custom 'block' of your init file have beamer as one of the classes? My suspicion is that when you added your exam class, for some reason, beamer had not been loaded and was not yet in the variable definition. When you edited it to add your exam class it has saved a version without beamer as a class. When you start emacs, with the new init and run order, the code > (unless (assoc "beamer" org-latex-classes) > (add-to-list 'org-latex-classes > '("beamer" > "\\documentclass[presentation]{beamer}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))) is executed and beamer is added, but then your custom settings are evaluated and the variable is reset with the version you added the exam class to, which has no beamer entry, is used to reset the variable and the beamer setting is lost. My guess is that at the time you customized the variable, beamer was not loaded and so the beamer class was not added. Now, when you start emacs, beamer is being loaded before your custom block is evaluated and your customisation is overriding the value added by beamer when it is loaded. There are numerous reasons why this might occur. It may simply be something subtle arising from the new load order (for example, previously, such a value may have been fine as your custom settings would be loaded before the ox-beamer library, but now the library is being loaded first and then custom settings?). This could be likely if you are using a custom block saved with an earlier version of emacs. I would start by deleting the org-latex-classes customization and try adding it again to see if that fixes the problem. This is one reason I rarely use customise - I prefer to have the code in my own init file so that I can see exactly when everything is run. Tim >>>> "Eric" == Eric S Fraga writes: > > > Can you be explicit about how you are exporting to beamer > > Either > > C-c C-e l l > > Or > > C-c C-e l o > > > and what version of org you are using? > > The latest master version > commit adec504d5ba3f2089cb689ce5a59692a8ebf6735 > > What happens if you start emacs with -Q? > > Then both commands do work (even I do not need 'ox-beamer) > > So the problem is in my init file and I am quite sure that it has to do > with the following lines in my custom- file > > '(org-latex-classes > '(("article" "\\documentclass[12pt]{article}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) > ("report" "\\documentclass[12pt]{report}" > ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) > ("book" "\\documentclass[12pt]{book}" > ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) > ("exam" "\\documentclass[12pt, addpoints, answers]{exam}" > ("\\begin{questions}%%%s" "\\end{questions}" "\\begin{questions}%%%s" "\\end{questions}") > ("\\titledquestion{%s}" . "") > ("\\begin{parts}%%%s" "\\end{parts}" "\\begin{parts}%%%s" "\\end{parts}") > ("\\part[%s] " . "") > ("\\begin{subparts}%%%s" "\\end{subparts}" "\\begin{subparts}%%%s" "\\end{subparts}") > ("\\subpart[%s] " . "") > ("\\begin{solution}[%s]" "\\end{solution}" "\\begin{solution}[%s]" > "\\end{solution}")))) > > I have them because I wanted to add the latex exam class and that is > what custom is for. For some bizarre reason > > The code > (unless (assoc "beamer" org-latex-classes) > (add-to-list 'org-latex-classes > '("beamer" > "\\documentclass[presentation]{beamer}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))) > > In ox-beamer > > Is ignored. It looks like a bug to me. -- Tim Cross