| 1 |
(TeX-add-style-hook "labbook" |
| 2 |
(lambda () |
| 3 |
(TeX-add-symbols |
| 4 |
'("newexperiment" "abbreviation" t) |
| 5 |
'("newsubexperiment" "abbreviation" t) |
| 6 |
) |
| 7 |
(setq LaTeX-largest-level (LaTeX-section-level "chapter")) |
| 8 |
;; load basic definitons |
| 9 |
(TeX-run-style-hooks "scrbase") |
| 10 |
(TeX-run-style-hooks "scrbook") |
| 11 |
(make-local-variable 'LaTeX-section-list) |
| 12 |
(setq LaTeX-section-list |
| 13 |
'(("part" 0) |
| 14 |
("labday" 1) |
| 15 |
("chapter" 1) |
| 16 |
("experiment" 2) |
| 17 |
("section" 2) |
| 18 |
("subexperiment" 3) |
| 19 |
("subsection" 3) |
| 20 |
("subsubsection" 4) |
| 21 |
("paragraph" 5) |
| 22 |
("subparagraph" 6) |
| 23 |
("addpart" 0) |
| 24 |
("addsec" 2) |
| 25 |
("minisec" 7))) |
| 26 |
(setq LaTeX-section-label |
| 27 |
'(("chapter" . "day:") |
| 28 |
("labday" . "day:") |
| 29 |
("section" . "sec:") |
| 30 |
("experiment" . "sec:") |
| 31 |
("subexperiment" . "sec:") |
| 32 |
("subsection" . "sec:"))) |
| 33 |
(if (fboundp 'reftex-add-section-levels) |
| 34 |
(reftex-add-section-levels '(("labday" . 1) |
| 35 |
("experiment" . 2) |
| 36 |
("subexperiment" . 3)))) |
| 37 |
)) |
| 38 |
|
| 39 |
|