Skip to content

simple formatter for docx file which is generated by pandoc

License

Notifications You must be signed in to change notification settings

hoshi-sano/pandocxtyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pandocxtyle

simple formatter for docx file which is generated by pandoc.

Notice

this software is still a work in progress.

Help

  $ pandocxtyle --h
  $ pandocxtyle --help

Show word/document.xml

  $ pandocxtyle document show_xml -i input.docx

Insert Index

  $ pandocxtyle document add_index -i input.docx -o output.docx

Insert PageBreak Before Heading1

  $ pandocxtyle document pagebreak_h1 -i input.docx -o output.docx

Show All Table Styles

  $ pandocxtyle table show_style -i input.docx
  - style_id: a2
    name:     Normal Table
    based_on:
  - style_id: af6
    name:     Table Grid
    based_on: a2
  - style_id: 8
    name:     Table Grid 8
    based_on: a2
  - style_id: 40
    name:     Medium Shading 1 Accent 4
    based_on: a2
  ...

Substitute Table Style

  $ pandocxtyle table sub_style -i input.docx -o output.docx \
    --target 'TableNormal' --with 'YourTableStyle'

Add Sequential Number Field To Table Caption

  $ pandocxtyle table seq_caption -i input.docx -o output.docx \
    --label 'Table.'

Add Sequential Number Field To Image Caption

  $ pandocxtyle drawing seq_caption -i input.docx -o output.docx \
    --label 'Fig.'

License

This software is released under the MIT License, see LICENSE.txt.

About

simple formatter for docx file which is generated by pandoc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages