Skip to content

A stupid tool to process the outputs of docx2latex.com to create clean latex content divided into chapters

License

Notifications You must be signed in to change notification settings

MartinoMensio/doc2latex_process_chapters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doc2latex utility tool

This tool, given a Google Doc exported to latex using https://www.docx2latex.com/, cleans up the content and produces the chapter files (and abstract) that can be loaded in another latex template.

To make this work, specific rules have to be used while writing the Google Docs document:

  • ensure to use Google Docs hierarchical headings
  • for the abstract write it between the title ( preceeded by the Abstract heading): its sections won't be displayed in the TOC.
  • footnotes to citations must be in the form Key:<BIBITEM_KEY> <ANY_TEXT CAN FOLLOW> where <BIBITEM_KEY> is the identifier of the bibitem.
  • for images substitution, add a [FIG:<figure_identifier> CAPTION:<caption to insert for the figure>] and use refs like [REF FIG:<figure_identifier>] where <figure_identifier> is the name of the pdf file to be placed in the folder figures.
  • for tables to be listed in TOC, use [TABLE:<table_identifier> CAPTION:<Any text there>], that can be referenced with [REF TABLE:<table_identifier>]
  • to have cross references use [REF <LABEL>] where <LABEL> has been used inside a declaration [LABEL:<LABEL>]

Procedure:

The results are:

  • media folder with all the pictures from the Google Doc. You may want to substitute them with vectorial pdfs
  • partials folder that will contain the abstract and the chapters

Note

This code is potentially full of bugs

About

A stupid tool to process the outputs of docx2latex.com to create clean latex content divided into chapters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages