Re: Wrong type argument: symbolp, when inserting equation reftex-label

2023-11-13 Thread Arash Esbati
Jose Maria Martin Olalla  writes:

> I am using emacs GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+
> Version 3.24.37, cairo version 1.16.0) on Debian 12 with AucTeX to
> edit LaTeX2e documents.

Which version of AUCTeX are you using, and how did you install it?

> If the variable master-file is not set, ie when the file is the
> master-file, then upon inserting an equation C-c C-e the reftex mode
> correctly inserts the appropriate label \label{eq:NUM}.
>
> However, if the master-file variable is set the following message
> appears
>
> LaTeX-label: Wrong type argument: symbolp, #[128 " \"" [apply
> reftex-label reftex-label nil] 4 nil (advice-eval-interactive-spec
> (cadr (interactive-form 'reftex-label)))]

Can you come up with a recipe to reproduce this issue starting with
emacs -Q?  So something like:

  • emacs -Q
  • eval in scratch:
(progn
  (package-initialize t)
  (package-activate 'auctex))
  • Open a .tex file with TeX-master in local variables
  • M-x reftex-mode RET
  • M-x toggle-debug-on-error
  • C-c C-e equation RET

And the see what happens.

Best, Arash



Re: Preview with luatex, preamble caching, and tikz

2023-11-13 Thread Andreas Matthias
Ikumi Keita  wrote:

> Unfortunately, as described in the document[1], preview-latex isn't
> guaranteed to work under certain conditions when lualatex is used:
> ,
> | Note that support for preamble cache is limited for LaTeX variants. c.f.
> https://github.com/davidcarlisle/dpctex/issues/15
> |
> | XeLaTeX cannot use preamble cache at all. The reason is intrinsic in
> XeLaTeX, so preview-latex can’t help.
> | LuaLaTeX works with preamble cache only when the preamble is simple
> enough, i.e., when it doesn’t load opentype fonts and it doesn’t use lua
> codes in preamble.
> `
> I suppose loading tikz.sty leads to loading opentype fonts.
>

Thank you. You are right. Tikz pulls in luaotfload. I didn't pay attention
to that.

Regards,
Andreas