29 August, 2008
05 August, 2008
Interactive Font Size Adjustment in Emacs. About time.
(defun sacha/increase-font-size ()
(interactive)
(set-face-attribute 'default
nil
:height
(ceiling (* 1.10
(face-attribute 'default :height)))))
(defun sacha/decrease-font-size ()
(interactive)
(set-face-attribute 'default
nil
:height
(floor (* 0.9
(face-attribute 'default :height)))))
(global-set-key (kbd "C-+") 'sacha/increase-font-size)
(global-set-key (kbd "C--") 'sacha/decrease-font-size)
idx =(a>0) % returns 1 if true, 0 otherwise
A=magic(4) % create a matrix
[r,c,v]=find(A>10) %get indices + vector of elements satisfying the conditions
N=(A>3) % produce matrix with same dimensions as A, with 1 and zeros according to condition
pretty(expression)
%and
latex(expression) % as the names suggest
Subscribe to:
Posts (Atom)