Closed ngld closed 6 years ago
I don't have a problem considering relaxing the regex, but is \PassOptionsToPackage
actually required before \documentclass
?
\PassOptionsToPackage
doesn't have to appear before \documentclass
. As I mentioned, moving it below \documentclass
fixes the problem for me.
However, it was weird having DiCy complain that no rules were defined for my file even though it was a valid LaTeX file. After digging through the code, I found out that it didn't detect it as LaTeX due to the regex not matching.
Okay, I understand. I'll see what I can do about tweaking the regex.
Thanks again for the feedback!
@ngld Just released v0.14.0 with this fix. Thanks for pointing out this issue.
I have a LaTeX file which begins like this:
DiCy doesn't recognize it as a LaTeX file since the file type regex is too strict and dosen't allow any commands before
\documentclass
. Would it be possible to relax that regex?As a workaround, I've moved the commands below
\documentclass
which fixes the problem but it would be nice if DiCy could support these files without changes.