paperaj-template - Write jounal papers or thesis in word and convert to LaTeX for submission! (All using GitHub actions!)
TL;DR: You can use any LaTeX template! Sections in the word document (see main.docx) with italicized headings are split into latex files that can be included into your template. See example in main.tex and inclusions.tex. The latex files in paperaj/ folder are autogenerated by the GitHub action from the word document!
This is a template that uses paperaj as a GitHub action.
Paperaj is a combination of bash and python scripts for converting MS word document to a latex document for academic journals. You can use any journal template for latex compilation. This can be used as a standalone script (needs pandoc and latex installed) or as a GitHub action. Just create a repo from this template that uses Paperaj GitHub action and the GitHub will latex-compile your manuscript!
Paperaj creates a set of plain latex files from the word document in the paperaj folder. Images, tables and referencing are supported during the conversion. These plain latex files can be included in the journal's latex template using: \input{filename}
. See main.docx in the template for word document format. See main.tex in the template to see how you can include paperaj generated latex files in the latex entry file. Just use this template that uses Paperaj GitHub action and the GitHub will latex-compile your manuscript!
If you find this project useful, give us a star. It helps others discover the project.
- Use this github template
- Use the docx in the template
- Add bib and tex files.
- set the names of docx, bib and latex entry in paperaj.env file
- This template generates LaTeX files on push to develop branch and compile to PDF on push to main branch!
If you want to run this locally in your computer (requires pandoc and latex installed), check out paperaj.
- BIBLIO=references.bib
- DOCX=article.docx
- PDF=article.pdf
- LATEXFOLDER=./ # no trailing /
- LATEXENTRY=main.tex
- BIBCOMPILE=bibtex or biber
- TEXCOMPILE=defer or yes
- ACRONYMS=sample.csv
- GLOSSARY=sample.csv
- MINDMAP=create
- CITETAG= cite or citep
- PANDOCPATH=
- Use TWO_COLUMN or LATEXROTATE in captions of figure
- FIGURE_ or TABLE_ for inline ref
\cite{AuthorYEAR} inline
- Just create a folder called flatten.
- Add required latex files to arxiv folder.
- The clean latex files without latex comments for submission is in the clean folder.
-
'** first'
-
'*** second'
-
'**_' adds title
-
Add the above to the Zotero notes for references
- jupyter-nbconvert --to pdf acnode.ipynb
- set repo permissions to read/write
- set entry.tex as overleaf entry