Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
/ toc2txt Public archive

Create textual table of contents with page numbers from LaTeX toc

License

Notifications You must be signed in to change notification settings

afq984/toc2txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toc2txt

Create textual table of contents with page numbers from LaTeX toc.

Demo

Using example.toc generated from https://github.com/HW-Lee/nthu-thesis-template

$ python toc2txt.py example.toc
       誌謝.....................................v
       Acknowledgements.......................vii
       摘要....................................ix
       Abstract................................xi
1      Introduction.............................1
1.1    Motivation...............................1
1.2    Goal.....................................2
1.3    Divide and Conquer.......................2
1.3.1  Definition...............................2
1.3.2  Main Contribution of This Dissertation...3
       Reducing the Difficulty of Problems......3
       Independence of Subproblems..............3
       Parallelism..............................3
2      Overview of OMR..........................5
2.1    Binarization.............................5
2.2    Staff Detection and Removal..............6
       References...............................7

Usage

  1. Build your thesis PDF, generating the *.toc file in the process. For Overleaf see below.
  2. (Optional) pip install wcwidth to calculate widths of CJK characters correctly.
  3. python toc2txt.py filename.toc

Getting the .toc file from Overleaf

  1. Recompile
  2. Logs and output files
  3. Other logs & files

Why am I doing this

Ask NTHU

About

Create textual table of contents with page numbers from LaTeX toc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published