[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] latex (beamer) export and short title
From: |
Bastien |
Subject: |
Re: [O] latex (beamer) export and short title |
Date: |
Fri, 06 Jul 2012 21:24:20 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
Nicolas Goaziou <address@hidden> 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