New function (jr/insert-latex-boilerplate)
authorJames Richardson <james@jamestechnotes.com>
Wed, 5 Apr 2017 16:50:44 +0000 (12:50 -0400)
committerJames Richardson <james@jamestechnotes.com>
Wed, 5 Apr 2017 16:50:44 +0000 (12:50 -0400)
Inserts standard LaTeX markup into an org file.

.emacs.d/config/org.el

index fd1ca5371f3d11795fb202bea13e8bfa2664819e..b041d0b8583cb12d124c486d35b6acfd2a79e8ef 100644 (file)
@@ -1137,3 +1137,50 @@ Late deadlines first, then scheduled, then non-late deadlines"
       org-jira-use-status-as-todo t)
 (require 'org-jira nil 'noerror)
 
+(defun jr/insert-latex-boilerplate ()
+    "Insert boilerplate into current buffer"
+  (interactive)
+  (insert "#+LATEX_CLASS: article
+#+LATEX_CLASS_OPTIONS:
+#+LATEX_HEADER:
+#+LATEX_HEADER_EXTRA:
+#+DESCRIPTION:
+#+KEYWORDS:
+#+SUBTITLE:
+#+LATEX_COMPILER: pdflatex
+#+DATE: \\today
+
+#+OPTIONS: ':nil *:t -:t ::t <:t H:10 \\n:nil ^:t arch:headline
+#+OPTIONS: author:t broken-links:nil c:nil creator:nil
+#+OPTIONS: d:(not \"LOGBOOK\") date:t e:t email:nil f:t inline:t num:t
+#+OPTIONS: p:nil pri:nil prop:nil stat:t tags:t tasks:t tex:t
+#+OPTIONS: timestamp:t title:t toc:nil todo:t |:t
+#+TITLE: tutorial
+#+AUTHOR: James Richardson
+#+EMAIL: james.richardson@lowes.com
+#+LANGUAGE: en
+#+SELECT_TAGS: export
+#+EXCLUDE_TAGS: noexport
+#+CREATOR: Emacs 25.1.1 (Org mode 9.0.5)
+
+#+LaTeX: \\thispagestyle{empty}
+
+#+BEGIN_abstract
+#+END_abstract
+
+#+LaTeX: \\newpage
+#+LaTex: \\twocolumn
+#+LaTeX: \\pagestyle{plain}
+#+LaTeX: \\setcounter{page}{1}
+#+LaTeX: \\pagenumbering{roman}
+
+#+LATEX: \\tableofcontents
+#+LATEX: \\listoftables
+#+LATEX: \\listoffigures
+#+LATEX: \\listoflistings
+#+LaTeX: \\onecolumn
+#+LaTeX: \\pagestyle{headings}
+#+LaTeX: \\setcounter{page}{1}
+#+LaTeX: \\pagenumbering{arabic}
+#+LaTeX: \\newpage
+#+LaTeX: \\appendix"))