1 ;;; texi2latex.el --- convert a texi file into a LaTeX file.
2 ;; Copyright (C) 1996 Lars Magne Ingebrigtsen
6 (defun latexi-discard-until (string)
7 (let ((beg (match-beginning 0)))
8 (unless (re-search-forward (concat "^@end +" string "[ \t]*\n") nil t)
9 (error "No end: %s" string))
10 (delete-region beg (match-end 0))))
12 (defun latexi-strip-line ()
13 (delete-region (progn (beginning-of-line) (point))
14 (progn (forward-line 1) (point))))
16 (defun latexi-switch-line (command arg)
18 (insert (format "\\%s{%s}\n" command arg)))
20 (defun latexi-index-command (command arg)
22 (insert (format "\\gnus%sindex{%s}\n"
23 (if (equal command "kindex") "k" "")
26 (defun latexi-begin-command (command)