Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 2.9 KB

README.org

File metadata and controls

70 lines (58 loc) · 2.9 KB

toc layer

img/toc.png

Table of Contents

Description

Spacemacs layer providing toc-mode for easily creating, cleaning, adding and managing Table Of Contents (TOC) of pdf and djvu documents

Features:

  • 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

Usage

See toc-mode documentation

Installation

Preparation

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.

Install

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.

Key bindings

all-modes (i.e. all steps)

Key BindingDescription
C-c C-cdispatch (next step)

toc-cleanup-mode

C-c C-jtoc-join-next-unnumbered-lines

toc-mode (tablist)

TABpreview/jump-to-page
right/lefttoc-in/decrease-remaining
C-right/C-lefttoc-in/decrease-remaining and view page
S-right/S-leftin/decrease pagenumber current entry
C-down/C-upscroll document other window (only when other buffer shows document)
S-down/S-upfull page scroll document other window ( idem )