emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Export to Latex without \author{}
@ 2015-06-26 12:07 Lei Zhe
  2015-06-26 12:23 ` Rasmus
  0 siblings, 1 reply; 2+ messages in thread
From: Lei Zhe @ 2015-06-26 12:07 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Dear orgers,

I am trying to export a beamer from org-mode with my own \author
command defined.
But when I export, org-mode always generates another \author after my
\author, which destroys the author list.
I tried:
1. #+author:
2. #+bind: latex-export-with-author ""
3. move #+author before my author command.
But none of them did make it. The \author{} always appears in the
place after my author command!

Then I tried to filter using:
(defun delete-empty-author (contents backend info)
  (when (eq backend 'beamer)
  (replace-regexp-in-string "\\\\author{}" "" contents)))
(add-to-list 'org-export-filter-keyword-functions 'delete-empty-author)
(add-to-list 'org-export-filter-plain-text-functions 'delete-empty-author)
(add-to-list 'org-export-filter-comment-functions 'delete-empty-author)

But it seems like that none of the filter functions is right.
So how can i solve this kind of problem?

llcc

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

* Re: Export to Latex without \author{}
  2015-06-26 12:07 Export to Latex without \author{} Lei Zhe
@ 2015-06-26 12:23 ` Rasmus
  0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2015-06-26 12:23 UTC (permalink / raw)
  To: emacs-orgmode

Lei Zhe <lzhes43@gmail.com> writes:

> I am trying to export a beamer from org-mode with my own \author
> command defined.
> But when I export, org-mode always generates another \author after my
> \author, which destroys the author list.
> I tried:
> 1. #+author:
> 2. #+bind: latex-export-with-author ""
> 3. move #+author before my author command.
> But none of them did make it. The \author{} always appears in the
> place after my author command!

Does "#+options: author:nil" work for you?

Rasmus

-- 
When the facts change, I change my mind. What do you do, sir?

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

end of thread, other threads:[~2015-06-26 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-26 12:07 Export to Latex without \author{} Lei Zhe
2015-06-26 12:23 ` Rasmus

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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