From: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
To: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
Carsten Dominik <carsten.dominik@gmail.com>,
Nicolas Goaziou <n.goaziou@gmail.com>,
John Kitchin <johnrkitchin@gmail.com>,
John Kitchin <jkitchin@andrew.cmu.edu>
Subject: ox-beamer.el tableofcontents, a suggestion
Date: Wed, 2 Mar 2016 14:29:33 +0100 [thread overview]
Message-ID: <CAD-VTcFCfX5bJY27CFg7tB+QKd5BPChj6eKSdm=ECs_ST1dRRg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]
Hello,
With beamer presentation it is often useful to put this latex code just
after \maketitle:
% outline
\AtBeginSection[]
{
\begin{frame}
\frametitle{}
\small
\tableofcontents[currentsection,hideothersubsections]
\normalsize
\end{frame}
}
the interest is reminding the outline to audience after each begin of a new
section.
In org-mode it is possible to export this code if the following lines of
code of ox-beamer.el :
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 11. Table of contents.
(let ((depth (plist-get info :with-toc)))
(when depth
(concat
(format "\\begin{frame}%s{%s}\n"
(org-beamer--normalize-argument
org-beamer-outline-frame-options 'option)
org-beamer-outline-frame-title)
(when (wholenump depth)
(format "\\setcounter{tocdepth}{%d}\n" depth))
"\\tableofcontents\n"
"\\end{frame}\n\n")))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
are replaced by:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 11. Table of contents.
(let ((depth (plist-get info :with-toc)))
(when depth
(concat
(format
"\\AtBeginSection\[\]\{
\\begin{frame}\n
\\small\n"
(org-beamer--normalize-argument
org-beamer-outline-frame-options 'option)
org-beamer-outline-frame-title)
(when (wholenump depth)
(format "\\setcounter{tocdepth}{%d}\n" depth))
"\\tableofcontents\[currentsection,hideothersubsections\]\n"
"\\normalsize\n"
"\\end{frame}\n
}\n\n")))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
it works in my setup.
Of course it would be better to add this function as new option and to
avoid this change of code. I do not know how to do.
At least it could be useful someone else.
Best wishes,
Jo.
[-- Attachment #2: Type: text/html, Size: 2550 bytes --]
next reply other threads:[~2016-03-02 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-02 13:29 Joseph Vidal-Rosset [this message]
2016-03-02 13:42 ` ox-beamer.el tableofcontents, a suggestion Eric S Fraga
2016-03-02 16:34 ` Joseph Vidal-Rosset
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='CAD-VTcFCfX5bJY27CFg7tB+QKd5BPChj6eKSdm=ECs_ST1dRRg@mail.gmail.com' \
--to=joseph.vidal.rosset@gmail.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jkitchin@andrew.cmu.edu \
--cc=johnrkitchin@gmail.com \
--cc=n.goaziou@gmail.com \
/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.