Function: math-comp-ascent
math-comp-ascent is an autoloaded and byte-compiled function defined
in calccomp.el.gz.
Signature
(math-comp-ascent C)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calccomp.el.gz
(defun math-comp-ascent (c)
(cond ((not (consp c)) 1)
((eq (car c) 'horiz)
(let ((accum 0))
(while (setq c (cdr c))
(setq accum (max accum (math-comp-ascent (car c)))))
accum))
((memq (car c) '(vcent vleft vright))
(if (> (nth 1 c) 0) (1+ (nth 1 c)) 1))
((eq (car c) 'supscr)
(max (math-comp-ascent (nth 1 c)) (1+ (math-comp-height (nth 2 c)))))
((eq (car c) 'subscr)
(math-comp-ascent (nth 1 c)))
((eq (car c) 'tag)
(math-comp-ascent (nth 2 c)))
(t 1)))