From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dominik Schrempf Subject: Re: Bug: Error upon HTML export of LaTeX source code [8.3.4 (release_8.3.4-831-gbf93e1 @ /home/dominik/.emacs.d/org-mode/lisp/)] Date: Sat, 28 May 2016 12:34:58 +0200 Message-ID: <87eg8mwjvx.fsf@gmail.com> References: <87k2inznzo.fsf@gmail.com> <871t4sa656.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6baG-0000AC-EB for emacs-orgmode@gnu.org; Sat, 28 May 2016 06:35:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6baA-0003XB-9I for emacs-orgmode@gnu.org; Sat, 28 May 2016 06:35:07 -0400 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:33132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6baA-0003Wn-0N for emacs-orgmode@gnu.org; Sat, 28 May 2016 06:35:02 -0400 Received: by mail-lf0-x236.google.com with SMTP id s64so31142481lfe.0 for ; Sat, 28 May 2016 03:35:01 -0700 (PDT) Received: from localhost (cpe.xe-3-1-0-406.slt27nqe10.dk.customer.tdc.net. [83.91.92.170]) by smtp.gmail.com with ESMTPSA id z132sm3595178lff.46.2016.05.28.03.34.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 May 2016 03:34:59 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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 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,