emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to convert to odt with specific styles?
@ 2013-01-01 17:59 joakim
  2013-01-01 19:03 ` Jambunathan K
  2013-01-03  5:09 ` Jambunathan K
  0 siblings, 2 replies; 5+ messages in thread
From: joakim @ 2013-01-01 17:59 UTC (permalink / raw)
  To: emacs-orgmode

Hello list,

I have an article I've written in Org. To submit it to the publisher, it
needs to follow a particular ms word style template. 

I hope to achieve this with the odt exporter.  Reading the org manual it
seems the style sheet that the odt exporter uses will need to contain a
couple of hard coded format names. In my case I would like map the org
factory default format names to other names as defined in the template
given to me by the publisher.

What is simplest way to achieve this? At the moment I'm changing the
formats by hand so nearly any other method would be more
efficient. Also, I'm more proficient with elisp than wordprocessors.

TIA
-- 
Joakim Verona

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to convert to odt with specific styles?
  2013-01-01 17:59 How to convert to odt with specific styles? joakim
@ 2013-01-01 19:03 ` Jambunathan K
  2013-01-01 22:52   ` Bastien
  2013-01-03  5:09 ` Jambunathan K
  1 sibling, 1 reply; 5+ messages in thread
From: Jambunathan K @ 2013-01-01 19:03 UTC (permalink / raw)
  To: joakim; +Cc: emacs-orgmode

joakim@verona.se writes:

> Hello list,
>
> I have an article I've written in Org. To submit it to the publisher, it
> needs to follow a particular ms word style template. 
>
> I hope to achieve this with the odt exporter.  Reading the org manual it
> seems the style sheet that the odt exporter uses will need to contain a
> couple of hard coded format names. In my case I would like map the org
> factory default format names to other names as defined in the template
> given to me by the publisher.
>
> What is simplest way to achieve this? At the moment I'm changing the
> formats by hand so nearly any other method would be more
> efficient. Also, I'm more proficient with elisp than wordprocessors.

I was anticipating such a request (Jambu pats himself on the back here!)
and added 

(defvar org-export-odt-default-org-styles-alist
  '((paragraph . ((default . "Text_20_body")
		  (fixedwidth . "OrgFixedWidthBlock")
		  (verse . "OrgVerse")
		  (quote . "Quotations")
		  (blockquote . "Quotations")
		  (center . "OrgCenter")
		  (left . "OrgLeft")
		  (right . "OrgRight")
		  (title . "OrgTitle")
		  (subtitle . "OrgSubtitle")
		  (footnote . "Footnote")
		  (src . "OrgSrcBlock")
		  (illustration . "Illustration")
		  (table . "Table")
		  (definition-term . "Text_20_body_20_bold")
		  (horizontal-line . "Horizontal_20_Line")))
    (character . ((default . "Default")
		  (bold . "Bold")
		  (emphasis . "Emphasis")
		  (code . "OrgCode")
		  (verbatim . "OrgCode")
		  (strike . "Strikethrough")
		  (underline . "Underline")
		  (subscript . "OrgSubscript")
		  (superscript . "OrgSuperscript")))
    (list . ((ordered . "OrgNumberedList")
	     (unordered . "OrgBulletedList")
	     (description . "OrgDescriptionList"))))
  "Default styles for various entities.")

But considering that no one made such a request, he removed it from
org-e-odt.el.  I can re-instate the removed changes in to org-e-odt.el.

Let me know if you find the above list unsatisfactory or broken.  You
are most likely the first person who will be using it.

> TIA

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to convert to odt with specific styles?
  2013-01-01 19:03 ` Jambunathan K
@ 2013-01-01 22:52   ` Bastien
  2013-01-02 23:31     ` Tom Davey
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2013-01-01 22:52 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode, joakim

Jambunathan K <kjambunathan@gmail.com> writes:

> But considering that no one made such a request, he removed it from
> org-e-odt.el.  I can re-instate the removed changes in to org-e-odt.el.

That'd be great.  Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to convert to odt with specific styles?
  2013-01-01 22:52   ` Bastien
@ 2013-01-02 23:31     ` Tom Davey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Davey @ 2013-01-02 23:31 UTC (permalink / raw)
  To: Emacs Org mode mailing list

> But considering that no one made such a request, he removed it from
> org-e-odt.el.  I can re-instate the removed changes in to org-e-odt.el.

I agree, that would be great. I have the same use case as Joakim:
frequent exports to MS Word templates with predefined style sets.

Thanks very much!

Tom Davey

On Tue, Jan 1, 2013 at 5:52 PM, Bastien <bzg@altern.org> wrote:
> Jambunathan K <kjambunathan@gmail.com> writes:
>
>> But considering that no one made such a request, he removed it from
>> org-e-odt.el.  I can re-instate the removed changes in to org-e-odt.el.
>
> That'd be great.  Thanks!
>
> --
>  Bastien
>



-- 
--
Tom Davey
tom@tomdavey.com
New York NY USA

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to convert to odt with specific styles?
  2013-01-01 17:59 How to convert to odt with specific styles? joakim
  2013-01-01 19:03 ` Jambunathan K
@ 2013-01-03  5:09 ` Jambunathan K
  1 sibling, 0 replies; 5+ messages in thread
From: Jambunathan K @ 2013-01-03  5:09 UTC (permalink / raw)
  To: joakim, Tom Davey; +Cc: emacs-orgmode

joakim@verona.se writes:

> Hello list,
>
> I have an article I've written in Org. To submit it to the publisher, it
> needs to follow a particular ms word style template. 

I am not much familiar with MS Word formats.

I am wondering whether it is possible to convert MS Word Templates and
MS Word documents in to their OpenDocument equivalents (*.odt and *.ott)
and yet /retain/ the style names around the round-trip.  Note that the
_style names_ should be stable.  In LibreOffice terms, these are the
style names that you see on the rightmost window of the screenshot that
I posted earlier [1].

Sometimes documents can be re-written using automatic styles [2].  The
converted document will look like the original but internally they may
be relying on automatically generated styles [3].

What sort of styles these Word documents rely on (typically).  I mean
Character styles, Paragraph styles, Page Styles, List styles, Table-*
related styles etc.[4q]

If someone can create a personal word template and willing to experiment
with back-and-forths between LibreOffice and MS Word formats, I am
willing to exchange notes with him/her and amend the exporter to
accommodate new requirements.

I don't have access to MS Word but only LibreOffice that comes bundled
with Debian.

[1] http://lists.gnu.org/archive/html/emacs-orgmode/2012-12/msg00116.html
[2] Automatic styles go in to content.xml and their names end with a
    numeric suffix.
[3] If you are a programmer, think of cloning a style-name under a new
    name and referencing it Vs referencing the original stylename.
[4] Character and Text styles may not pose much problems compared to other
    styles and something little thing

> I hope to achieve this with the odt exporter.  Reading the org manual it
> seems the style sheet that the odt exporter uses will need to contain a
> couple of hard coded format names. In my case I would like map the org
> factory default format names to other names as defined in the template
> given to me by the publisher.
>
> What is simplest way to achieve this? At the moment I'm changing the
> formats by hand so nearly any other method would be more
> efficient. Also, I'm more proficient with elisp than wordprocessors.
>
> TIA

-- 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-03  5:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-01 17:59 How to convert to odt with specific styles? joakim
2013-01-01 19:03 ` Jambunathan K
2013-01-01 22:52   ` Bastien
2013-01-02 23:31     ` Tom Davey
2013-01-03  5:09 ` Jambunathan K

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