Wrong type argument: symbolp, when inserting equation reftex-label
Hi, 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. 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)))] and the equation environment is created without the automated \label{}. Emacs debugger backtrace outputs: Debugger entered--Lisp error: (wrong-type-argument symbolp #f(advice-wrapper :override reftex-label reftex-label)) fboundp(#f(advice-wrapper :override reftex-label reftex-label)) LaTeX-label("equation" environment) LaTeX-env-label("equation") apply(LaTeX-env-label "equation" nil) LaTeX-environment-menu("equation") LaTeX-environment(nil) funcall-interactively(LaTeX-environment nil) command-execute(LaTeX-environment) How can I get rid of these errors? -- José María Martín-Olalla --
Wrong type argument: symbolp, when inserting equation reftex-label
Hi, 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. 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)))] and the equation environment is created without the automated \label{}. Emacs debugger backtrace outputs: Debugger entered--Lisp error: (wrong-type-argument symbolp #f(advice-wrapper :override reftex-label reftex-label)) fboundp(#f(advice-wrapper :override reftex-label reftex-label)) LaTeX-label("equation" environment) LaTeX-env-label("equation") apply(LaTeX-env-label "equation" nil) LaTeX-environment-menu("equation") LaTeX-environment(nil) funcall-interactively(LaTeX-environment nil) command-execute(LaTeX-environment) How can I get rid of these errors?
Re: AUCTeX does not ask for width for \includegraphics macro anymore
On Nov 11, 2023 Arash Esbati wrote: > Kourosh Kalayeh writes: > >> On Nov 10, 2023 Arash Esbati wrote: >> >>> Great, glad this issue is resolved. I wonder if we should introduce >>> something similar to `TeX-arg-cite-note-p' for beamer which suppresses or >>> allows the query for the overlay specs? I'm not a beamer user, so I >>> can't tell. >> >> Yes, that makes perfect sense and it would be a great option to have. > > I see we already have > > (defcustom LaTeX-beamer-item-overlay-flag t > "If non-nil do prompt for an overlay in itemize-like environments." > :type 'boolean) > > in tex-style.el. It should be easy to add something like > `LaTeX-beamer-overlay-flag' to that file and then update beamer.el to > use the new flag; TeX-arg-conditional is our friend. Is there a > volunteer who wants to submit a patch for this? I would have loved to, but unfortunately, I don't have enough Lisp knowledge yet. Best, Kourosh
Re: Preview with luatex, preamble caching, and tikz
Hi Andreas, > Andreas Matthias writes: > I am facing an issue with previewing which seems to be triggered if all of > the following is true: >1) using luatex >2) preamble cache enabled >3) using tikz.sty > Note that everything is fine if one of the above statements is false. 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. [1] https://www.gnu.org/software/auctex/manual/preview-latex/Keys-and-lisp.html#Keys-and-lisp, Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopTheGenocide #CeasefireNOW
Re: Preparation for moving xparse.el into latex.el
Hi Arash, > Arash Esbati writes: > Before doing that and eating up another 10 regexp groups, I thought I > reduce some others with this change. I'd be grateful if others could > also have a look at this and double-check if I'm doing TRT here. I looked at the code. It seems good to me. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopTheGenocide #CeasefireNOW
Re: Preparation for moving xparse.el into latex.el
Ikumi Keita writes: > I looked at the code. It seems good to me. thanks for checking, Keita. That change is installed in AUCTeX repo. Best, Arash