Questions tagged [chktex]
33 questions
8
votes
3 answers
ChkTeX: Wrong length of dash may have been used
For the string: 100K100-873 I am getting the following warning message in my emacs editor from ChkTeX check:
Wrong length of dash may have been used. [8]
How can I prevent this warning message?
Could be related to How to ignore "Wrong length of dash…
alper
- 1,389
5
votes
2 answers
Avoid "command terminated with space" warning in \newcommand used in math mode
Consider a command definition
Warning 1 in test.tex line 2: Command terminated with space.
\newcommand{\ket}[1]{\left \lvert #1 \right \rangle}
^
This command is supposed to be used in math mode.
However, the…
DanielSank
- 411
2
votes
2 answers
ChkTeX does not handle lines over 509 bytes correctly
When longer paragraphs have no line breaks in the middle, I get the warning:
chktex: WARNING -- ChkTeX does not handle lines over 509 bytes correctly. Some errors and line numbers may be wrong in this file.
I've found a report of a similar issue at…
Colin Frame
- 121
1
vote
1 answer
Vertical rules in tables are ugly. ChkTex
When I run ChkTeX on
\begin{table}
\centering
\begin{tabular}{c|c|}
\tejastable{\kket{2}}{kket{2}} % \tejastable{\}{} % no need of \\
\tejastable{2}{3} % automatically goes to next line
$\ $ & \\
$\ $ & \\
…
Tejas Shetty
- 584
1
vote
0 answers
Suppress chktex warning about custom capitalized command
Sometimes I define capitalized commands, e.g., \USA. Using this command at the end of a sentence produces a ChkTeX warning about using intersentence spacing. How can I suppress this warning uniformly for such commands?
khatchad
- 454
0
votes
0 answers
Chktex regex warning on Arch Linux
This issue is related to this one:
ChkTeX Regex WARNING "Compilation regular expression" on macOS
Parsing a simple latex file gives me a warning.
I am using the latest release of chktex.
Can this be fixed by releasing a new version of chktex?
0
votes
1 answer
ChkTeX Regex WARNING "Compilation regular expression" on macOS
I'm experiencing a consistent problem with ChkTeX on my macOS system and am looking for solutions. The issue occurs every time I run ChkTeX. I get the following warning:
> chktex main.tex …
0
votes
0 answers
chktex: who knows about return code
I realized right now that chktex has return code 0 only if not even a warning is displayed.
With warnings seems to be 2.
What about other return codes? 1 for instance?
The documentation keeps this secret.
user2609605
- 465
0
votes
0 answers
chktex: how to add an output format with newline
I am using chktex to check my latex files.
Now I want to define my own output format instead of choosing from given ones
with -v.
This is via the option -f.
The problem is, that I cannot specify a newline.
For example
chktex…
user2609605
- 465
0
votes
1 answer
How can I prevent `You should put a space in front of parenthesis. ` message for text in textit
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…
alper
- 1,389
0
votes
1 answer
Why does ChkTeX complain when there is a space after \itshape but not when \bfseries is used?
If I use ChkTeX for the following LaTeX source:
\documentclass{article}
\begin{document}
The quick {\itshape brown fox\/} jumps over the {\bfseries lazy dog}.
\end{document}
then I get a warning:
ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger…
tueda
- 168
0
votes
1 answer
Is there a way to disable ChkTex in a specific directory?
I use ChkTex inside VSCode with the Latex-Workshop Extension. I have never used ChkTex before.
Is there a way of setting ChkTex up to ignore a certain file or directory?
I know there is a .chktexrc file and I imagine I should create a .chktexrc in…
Fred Guth
- 156