GNU bug report logs -
#58233
Latex style files shifts code with underscores
Previous Next
To reply to this bug, email your comments to 58233 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58233
; Package
emacs
.
(Sat, 01 Oct 2022 19:46:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
uzibalqa <uzibalqa <at> proton.me>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 01 Oct 2022 19:46:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I am working on some latex style files and have noticed that code with underscores gets displayed
as subscript notation (characters get shifted downwards) rather than showing code as it should be.
Consequently, the following looks extremely weird.
\cs_new_protected:Nn \__hagbard_newtheorem_parent:nnn
{
\newtheorem{#1_inner}[#3]{\color{\l__hagbard_theorem_setcolor_tl}#2}
}
\cs_generate_variant:Nn \__hagbard_newtheorem_parent:nnn { VVV }
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58233
; Package
emacs
.
(Sun, 02 Oct 2022 12:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 58233 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
uzibalqa <uzibalqa <at> proton.me> writes:
> I am working on some latex style files and have noticed that code with underscores gets displayed
> as subscript notation (characters get shifted downwards) rather than showing code as it should be.
>
> Consequently, the following looks extremely weird.
>
> \cs_new_protected:Nn \__hagbard_newtheorem_parent:nnn
> {
> \newtheorem{#1_inner}[#3]{\color{\l__hagbard_theorem_setcolor_tl}#2}
> }
> \cs_generate_variant:Nn \__hagbard_newtheorem_parent:nnn { VVV }
I've managed to repress all knowledge of .sty files I once had.
Emacs currently uses latex-mode to display .sty files. In LaTeX,
underscores aren't allowed in identifiers like this, are they?
So it seems like the solution here would be to default
tex-fontify-script to nil in .sty files, which seems to fix this
specific problem. But the fontification is still pretty weird:
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
I.e., if this is valid .sty syntax, then latex-mode doesn't really have
support for it at all, I think?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58233
; Package
emacs
.
(Sun, 02 Oct 2022 15:29:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 58233 <at> debbugs.gnu.org (full text, mbox):
Sent with Proton Mail secure email.
------- Original Message -------
On Sunday, October 2nd, 2022 at 12:41 PM, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> uzibalqa uzibalqa <at> proton.me writes:
>
> > I am working on some latex style files and have noticed that code with underscores gets displayed
> > as subscript notation (characters get shifted downwards) rather than showing code as it should be.
> >
> > Consequently, the following looks extremely weird.
> >
> > \cs_new_protected:Nn \__hagbard_newtheorem_parent:nnn
> > {
> > \newtheorem{#1_inner}[#3]{\color{\l__hagbard_theorem_setcolor_tl}#2}
> > }
> > \cs_generate_variant:Nn \__hagbard_newtheorem_parent:nnn { VVV }
>
>
> I've managed to repress all knowledge of .sty files I once had.
>
> Emacs currently uses latex-mode to display .sty files. In LaTeX,
> underscores aren't allowed in identifiers like this, are they?
>
> So it seems like the solution here would be to default
> tex-fontify-script to nil in .sty files, which seems to fix this
> specific problem. But the fontification is still pretty weird:
>
>
> I.e., if this is valid .sty syntax, then latex-mode doesn't really have
> support for it at all, I think?
It is the latest L3 Programming Layer Interface for Latex.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58233
; Package
emacs
.
(Mon, 03 Oct 2022 09:11:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 58233 <at> debbugs.gnu.org (full text, mbox):
uzibalqa <uzibalqa <at> proton.me> writes:
> It is the latest L3 Programming Layer Interface for Latex.
Then I guess somebody will have to write code to support this new
language -- fixing just the subscripts doesn't seem to make much sense.
Here's a pointer to get somebody that wants to work on this started:
https://www.alanshawn.com/latex3-tutorial/#why-latex3
Severity set to 'wishlist' from 'normal'
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 13 Oct 2022 13:48:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 272 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.