I discovered latexindent and want to use it on my Windows machine. I am using MiKTeX and Strawberry Perl. MiKTeX has a package manager which lists latexindent. For some reason I cannot install or deinstall it although I am starting the MiKTeX Package Manager as Administrator. It is listed as installed. But when I execute it on my Shell I seem to be missing on Perl module. "Can't locate YAML/Tiny.pm". How do I install that module or solve this issue otherwise? Executing the compiled latexindent.exe file gives the same error. The complete message is:
$ latexindent
Can't locate YAML/Tiny.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/msys /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl .) at C:\Program Files (x86)\MiKTeX 2.9\scripts\latexindent\latexindent.pl line 39.
BEGIN failed--compilation aborted at C:\Program Files (x86)\MiKTeX 2.9\scripts\latexindent\latexindent.pl line 39.

latexindent.exetogether withdefaultSettings.yaml. If you'd prefer to stick with the perl version, then you'll needYAML/Tiny.pm, which you can install as detailed here, for example: http://stackoverflow.com/questions/6643939/installing-modules-using-strawberry-perl Let us know how you get on! – cmhughes Sep 22 '16 at 12:17arara, but it is not a requirement. The reasons I lovearara: (1) platform independent, (2) set up per-document rules, (3) set up your editor/IDE once forarara, and not have to do it again -- no complicated flags or arguments (4) easily create new rules for new tasks (5) editor independent (6) consistent syntax across all operating systems... I could sing for days about the reasons I lovearara, but that's a separate question :) glad you gotlatexindentworking -- would you like to self answer with details of what you did, perhaps with screenshots? – cmhughes Sep 22 '16 at 12:46