codebots.bots.latexbot.LatexBot.convert_overleaf_to_docx#

Method

LatexBot.convert_overleaf_to_docx(document_code, output_path=None, open_docx=True, upload=False)[source]#

convert the overleaf project into a .docx file. Any .tex file in the overleaf repository will be converted into a .docx file with the same name.

Parameters:
document_codestr

code of the overleaf project. you can find in the address bar in your broweser when you open the overleaf project.

output_pathstr, optional

path to the output .docx file, by default None. If not provided the file is saved in the temporary folder and therefore deleted. Use in combination with open_docx so you can save it as a different file.

open_docxbool, optional

open the docx file after creation, by default True. Use this to inspect the conversion and save the file in a different location.

uploadbool, optional

uploads the document to your google drive, by default False.

Notes

In order for the upload to succeed, you must configure the drivebot first by running drivebot configure -type=web -save=True in the command line.