Hi, All, While I try the "per-file basis in a source code block" mode, It tells me: No definition for class `per-file-class' in `org-export-latex-classes' I command $ emacs -D -nw --no-splash --batch --kill --file tt1.org --funcall org-export-as-latex And it tells me: Loading 00debian-vars... Loading /etc/emacs/site-start.d/50asymptote.el (source)... Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)... Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)... Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)... Loading /etc/emacs/site-start.d/50geiser.el (source)... Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)... Loading cjk-enc... Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)... Loading /etc/emacs/site-start.d/50org-mode.el (source)... Loading /etc/emacs/site-start.d/50python-docutils.el (source)... Loading /etc/emacs/site-start.d/50thailatex.el (source)... OVERVIEW Exporting to LaTeX... No definition for class `per-file-class' in `org-export-latex-classes' And no positive response whill I try to move the source block at begin. And it is true that this can be right done once I define the `per-file-class' in .emacs. Regards, Wolfkin