Advertisement
hakonhagland

install-latex-indent-macos

Dec 16th, 2021
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. $ brew install --cask mactex
  2. # restart terminal, then:
  3. $ which perl
  4. /opt/homebrew/bin/perl
  5. $ latexindent --help
  6. Can't locate YAML/Tiny.pm in @INC (you may need to install the YAML::Tiny module) (@INC contains: /usr/local/texlive/2021/texmf-dist/scripts/latexindent /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0 /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl
  7. [...]
  8. $ cpan YAML::Tiny
  9. $ latexindent --help
  10. Can't locate File/HomeDir.pm in @INC (you may need to install the File::HomeDir module) (@INC contains: /usr/local/texlive/2021/texmf-dist/scripts/latexindent /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0 /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0/darwin-thread-multi-2level
  11. [...]
  12. $ cpan File::HomeDir
  13. $ latexindent --help
  14. Can't locate Unicode/GCString.pm in @INC (you may need to install the Unicode::GCString module) (@INC contains: /usr/local/texlive/2021/texmf-dist/scripts/latexindent /opt/homebrew/Cellar/perl/5.34.0/...
  15. $ cpan Unicode/GCString.pm
  16. $ latexindent --help
  17. latexindent.pl version 3.9.1, 2021-03-21
  18. usage: latexindent.pl [options] [file]
  19. -v, --version
  20. displays the version number and date of release
  21. -h, --help
  22. help (see the documentation for detailed instructions and examples)
  23. -sl, --screenlog
  24. log file will also be output to the screen
  25. -o, --outputfile=<name-of-output-file>
  26. output to another file; sample usage:
  27. latexindent.pl -o outputfile.tex myfile.tex
  28. latexindent.pl -o=outputfile.tex myfile.tex
  29. -w, --overwrite
  30. overwrite the current file; a backup will be made, but still be careful
  31. -s, --silent
  32. silent mode: no output will be given to the terminal
  33. -t, --trace
  34. tracing mode: verbose information given to the log file
  35. -l, --local[=myyaml.yaml]
  36. use `localSettings.yaml`, `.localSettings.yaml`, `latexindent.yaml`,
  37. or `.latexindent.yaml` (assuming one of them exists in the directory of your file or in
  38. the current working directory); alternatively, use `myyaml.yaml`, if it exists;
  39. sample usage:
  40. latexindent.pl -l some.yaml myfile.tex
  41. latexindent.pl -l=another.yaml myfile.tex
  42. latexindent.pl -l=some.yaml,another.yaml myfile.tex
  43. -y, --yaml=<yaml settings>
  44. specify YAML settings; sample usage:
  45. latexindent.pl -y="defaultIndent:' '" myfile.tex
  46. latexindent.pl -y="defaultIndent:' ',maximumIndentation:' '" myfile.tex
  47. -d, --onlydefault
  48. ONLY use defaultSettings.yaml, ignore ALL (yaml) user files
  49. -g, --logfile=<name of log file>
  50. used to specify the name of logfile (default is indent.log)
  51. -c, --cruft=<cruft directory>
  52. used to specify the location of backup files and indent.log
  53. -m, --modifylinebreaks
  54. modify linebreaks before, during, and at the end of code blocks;
  55. trailing comments and blank lines can also be added using this feature
  56. -r, --replacement
  57. replacement mode, allows you to replace strings and regular expressions
  58. verbatim blocks not respected
  59. -rv, --replacementrespectverb
  60. replacement mode, allows you to replace strings and regular expressions
  61. while respecting verbatim code blocks
  62. -rr, --onlyreplacement
  63. *only* replacement mode, no indentation;
  64. verbatim blocks not respected
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement