emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] No title in org-export-as-odt


From: Nick Dokos
Subject: Re: [O] No title in org-export-as-odt
Date: Mon, 24 Sep 2012 02:42:39 -0400

Miguel Ruiz <address@hidden> wrote:

> Hi,
> 
>  
> > Miguel Ruiz <address@hidden>
> > 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.
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]