bugLaTeX semantic checker - Bugs: bug #60197, Using array inside mathmode breaks...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #60197: Using array inside mathmode breaks mathmode detection

Submitter:  Denis Kozlov <dkozl>
Submitted:  Tue 09 Mar 2021 06:43:59 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  gvol
Open/Closed:  Closed

Fri 14 Oct 2022 06:19:20 PM UTC, comment #2: 

I have now fixed this and it should go out in the next release.  It may take a while for me to make the release and for it to trickle out through the distributions.

Ivan Andrus <gvol>
Group administrator
Fri 19 Mar 2021 02:17:06 AM UTC, comment #1: 

You're right.  It looks like exiting a MathEnvir environment turns math mode off, when it should restore it to what ever it was.  However, that's exactly what the code seems to be. doing, so I'll have to investigate some more.

Ivan Andrus <gvol>
Group administrator
Tue 09 Mar 2021 06:43:59 PM UTC, original submission:  

MWE:

\begin{align}
    \begin{array} {l}
        abc
    \end{array} \\
    3 - 2 = 1
    \pi
\end{align}

In this example ChkTeX detects "Wrong length of dash" in "3 - 2 = 1" and "Command terminated with space" in "\pi". These warning should not be present as we are still inside "align" environment, so in math mode.
This error happens for other outer environments such as "flalign", "multline", "gather". It also appears inside "\[ ... \]".
It seems like exiting a math environment sets MathMode flag to 0, while it probably only should do -1.

Denis Kozlov <dkozl>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gvol (Posted a comment)
  • -email is unavailable- added by dkozl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-14 gvol StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2021-03-19 gvol StatusNone Confirmed
        Assigned toNone gvol

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code