nscaife / linter-chktex

An Atom Linter plugin for LaTeX, using chktex
https://atom.io/packages/linter-chktex
MIT License
14 stars 10 forks source link

chktex wants to replace dots for relative file paths with \ldots when using \lstinputlisting #22

Closed alrekr closed 8 years ago

alrekr commented 8 years ago

The title says it all.

Say you have your document in workspace/latex/document/text.tex and some source code in workspace/cpp/project/src/main.cpp.

Say you want to include a part of the source code:

\lstinputlisting[linerange={4-6,8-10},frame=single]{../../cpp/project/src/main.cpp}

chktex will then give the following warning:

11:You should use \ldots to achieve an ellipsis

alrekr commented 8 years ago

This is a bug within chktex itself, not this linter. Closing the issue, sorry for reporting it falsely.