* subtree export title w/ tags
@ 2014-01-14 16:22 Robert Klein
2014-01-14 16:26 ` Bastien
0 siblings, 1 reply; 8+ messages in thread
From: Robert Klein @ 2014-01-14 16:22 UTC (permalink / raw)
To: emacs-orgmode
Hi,
when I subtree (html-)export a text where the headline has a tag, the
title of the exported document includes the tag, e.g.
#+begin_src org
** headline :mytag:
bla bla bla
#+end_src
results in
#+begin_src html
...
<title>headline :mytag:</title>
...
#+end_src
Is there something I can do, so the tag doesn't end up in the title?
Thanks and best regards
Robert
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: subtree export title w/ tags
2014-01-14 16:22 subtree export title w/ tags Robert Klein
@ 2014-01-14 16:26 ` Bastien
2014-01-15 8:49 ` Sebastien Vauban
0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-01-14 16:26 UTC (permalink / raw)
To: Robert Klein; +Cc: emacs-orgmode
Hi Robert,
Robert Klein <roklein@roklein.de> writes:
> Is there something I can do, so the tag doesn't end up in the title?
You can add the :EXPORT_TITLE: property in the subtree.
Still, I think tags should be removed from the title by default,
I will look into this.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: subtree export title w/ tags
2014-01-14 16:26 ` Bastien
@ 2014-01-15 8:49 ` Sebastien Vauban
2014-01-15 11:53 ` Bastien
0 siblings, 1 reply; 8+ messages in thread
From: Sebastien Vauban @ 2014-01-15 8:49 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hi Bastien,
Bastien wrote:
> Robert Klein <roklein-dMgjidx2iAaELgA04lAiVw@public.gmane.org> writes:
>
>> Is there something I can do, so the tag doesn't end up in the title?
>
> You can add the :EXPORT_TITLE: property in the subtree.
>
> Still, I think tags should be removed from the title by default,
> I will look into this.
`org-export-with-tags' seems to be the option to do that, nope?
╭──── org-export-with-tags
│
│ If nil, do not export tags, just remove them from headlines.
╰────
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: subtree export title w/ tags
2014-01-15 8:49 ` Sebastien Vauban
@ 2014-01-15 11:53 ` Bastien
2014-01-15 12:31 ` Robert Klein
0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-01-15 11:53 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ
"Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:
> `org-export-with-tags' seems to be the option to do that, nope?
>
> ╭──── org-export-with-tags
> │
> │ If nil, do not export tags, just remove them from headlines.
> ╰────
I think the OP wants to remove tags just from the titles.
--
Bastien
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: subtree export title w/ tags
2014-01-15 11:53 ` Bastien
@ 2014-01-15 12:31 ` Robert Klein
2014-01-19 11:08 ` Robert Klein
0 siblings, 1 reply; 8+ messages in thread
From: Robert Klein @ 2014-01-15 12:31 UTC (permalink / raw)
To: Bastien, Sebastien Vauban; +Cc: emacs-orgmode
Bastien, Sebastien,
thank you both for your help.
I'll check out `org-export-with-tags'.
I do need the tags, but only in the -export-as- function of a derived
exporter. Probably I still can get them.
Thanks a lot
Best regards
Robert
On 01/15/2014 12:53 PM, Bastien wrote:
>
>
> "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
> writes:
>
>> `org-export-with-tags' seems to be the option to do that, nope?
>>
>> ╭──── org-export-with-tags
>> │
>> │ If nil, do not export tags, just remove them from headlines.
>> ╰────
>
> I think the OP wants to remove tags just from the titles.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: subtree export title w/ tags
2014-01-15 12:31 ` Robert Klein
@ 2014-01-19 11:08 ` Robert Klein
2014-01-19 11:19 ` Nicolas Goaziou
0 siblings, 1 reply; 8+ messages in thread
From: Robert Klein @ 2014-01-19 11:08 UTC (permalink / raw)
To: Bastien, Sebastien Vauban; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]
Hi Bastien, Sebastien,
`org-export-with-tags' doesn't seem to work at all when a headline is
made title of a subtree export.
When using the appended configuration and org-file; point on the line
"point is here"; I'm subtree exporting using C-c C-e C-s h H and I get
#+begin_example
...
<head>
<title>second heading
:mytag:</title>
<!-- 2014-01-19 Sun 10:42 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
...
#+end_example
I suspect the `org-todo-line-regexp' in org-export--get-subtree-options
doesn't like/understand tags.
Note: I'm rolling my own blog-exporter as a html-derived one (didn't
understand org2blog enough to be able to enhance it). For posting a
subtree it would be `natural' to use the heading (without tags) as title
and tags (if any) as blog tags.
Best regards
Robert
On 01/15/2014 01:31 PM, Robert Klein wrote:
> Bastien, Sebastien,
>
> thank you both for your help.
>
> I'll check out `org-export-with-tags'.
>
> I do need the tags, but only in the -export-as- function of a derived
> exporter. Probably I still can get them.
>
>
> Thanks a lot
>
> Best regards
> Robert
>
>
> On 01/15/2014 12:53 PM, Bastien wrote:
>>
>>
>> "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
>> writes:
>>
>>> `org-export-with-tags' seems to be the option to do that, nope?
>>>
>>> ╭──── org-export-with-tags
>>> │
>>> │ If nil, do not export tags, just remove them from headlines.
>>> ╰────
>>
>> I think the OP wants to remove tags just from the titles.
>>
>
>
[-- Attachment #2: .emacs --]
[-- Type: text/plain, Size: 810 bytes --]
; no startup message
(setq inhibit-startup-message t)
;; I'm feeling religious about this:
(setq-default indent-tabs-mode nil)
;; ask y or n instead of yes or no
(fset 'yes-or-no-p 'y-or-n-p)
;; indent after enter; I want this most of the time.
(global-set-key (kbd "RET") 'newline-and-indent)
;; use emacs with IME (avoid 'no dead-acute' error messages)
(load-library "iso-transl")
;; change number of newlines for empasized blocks
(setq org-emphasis-regexp-components
'(" \t('\"{" "- \t.,:!?;'\")}\\" " \t\r\n,\"'" "." 10))
(setq org-export-with-tags nil)
(setq load-path (cons "~/.emacs.d/org-mode/lisp" load-path))
(add-to-list 'load-path "~/.emacs.d")
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
(require 'org-loaddefs)
(setq org-export-with-tags nil)
[-- Attachment #3: tag-test.org --]
[-- Type: application/vnd.lotus-organizer, Size: 309 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: subtree export title w/ tags
2014-01-19 11:08 ` Robert Klein
@ 2014-01-19 11:19 ` Nicolas Goaziou
2014-01-19 15:39 ` Bastien
0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2014-01-19 11:19 UTC (permalink / raw)
To: Robert Klein; +Cc: Bastien, Sebastien Vauban, emacs-orgmode
Hello,
Robert Klein <roklein@roklein.de> writes:
> `org-export-with-tags' doesn't seem to work at all when a headline is
> made title of a subtree export.
>
>
> When using the appended configuration and org-file; point on the line
> "point is here"; I'm subtree exporting using C-c C-e C-s h H and I get
>
> #+begin_example
> ...
> <head>
> <title>second heading
> :mytag:</title>
> <!-- 2014-01-19 Sun 10:42 -->
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
> ...
> #+end_example
>
>
> I suspect the `org-todo-line-regexp' in org-export--get-subtree-options
> doesn't like/understand tags.
The current behaviour is to keep tags of the root node when you export
a subtree. If you want to get rid of them, you can set an :EXPORT_TITLE:
property in the same node.
Note that `org-export-with-tags' isn't expected to do anything in that
situation.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: subtree export title w/ tags
2014-01-19 11:19 ` Nicolas Goaziou
@ 2014-01-19 15:39 ` Bastien
0 siblings, 0 replies; 8+ messages in thread
From: Bastien @ 2014-01-19 15:39 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Sebastien Vauban, emacs-orgmode, Robert Klein
Hi Nicolas and Robert,
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> The current behaviour is to keep tags of the root node when you export
> a subtree. If you want to get rid of them, you can set an :EXPORT_TITLE:
> property in the same node.
I think we should only consider the bare heading: we already get rid
of the TODO keyword so I see no reason not to get rid of the tags too.
I just pushed a fix for this.
--
Bastien
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-01-19 15:39 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 16:22 subtree export title w/ tags Robert Klein
2014-01-14 16:26 ` Bastien
2014-01-15 8:49 ` Sebastien Vauban
2014-01-15 11:53 ` Bastien
2014-01-15 12:31 ` Robert Klein
2014-01-19 11:08 ` Robert Klein
2014-01-19 11:19 ` Nicolas Goaziou
2014-01-19 15:39 ` Bastien
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).