From: Jambunathan K <kjambunathan@gmail.com>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: Bastien <bzg@altern.org>, emacs-orgmode@gnu.org
Subject: Re: [odt] User-visible improvements
Date: Fri, 19 Aug 2011 14:14:55 +0530 [thread overview]
Message-ID: <81sjoxyem0.fsf@gmail.com> (raw)
In-Reply-To: <CAMXnza2UnZMiyOw2gw5=YG7Ma1PwVVwuGs+_VpK6+xkgG2muJg@mail.gmail.com> (suvayu ali's message of "Thu, 18 Aug 2011 14:31:17 +0200")
suvayu ali <fatkasuvayu+linux@gmail.com> writes:
> Hi Jambu and Bastien,
>
> On Thu, Aug 18, 2011 at 9:31 AM, Bastien <bzg@altern.org> wrote:
>> Hi Jambunathan,
>>
>> these are great improvements -- I'm surprised people didn't thank
>> you more for this! So, thanks.
>>
>
> Does this feature mean we can export to other common word processor
> formats like .doc using the odt exporter and command line utilities
> for the final conversion? Although this is not of direct interest to
> me (I stay away from anything not Linux :-p), it might be interesting
> to my Mac/Windows friends. :)
Yes.
org->odt-><whatever including doc and pdf>
First link in the chain is through an org backend and the second link in
the chain is through a converter.
(Think of exporting to latex natively and then using pdflated to
generate pdf. The principle is just the same)
> I also see Jambu mentions odp to pdf.
Yes you can convert to already-existing_odp->pdf. More specifically you
can do all conversions that you typically do with "Save As" and "Export
to" options while working on Writer/Presentation/Spreadsheet/Web/Drawing
documents.
More specifically if you have latex, docbook or mediawiki extensions
installed you can export do a html->latex, odt->docbook, rtf->mediawiki
throught the converter.
The command to use is
M-x org-lparse-convert RET <give the document> RET <choose the final
format> RET
and the external converter will do the job for you.
> I wasn't aware the odt exporter could export to odp.
You do a org->odt->odp. This is an easter egg in BasicODConverter (and
this feature is not available in unoconv). You can add a odp entry in
org-lparse-convert-capabilities as below
,----
| (("Text" <---- Under Text category
| ("odt" "ott" "doc" "rtf")
| (("pdf" "pdf")
| ("odt" "odt")
| ("xhtml" "html")
| ("rtf" "rtf")
| ("ott" "ott")
| ("doc" "doc")
| ("ooxml" "xml")
| ("html" "html")
| ("odp" "odp"))) <---- Add this entry
| [snip])
`----
odt->odp currently uses File->Send->Outline To Presentation
(BasicODConverter is authored by me. So without much of haggling :-) I
can have it do File->Send->Autoabstract to Presentation)
This is an asynchronous call and it is NOT headless. So basically the
LibreOffice window will pop-up and wait for few second before declaring
that conversion is done.
If there is enough interest in this direction I would file a feature
request against LibreOffice to provide a synchronous API for outline to
presentation conversion. (From the OpenOffice mailing list I understand
that odt->html conversion was asynchronous but was later converter to
synchronous mechanism based on a bug report filed by the JODConverter)
,---- from Main.Bas in BasicODConverter dir
| ' Export Outline to Presentation
| dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
| dispatcher.executeDispatch(inDoc.CurrentController.Frame, ".uno:SendOutlineToStarImpress", "", 0, Array())
|
| ' Dispatch event above is aynchronous. Wait for a few seconds for the above event to finish
| Wait(WaitFor * 1000)
`----
> This would be something I would love to test more. Is there any
> special configuration I need to do? I tried looking for variables, but
> nothing jumped out as an obvious customisation in a cursory glance.
> And of course a huge thanks to Jambu. :)
--
next prev parent reply other threads:[~2011-08-19 8:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-04 21:05 [odt] User-visible improvements Jambunathan K
2011-08-06 7:48 ` Help confirming odt->doc bug (Was Re: [odt] User-visible improvements) Jambunathan K
2011-08-06 9:50 ` Achim Gratz
2011-08-08 6:10 ` Jambunathan K
2011-08-08 6:12 ` Jambunathan K
2011-08-21 18:38 ` Jambunathan K
2011-08-18 7:31 ` [odt] User-visible improvements Bastien
2011-08-18 12:31 ` suvayu ali
2011-08-19 8:44 ` Jambunathan K [this message]
2011-08-19 7:35 ` Jambunathan K
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=81sjoxyem0.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
--cc=fatkasuvayu+linux@gmail.com \
/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).