question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use ChkTex in LaTex Workshop?

See original GitHub issue

Hi, I just rephrase my problem. I want to implement the “Linting with ChkTex” as shown in Features.

I have a simple demo with a obvious error( missing ‘d’) : ( I have to paste the link cause the image-upload is down) error

with Problem Pane showing the log as log

the entire log is en-log

I can build the .pdf if I correct it. My configuration is :(Windows)

{
    "latex-workshop.latex.toolchain": [
        {
            "command": "texify",
            "args": [
                "--synctex",
                "--pdf",
                "%DOC%.tex"
            ]
        }
    ],
    "latex-workshop.chktex.enabled": true,
    "latex-workshop.chktex.path": "C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64\\chktex",
    "latex-workshop.synctex.path": "C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64\\synctex",

    
    "latex-workshop.chktex.args.active": [
        "-wall",
        "-n22",
        "-n30",
        "-e16",
        "-q"
    ]
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
James-Yucommented, Apr 12, 2017

Got it.

The chktex shipped with MikTeX sometimes returns error code 1 but with complete and correct stdout. Weird.

Have no idea how to handle this difference. It seems not possible to tell if the executable is from MikTeX or TeXLive.

I hate MikTeX.

1reaction
zachjweinercommented, Apr 13, 2017

@xiaoFine it takes a little tome for the update to be pushed to the marketplace, I think. I just performed the updated via VSC and chktex is working!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use LaTeX on VS Code? - TeX
3) To check where each package is installed, use the which [package_name] command, for example which chktex . In my case, the answer...
Read more >
Configuring Visual Studio Code for LaTeX
What I use now · LaTeX formatting (with latexindent ) · Compilation via the F5 shortcut (with latexmk ) · Linting (with chktex...
Read more >
LaTeX notetaking: TeXStudio VS. LaTeX Workshop for VS Code
At first, I've started using MathJax, a cross-browser JavaScript library used to display mathematical notation in browsers; I didn't know anything about the...
Read more >
ChkTeX - LaTeX semantic checker - Savannah
ChkTeX - LaTeX semantic checker · Support user defined warnings written in perl compatible regular expressions or POSIX regular expressions (which is determined ......
Read more >
Failing to suppress chktex warnings in VSCode even ... - Reddit
42K subscribers in the LaTeX community. ... I use vs code for other stuff but I'd rather like to write latex in Tex...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found