Hello, you are right. I found the problem. I had the following code in my initialization file to treat latex beamer \frametitle commands as sections.
(defun my-reftex-mode-hook () "Tell reftex to treat \frametitle as section commands." (add-to-list 'reftex-section-levels '("frametitle" . 2)) (reftex-reset-mode)) (add-hook 'reftex-mode-hook 'my-reftex-mode-hook) It turned out that (reftex-reset-mode) broke org mode html export. I thought that this line was needed to make reftex aware of the newly defined section labels but double checked now and it turns out that it doesn't need the reset anyway. Just so that you know the cause. Thanks and best wishes, Dominik On Mon, May 23 2016, Nicolas Goaziou wrote: > Hello, > > Dominik Schrempf <dominik.schre...@gmail.com> writes: > >> I try to export a fontified LaTeX source code listing with HTML export. >> It boils down to an error that is thrown upon execution of the following >> function during HTML export: >> >> (org-html-fontify-code "\\begin{tabular}{@{} l @{}}\n\\hline\nno >> leading space\\\\\n\\hline\n\\end{tabular}\n" "latex") >> >> The debugging information is: >> Debugger entered--Lisp error: (wrong-type-argument stringp nil) >> expand-file-name(nil) >> reftex-TeX-master-file() > > I cannot reproduce the error. > > I do not use reftex. However I tried to > > (add-hook 'TeX-mode-hook #'turn-on-reftex) > > to no avail. This might be something in your config. > > > Regards,