emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Miguel Ruiz <rbenit68@yahoo.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: No title in org-export-as-odt
Date: Mon, 24 Sep 2012 02:42:39 -0400	[thread overview]
Message-ID: <5198.1348468959@alphaville> (raw)
In-Reply-To: Message from Miguel Ruiz <rbenit68@yahoo.es> of "Mon\, 24 Sep 2012 07\:03\:13 BST." <1348466593.45471.YahooMailClassic@web133101.mail.ir2.yahoo.com>

Miguel Ruiz <rbenit68@yahoo.es> wrote:

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

  reply	other threads:[~2012-09-24  6:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-24  6:03 No title in org-export-as-odt Miguel Ruiz
2012-09-24  6:42 ` Nick Dokos [this message]
2012-09-24 12:10 ` Giovanni Ridolfi
2014-01-27  6:31 ` Brady Trainor
2014-01-27 10:35   ` Bastien
2014-03-28  6:05     ` [PATCH] " Brady Trainor
2014-04-16 14:38       ` Bastien
2014-01-27 14:23   ` Jambunathan K
  -- strict thread matches above, loose matches on Subject: below --
2012-09-23 16:56 Miguel Ruiz
2012-09-23 18:09 ` Bastien
2014-03-28  9:11 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5198.1348468959@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rbenit68@yahoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).