Ask Your Question
0

Formatting, tool or another application?

asked 2017-11-22 01:25:44 +0100

michael4444 gravatar image

updated 2017-11-23 14:59:26 +0100

enter code here

This problem may not be possible with libre-office and my asking the question may only serve to illuminate my ignorance of libre-office. I have poured over the forums and wiki without finding what I am looking for.

Picture this - I have a template/document with five words or phrases that appear formatted like links so they can be clicked on. For example:

apple bar rug office car

I would like to open this template and be able to click on the words I want to stay, while the ones I do not click on disappear from the final document. So I click on apple and rug for example and the final document would only show: apple rug

If this is possible, I would build a comprehensive multiple page template with all the options that are possible so I can quickly click down through and the final saved document would have only what I selected.

I thank you for considering.

EDIT* I also posted the question (asked differently after thinking about it and with more trial/error in the openoffice forums here)

Mike

edit retag flag offensive close merge delete

Comments

Are you trying to build a document from a dictionary of "standard" clauses, like a contract? Will the clauses be edited before saving? In this restricted case, there is a possible solution.

ajlittoz gravatar imageajlittoz ( 2017-11-22 07:52:50 +0100 )edit

I'm trying to make a template to use when a patient visits me. For example one of the lines might be:

"Patient follows up for treatment of - depression anxiety ADHD."

When I open the template, I want to be able to click one or multiple choices (depression anxiety or ADHD) and have a final document with what I clicked.

If I click depression and ADHD, the output on final document should be:

Patient follows up for treatment of - depression ADHD.

I hope that makes sense.

michael4444 gravatar imagemichael4444 ( 2017-11-22 10:23:12 +0100 )edit

It makes sense: looks like you have many many (repetition is not a typo) short clauses. I was thinking about a master document from which you'd exclude included sub-docs but it isn't applicable to your case.

Maybe you should try with Calc (instead of Writer) where your click in a cell or checkbox would hide the line or cause some other "visible" actions (e.g. with conditional formatting, change foreground color to backgroung color), thus making text invisible but revertible.

ajlittoz gravatar imageajlittoz ( 2017-11-22 21:43:58 +0100 )edit

@michael4444:
It isn't "illegal" to cross-post a question in two or even more places. It is, however, regarded "netiquette" to link-in the alternative postings. Otherwise contributors may miss informazion or waste their time on solved problems.
See https://forum.openoffice.org/en/forum...
In addition you should thoroughly choose your subject. In this case you used two very different wordings. Wouldn't have expected the same question under both of them.

Lupp gravatar imageLupp ( 2017-11-23 09:42:17 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-11-22 23:49:36 +0100

Jim K gravatar image

updated 2017-11-23 00:04:04 +0100

This is a good task for LibreOffice. Here is one approach using buttons and macros.

click on optional words.ott

When a button is clicked, the macro goes to the bookmark for question 1 (see Insert -> Bookmark) and then adds the word. After the words are all selected, press "Remove All Buttons" and then the document is finished.

You may want to modify the macros to add improvements such as checking for duplicates.

Buttons only work when Design Mode is turned off (Edit -> Design Mode in the menu).

One disadvantage of this setup is that it may be tedious to create all the buttons. A way around this is to put the words in Calc using =HYPERLINK(). Both the Writer template and the Calc file would need to be open at the same time.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-11-22 01:25:44 +0100

Seen: 90 times

Last updated: Nov 23 '17