summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexindent/sec-appendices.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/latexindent/sec-appendices.tex')
-rw-r--r--Master/texmf-dist/doc/support/latexindent/sec-appendices.tex22
1 files changed, 16 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/support/latexindent/sec-appendices.tex b/Master/texmf-dist/doc/support/latexindent/sec-appendices.tex
index ca4608a2592..03a2961cc6f 100644
--- a/Master/texmf-dist/doc/support/latexindent/sec-appendices.tex
+++ b/Master/texmf-dist/doc/support/latexindent/sec-appendices.tex
@@ -2,10 +2,16 @@
\appendix
\section{Required Perl modules}\label{sec:requiredmodules}
If you intend to use \texttt{latexindent.pl} and \emph{not} one of the supplied
- standalone executable files, then you will need a few standard Perl modules -- if you can
- run the minimum code in \cref{lst:helloworld} (\texttt{perl helloworld.pl}) then you will
- be able to run \texttt{latexindent.pl}, otherwise you may need to install the missing
- modules -- see \cref{sec:module-installer,sec:manual-module-instal}.
+ standalone executable files (\texttt{latexindent.exe} is available for Windows users
+ without Perl, see \cref{subsubsec:latexindent:exe}), then you will need a few standard
+ Perl modules.
+
+ If you can run the minimum code in \cref{lst:helloworld} as in
+ \begin{commandshell}
+perl helloworld.pl
+ \end{commandshell}
+ then you will be able to run \texttt{latexindent.pl}, otherwise you may need to install
+ the missing modules; see \cref{sec:module-installer,sec:manual-module-instal}.
\begin{cmhlistings}[style=tcblatex,language=Perl]{\texttt{helloworld.pl}}{lst:helloworld}
#!/usr/bin/perl
@@ -137,6 +143,10 @@ brew install cpanm
cpanm YAML::Tiny
cpanm File::HomeDir
\end{commandshell}
+ Alternatively,
+ \begin{commandshell}
+brew install latexindent
+\end{commandshell}
\subsubsection{Windows}
Strawberry Perl users on Windows might use \texttt{CPAN client}. All of the modules are
@@ -595,8 +605,8 @@ latexindent.pl -y="dos2unixlinebreaks:1" myfile.tex
\section{Differences from Version 2.2 to 3.0}\label{app:differences}
There are a few (small) changes to the interface when comparing Version 2.2 to Version
- 3.0. Explicitly, in previous versions you might have run, for example,
- \index{switches!-o demonstration}
+ 3.0. Explicitly, in previous versions you might have run, for example, \index{switches!-o
+ demonstration}
\begin{commandshell}
latexindent.pl -o myfile.tex outputfile.tex
\end{commandshell}