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: Brady Trainor
Subject: Re: [O] No title in org-export-as-odt
Date: Mon, 27 Jan 2014 06:31:48 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Miguel Ruiz <rbenit68 <at> yahoo.es> writes:

> > > Any hint to get rid of the title in a org-export-as-odt
> > session?

I had the same problem. I noticed a lot of new lines, `\n', so I tried to
remove more than "just title". For my solution, I changed insert to ignore. 


      ;; Preamble - Title, Author, Date etc.
      (ignore 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
changed insert to ignore
       (let* ((title (org-export-data (plist-get info :title) info))
              (author (and (plist-get info :with-author)
                           (let ((auth (plist-get info :author)))
                             (and auth (org-export-data auth info)))))
              (email (plist-get info :email))
              ;; Switch on or off above vars based on user settings
              (author (and (plist-get info :with-author) (or author email)))
              (email (and (plist-get info :with-email) email)))
         (concat
          ;; Title.
          (when title
            (concat
             (format "\n<text:p text:style-name=\"%s\">%s</text:p>"
                     "OrgTitle" (format "\n<text:title>%s</text:title>" title))
             ;; Separator.
             "\n<text:p text:style-name=\"OrgTitle\"/>"))



This was in .emacs.d/elpa/org-[...]/ox-odt.el, that is, org export to odt.
Also, not sure if it was necessary, but I deleted ox-odt.elc, the compiled
version. 


Brady 


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






reply via email to

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