Exclude page numbers from TOC

Good morning
I am trying (still!) to createsomething for Kindle.
Amazon requires to have a Table of Contents with working links, but NO
page numbers.
I have been reading to the official LO documentation and searched the
net, but all I can find is, how
to INCLUDE, maybe set, page numbers.

So far I was not able to find out the trick required to exclude page
numbers.
I would appreciate, if someone could point me into the right direction.

Thank you,
Thomas

Thomas,
I can tell you how to remove the page number, but I have no idea how to insert a link in its place.
To remove the page number from the TOC:

   1. Right click on the TOC with the unwanted page numbers and select
      the edit option.
   2. In the dialog, select the "Entries" tab at the top.
   3. In the "Structure" line, there is a [ # ] item (for Page number)
      on the right end. Select this item and press Delete.
   4. Click OK.
   5. Right click on the TOC again and select "Update index/table".
   6. The page numbers should disappear. (I say "should", because I
      have never actually needed to do this.)

Note that there is a "Hyperlink" button on the "Entries" tab which may be what you want. Maybe someone else on this forum can help you with that. Note also, that you may wish to remove the hanging tab [ T ] on the right end now, which would remove the ellipses ("....") on the end of the TOC entry.
Hope this helps.
Girvin Herr

Thomas Blasejewicz wrote:

This wasn't my problem to begin with, but I just tried Girvin's suggestion for fun and it didn't work for me. I deleted both the "tab" and "page number" entries. Updating the TOC did nothing. I tried deleting the TOC and starting from scratch, this time not including the dot leader tab or the page number. When I generated the TOC, it gave me both page numbers and dot leaders anyway.

I imagine I'm doing something wrong as I generally blame myself before blaming the program. But....

This is one feature of LO (and OO before it) that I've always despised. There has to be a better, more intuitive way to generate a TOC.

I would recommend that the LO developers take a look at Atlantis (www.atlantiswordprocessor.com). It generates TOC's much more easily.

I'm still using LO 3.6.5.2 with Win7.

Virgil

Virgil,
That's weird. I just tried the process on one of my documents with a relatively large TOC and it worked fine. I did notice one thing I failed to mention: The "Structure" format is not global, it is by TOC level (the list to the left of the "Structure" line). Make sure you are changing the level that you are using in your TOC. For example, if TOC level 1 is assigned to Heading1 style and you only change that level, the other levels (i.e. Heading2...n) remain unchanged and will still have page numbers. If you are basing your TOC on multiple heading levels or styles, you must do this page number deletion on each one. Maybe that is what happened.

Another thing you might try is to verify the change. If you change the level and re-generate the TOC and nothing has changed, then go back into edit and verify the change is still there. If not, then something went wrong with saving/applying the change. If it is still changed, then maybe the level was incorrect or there is something else that is not in sync, such as TOC level to style mapping.

I agree with you about the un-intuitiveness of the TOC/Index process. A while back, I wanted an alphabetical index of the Heading style, in other words an alphabetical-sorted TOC, but the TOC function does not allow sorting and the index function, which can sort, did not allow indexing on styles. I had hundreds of entries, so it was impractical to add index marks for each entry. Arrgh!
The good thing is that the LO TOC/Index process has and is improving over the years. The OpenOffice 2.x TOC process was much worse than we have now.

I am using LO 3.6.4.3 on Linux.

Hope this helps.
Girvin Herr

Virgil Arrington wrote:

Never needed this, in fact, but anyway Girvin's suggestion is ok for me and this is what I'd have suggested (LibO 4.0.1 under Xubuntu but I can't see why this wouldn't do for any previous version and any other OS). I did this from scratch but, anyway again, this *should* work with any version of LibO/OOo/AOO. Or did I miss smthg?

Good morning
I tried to follow your instructions, but like with Mr. Arrington: nothing at all happens.

Actually ...
I deleted all items in the"structure" list, one by one, until nothing is left there and updated the TOC ...
NOTHING happens. Checked each time I deleted an item.
Now, that cannot be right.

Any other suggestions?
Thomas

(2013/04/06 4:06), Girvin R. Herr wrote:

I redid it with Girvin's reminder to delete the tab and page numbers for each TOC level used in my document. This time it worked, so as I suspected, for me at least, it was user error, or at least user ignorance.

Each level in the table of contents is formatted separately. I suppose this is a good thing as someone, sometime, might want one level to have page numbers and another to not have page numbers. I guess it's nice to have the flexibility, but often with flexibility comes complexity.

Virgil

(2013/04/06 3:25), Thomas Blasejewicz wrote:

I have been reading to the official LO documentation and searched the
net, but all I can find is, how
to INCLUDE, maybe set, page numbers.

So far I was not able to find out the trick required to exclude page
numbers.

Good afternoon from Japan
I followed Mr. Herr's instructions of removing page numbers and tabs
from ALL levels of the TOC.
That finally did the trick. Now I have a TOC with entries, but no
leading dots and page numbers,
just like Amazon wants it.

Thank you!

Glad it worked !

I just wanted to double check smthg on my system: removing page numbers
on some levels of the TOC, eg levels 1 and 3, leaving page numbers on
level 2. That worked, too.

My two euro-cents,

Hi :slight_smile:
I'm amazed people don't seem to download the Published Guides from
https://wiki.documentfoundation.org/Documentation/Publications

Just to poke around and see how they are done.  Jean-Francois' answer seems to do something they dothat makes it look more professional.  Of course the published guides have grown organically over the years so not all ideas are still good and there has been discussion about improving them on the Docs Team list but it's more important to get the guides out there and the tweaks are kinda under-the-bonnet stuff that most people wouldn't notice.  I learned a lot from pulling apart a couple of chapters i had downloaded and once i had made a hideous mess of it i was able to re-download the original again :)  Experimenting on my own work seldom gets a good result and i often forget to back-up before starting.

Regards from
Tom :slight_smile:

Hi :slight_smile:
Has this been resolved yet?  I found ToCs difficult to understand at first but after playing around with them while reading the published guides (errr, and using another chapter of the published guides as a quick way of generating a document large enough to need a ToC) i found i did end up with a clickable ToC but it's only clickable when exported to Pdf.  In Odt it needs Ctrl along with clicking but that seems to be fairly standard. 
https://wiki.documentfoundation.org/Documentation/Publications
Regards from
Tom :slight_smile:

Tom,
I believe so:

(2013/04/06 3:25), Thomas Blasejewicz wrote:

> I have been reading to the official LO documentation and searched the
> net, but all I can find is, how
> to INCLUDE, maybe set, page numbers.
>
> So far I was not able to find out the trick required to exclude page
> numbers.
  

Good afternoon from Japan
I followed Mr. Herr's instructions of removing page numbers and tabs
from ALL levels of the TOC.
That finally did the trick. Now I have a TOC with entries, but no
leading dots and page numbers,
just like Amazon wants it.

Thank you!

However, I am not sure about the OP's need for hyperlinks in the TOC. But he seems satisfied.
Girvin Herr

Tom Davies wrote:

Thank you for asking.
Yes, I did post a [SOLVED] message the other day.
No page numbers now and hyperlinks working.

(2013/04/09 3:58), Tom Davies wrote:

Hi :slight_smile:
Has this been resolved yet? I found ToCs difficult to understand at first but after playing around with them while reading the published guides (errr, and using another chapter of the published guides as a quick way of generating a document large enough to need a ToC) i found i did end up with a clickable ToC but it's only clickable when exported to Pdf. In Odt it needs Ctrl along with clicking but that seems to be fairly standard.
https://wiki.documentfoundation.org/Documentation/Publications
Regards from
Tom :slight_smile:

If I may add a word.
When trying to tackle a problem / understand a feature I have not used in the past ... I almost always have a printed copy of the
documention in one hand while tapping my way through the computer jungle with the other hand ...
In this case (chapter 12 of the Writer guide): remove page numbers from TOC.
There is no mentioning of "remove page numbers" "exclude page numbers" "delete page numbers" etc. as far as I can tell.
The only thing that points into that direction, which I only understood after advice I got on this list, was the mentioning of
"you can delete items from the structure (by selecting and deleting them)"

Maybe I am just too slow to get it in the first place.
But I intend to keep trying.
Thomas

Hi :slight_smile:
Ahh, brilliant :)  yes, i kinda remember that now.  It's good to see people are starting to add tags to subject-lines the "[Solved]" one is particularly useful, or would be if i hadn't gotten myself in such a mess with emails lately.

Many thanks and apols for the extra traffic
Congrats and regards from
Tom :slight_smile: