bugLaTeX semantic checker - Bugs: bug #56657, Warn for cite in headings


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

bug #56657: Warn for cite in headings

Submitted by:  J <s927589452>
Submitted on:  Mon 22 Jul 2019 04:23:02 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Mon 22 Jul 2019 04:23:02 PM UTC, original submission:  


this seems to be a deeper "problem" in LaTeX, which could be warned for by matching for all double opened [ without an escaping {

did some tests here


and wrote this
\[(?![^\]\[{}]*{(?# no {)(?![^\]\[{}]*}(?#or a pair of{})))[^\]]*\[

with these testcases

\begin{somethin}[\cite[1231]{adadsd}] #should warn
[dasd{dasda[ ads[ dasd ]]}] #should warn
adssd[ {}[]] #should warn
\begin{somethin}[\cite{adadsd}[1231]] #should warn
\begin{somethin}[{\cite{adadsd}[1231]}] #no warn
\begin{somethin}[{\cite{{adadsd}}[1231]}] #no warn
\begin{somethin}[{\cite{adadsd}[1231]}]  #no warn
\begin{somethin}[ ]{\cite{adadsd}[1231]} #no warn
\begin{somethin}[ ][{\cite{adadsd}[1231]}] #no warn
\begin{somethin[ ][\cite{adadsd}[1231]] #should warn
\begin{somethin}[{} ]{\cite{adadsd}[1231]} #no warn

J <s927589452>


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 (Updated the item)
  • -email is unavailable- added by s927589452 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-27 gvol StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.5