Skip to content

Instantly share code, notes, and snippets.

@cryptstopher
Last active May 1, 2018 12:49
Show Gist options
  • Save cryptstopher/3466fd2dbf4e35b934f6fb7e466335a4 to your computer and use it in GitHub Desktop.
Save cryptstopher/3466fd2dbf4e35b934f6fb7e466335a4 to your computer and use it in GitHub Desktop.
;; org mode latex standard manuscript formats
;; For your org file heading
;; #+LaTeX_CLASS: novel (or, short, whichever)
;; #+LATEX_HEADER: \runningtitle{Shortened Title}
;; #+LATEX_HEADER: \wordcount{?}
(require 'ox-latex)
(unless (boundp 'org-latex-classes)
(setq org-latex-classes nil))
(add-to-list 'org-latex-classes
'("novel"
"\\documentclass[novel,geometry,letterpaper,courier]{sffms}
\\surname{Bloch}
\\address{P.O. Box 666\u005C\u005C Beverly Hills, CA.\u005C\u005C mailbox@example.com}
\\disposable
[NO-DEFAULT-PACKAGES]
[NO-PACKAGES]"
("\\chapter*{%s}" )
("\\chapter{%s}" )))
(add-to-list 'org-latex-classes
'("short"
"\\documentclass[geometry,letterpaper,courier]{sffms}
\\surname{Bloch}
\\address{P.O. Box 666\u005C\u005C Beverly Hills, CA.\u005C\u005C mailbox@example.com}
\\disposable
[NO-DEFAULT-PACKAGES]
[NO-PACKAGES]"
("\\newscene{} %% %s" )
("\\newscene{} %% %s" )))
(setq org-latex-to-pdf-process '("pdflatex %f"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment