Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dermatologist/paperaj
Collaboratively write journal papers in MS-Word and compile it to LaTeX!
https://github.com/dermatologist/paperaj
bibliography docx latex ms-word
Last synced: about 1 month ago
JSON representation
Collaboratively write journal papers in MS-Word and compile it to LaTeX!
- Host: GitHub
- URL: https://github.com/dermatologist/paperaj
- Owner: dermatologist
- Created: 2020-12-23T16:22:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T02:02:45.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T10:18:32.698Z (2 months ago)
- Topics: bibliography, docx, latex, ms-word
- Language: TeX
- Homepage: https://nuchange.ca
- Size: 129 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# paperaj - Write jounal papers in word and convert to LaTeX for submission!
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. **When used as a GitHub action, there is no need to clone this repository.** Just clone [this template](https://github.com/dermatologist/paperaj-public-template) that uses this GitHub action.
[![paperaj](https://github.com/dermatologist/paperaj/blob/develop/paperaj.drawio.svg)](https://github.com/dermatologist/paperaj/blob/develop/paperaj.drawio.svg)
## How it works
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](https://github.com/dermatologist/paperaj-public-template/blob/master/main.docx) in the template for word document format. See [main.tex](https://github.com/dermatologist/paperaj-public-template/blob/master/main.tex) in the template to see how you can include paperaj generated latex files in the latex entry file. Clone this repository only if you want to run this locally (needs pandoc and latex locally). Otherwise just use [this template](https://github.com/dermatologist/paperaj-public-template) that uses this GitHub action and the GitHub will latex-compile your manuscript!**See [main.docx](https://github.com/dermatologist/paperaj-public-template/blob/master/main.docx) for formatting instructions.**
## Usage
### As GitHub action (recommended)
* Use this [github template](https://github.com/dermatologist/paperaj-public-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](https://github.com/dermatologist/paperaj-public-template) generates LaTeX files on push to develop branch and compile to PDF on push to main branch!### Local (requires pandoc and latex installed)
* set the full path of docx, bib and latex entry in paperaj.env file
* run the script```
./article.sh paperaj.env
```
### Arguments in .env file
* 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=
### Figures* Use TWO_COLUMN or LATEXROTATE in captions of figure
* FIGURE_ or TABLE_ for inline ref### Referencing
\cite{AuthorYEAR} inline
#### Using Zotero
* [Use this csl](word2latex-pandoc.csl)
### Flatten into single latex file without inclusions
* Just create a folder called **flatten**.
### arXiv
* Add required latex files to **arxiv** folder.
### Clean version for submission
* The clean latex files without latex comments for submission is in the **clean** folder.
### Mindmapping
#### [plant UML](https://github.com/plantuml/plantuml/releases/download/v1.2022.14/plantuml-1.2022.14.jar)
* '** first'
* '*** second'
* '**_' adds title* Add the above to the Zotero notes for references
### Notebook to pdf
* jupyter-nbconvert --to pdf acnode.ipynb### Extract highlights from PDF
[pdfannots](https://pypi.org/project/pdfannots/)## Give us a star ⭐️
If you find this project useful, give us a star. It helps others discover the project.
## Contributors* [Bell Eapen](https://nuchange.ca) | [![Twitter Follow](https://img.shields.io/twitter/follow/beapen?style=social)](https://twitter.com/beapen)