summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexindent/sec-appendices.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-05 21:03:30 +0000
committerKarl Berry <karl@freefriends.org>2022-06-05 21:03:30 +0000
commit6508d94a133775c00a40256e3b31a49ece9abeec (patch)
treec6ec0f928c855f23bcbab513aaa34e424c832d51 /Master/texmf-dist/doc/support/latexindent/sec-appendices.tex
parent80aa3b5de37b11d9f895cf844adcd9bb8fc127d2 (diff)
latexindent (5jun22)
git-svn-id: svn://tug.org/texlive/trunk@63492 c570f23f-e606-0410-a88d-b1316a301751
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}