Ideas for writing for Word (or similar)

79 views
Skip to first unread message

Largo84

unread,
Apr 7, 2017, 2:42:57 PM4/7/17
to leo-editor
Much of my client work in Leo is creating LaTex documents (eventually to PDFs). I also use markdown and/or RST for my own purposes. These tools work very well for me.

However. I have a very large client project that needs to eventually end up as Word (yuck) documents (master document and many sub-documents). Any suggestions on how I can use Leo's organizational strengths to write this knowing that when done, it will need to export to Word (LibreOffice ODT and maybe RTF would be OK too)? Curious what others are doing (or would do) in a similar situation.

Rob..........


Chris George

unread,
Apr 7, 2017, 3:27:23 PM4/7/17
to leo-e...@googlegroups.com
Docutils will convert markdown or rst to ODT. From there you can open the documents in LibreOffice and convert to Word.

Chris

--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscribe@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Edward K. Ream

unread,
Apr 7, 2017, 9:12:35 PM4/7/17
to leo-editor
On Fri, Apr 7, 2017 at 1:42 PM, Largo84 <lar...@gmail.com> wrote:

Any suggestions on how I can use Leo's organizational strengths to write this knowing that when done, it will need to export to Word (LibreOffice ODT and maybe RTF would be OK too)?

​Dan Rahmel wrote the leo_to_rtf.py plugin several years ago.  It's listed as experimental.

I just tried this plugin.  With Python 3 there is the usual porting problem: bytes instead of strings.  With Python 2, the plugin writes an .rtf file, but Open Office complains about the format.  It's probably worth a close look.

Edward

Terry Brown

unread,
Apr 7, 2017, 10:24:53 PM4/7/17
to leo-e...@googlegroups.com
I'd write in markdown and convert to ODT with pandoc. Pandoc also
writes to .docx, but that's failed to open on the docs. I've tried.
However, Word will open ODT, then you can just save out as .docx.

I think pandoc allows you to use a sample ODT doc. to set heading
styles etc.

Not sure what kind of thing you're writing, but pandoc markdown is
quite capable with citations and such.

It will include bitmaps in ODT, not sure about a vector format.

Cheers -Terry

Largo84

unread,
Apr 7, 2017, 10:26:45 PM4/7/17
to leo-editor
Thanks for the suggestions. I messed around several years ago w/ docutils, but since command line tools are always a struggle for me, I didn't stick with it. Not sure why CLI is so hard for me. I'll take a look at the plugin also.

Rob.....

Israel Hands

unread,
Apr 10, 2017, 7:15:48 AM4/10/17
to leo-editor
Hi Largo,

Apologies for being a bit off topic but have a look at Scrivener which uses rtf files but can compile to .doc and .docx (though I have never used these). Scrivener is excellent for a master document with multiple sub documents - allowing great flexibility. That is exactly what Scrivener is designed to do. There's a free 30 day trial and it runs on MacOs and Windows. And now my question. 

I paid for both the Windows and MacOs versions of Scrivener and I love it -  I use its Latex compile options to get to pdf from markdown but great as it is Scrivener doesn't have the power of Leo, and I would rather have all my eggs in one basket. 

So I'm very interested in your workflow that gets you out of Leo to pdf via Latex.  I'm not at all technical but if there is a straightforward work flow I'd love to see it.  As a simple soul I need something like Auctex in Emacs - press Ctrl C twice and your document gets Latexed!

ta

Israel

Largo84

unread,
Apr 10, 2017, 8:56:46 AM4/10/17
to leo-editor
Thanks for the suggestion, Israel. I looked at Scrivener in the past and it is a very powerful program with a great feature set (may take another look for this project). However, it's not Leo. I will post my Leo->LaTEx->PDF workflow in a separate post.

Rob.......

Offray Vladimir Luna Cárdenas

unread,
Apr 11, 2017, 1:28:49 PM4/11/17
to leo-e...@googlegroups.com

Hi,

Talking about being a little bit off-topic, and other tools that manage the writing workflow, from outlines to pdf, word, LaTeX, the workflow with Grafoscopio is to export the tree as pandoc's markdown or, if Pandoc is installed, to export directly to pdf or html. Other formats, supported by pandoc can be added easily and from there importing to word. One of the nice things I like about this approach is that is less verbose that LaTeX, but can be combined with it, for more fine grained control over the output and the outline markup can be customize for your particular workflow (I use %keywords, that are inspired by leo @directives). Experimental Zotero integration is being tested. You can find more details in the Grafoscopio Manual at [1]

[1] http://mutabit.com/repos.fossil/grafoscopio/doc/tip/Docs/En/Books/Manual/manual.pdf

Cheers,

Offray
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages