For following text \textit{submitTest()} I am getting a warning message which is:
You should put a space in front of parenthesis. [36]
This warning message is suppress when I replace it into: \textit{submitTest\,()}, I believe from chktex.
Is it possible to prevent this message for textes take place in \textit{}?
Example code piece:
\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage[table]{xcolor}
\begin{document}
\textit{testJob()}
\end{document}
$ chktex --version
ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with POSIX extended regex support.
$ chktex base.tex
ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann.
Compiled with POSIX extended regex support.
Warning 36 in base.tex line 5: You should put a space in front of parenthesis.
\textit{testJob()}
^
No errors printed; One warning printed; No user suppressed warnings; No line suppressed warnings.
See the manual for how to suppress some or all of these warnings/errors.
chktex? – Mico Apr 24 '22 at 12:46\textit{nounNoun()}pattern – alper Apr 24 '22 at 12:49You should put a space in front of parenthesis.warning message when I run your MWE. – Mico Apr 24 '22 at 12:56chktexin linux please see my updated question – alper Apr 24 '22 at 12:59chktexis an external Unix utility. (I thought it was a LaTeX package...) Thechktexutility is availabe on MacOS as well. Anyway, I can see no merit whatsever in this warning message, unless one somehow believes that(must always be preceded by whitespace. Since it looks like the lack of whitespace before()in your document is deliberate, you should certainly feel free to disregard the warning message. – Mico Apr 24 '22 at 13:16chktexbut you can pass it the-n36option so it omits check 36 (the number given in the message you showed). This message is not from TeX and does not relate to TeX processing in any way, it's simply a bad attempt to check English Grammar. – David Carlisle Apr 24 '22 at 13:27chktexwithinemacs, since it keeps highlights text that haschktexwarning, and its a lot of these all over. Also which Grammer do you advice to look for? – alper Apr 24 '22 at 13:30chktexinside emacs using(setq flycheck-disabled-checkers '(tex-chktex))– alper Apr 24 '22 at 13:39chktex, I assume it's intended to point out that t is a "tall" letter, and in italic, it's likely to bash into the opening parenthesis, or at least be too close. Instead of inserting a space, I'd add an italic correction\/. which is designed to overcome such problems. Actually, in your case, the parentheses are going to be italic also, so it isn't really a problem. (A "theorem font" might have upright parentheses with italic text, to coordinate with embedded math; there it would matter.) – barbara beeton Apr 24 '22 at 14:23slanted parenthesesstands for\textit{()}right, as italic parantheses? So I can go for\textit{func_name}\textup(\textup), where upright parens will show up right? – alper Apr 25 '22 at 19:05lacheck, (astex-lacheckin Emacs). – alper Oct 24 '22 at 11:06