From d4077b675a667fe17f6e3a901f767193c549c685 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 21 Mar 2006 09:22:32 +0000 Subject: [PATCH] move unsrtdon and add curve.el --- emacs_el/curve.el | 110 ++++++++++++++++++++++++++++ texmf/bibtex/{ => bst}/unsrtdon.bst | 0 texmf/ls-R | 48 +++++++++++- 3 files changed, 156 insertions(+), 2 deletions(-) create mode 100644 emacs_el/curve.el rename texmf/bibtex/{ => bst}/unsrtdon.bst (100%) diff --git a/emacs_el/curve.el b/emacs_el/curve.el new file mode 100644 index 0000000..245d19a --- /dev/null +++ b/emacs_el/curve.el @@ -0,0 +1,110 @@ +;;; curve.el --- AUC-TeX style file for CurVe + +;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Didier Verna. + +;; Author: Didier Verna +;; Maintainer: Didier Verna +;; Created: Tue Apr 18 14:49:29 2000 +;; Last Revision: Wed May 19 16:33:24 2004 +;; Keywords: tex abbrev data + +;; This file is part of CurVe. + +;; CurVe may be distributed and/or modified under the +;; conditions of the LaTeX Project Public License, either version 1.1 +;; of this license or (at your option) any later version. +;; The latest version of this license is in +;; http://www.latex-project.org/lppl.txt +;; and version 1.1 or later is part of all distributions of LaTeX +;; version 1999/06/01 or later. + +;; CurVe consists of all files listed in the file `README'. + + +;;; Commentary: + +;; Contents management by FCM version 0.1-b2. + + +;;; Code: + +(defun curve-rubric-file (optional &optional prompt) + "Prompt for a CurVe rubric filename in the current directory. + +Caution: because of the flavor mechanism of CurVe, this function will use +the choosen file name sans the last TWO extensions." + (TeX-argument-insert + (file-name-sans-extension + (file-name-sans-extension + (read-file-name (TeX-argument-prompt optional + prompt "Rubric file") + "" "" nil))) + optional)) + +(defun curve-rubric-item () + ;; Ideally, we should have a way (like, a prefix) to specify either an + ;; entry, an entry* or a subrubric. But that would require to hack AUC-TeX + ;; in order to pass an optional argument to LaTeX-insert-item. + (TeX-insert-macro "entry*")) + +(add-hook 'LaTeX-mode-hook + (lambda () + (setq LaTeX-item-list + (cons '("rubric" . curve-rubric-item) LaTeX-item-list)))) + + +(TeX-add-style-hook "curve" + (function + (lambda () + (TeX-add-symbols + '("photo" [ "Placement (l, c or r)" ] t) + '("photosep") + '("photoscale" t) + '("leftheader" t) + '("rightheader" t) + '("headerscale" t) + '("headerspace") + '("makeheaders" [ "Alignment (t, c or b)" ]) + + '("title" "Title") + '("subtitle" "Subtitle") + '("titlespace") + '("titlefont" "Font for title") + '("subtitlefont" "Font for subtitle") + '("maketitle") + + '("flavor" "Flavor") + '("makerubric" curve-rubric-file) + + '("rubricalignment" "Alignment (l, c, r, cl, cc)") + '("rubricfont" "For for rubrics") + '("rubricspace") + + '("subrubric" "Subrubric name") + '("subrubricalignment" "Alignment (l, c, r, cl, cc)") + '("subrubricfont" "Font for subrubrics") + '("subrubricspace") + '("subrubricbeforespace") + + '("entry" [ "Key" ] t) + '("entry*" [ "Key" ]) + '("keyfont" "Font for keys") + '("keyalignment" "Alignment (l, c, or r)") + '("prefix" "Prefix command") + + '("continuedname" "Continuation name") + '("listpubname" "List of publications name") + ) + (LaTeX-add-environments + '("rubric" "Name") + ) + ))) + + + + +;;; Local variables: +;;; eval: (put 'TeX-add-style-hook 'lisp-indent-function 1) +;;; End: + +;;; curve.el ends here diff --git a/texmf/bibtex/unsrtdon.bst b/texmf/bibtex/bst/unsrtdon.bst similarity index 100% rename from texmf/bibtex/unsrtdon.bst rename to texmf/bibtex/bst/unsrtdon.bst diff --git a/texmf/ls-R b/texmf/ls-R index d549b88..68e02f7 100644 --- a/texmf/ls-R +++ b/texmf/ls-R @@ -14,9 +14,49 @@ realcalc.tex tex ./bibtex: +bst +.svn + +./bibtex/bst: .svn unsrtdon.bst +./bibtex/bst/.svn: +empty-file +entries +format +prop-base +props +README.txt +text-base +tmp +wcprops + +./bibtex/bst/.svn/prop-base: +unsrtdon.bst.svn-base + +./bibtex/bst/.svn/props: +unsrtdon.bst.svn-work + +./bibtex/bst/.svn/text-base: +unsrtdon.bst.svn-base + +./bibtex/bst/.svn/tmp: +prop-base +props +text-base +wcprops + +./bibtex/bst/.svn/tmp/prop-base: + +./bibtex/bst/.svn/tmp/props: + +./bibtex/bst/.svn/tmp/text-base: + +./bibtex/bst/.svn/tmp/wcprops: + +./bibtex/bst/.svn/wcprops: + ./bibtex/.svn: empty-file entries @@ -275,6 +315,7 @@ tfm.svn-base prop-base props text-base +tfm.tmp wcprops ./fonts/.svn/tmp/prop-base: @@ -606,6 +647,7 @@ wcprops ./.svn/prop-base: aliases.svn-base +envlab.sty.svn-base invoice.def.svn-base invoice.sty.svn-base ls-R.svn-base @@ -613,6 +655,7 @@ realcalc.tex.svn-base ./.svn/props: aliases.svn-work +envlab.sty.svn-work invoice.def.svn-work invoice.sty.svn-work ls-R.svn-work @@ -620,6 +663,7 @@ realcalc.tex.svn-work ./.svn/text-base: aliases.svn-base +envlab.sty.svn-base invoice.def.svn-base invoice.sty.svn-base ls-R.svn-base @@ -666,14 +710,13 @@ tmp wcprops ./tex/latex/.svn/prop-base: -curve.cls.svn-base +envlab.sty.svn-base exam.cls.svn-base invoice.def.svn-base invoice.sty.svn-base realcalc.tex.svn-base ./tex/latex/.svn/props: -curve.cls.svn-work envlab.sty.svn-work exam.cls.svn-work invoice.def.svn-work @@ -682,6 +725,7 @@ realcalc.tex.svn-work ./tex/latex/.svn/text-base: curve.cls.svn-base +envlab.sty.svn-base exam.cls.svn-base invoice.def.svn-base invoice.sty.svn-base -- 2.39.5