Function: preview-auctex-font-size

preview-auctex-font-size is a byte-compiled function defined in preview.el.

Signature

(preview-auctex-font-size)

Documentation

Calculate the default font size of document.

If packages, classes or styles were called with an option like 10pt, size is taken from the first such option if you had let your document be parsed by AUCTeX.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-auctex-font-size ()
  "Calculate the default font size of document.
If packages, classes or styles were called with an option
like 10pt, size is taken from the first such option if you
had let your document be parsed by AUCTeX."
  (let* ((regexp "\\`\\([0-9]+\\)pt\\'")
         (option
          (or
           (LaTeX-match-class-option regexp)
           ;; We don't have `LaTeX-match-package-option'.
           (TeX-member regexp
                       (apply #'append
                              (mapcar #'cdr LaTeX-provided-package-options))
                       #'string-match))))
    (if option (string-to-number (match-string 1 option)))))