File: labbook.el

package info (click to toggle)
texlive-extra 2005.dfsg.3-2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 377,316 kB
  • ctags: 5,643
  • sloc: perl: 40,098; makefile: 4,314; sh: 3,702; ansic: 1,571; xml: 559; java: 465; python: 411; csh: 319; pascal: 278; lisp: 248; tcl: 177; awk: 127; cpp: 114
file content (39 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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))))
))