The decision for when to add email and author information to an
exported document seems to be treated somewhat inconsistently
between export backends.

The intent appears to be that the global default for exporting
the author's name is controlled by org-export-author-info, and
the email by org-export-email-info.  These can be overriden by
options in the file of the form author:value and email:value
respectively.

To check whether a backend should export the relevant info it
appears one should use:

(if (plist-get opt-plist :author-info)
    ;; we can export author info now
  )

And similarly for email export.  This obeys the file-local
setting first and foremost and then falls back on the default
value if no local setting is in effect.

However, most backends do not seem to stick to this.  For example
org-docbook.el exports the author info unilaterally and the email
info if org-export-email-info is non-nil.

org-ascii.el exports the author info if org-export-author-info is
non-nil and email if both org-export-author-info and
org-export-email-info are non-nil.

org-latex.el exports the author info if :author-info is non-nil
in the options plist, and doesn't export the email info at all
(see my recent patch fixing this).

org-html.el uses org-export-author-info and
org-export-email-info.

It seems then that most backends do not pay attention to
file-local settings, which does feel like a bug.

Any thoughts?

Cheers,

Lawrence
-- 
Lawrence Mitchell <we...@gmx.li>


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to