# tab feature for text documents

Hello, I'm writing a book, and it's long.

I'd like to know if there is a way to have tabs like on a web browser, on in a spreadsheet document like Microsoft excel or libreoffice spreadsheets where I can flip through each tabbed sheet for my separate chapters.

I've googled it and looked around and I don't even know if other text products have such a feature.

It seems practical enough to have such a feature exist since it already exists in spreadsheets, but I just can't seem to find a way to add something like that.

I need to quickly flip between each section, or chapter of my book without having to constantly scroll up and down throughout the book.

I could of course generate a new document for each chapter, but that seems ludicrous, is there anything that can serve my purpose as of now? thanks.

edit retag close merge delete

Navigator (F5) allows to scroll instantly to any heading in your document.

( 2019-03-24 21:02:38 +0200 )edit

Sort by » oldest newest most voted

No need for new disjointed documents for each chapter. Rather, review working with Master Documents--it allows complex manuscripts to be placed under common styling and indexing. It provides a tailored Navigator for working with subdocuments--and toggling to its "regular" document view in the Navigator.

https://help.libreoffice.org/Writer/M...

more

What you are dreaming of may be an MDI interface. Sorry. You won't get it. See tfd#31481 e.g. (very old feature request).

If you need to have more than one Viewcontroller for a document, you need to create a second window for via >Window>New. That's surely not as handy as you would like it, but its usable. At least for a longer session the minute you may need to find an optimal arrangement for the windows should pay.

Simpler is to use only the Navigator, and if Headings aren't exactly what you want to jump to, to set Bookmarks.

Since I neither use much the Headings-option nor want to set bookmarks again and again - annd then to forget to delete the obsolete ones, I personally use the very primitive triple of one global variable and two Basic two-liners which are added to the Standard toolbar as sensitive text areas. See code below.

Global lastSavedSel

Sub rememberCurrentSelection(pEvent)
REM Parameter pEvent  (Value pEvent \ 4096 = pEvent SHR 11 unused so far.)
lastSavedSel = ThisComponent.CurrentSelection
End Sub

Sub selectAsRemembered(pEvent)
REM Parameter pEvent unused so far.
On Error Goto errorExit
ThisComponent.CurrentController.select(lastSavedSel)
errorExit:
End Sub


You can refine/enhance it, of course, but it works for me as it is because I only use it for one document per session..

more