diff options
Diffstat (limited to 'Master/texmf-dist/doc/support/latexindent/appendices.tex')
-rw-r--r-- | Master/texmf-dist/doc/support/latexindent/appendices.tex | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/support/latexindent/appendices.tex b/Master/texmf-dist/doc/support/latexindent/appendices.tex index e756fb9533f..4036579e53a 100644 --- a/Master/texmf-dist/doc/support/latexindent/appendices.tex +++ b/Master/texmf-dist/doc/support/latexindent/appendices.tex @@ -26,7 +26,6 @@ use File::HomeDir; use Getopt::Long; use Data::Dumper; use List::Util qw(max); -use Log::Log4perl qw(get_logger :levels); print "hello world"; exit; @@ -62,12 +61,19 @@ curl -L http://cpanmin.us | perl - App::cpanminus cpanm YAML::Tiny cpanm File::HomeDir cpanm Unicode::GCString -cpanm Log::Log4perl cpanm Log::Dispatch \end{commandshell} - For other distributions, the Ubuntu/Debian approach may work by visiting the software - center, or else by running, for example, + For other distributions, the Ubuntu/Debian approach may work as follows + \begin{commandshell} +sudo apt install perl +sudo cpan -i App::cpanminus +sudo cpanm YAML::Tiny +sudo cpanm File::HomeDir +sudo cpanm Unicode::GCString +sudo cpanm Log::Dispatch::File +\end{commandshell} + or else by running, for example, \begin{commandshell} sudo perl -MCPAN -e'install "File::HomeDir"' \end{commandshell} @@ -83,7 +89,6 @@ apk --no-cache add miniperl perl-utils # Installing incompatible latexindent perl dependencies via apk apk --no-cache add \ - perl-log-log4perl \ perl-log-dispatch \ perl-namespace-autoclean \ perl-specio \ @@ -113,7 +118,6 @@ brew install cpanm cpanm YAML::Tiny cpanm File::HomeDir cpanm Unicode::GCString -cpanm Log::Log4perl cpanm Log::Dispatch \end{commandshell} @@ -230,10 +234,12 @@ TRACE: Searching myenv for optional and mandatory arguments \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} \begin{commandshell} latexindent.pl -o myfile.tex outputfile.tex \end{commandshell} whereas in Version 3.0 you would run any of the following, for example, + \index{switches!-o demonstration} \begin{commandshell} latexindent.pl -o=outputfile.tex myfile.tex latexindent.pl -o outputfile.tex myfile.tex @@ -264,6 +270,7 @@ latexindent.pl myfile.tex -outputfile outputfile.tex would write YAML as in \cref{lst:noAdditionalIndentOld}; as of Version 3.0, you would write YAML as in \cref{lst:indentAfterThisHeadingNew1} or, if you're using \texttt{-m} switch, \cref{lst:indentAfterThisHeadingNew2}. + \index{specialBeginEnd!update to displaymath V3.0} \begin{minipage}{.45\textwidth} \cmhlistingsfromfile{demonstrations/noAddtionalIndentOld.yaml}[yaml-TCB]{\texttt{noAdditionalIndent} in Version 2.2}{lst:noAdditionalIndentOld} |