Spacemacs layer providing toc-mode for easily creating, cleaning, adding and managing Table Of Contents (TOC) of pdf and djvu documents
- Extract Table of Contents from documents via text layer or via Tesseract OCR
- Auto detect indentation levels from leading spaces or by selecting level separater
- Quickly adjust pagenumbers while viewing the document
- Add Table of Contents to document
This layer requires the djvu-layer (or simply the package djvu.el, although the layer is recommended) to be available. So first go there and install it.
First clone this layer to you private directory
git clone https://github.com/dalanicolai/toc-layer.git ~/.emacs.d/private/toc
Then to use the layer, add it to your ~/.spacemacs
. You will need to
add toc
to the existing dotspacemacs-configuration-layers
list in this
file.
all-modes (i.e. all steps)
Key Binding | Description |
---|---|
C-c C-c | dispatch (next step) |
toc-cleanup-mode
C-c C-j | toc-join-next-unnumbered-lines |
toc-mode (tablist)
TAB | preview/jump-to-page |
right/left | toc-in/decrease-remaining |
C-right/C-left | toc-in/decrease-remaining and view page |
S-right/S-left | in/decrease pagenumber current entry |
C-down/C-up | scroll document other window (only when other buffer shows document) |
S-down/S-up | full page scroll document other window ( idem ) |