From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [Bug] beamer backend and org-reload
Date: Tue, 5 Mar 2013 23:26:52 +0100 [thread overview]
Message-ID: <20130305222652.GQ7544@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <87k3pl1sh6.fsf@Rainer.invalid>
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\}")))
>
> 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 — and then do an org-reload?
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]{beamer}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("chapter" "\\documentclass[11pt]{report}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%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}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%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,
--
Suvayu
Open source is the future. It sets us free.
next prev parent reply other threads:[~2013-03-05 22:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-05 15:18 URGENT Need help fixing beamer exporting, can someone jump on IRC? James Harkins
2013-03-05 15:28 ` James Harkins
2013-03-05 15:42 ` Achim Gratz
2013-03-05 15:44 ` Suvayu Ali
2013-03-05 18:26 ` Achim Gratz
2013-03-05 20:26 ` [Bug] beamer backend and org-reload Suvayu Ali
2013-03-05 20:50 ` Achim Gratz
2013-03-05 22:26 ` Suvayu Ali [this message]
2013-03-05 23:29 ` Nicolas Goaziou
2013-03-06 12:10 ` Suvayu Ali
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130305222652.GQ7544@kuru.dyndns-at-home.com \
--to=fatkasuvayu+linux@gmail.com \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).