Manuscript template in org for the first submission
The first submission of a research paper for peer review can be in a generic format as a PDF. It is silly to submit the manuscript as if it were a galley proof at this stage. The advantage of a plain generic template is that it can be submitted to many different journals.
This is an org-mode variant of the main.tex file in the MooersLab/manuscriptInLaTeX repo. This template is for people who prefer to write research papers in org. The support for writing in LaTeX in Emacs is also excellent.
Edit on-line in your favorite text editor
Editing via GhostTex on Overleaf
You can edit LaTeX documents stored on Overleaf inside Emacs or a half dozen other text editors via GhostText. See slides here here and video here. Note that I configured the Emacs Atomic package to open files from Overleaf in the LaTeX mode. This brings the full power of Emacs to Overleaf. Compiling tex files in Overleaf is faster.
Editing via GhostTex on GitHub
An alternative approach to collaborative editing is to do the editing on a private Github repo. GhostText enables editing of the text in the text area when in the edit mode on Github. Confuigure Atomic to cause Emacs to open org files from Github in org-mode. This approach assumes that all of the collaborators are using Emacs to do their editing. The non-Emacs users could just use the editing tools in GitHub to edit the file directly or you might be able to cofigure their editors to open org files via GhostText.
Installation
- Git clone the repo
git clone https://github.com/MooersLab/manuscriptInOrg.git
. - Copy main.org to a your project folder.
- Load main.org file in Emacs via the File pulldown menu or
C-x C-f
. - Edit the file to customize to your manuscript.
- Edit the paths to your global.bib file and your image files.
- Enter
C-c C-e l o
to compile and open the resulting PDF in your default PDF viewer.
Compiling takes several seconds on a 2018 MacBook Pro with 32 GB of RAM. There is a better way. The correpsonding LaTeX compiles faster in Overleaf, which also provides superior support for collaborative editing by non-LaTeX using colleagues. The latter is a deficiency in Emacs that some of working hard to address. Sadly, Overleaf does not read org files.
Assumptions
- LaTeX is installed with all of the required style files. I found my installation to be missing the breakcites.sty file. I installed this with the
sudo port install texlive-bibtex-extra
command. - Emacs is using used to edit the org file.
Postscript Oct 10, 2022
My approach was developed independently of another solution found here.
Postscript May 16, 2023
I had upgraded my operating system to Ventura. I had not migrated my macports properly. I found that I was missing the breakcites.sty file.
Related sites
- Writing log template in Org-mode
- Writing log template in LaTeX
- LaTeX manuscript template
- Org-mode manuscript template
- Workbook for 2022 for tracking time spent and words written by project
- Slideshow template in LaTeX
- Annotated bibliography Template in LaTeX
- Diary for 2022 in LaTeX
- Diary for 2023 in LaTeX
- latex-emacs profile
- default Emacs profile
- snippets for latex-mode in Emacs
- Quizzes about Emacs to improve recall of keybindings
- Slides from talk about GhostText, Data Science Workshop, July 2022
- Video link to talk about GhostText, Data Science Workshop, July 2022
- The writer's law
Note that latex-emacs profile has fuctions for converting LaTex lists into org-markdown lists.