Miguel Ruiz <rbeni...@yahoo.es> wrote: > Hi, > > > > Miguel Ruiz <rbeni...@yahoo.es> > > writes: > > > > > Any hint to get rid of the title in a org-export-as-odt > > session? > > > > I don't think you can > > > org-odt-format-preamble function says: > > ... > (when title > (concat > (org-odt-format-stylized-paragraph > 'title (org-odt-format-tags > '("<text:title>" . "</text:title>") title)) > ;; separator > "<text:p text:style-name=\"OrgTitle\"/>")) > ... > > So I only need to find a way to assign nil to title variable inside the > document. >
I don't think you can unless you change the code. The title is set in org-lparse.el::org-do-lparse like this: ,---- | ... | (title (org-xml-encode-org-text-skip-links | (or (and subtree-p (org-export-get-title-from-subtree)) | (plist-get opt-plist :title) | (and (not body-only) | (not | (plist-get opt-plist :skip-before-1st-heading)) | (org-export-grab-title-from-buffer)) | (and buffer-file-name | (file-name-sans-extension | (file-name-nondirectory buffer-file-name))) | "UNTITLED"))) | ... `---- so even if you arrange for the opt-plist to set :title to nil, the buffer-file-name will override it. Nick > Also I might define a new option with org-export-inbuffer-options-extra, but > the elaboration of the function is beyond my knowledge. > > I would appreciate any idea. > > > > > > > #+OPTIONS: title:nil author:nil timestamp:nil > > toc:nil > > > > ^^^^^^^^^ > > > > This option is not supported. > > > > -- > > Bastien > > > > > > Thanks. > >