summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/labbook/labbook.el
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/labbook/labbook.el
Initial commit
Diffstat (limited to 'macros/latex/contrib/labbook/labbook.el')
-rw-r--r--macros/latex/contrib/labbook/labbook.el39
1 files changed, 39 insertions, 0 deletions
diff --git a/macros/latex/contrib/labbook/labbook.el b/macros/latex/contrib/labbook/labbook.el
new file mode 100644
index 0000000000..a71af8b92a
--- /dev/null
+++ b/macros/latex/contrib/labbook/labbook.el
@@ -0,0 +1,39 @@
+(TeX-add-style-hook "labbook"
+ (lambda ()
+ (TeX-add-symbols
+ '("newexperiment" "abbreviation" t)
+ '("newsubexperiment" "abbreviation" t)
+ )
+ (setq LaTeX-largest-level (LaTeX-section-level "chapter"))
+ ;; load basic definitons
+ (TeX-run-style-hooks "scrbase")
+ (TeX-run-style-hooks "scrbook")
+ (make-local-variable 'LaTeX-section-list)
+ (setq LaTeX-section-list
+ '(("part" 0)
+ ("labday" 1)
+ ("chapter" 1)
+ ("experiment" 2)
+ ("section" 2)
+ ("subexperiment" 3)
+ ("subsection" 3)
+ ("subsubsection" 4)
+ ("paragraph" 5)
+ ("subparagraph" 6)
+ ("addpart" 0)
+ ("addsec" 2)
+ ("minisec" 7)))
+ (setq LaTeX-section-label
+ '(("chapter" . "day:")
+ ("labday" . "day:")
+ ("section" . "sec:")
+ ("experiment" . "sec:")
+ ("subexperiment" . "sec:")
+ ("subsection" . "sec:")))
+ (if (fboundp 'reftex-add-section-levels)
+ (reftex-add-section-levels '(("labday" . 1)
+ ("experiment" . 2)
+ ("subexperiment" . 3))))
+))
+
+