* lisp/ox.el (org-export-get-optional-title): Return regular title
when no optional title is found.
* lisp/ox-ascii.el (org-ascii--build-title): Apply change to
`org-export-get-optional-title'.
* lisp/ox-html.el (org-html--format-toc-headline): Apply change to
`org-export-get-optional-title'.
* lisp/ox-latex.el (org-latex-headline): Apply change to
`org-export-get-optional-title'.
* testing/lisp/test-ox.el: Add tests.
* lisp/ox-ascii.el (org-ascii--build-title): Add an argument. Use
optional title when building a toc line.
(org-ascii--build-toc): Call `org-ascii--build-title' with appropriate
arguments.
* lisp/ox-latex.el (org-latex-headline): Use optional title for table
of contents.
* lisp/ox-html.el (org-html--toc-text): Renamed from
`org-html-toc-text'. Add docstring.
(org-html--format-toc-headline): Renamed from
`org-html-format-toc-headline'. Add docstring. Use optional title if
possible.
(org-html-toc): Add docstring.
* ox-latex.el (org-latex-format-headline-default-function):
New option.
(org-latex-format-headline-function): Use the new option as
the default value.
The rationale here is that most users will expect Org 8.0
to format headlines like Org <8.0 did. If they want a different
formatting, then they can use `org-latex-format-headline-function'.
* lisp/ox-latex.el (org-latex-property-drawer): Remove function.
* contrib/lisp/ox-groff.el (org-groff-property-drawer): Remove
function.
This changes ensures that:
paragraph
# comment
another paragraph
will be exported as:
paragraph
another paragraph
and not as:
paragraph
another paragraph
It only applies on back-end where empty lines are meaningful (e.g. not
html).
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Allow to
span documentclass options accross multiple lines in template.
* lisp/ox-beamer.el (org-beamer-template): Allow to span documentclass
options accross multiple lines in template.
* lisp/ox-latex.el (org-latex-template): Allow to span documentclass
options accross multiple lines in template.
Thanks to Michael Strey for reporting this bug.
* lisp/ox-beamer.el (org-beamer-template): Add missing `class'
argument for `format-string'.
* lisp/ox-latex.el (org-latex-template): Add missing `class' argument
for `format-string'.
Thanks to Sébastien Vauban for reporting the problem and providing the
initial patch.
* lisp/ox-latex.el (org-latex-headline): When a function returns
a sectionning command, only one placeholder should be required.
Thanks to Florian Beck for reporting this.
* lisp/ox-latex.el (org-latex-special-block): Add :options attribute
to special blocks to specify options.
With this patch, the following is now possible (again):
#+attr_latex: :options [Someone]
#+begin_theorem
Something
#+end_theorem
* lisp/ox-latex.el (org-latex-example-block, org-latex-src-block):
Ignore element if it's empty. This fixes error "apply: Wrong number
of arguments: max, 0".
* lisp/ox-beamer.el (org-beamer-template): Provide an error when LaTeX
class is invalid.
* lisp/ox-latex.el (org-latex-template): Provide an error when LaTeX
class is invalid.
Patch suggested by Sébastien Vauban