all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: cannot export to beamer.
Date: Sun, 16 Dec 2018 22:01:42 +0100	[thread overview]
Message-ID: <87h8fdmbih.fsf@mat.ucm.es> (raw)
In-Reply-To: 87a7l5wa5d.fsf@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1837 bytes --]

>>> "Tim" == Tim Cross <theophilusx@gmail.com> writes:

   > 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? 

No it does not and this turns out a problem, also I thought the
ox-beamer code contains a add-to-list which should do add beamer, but it
seems not to do it.


   > 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.


What you say makes send but this seems to defy the whole idea of custom!


   > 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.

Thanks! I will do that and you are very right about custom, it is very
convenient but buggier than I thought.

Uwe 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

  reply	other threads:[~2018-12-16 21:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-15 17:38 cannot export to beamer Uwe Brauer
2018-12-15 17:49 ` Ken Mankoff
2018-12-15 17:54   ` Uwe Brauer
2018-12-17 14:20     ` Nick Dokos
2018-12-15 18:14 ` Josiah Schwab
2018-12-15 18:48   ` Colin Baxter
2018-12-15 19:30   ` Uwe Brauer
2018-12-15 20:43   ` Uwe Brauer
2018-12-16 10:25     ` Eric S Fraga
2018-12-16 18:16       ` Uwe Brauer
2018-12-16 19:21         ` Tim Cross
2018-12-16 21:01           ` Uwe Brauer [this message]
2018-12-16 21:36             ` Tim Cross
2018-12-16 19:46         ` Ken Mankoff
2018-12-16 21:11           ` Uwe Brauer
2018-12-16 22:37         ` Eric S Fraga
2018-12-17  8:02           ` Uwe Brauer
2018-12-17  9:53             ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8fdmbih.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.