When finished, press C-c C-c to merge the text back into the source file as comments.

You can use all Org-mode features: , LaTeX math , and bibliographic citations .

: Track your code and your writing in a single git history.

Use M-x outorg-export-as-org to create a standalone Org file.

:Instead of a separate .org file, you write your paper's outline and prose directly inside your code (e.g., a .py or .el file) using comment-based headings. Example for Python: ## * Introduction or ## ** Methodology .

Then, use the standard Org-mode export dispatcher ( C-c C-e ) to convert it to a finished paper.

allows you to fold/unfold these sections just like in Org-mode, making long drafts easy to navigate.

: Keep your data analysis code and the paper's discussion in the exact same file.