Skip to content

Spacemacs layer for managing pdf and djvu Table of Contents with toc-mode

Notifications You must be signed in to change notification settings

jajpater/toc-layer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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 )

About

Spacemacs layer for managing pdf and djvu Table of Contents with toc-mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%