[Solved] Sharing document text into multiple documents

Writing a book, Automating Document Production - Discuss your special needs here

[Solved] Sharing document text into multiple documents

Postby gplowther » Tue Jul 05, 2016 12:46 pm

We are writing a few manuals for our product and have some common text/sections that we'd like to reference in multiple manuals, for example, how to drive the website needs to be in a configuration manual, but also in a user manual.

Looking at master documents this seems to be the idea of using multiple documents to create a single large document. Does anyone know though if you can use the single documents in more than one master document.

Ideally I'd like the text in all the documents more than a reference to a different manual, so as an example the 'How to drive the website' would have the text in 'website.odt' but then would be seen as flowing text (that is, not a link, but the actual text) as section x of the configuration manual and section y of the user manual.

If I then updated the text in website.odt, it would 'automagically' update the text seen in both the configuration and user manuals next time they were opened.

Any ideas/pointers greatly received!
Last edited by floris v on Wed Jul 06, 2016 10:56 am, edited 2 times in total.
Reason: Added green check mark, floris v, moderator
OOo 3.1.X on Ms Windows XP + Ubuntu
OOo 4.1.1 & LO 5.1.4.2 on Xubuntu (native), Win10 (VM) & Win7 (VM)
gplowther
 
Posts: 2
Joined: Thu May 28, 2009 11:51 am

Re: Sharing document text into multiple documents

Postby acknak » Tue Jul 05, 2016 1:48 pm

Greetings and welcome to the community forum!

I would manage this using sections: Insert > Section ...

OO Writer document sections can take their content from another document, or from a section in another document. A "section" in OO Writer has nothing to do with the document structure; it's just a set of paragraphs.

Insert > Section > Section ... tick Link:ON, select a file (and optionally a section name from the file), and confirm. Voila, the linked text appears in the document.

The updating is not automatic; every time you open the document, you'll be prompted to "Update all links?". If you confirm the prompt, the linked content will be refreshed. The individual links can be updated manually as well.

I'm not 100% sure but you may have to work in OO's native ODF document (file) format to get this feature. Best practice is to work in ODF anyway.

I expect combining content from different files will pretty much require using styles, or you'll soon go mad trying to keep the formatting consistent.
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Sharing document text into multiple documents

Postby gplowther » Wed Jul 06, 2016 10:43 am

That does exactly what I was looking for - Many thanks
OOo 3.1.X on Ms Windows XP + Ubuntu
OOo 4.1.1 & LO 5.1.4.2 on Xubuntu (native), Win10 (VM) & Win7 (VM)
gplowther
 
Posts: 2
Joined: Thu May 28, 2009 11:51 am

Re: [Solved] Sharing document text into multiple documents

Postby floris v » Wed Jul 06, 2016 10:55 am

Foxcole used to say that you can use multiple master documents to publish the same child documents with a different formatting - use the same names for all styles you use in your child documents and override the settings for those styles in the master documents. Before you start doing this with a serious project, you should first play with some sandbox files.
AOO 4.1.6 op Linux Mint
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
floris v
Volunteer
 
Posts: 4206
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands


Return to Advanced Uses

Who is online

Users browsing this forum: No registered users and 0 guests