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.

Reformat File with Latexindent - Windows TeX Live

See original GitHub issue

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ IDEA 2021.3.3 (Ultimate Edition)

Operating System

Windows 11

TeXiFy IDEA version

0.7.15

What I did (steps to reproduce)

TeX Live contains latexindent.exe. If someone want to reformat the file using latexindent, the IDE will throw an error. latexindent seems to work fine in the command line but not in IntelliJ.

Minimal example to reproduce the problem

\documentclass{article}
\begin{document}
    \begin{itemize}
\end{itemize}
\end{document}

Expected behavior

Reformatting file

Actual behavior

Error - cannot run programm “latexindent.pl”

(if applicable) The full stacktrace of the exception thrown

Could not run latexindent.pl: Please double check if latexindent.pl is installed correctly: Cannot run program "latexindent.pl" (in directory "C:\path-to-tex\main.tex"): CreateProcess error=2, The system cannot find the file specified

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
zentoxcommented, Apr 8, 2022

Yes it works!

0reactions
PHPiratescommented, Apr 8, 2022

@zentox Oops, should have tested that first. Now this one actually works for me on Windows: TeXiFy-IDEA-0.7.16-latexindent.2.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use latexindent in TeXStudio on Windows? - TeX
Navigate to C:\Program Files\MiKTeX 2.9\scripts\latexindent and replace the files in there ... should run latexindent and indent your file!
Read more >
3. How to use the script — latexindent.pl 3.19.1 documentation
latexindent.pl ships as part of the TeXLive distribution for Linux and Mac users ... latexindent.pl produces a .log file, indent.log , every time...
Read more >
tex-archive/support/latexindent - CTAN
The Perl script processes a LaTeX file, indenting parts so as to highlight the structure for the reader. Included are also binary (executable)...
Read more >
latexindent is not indenting text, and the log output doesn't ...
This is on a Windows 10 machine, where I have installed TexLive - TexLive came with a latexindent.exe file that I deleted.
Read more >
texlive[58362] branches/branch2020.0: latexindent (14mar21 ...
... latexindent.pl, version 3.9, 2021-03-14 PERL script to indent code within environments, and align delimited environments in .tex files.
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