Nicolas Goaziou <n.goaz...@gmail.com> writes:

> It is as simple as using a filter to remove the title provided by the
> template and install your own.
>
> #+begin_src emacs-lisp
> (defun ngz-enforce-my-title (contents backend info)
>   ;; In LaTeX export, if I defined a title with a short title, remove
>   ;; default title command provided by template, if any.
>   (if (or (not (eq backend 'e-latex))
>           (not (string-match "^\\\\title\\[.*\\]{.*}$" contents))
>           (not (string-match "^\\\\title{.*}\n" contents)))
>       contents
>     (replace-match "" nil nil contents)))
>
> (add-to-list 'org-export-filter-final-output-functions 'ngz-enforce-my-title)
> #+end_src

Argh...  this is why I love the new org-export.el !!  :)

-- 
 Bastien

Reply via email to