* Title style in ODT writer
@ 2011-03-09 6:17 Ryan Gray
[not found] ` <86317a59-cf51-468e-9829-91b963e45e1d-0vFEa83gnMD/EOkJhF9VgWB/v6IoIuQBVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Gray @ 2011-03-09 6:17 UTC (permalink / raw)
To: pandoc-discuss
I was playing around with Markdown to ODT and noticed the title gets
styled with "Header 1" rather than "Title". I was created a custom ODT
template via `pandoc -D odt` and just changed the title style name to
"Title" from, oddly "Header_20_1". This worked fine, and I then just
apply my style template to it, overwriting same-named styles.
Then I found the --reference-odt option, which is great, because I
don't have to open OOo and apply my style template, eliminating a
manual step. However, it also styles the title with "Header 1" rather
than "Title". I found the way around this was to use both my reference-
odt and my custom ODT template, then the title came out styled as
"Title" and my styles were already included.
So, I was just wondering if there was a particular reason the title is
set to "Header 1". If not, would it seems it could be more useful to
have it styled as "Title" by default.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Title style in ODT writer
[not found] ` <86317a59-cf51-468e-9829-91b963e45e1d-0vFEa83gnMD/EOkJhF9VgWB/v6IoIuQBVpNB7YpNyf8@public.gmane.org>
@ 2011-03-09 6:34 ` Ryan Gray
[not found] ` <88412cf3-a561-4c9b-8355-4dc4cdae3cbf-5gBpj1itNQskDZVcHChizVYGCWtFR9XvQQ4Iyu8u01E@public.gmane.org>
2014-12-03 16:28 ` James Phillips
1 sibling, 1 reply; 4+ messages in thread
From: Ryan Gray @ 2011-03-09 6:34 UTC (permalink / raw)
To: pandoc-discuss
Additionally, I can't seem to get the same effect by putting both in
the --data-dir as described in the user's guide. I get my reference-
odt applied, but no also the ODT template, whereas specifying both on
the command line would use both. I have:
~/.pandoc/reference.odt
~/.pandoc/templates/odt.template
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Title style in ODT writer
[not found] ` <88412cf3-a561-4c9b-8355-4dc4cdae3cbf-5gBpj1itNQskDZVcHChizVYGCWtFR9XvQQ4Iyu8u01E@public.gmane.org>
@ 2011-03-09 16:30 ` John MacFarlane
0 siblings, 0 replies; 4+ messages in thread
From: John MacFarlane @ 2011-03-09 16:30 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
+++ Ryan Gray [Mar 08 11 22:34 ]:
> Additionally, I can't seem to get the same effect by putting both in
> the --data-dir as described in the user's guide. I get my reference-
> odt applied, but no also the ODT template, whereas specifying both on
> the command line would use both. I have:
>
> ~/.pandoc/reference.odt
> ~/.pandoc/templates/odt.template
You need to call this
~/.pandoc/templates/opendocument.template
because pandoc first converts to opendocument XML, then creates
the ODT from that.
John
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Title style in ODT writer
[not found] ` <86317a59-cf51-468e-9829-91b963e45e1d-0vFEa83gnMD/EOkJhF9VgWB/v6IoIuQBVpNB7YpNyf8@public.gmane.org>
2011-03-09 6:34 ` Ryan Gray
@ 2014-12-03 16:28 ` James Phillips
1 sibling, 0 replies; 4+ messages in thread
From: James Phillips @ 2014-12-03 16:28 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1.1: Type: text/plain, Size: 2063 bytes --]
As of this date (12/3/2014), using the default ODT template, the ODT
document title is styled with the title style, but gets numbered in the
heading 1 heading sequence.
I don't really understand this behavior, as I can't see any link in the
style to heading 1, but it does behave that way.
Using a default Libreoffice style for title, this does not happen.
It seems to be an issue with the title style in the default ODT template.
I am using Pandoc 1.13.1 on Windows.
On Wednesday, March 9, 2011 1:17:48 AM UTC-5, Ryan Gray wrote:
>
> I was playing around with Markdown to ODT and noticed the title gets
> styled with "Header 1" rather than "Title". I was created a custom ODT
> template via `pandoc -D odt` and just changed the title style name to
> "Title" from, oddly "Header_20_1". This worked fine, and I then just
> apply my style template to it, overwriting same-named styles.
>
> Then I found the --reference-odt option, which is great, because I
> don't have to open OOo and apply my style template, eliminating a
> manual step. However, it also styles the title with "Header 1" rather
> than "Title". I found the way around this was to use both my reference-
> odt and my custom ODT template, then the title came out styled as
> "Title" and my styles were already included.
>
> So, I was just wondering if there was a particular reason the title is
> set to "Header 1". If not, would it seems it could be more useful to
> have it styled as "Title" by default.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/789029da-53f5-4018-9b62-39e4da232233%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2660 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-03 16:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-09 6:17 Title style in ODT writer Ryan Gray
[not found] ` <86317a59-cf51-468e-9829-91b963e45e1d-0vFEa83gnMD/EOkJhF9VgWB/v6IoIuQBVpNB7YpNyf8@public.gmane.org>
2011-03-09 6:34 ` Ryan Gray
[not found] ` <88412cf3-a561-4c9b-8355-4dc4cdae3cbf-5gBpj1itNQskDZVcHChizVYGCWtFR9XvQQ4Iyu8u01E@public.gmane.org>
2011-03-09 16:30 ` John MacFarlane
2014-12-03 16:28 ` James Phillips
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 NNTP newsgroup(s).