emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dominik Schrempf <dominik.schrempf@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87eg8mwjvx.fsf@gmail.com> (raw)
In-Reply-To: 871t4sa656.fsf@saiph.selenimh

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.schrempf@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,

      reply	other threads:[~2016-05-28 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-21 10:47 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/)] Dominik Schrempf
2016-05-23 20:09 ` Nicolas Goaziou
2016-05-28 10:34   ` Dominik Schrempf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eg8mwjvx.fsf@gmail.com \
    --to=dominik.schrempf@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).