Skip to content

In python-docx package, as I know, you cannot extract number headings of chapters, sections,.., for examples 1.1, 2.1.2,.. so I create the function to extract them from python-docx package

Notifications You must be signed in to change notification settings

nguyendangson/extract_number_heading_python-docx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

In python-docx package https://github.com/python-openxml/python-docx, as I know, you cannot extract number headings of chapters, sections like 1.1, 1.2,... so I create the python function to extract them.

Input: your path of docx files

Output: a list including number headings and name headings of docx files

Installation

In powershell, please start by "git clone https://github.com/nguyendangson/extract_number_heading_python-docx.git"

Then please run "pip install -r requirements.tx" to install python-docx or you can install python-docx by running "pip install python-docx"

Further Reading

This function was used as a solution for the following forum question:

About

In python-docx package, as I know, you cannot extract number headings of chapters, sections,.., for examples 1.1, 2.1.2,.. so I create the function to extract them from python-docx package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages