diff options
author | Norbert Preining <norbert@preining.info> | 2022-06-06 03:02:07 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-06-06 03:02:07 +0000 |
commit | 89e8f58007e3fa8841a95b1e3d7efeacced6aed5 (patch) | |
tree | 5d9c98f1d4665ee3a9e459e8df5e4c66602140fc /support/latexindent/documentation/sec-appendices.tex | |
parent | 4695dd8cb1cb1d7ee3849e75dec28f742e802e56 (diff) |
CTAN sync 202206060302
Diffstat (limited to 'support/latexindent/documentation/sec-appendices.tex')
-rw-r--r-- | support/latexindent/documentation/sec-appendices.tex | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/support/latexindent/documentation/sec-appendices.tex b/support/latexindent/documentation/sec-appendices.tex index ca4608a259..03a2961cc6 100644 --- a/support/latexindent/documentation/sec-appendices.tex +++ b/support/latexindent/documentation/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} |