On Wed, Jul 12, 2023 at 4:47 PM Keith N. McKenna <keith.mcke...@comcast.net> wrote:
> Jean Weber wrote: > > MD is a user-defined variable, which was inserted into the master > document > > for the book. > > Jean > > Jean; > > If you could give a a brief rundown on how that variable is inserted > into the master document it would be a great help in creating the full > book. > > Regards > Keith > > > > > On Wed, 5 Jul 2023 at 06:18 F Campos Costero <fjcc.apa...@gmail.com> > wrote: > > > >> > >> I noticed that in the Format -> Sections dialog that Section 1 is set > to be > >> hidden when MD != 0. I guess that MD somehow represents Master Document > and > >> that the section should be hidden if the document is part of a master > >> document. I do not know whether MD is a user-defined variable or if it > is a > >> predefined. I will look into that but I have other things to do at the > >> moment. > >> Francis > >> > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org > For additional commands, e-mail: doc-h...@openoffice.apache.org > > Keith, I played with a couple of chapters in a master document and came up with the following method. 1. I chose the menu item File -> New -> Master Document 2. I inserted some dummy text to serve as the front matter of the master document. 3. I used the Navigator to insert chapters 3 and 4 as sub documents. Their individual front matter was visible at this point. 4. At the end of the front matter of the master document, I wrote the line "Here is MD:" 5. WIth the cursor at the end of that line, I chose the menu Insert -> Fields -> Other and chose the Variables tab. 6. Under Type, I chose Set Variable, in the Name box I wrote MD, and in Value I entered 1. I clicked Insert. The front matter within chapters 3 and 4 is no longer visible. 7. I selected the whole line "Here is MD: 1" (which displays the value set for MD) and chose the menu Insert -> Section. On the Sections tab, I set the name of the new section to Contains_MD, chose that it be hidden, and clicked Insert. The line "Here is MD: 1"is no longer visible and the front matter within chapters 3 and 4 remains hidden. If you want to see the hidden section containing MD, select the menu Format -> Sections. Pick Contains_MD from the list on the left and remove the checkmark from the Hidden option. There may be a more elegant way to do that, but the method seems to work. Francis