emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: s5-export: Improved title template default. [8.2.1 (8.2.1-dist @ /usr/share/emacs/site-lisp/org-mode/)]
@ 2014-01-11  1:27 Arne Babenhauserheide
  2014-01-17  3:03 ` Rick Frankel
  0 siblings, 1 reply; 2+ messages in thread
From: Arne Babenhauserheide @ 2014-01-11  1:27 UTC (permalink / raw)
  To: emacs-orgmode

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See


Your bug report will be posted to the Org-mode mailing list.

The current ox-s5.el code produces a title page with just <h1> and <h2> which does not fit the defaults of s5 and creates slightly off-looking presentations.

The s5 primer[1] specifies different levels of headlines for different content, though:

- h1: title
- h2: subtitle
- h3: presenter
- h4: affilitation

Same for the footer.

The following in ox-s5.el should fix this:

(defcustom org-s5-title-slide-template
  "Format template to specify title page section.
See `org-html-postamble-format' for the valid elements which
can be included.

It will be wrapped in the element defined in the :html-container
property, and defaults to the value of `org-html-container-element',
and have the id \"title-slide\"."
  :group 'org-export-s5
  :type 'string)

(defcustom org-s5-postamble "<h1>%a - %d</h1><h2>%t</h2>"
  "Preamble inserted into the S5 layout section.
When set to a string, use this string as the postamble.

When set to a function, apply this function and insert the
returned string.  The function takes the property list of export
options as its only argument.

Setting the S5_POSTAMBLE option -- or the :s5-postamble in publishing
projects -- will take precedence over this variable.

Note that the default css styling will break if this is set to nil
or an empty string."
  :group 'org-export-s5
  :type '(choice (const :tag "No postamble" "&#x20;")
		 (string :tag "Custom formatting string")
		 (function :tag "Function (must return a string)")))

[1]: http://meyerweb.com/eric/tools/s5/primer.html

Happy Hacking!

Emacs  : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2)
 of 2013-10-14 on fluss
Package: Org-mode version 8.2.1 (8.2.1-dist @ /usr/share/emacs/site-lisp/org-mode/)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-17  3:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-11  1:27 Bug: s5-export: Improved title template default. [8.2.1 (8.2.1-dist @ /usr/share/emacs/site-lisp/org-mode/)] Arne Babenhauserheide
2014-01-17  3:03 ` Rick Frankel

Code repositories for project(s) associated with this public inbox


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