Re: Need help stripping front matter from chapter files

2023-07-13 Thread Jean Weber
Keith,

I STRONGLY RECOMMEND that you DO NOT compile a book using a master
document from files with hidden sections. As I have mentioned before,
there is an obscure bug* that causes random x-refs to Figure numbers
to be incorrect in some chapters. IT IS MUCH BETTER to either (1)
manually remove those sections (copyright and TOC) from the chapter
files before using a master doc to combine the files, OR (2) copy and
paste the cover page and the body of each chapter into a file
containing the book's front matter. In either case, you do not need
the MD=1 field.
(*This bug was fixed in LibreOffice a few years ago, but AFAIK it has
NOT been fixed in AOO.)

If you do choose to compile a book using a master document from files
with hidden sections, Francis has described the general method of
inserting the MD field. However, a separate (hidden) section for that
field is not necessary. I put the field on the Copyright page of the
master document. If I don't want the field to be visible, I make the
field itself Hidden (in Step 6); it can also be toggled Visible or
Hidden on the Edit Fields dialog.

Jean

On Fri, Jul 14, 2023 at 4:08 AM F Campos Costero  wrote:
>
> On Wed, Jul 12, 2023 at 4:47 PM Keith N. McKenna 
> 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
> >
> >
> 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

-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org



Re: Need help stripping front matter from chapter files

2023-07-13 Thread F Campos Costero
On Wed, Jul 12, 2023 at 4:47 PM Keith N. McKenna 
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 
> 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


Re: Need help stripping front matter from chapter files

2023-07-12 Thread Keith N. McKenna

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  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



Re: Need help stripping front matter from chapter files

2023-07-05 Thread F Campos Costero
Thanks, Jean. That makes sense.
Francis

On Tue, Jul 4, 2023 at 7:05 PM Jean Weber  wrote:

> MD is a user-defined variable, which was inserted into the master document
> for the book.
> Jean
>
> On Wed, 5 Jul 2023 at 06:18 F Campos Costero 
> 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
> >
>


Re: Need help stripping front matter from chapter files

2023-07-04 Thread Jean Weber
MD is a user-defined variable, which was inserted into the master document
for the book.
Jean

On Wed, 5 Jul 2023 at 06:18 F Campos Costero  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
>


Re: Need help stripping front matter from chapter files

2023-07-04 Thread Keith N. McKenna

F Campos Costero wrote:

On Tue, Jul 4, 2023 at 12:02 PM Keith N. McKenna 
wrote:


F Campos Costero wrote:

On Sun, Jul 2, 2023 at 5:44 PM Keith N. McKenna <

keith.mcke...@comcast.net>

wrote:


Greetings all;

As I am getting ready to start publishing some of the Writer Guide's
chapter files I am running across a problem stripping the front matter
from the files to be able to then combine them into the complete book.

The problem is with the heading for the TOC. As it is not a part of the
TOC, it has to be deleted separately. This can be done, but the page
break cannot be deleted causing a blank page to remain between the
chapter tittle and the the start of the text of the chapter. I foresee
this creating havoc when it comes time to compile the complete book.

Is there a way to delete this extra page, or will it be taken care of
when creating the full book.

Thanks in advance for any insight that you can Proved
Keith


-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org

Hi Keith,

I don't understand where the page break is coming from in the chapter I'm
looking at. I'm using AOO41WG4. I see a hard page break between the ToC

and

the Introduction. I don't see one between the paragraph with the heading
"Publication date and software version" and the heading for the ToC but
something causes the ToC heading to be on a new page. Does that agree

with

what you see? What exactly do you delete to get the blank page? Should I

be

looking at another document?
Francis


Francis & Michele;

Yes That is what I see. What I do to create that blank page is to first
select the Toc Header and change the style to


-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org

Ok, I made some progress. The key is that the page with the Copyright

heading and the pages with the ToC are in section. Here is what I did on a
copy of AOO41WG4.
-
Select the menu Format -> Sections.
Select Section 1 on the left. That is the only section in this document but
others may have more sections
Click Options
Set the background to red
Click OK twice to get back to the document and confirm that the text I want
to delete now has a red background.
Go back to Format -> Sections.
Pick Section 1.
Click Remove.
Click OK
The red background is now gone and I can delete the text and ToC without
generating a blank page.

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

Thank you so much Francis. I will follow those directions and see how it 
all works out. Again, thank you so much!


Keith



-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org



Re: Need help stripping front matter from chapter files

2023-07-04 Thread F Campos Costero
On Tue, Jul 4, 2023 at 12:02 PM Keith N. McKenna 
wrote:

> F Campos Costero wrote:
> > On Sun, Jul 2, 2023 at 5:44 PM Keith N. McKenna <
> keith.mcke...@comcast.net>
> > wrote:
> >
> >> Greetings all;
> >>
> >> As I am getting ready to start publishing some of the Writer Guide's
> >> chapter files I am running across a problem stripping the front matter
> >> from the files to be able to then combine them into the complete book.
> >>
> >> The problem is with the heading for the TOC. As it is not a part of the
> >> TOC, it has to be deleted separately. This can be done, but the page
> >> break cannot be deleted causing a blank page to remain between the
> >> chapter tittle and the the start of the text of the chapter. I foresee
> >> this creating havoc when it comes time to compile the complete book.
> >>
> >> Is there a way to delete this extra page, or will it be taken care of
> >> when creating the full book.
> >>
> >> Thanks in advance for any insight that you can Proved
> >> Keith
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
> >> For additional commands, e-mail: doc-h...@openoffice.apache.org
> >>
> >> Hi Keith,
> > I don't understand where the page break is coming from in the chapter I'm
> > looking at. I'm using AOO41WG4. I see a hard page break between the ToC
> and
> > the Introduction. I don't see one between the paragraph with the heading
> > "Publication date and software version" and the heading for the ToC but
> > something causes the ToC heading to be on a new page. Does that agree
> with
> > what you see? What exactly do you delete to get the blank page? Should I
> be
> > looking at another document?
> > Francis
> >
> Francis & Michele;
>
> Yes That is what I see. What I do to create that blank page is to first
> select the Toc Header and change the style to
>
>
> -
> To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: doc-h...@openoffice.apache.org
>
> Ok, I made some progress. The key is that the page with the Copyright
heading and the pages with the ToC are in section. Here is what I did on a
copy of AOO41WG4.
-
Select the menu Format -> Sections.
Select Section 1 on the left. That is the only section in this document but
others may have more sections
Click Options
Set the background to red
Click OK twice to get back to the document and confirm that the text I want
to delete now has a red background.
Go back to Format -> Sections.
Pick Section 1.
Click Remove.
Click OK
The red background is now gone and I can delete the text and ToC without
generating a blank page.

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


Re: Need help stripping front matter from chapter files

2023-07-04 Thread Keith N. McKenna

F Campos Costero wrote:

On Sun, Jul 2, 2023 at 5:44 PM Keith N. McKenna 
wrote:


Greetings all;

As I am getting ready to start publishing some of the Writer Guide's
chapter files I am running across a problem stripping the front matter
from the files to be able to then combine them into the complete book.

The problem is with the heading for the TOC. As it is not a part of the
TOC, it has to be deleted separately. This can be done, but the page
break cannot be deleted causing a blank page to remain between the
chapter tittle and the the start of the text of the chapter. I foresee
this creating havoc when it comes time to compile the complete book.

Is there a way to delete this extra page, or will it be taken care of
when creating the full book.

Thanks in advance for any insight that you can Proved
Keith


-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org

Hi Keith,

I don't understand where the page break is coming from in the chapter I'm
looking at. I'm using AOO41WG4. I see a hard page break between the ToC and
the Introduction. I don't see one between the paragraph with the heading
"Publication date and software version" and the heading for the ToC but
something causes the ToC heading to be on a new page. Does that agree with
what you see? What exactly do you delete to get the blank page? Should I be
looking at another document?
Francis


Francis & Michele;

Yes That is what I see. What I do to create that blank page is to first 
select the Toc Header and change the style to



-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org



Re: Need help stripping front matter from chapter files

2023-07-04 Thread Michele Petrovsky
Keith, have you considered looking for a "rogue" (manually inserted) page
break in that area?


On Tue, Jul 4, 2023 at 11:08 AM Keith N. McKenna 
wrote:

> F Campos Costero wrote:
> > On Sun, Jul 2, 2023 at 5:44 PM Keith N. McKenna <
> keith.mcke...@comcast.net>
> > wrote:
> >
> >> Greetings all;
> >>
> >> As I am getting ready to start publishing some of the Writer Guide's
> >> chapter files I am running across a problem stripping the front matter
> >> from the files to be able to then combine them into the complete book.
> >>
> >> The problem is with the heading for the TOC. As it is not a part of the
> >> TOC, it has to be deleted separately. This can be done, but the page
> >> break cannot be deleted causing a blank page to remain between the
> >> chapter tittle and the the start of the text of the chapter. I foresee
> >> this creating havoc when it comes time to compile the complete book.
> >>
> >> Is there a way to delete this extra page, or will it be taken care of
> >> when creating the full book.
> >>
> >> Thanks in advance for any insight that you can Proved
> >> Keith
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
> >> For additional commands, e-mail: doc-h...@openoffice.apache.org
> >>
> >> Hi Keith,
> > I don't understand where the page break is coming from in the chapter I'm
> > looking at. I'm using AOO41WG4. I see a hard page break between the ToC
> and
> > the Introduction. I don't see one between the paragraph with the heading
> > "Publication date and software version" and the heading for the ToC but
> > something causes the ToC heading to be on a new page. Does that agree
> with
> > what you see? What exactly do you delete to get the blank page? Should I
> be
> > looking at another document?
> > Francis
> >
> Yes, that is what I am seeing. What needs to be done is to delete
> everything but the Chapter title and subtitle. To create that blank page
> I first select the TOC heading and change it to text body to remove the
> the bottom border, then select the copyright page and the entire TOC,
> then either cut or hit the delete key.
>
> Everything deletes but leaves a blank page between the tittle page and
> the start of the actual text. I have tried most everything I can think
> of to remove that blank page without success.
>
> Regards
> Keith
>
>
> -
> To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: doc-h...@openoffice.apache.org
>
>


Re: Need help stripping front matter from chapter files

2023-07-04 Thread Keith N. McKenna

F Campos Costero wrote:

On Sun, Jul 2, 2023 at 5:44 PM Keith N. McKenna 
wrote:


Greetings all;

As I am getting ready to start publishing some of the Writer Guide's
chapter files I am running across a problem stripping the front matter
from the files to be able to then combine them into the complete book.

The problem is with the heading for the TOC. As it is not a part of the
TOC, it has to be deleted separately. This can be done, but the page
break cannot be deleted causing a blank page to remain between the
chapter tittle and the the start of the text of the chapter. I foresee
this creating havoc when it comes time to compile the complete book.

Is there a way to delete this extra page, or will it be taken care of
when creating the full book.

Thanks in advance for any insight that you can Proved
Keith


-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org

Hi Keith,

I don't understand where the page break is coming from in the chapter I'm
looking at. I'm using AOO41WG4. I see a hard page break between the ToC and
the Introduction. I don't see one between the paragraph with the heading
"Publication date and software version" and the heading for the ToC but
something causes the ToC heading to be on a new page. Does that agree with
what you see? What exactly do you delete to get the blank page? Should I be
looking at another document?
Francis

Yes, that is what I am seeing. What needs to be done is to delete 
everything but the Chapter title and subtitle. To create that blank page 
I first select the TOC heading and change it to text body to remove the 
the bottom border, then select the copyright page and the entire TOC, 
then either cut or hit the delete key.


Everything deletes but leaves a blank page between the tittle page and 
the start of the actual text. I have tried most everything I can think 
of to remove that blank page without success.


Regards
Keith


-
To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
For additional commands, e-mail: doc-h...@openoffice.apache.org



Re: Need help stripping front matter from chapter files

2023-07-03 Thread F Campos Costero
On Sun, Jul 2, 2023 at 5:44 PM Keith N. McKenna 
wrote:

> Greetings all;
>
> As I am getting ready to start publishing some of the Writer Guide's
> chapter files I am running across a problem stripping the front matter
> from the files to be able to then combine them into the complete book.
>
> The problem is with the heading for the TOC. As it is not a part of the
> TOC, it has to be deleted separately. This can be done, but the page
> break cannot be deleted causing a blank page to remain between the
> chapter tittle and the the start of the text of the chapter. I foresee
> this creating havoc when it comes time to compile the complete book.
>
> Is there a way to delete this extra page, or will it be taken care of
> when creating the full book.
>
> Thanks in advance for any insight that you can Proved
> Keith
>
>
> -
> To unsubscribe, e-mail: doc-unsubscr...@openoffice.apache.org
> For additional commands, e-mail: doc-h...@openoffice.apache.org
>
> Hi Keith,
I don't understand where the page break is coming from in the chapter I'm
looking at. I'm using AOO41WG4. I see a hard page break between the ToC and
the Introduction. I don't see one between the paragraph with the heading
"Publication date and software version" and the heading for the ToC but
something causes the ToC heading to be on a new page. Does that agree with
what you see? What exactly do you delete to get the blank page? Should I be
looking at another document?
Francis