Date: prev next · Thread: first prev next last
2021 Archives by date, by thread · List index


Greetings,
You can use a section to do that in WRITER. The easy way to start is to
highlight the text and then Insert > Section. In the section
configuration, there is a conditional "Hide" you can use. For example,
I created my wide's course material using WRITER and I use a variable
named "User"; this variable is used on the cover page to indicate
"Teacher's version" or "Student's version" (the value of User is
Teacher or Student). The document contains the homework and practice
exams the students will need to do throughout the semester. In the
"Student's version", each question is followed by a blank area or by
empty lines to allow them to write the answer to the question. In the
"Teacher's version", each question is followed by a detailed answer.
The way I did this was to create two sections after each question: the
first section is for the detailed answer, and is hidden if 'User eq
"Student"'. The second section contains the space needed for the
students to write their answer; this section is hidden if 'User neq
"Student"'. This way, I can flip between versions by changing the value
of the variable.

There is more information here: 
https://help.libreoffice.org/3.3/Writer/Hiding_Text

There are multuple ways of doing what you are looking for, but I
believe sections are more flexible.

I hope this helps.
Rémy.

Le vendredi 01 janvier 2021 à 09:53 -0500, John Kaufmann a écrit :
WordPerfect has a very useful condition for conditional text that must be possible in Writer, but 
I have not figured out how to implement: How to hide a block or section of text (or 
frame/figure/table/etc) unless one or more instances of a class (to which that text pertains) 
exist. Is there a way of expressing the condition
  "If: a field {IS|IS NOT} BLANK"
that can be used in the condition to hide or expose relevant text?


-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.