GNU bug report logs - #68992
13.3.0; not displaying \newcommand defintions

Previous Next

Package: auctex;

Reported by: Sabarish V M <sabarish.science <at> gmail.com>

Date: Thu, 8 Feb 2024 16:37:02 UTC

Severity: normal

Tags: unreproducible

Found in version 13.3.0

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68992 in the body.
You can then email your comments to 68992 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#68992; Package auctex. (Thu, 08 Feb 2024 16:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sabarish V M <sabarish.science <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Thu, 08 Feb 2024 16:37:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sabarish V M <sabarish.science <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: 13.3.0; not displaying \newcommand defintions
Date: Thu, 8 Feb 2024 15:40:07 +0100
Hi,

The preview latex package does not render the "\newcommand" macros
properly.

Example,

\documentclass{template}
\title{Some title}
\author{XXX}
\begin{document}
\maketitle

\include{symbols} % The file contains all the macros defined
% It contains,
% \newcommand{\kb}{k_{\mathrm{B}}}
% \renewcommand{\d}{\mathrm{d}}

From classical Boltzmann statistics we know that the probability for finding any
particle in a given state $i$ is,
\[ \frac{N_i}{N} = \frac{\exp \left( - E_i / \kb T \right)}{Z\kb \d } \]
\include{chapters/01.introduction}
\include{chapters/appendix}

\end{document}

The symbol \kb and \d are not rendered at all. Sometimes they are
rendered and other times it throws an error saying "undefined symbols”.

Best,
Sabarish.



Information forwarded to bug-auctex <at> gnu.org:
bug#68992; Package auctex. (Fri, 09 Feb 2024 10:03:02 GMT) Full text and rfc822 format available.

Message #8 received at 68992 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Sabarish V M <sabarish.science <at> gmail.com>
Cc: 68992 <at> debbugs.gnu.org
Subject: Re: bug#68992: 13.3.0; not displaying \newcommand defintions
Date: Fri, 09 Feb 2024 19:02:09 +0900
Hi Sabarish,

>>>>> Sabarish V M <sabarish.science <at> gmail.com> writes:
> The preview latex package does not render the "\newcommand" macros
> properly.

> Example,

> \documentclass{template}
> \title{Some title}
> \author{XXX}
> \begin{document}
> \maketitle

> \include{symbols} % The file contains all the macros defined
> % It contains,
> % \newcommand{\kb}{k_{\mathrm{B}}}
> % \renewcommand{\d}{\mathrm{d}}

> From classical Boltzmann statistics we know that the probability for finding any
> particle in a given state $i$ is,
> \[ \frac{N_i}{N} = \frac{\exp \left( - E_i / \kb T \right)}{Z\kb \d } \]
> \include{chapters/01.introduction}
> \include{chapters/appendix}

> \end{document}

This document doesn't typeset for me because my TeX Live 2023 doesn't
have "template" class. After I replaced
\documentclass{template}
with
\documentclass{article}
, I can both typeset and use preview-latex for the files quoted below.
Hence I suppose that the issue isn't related directly to \newcommand and
suspect there is something incompatible with preview-latex in
the non-standard class file template.cls.

--- foo.tex ----------------------------------------------------------
\documentclass{article}
\title{Some title}
\author{XXX}
\begin{document}
\maketitle

\include{symbols}

From classical Boltzmann statistics we know that the probability for finding any
particle in a given state $i$ is,
\[ \frac{N_i}{N} = \frac{\exp \left( - E_i / \kb T \right)}{Z\kb \d } \]

\end{document}
----------------------------------------------------------------------

--- symbols.tex ------------------------------------------------------
\newcommand{\kb}{k_{\mathrm{B}}}
\renewcommand{\d}{\mathrm{d}}

%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: "foo"
%%% End:
----------------------------------------------------------------------

Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




Information forwarded to bug-auctex <at> gnu.org:
bug#68992; Package auctex. (Wed, 06 Mar 2024 20:07:02 GMT) Full text and rfc822 format available.

Message #11 received at 68992 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 68992 <at> debbugs.gnu.org, Sabarish V M <sabarish.science <at> gmail.com>
Subject: Re: bug#68992: 13.3.0; not displaying \newcommand defintions
Date: Wed, 06 Mar 2024 21:05:18 +0100
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

> Hi Sabarish,
>
>>>>>> Sabarish V M <sabarish.science <at> gmail.com> writes:
>> The preview latex package does not render the "\newcommand" macros
>> properly.
>
>> Example,
>
>> \documentclass{template}
>> \title{Some title}
>> \author{XXX}
>> \begin{document}
>> \maketitle
>
>> \include{symbols} % The file contains all the macros defined
>> % It contains,
>> % \newcommand{\kb}{k_{\mathrm{B}}}
>> % \renewcommand{\d}{\mathrm{d}}
>
>> From classical Boltzmann statistics we know that the probability for finding any
>> particle in a given state $i$ is,
>> \[ \frac{N_i}{N} = \frac{\exp \left( - E_i / \kb T \right)}{Z\kb \d } \]
>> \include{chapters/01.introduction}
>> \include{chapters/appendix}
>
>> \end{document}
>
> This document doesn't typeset for me because my TeX Live 2023 doesn't
> have "template" class. After I replaced
> \documentclass{template}
> with
> \documentclass{article}
> , I can both typeset and use preview-latex for the files quoted below.
> Hence I suppose that the issue isn't related directly to \newcommand and
> suspect there is something incompatible with preview-latex in
> the non-standard class file template.cls.
>
> --- foo.tex ----------------------------------------------------------
> \documentclass{article}
> \title{Some title}
> \author{XXX}
> \begin{document}
> \maketitle
>
> \include{symbols}
>
> From classical Boltzmann statistics we know that the probability for finding any
> particle in a given state $i$ is,
> \[ \frac{N_i}{N} = \frac{\exp \left( - E_i / \kb T \right)}{Z\kb \d } \]
>
> \end{document}
> ----------------------------------------------------------------------
>
> --- symbols.tex ------------------------------------------------------
> \newcommand{\kb}{k_{\mathrm{B}}}
> \renewcommand{\d}{\mathrm{d}}
>
> %%% Local Variables:
> %%% mode: LaTeX
> %%% TeX-master: "foo"
> %%% End:
> ----------------------------------------------------------------------

No further comments, therefore I'm closing this report.  We can reopen
if necessary.

Best, Arash




Added tag(s) unreproducible. Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Mar 2024 20:07:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 68992 <at> debbugs.gnu.org and Sabarish V M <sabarish.science <at> gmail.com> Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Mar 2024 20:07:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-auctex <at> gnu.org:
bug#68992; Package auctex. (Wed, 06 Mar 2024 20:31:01 GMT) Full text and rfc822 format available.

Message #18 received at 68992 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Sabarish V M <sabarish.science <at> gmail.com>
Cc: Ikumi Keita <ikumi <at> ikumi.que.jp>, 68992 <at> debbugs.gnu.org
Subject: Re: bug#68992: 13.3.0; not displaying \newcommand defintions
Date: Wed, 06 Mar 2024 21:29:12 +0100
Sabarish V M <sabarish.science <at> gmail.com> writes:

> Thank you the reply and support. Apologies for not getting back
> earlier. So it turns out that recompiling preview latex for the entire
> document is required. I always previewed the file only/ buffer
> only. Therefore it never worked.

Thanks for your response; so this is sorted out.

Best, Arash




Information forwarded to bug-auctex <at> gnu.org:
bug#68992; Package auctex. (Wed, 06 Mar 2024 21:48:02 GMT) Full text and rfc822 format available.

Message #21 received at 68992 <at> debbugs.gnu.org (full text, mbox):

From: Sabarish V M <sabarish.science <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>
Cc: Ikumi Keita <ikumi <at> ikumi.que.jp>, 68992 <at> debbugs.gnu.org
Subject: Re: bug#68992: 13.3.0; not displaying \newcommand defintions
Date: Wed, 6 Mar 2024 21:13:30 +0100
[Message part 1 (text/plain, inline)]
Hello Arash and Ikumi,

Thank you the reply and support. Apologies for not getting back earlier. So it turns out that recompiling preview latex for the entire document is required. I always previewed the file only/ buffer only. Therefore it never worked.

Best,
Sabarish.

> On 6. Mar 2024, at 21:05, Arash Esbati <arash <at> gnu.org> wrote:
> 
> Ikumi Keita <ikumi <at> ikumi.que.jp <mailto:ikumi <at> ikumi.que.jp>> writes:
> 
>> Hi Sabarish,
>> 
>>>>>>> Sabarish V M <sabarish.science <at> gmail.com> writes:
>>> The preview latex package does not render the "\newcommand" macros
>>> properly.
>> 
>>> Example,
>> 
>>> \documentclass{template}
>>> \title{Some title}
>>> \author{XXX}
>>> \begin{document}
>>> \maketitle
>> 
>>> \include{symbols} % The file contains all the macros defined
>>> % It contains,
>>> % \newcommand{\kb}{k_{\mathrm{B}}}
>>> % \renewcommand{\d}{\mathrm{d}}
>> 
>>> From classical Boltzmann statistics we know that the probability for finding any
>>> particle in a given state $i$ is,
>>> \[ \frac{N_i}{N} = \frac{\exp \left( - E_i / \kb T \right)}{Z\kb \d } \]
>>> \include{chapters/01.introduction}
>>> \include{chapters/appendix}
>> 
>>> \end{document}
>> 
>> This document doesn't typeset for me because my TeX Live 2023 doesn't
>> have "template" class. After I replaced
>> \documentclass{template}
>> with
>> \documentclass{article}
>> , I can both typeset and use preview-latex for the files quoted below.
>> Hence I suppose that the issue isn't related directly to \newcommand and
>> suspect there is something incompatible with preview-latex in
>> the non-standard class file template.cls.
>> 
>> --- foo.tex ----------------------------------------------------------
>> \documentclass{article}
>> \title{Some title}
>> \author{XXX}
>> \begin{document}
>> \maketitle
>> 
>> \include{symbols}
>> 
>> From classical Boltzmann statistics we know that the probability for finding any
>> particle in a given state $i$ is,
>> \[ \frac{N_i}{N} = \frac{\exp \left( - E_i / \kb T \right)}{Z\kb \d } \]
>> 
>> \end{document}
>> ----------------------------------------------------------------------
>> 
>> --- symbols.tex ------------------------------------------------------
>> \newcommand{\kb}{k_{\mathrm{B}}}
>> \renewcommand{\d}{\mathrm{d}}
>> 
>> %%% Local Variables:
>> %%% mode: LaTeX
>> %%% TeX-master: "foo"
>> %%% End:
>> ----------------------------------------------------------------------
> 
> No further comments, therefore I'm closing this report.  We can reopen
> if necessary.
> 
> Best, Arash

[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 04 Apr 2024 11:24:28 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 77 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.