diff options
Diffstat (limited to 'Master/texmf-dist/doc/support')
-rw-r--r-- | Master/texmf-dist/doc/support/latexindent/README | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/latexindent/latexindent.pdf | bin | 580064 -> 581185 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/support/latexindent/latexindent.tex | 51 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/latexindent/sec-default-user-local.tex | 15 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/latexindent/sec-how-to-use.tex | 18 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/latexindent/title.tex | 31 |
6 files changed, 63 insertions, 54 deletions
diff --git a/Master/texmf-dist/doc/support/latexindent/README b/Master/texmf-dist/doc/support/latexindent/README index fd6048669ed..6d1a3beb2dc 100644 --- a/Master/texmf-dist/doc/support/latexindent/README +++ b/Master/texmf-dist/doc/support/latexindent/README @@ -1,5 +1,5 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - latexindent.pl, version 3.2.1, 2017-06-25 + latexindent.pl, version 3.2.2, 2017-06-28 PERL script to indent code within environments, and align delimited environments in .tex files. diff --git a/Master/texmf-dist/doc/support/latexindent/latexindent.pdf b/Master/texmf-dist/doc/support/latexindent/latexindent.pdf Binary files differindex 33903c4df03..3a475cd1f26 100644 --- a/Master/texmf-dist/doc/support/latexindent/latexindent.pdf +++ b/Master/texmf-dist/doc/support/latexindent/latexindent.pdf diff --git a/Master/texmf-dist/doc/support/latexindent/latexindent.tex b/Master/texmf-dist/doc/support/latexindent/latexindent.tex index ceedc72719b..4adddf3007f 100644 --- a/Master/texmf-dist/doc/support/latexindent/latexindent.tex +++ b/Master/texmf-dist/doc/support/latexindent/latexindent.tex @@ -541,38 +541,7 @@ \begin{document} \renewcommand*{\thefootnote}{\arabic{footnote}} -\title{% - \begin{tcolorbox}[ - width=5.2cm, - boxrule=0pt, - colframe=white!40!black, - colback=white, - rightrule=2pt, - sharp corners, - enhanced, - overlay={\node[anchor=north east,outer sep=2pt] at ([xshift=3cm,yshift=4mm]frame.north east) {\includegraphics[width=3cm]{logo}}; }] - \centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.2.1 - \end{tcolorbox} -} -\author{Chris Hughes \thanks{and contributors! See \vref{sec:contributors}. For - all communication, please visit \cite{latexindent-home}.}} -\maketitle -\begin{adjustwidth}{1cm}{1cm} - \small - \texttt{latexindent.pl} is a \texttt{Perl} script that indents \texttt{.tex} (and other) - files according to an indentation scheme that the user can modify to suit their - taste. Environments, including those with alignment delimiters (such as \texttt{tabular}), - and commands, including those that can split braces and brackets across lines, - are \emph{usually} handled correctly by the script. Options for \texttt{verbatim}-like - environments and commands, together with indentation after headings (such as \lstinline!chapter!, \lstinline!section!, etc) - are also available. The script also has the ability to modifiy line breaks, and add - comment symbols. All user options are customisable via the switches in the YAML interface. -\end{adjustwidth} -\tableofcontents -{\small - \lstlistoflistings -} - +\input{title.tex} \input{sec-introduction} \input{sec-demonstration} \input{sec-how-to-use} @@ -621,22 +590,22 @@ v2.2 addresses a regexp issue, and adds a few enhancements; full details are h https://www.ctan.org/ctan-ann/id/mailman.198.1477655196.4574.ctan-ann@ctan.org Version 3.0 -latexindent.pl version 3.0: this represents a complete re-build of the script; full details are given here: +latexindent.pl version 3.0: this represents a complete re-build of the script; full details are given here: https://github.com/cmhughes/latexindent.pl/pull/56 -V3.0.1 -provides support for the alignment at ampersands routine for code that contains unicode characters; see +V3.0.1 +provides support for the alignment at ampersands routine for code that contains unicode characters; see https://github.com/cmhughes/latexindent.pl/pull/61 V3.0.2 -A minor release to fix a small bug related to indentPreamble; details given here: +A minor release to fix a small bug related to indentPreamble; details given here: https://github.com/cmhughes/latexindent.pl/pull/62 -Version 3.1 of latexindent.pl, -including options for text wrapping and paragraph line break removal. Full details here: +Version 3.1 of latexindent.pl, +including options for text wrapping and paragraph line break removal. Full details here: https://github.com/cmhughes/latexindent.pl/pull/64 -Version 3.2 -implements a new feature called 'multiColumnGrouping' which gives a new option for the alignment-at-ampersands routine. -More details are given at +Version 3.2 +implements a new feature called 'multiColumnGrouping' which gives a new option for the alignment-at-ampersands routine. +More details are given at https://github.com/cmhughes/latexindent.pl/pull/67 diff --git a/Master/texmf-dist/doc/support/latexindent/sec-default-user-local.tex b/Master/texmf-dist/doc/support/latexindent/sec-default-user-local.tex index 70496f1bc35..af43a9e56de 100644 --- a/Master/texmf-dist/doc/support/latexindent/sec-default-user-local.tex +++ b/Master/texmf-dist/doc/support/latexindent/sec-default-user-local.tex @@ -140,19 +140,28 @@ copy myfile.bak4 to myfile.bak3 \yamltitle{removeTrailingWhitespace}*{fields}\label{yaml:removeTrailingWhitespace} - \begin{wrapfigure}[12]{r}[0pt]{6cm} + \begin{wrapfigure}[10]{r}[0pt]{7cm} \cmhlistingsfromfile[style=removeTrailingWhitespace]{../defaultSettings.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{removeTrailingWhitespace}{lst:removeTrailingWhitespace} - \vspace{.2cm} - \cmhlistingsfromfile[style=fileContentsEnvironments]{../defaultSettings.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{fileContentsEnvironments}}{lst:fileContentsEnvironments} + \vspace{.1cm} + \begin{yaml}[numbers=none]{removeTrailingWhitespace (alt)}[width=.8\linewidth,before=\centering]{lst:removeTrailingWhitespace-alt} +removeTrailingWhitespace: 1 +\end{yaml} \end{wrapfigure} Trailing white space can be removed both \emph{before} and \emph{after} processing the document, as detailed in \cref{lst:removeTrailingWhitespace}; each of the fields can take the values \texttt{0} or \texttt{1}. See \vref{lst:removeTWS-before,lst:env-mlb5-modAll,lst:env-mlb5-modAll-remove-WS} for before and after results. Thanks to \cite{vosskuhle} for providing this feature. + You can specify \texttt{removeTrailingWhitespace} simply as \texttt{0} or \texttt{1}, if you wish; in this case, + \announce*{2017-06-28} + \texttt{latexindent.pl} will set both \texttt{beforeProcessing} and \texttt{afterProcessing} to the value you specify; + see \cref{lst:removeTrailingWhitespace-alt}. \yamltitle{fileContentsEnvironments}*{field} + \begin{wrapfigure}[6]{r}[0pt]{6cm} + \cmhlistingsfromfile[style=fileContentsEnvironments]{../defaultSettings.yaml}[width=.8\linewidth,before=\centering,yaml-TCB]{\texttt{fileContentsEnvironments}}{lst:fileContentsEnvironments} + \end{wrapfigure} Before \texttt{latexindent.pl} determines the difference between preamble (if any) and the main document, it first searches for any of the environments specified in \texttt{fileContentsEnvironments}, see \cref{lst:fileContentsEnvironments}. diff --git a/Master/texmf-dist/doc/support/latexindent/sec-how-to-use.tex b/Master/texmf-dist/doc/support/latexindent/sec-how-to-use.tex index 3f6921793ea..993e63662d5 100644 --- a/Master/texmf-dist/doc/support/latexindent/sec-how-to-use.tex +++ b/Master/texmf-dist/doc/support/latexindent/sec-how-to-use.tex @@ -23,7 +23,7 @@ As you read through this documentation, you'll occasionally see dates shown in the margin (for example, next to this paragraph!) - \announce*{2017-06-25} which detail the date of the version in which the feature was implemented; + \announce{2017-06-25} which detail the date of the version in which the feature was implemented; the `N' stands for `new as of the date shown'. If you see a $\color{cmhgold}\bigstar$, it means that the feature is new as of the release of the current version. @@ -45,7 +45,7 @@ latexindent.pl and available options. \flagbox{-v, --version} - \announce*{2017-06-25} + \announce{2017-06-25} \begin{commandshell} latexindent.pl -v \end{commandshell} @@ -103,7 +103,7 @@ latexindent.pl myfile.tex > output.tex \end{commandshell} You can call the \texttt{-o} switch with the name of the output file \emph{without} an extension; in - \announce*{2017-06-25} + \announce{2017-06-25} this case, \texttt{latexindent.pl} will use the extension from the original file. For example, the following two calls to \texttt{latexindent.pl} are equivalent: \begin{commandshell} @@ -112,7 +112,7 @@ latexindent.pl myfile.tex -o=output.tex \end{commandshell} You can call the \texttt{-o} switch using a \texttt{+} symbol at the beginning; this will - \announce*{2017-06-25} + \announce{2017-06-25} concatenate the name of the input file and the text given to the \texttt{-o} switch. For example, the following two calls to \texttt{latexindent.pl} are equivalent: \begin{commandshell} @@ -121,7 +121,7 @@ latexindent.pl myfile.tex -o=myfilenew.tex \end{commandshell} You can call the \texttt{-o} switch using a \texttt{++} symbol at the end of the name - \announce*{2017-06-25} + \announce{2017-06-25} of your output file; this tells \texttt{latexindent.pl} to search successively for the name of your output file concatenated with $0, 1, \ldots$ while the name of the output file exists. For example, @@ -210,7 +210,7 @@ latexindent.pl myfile.tex -l=first.yaml,second.yaml,third.yaml Explicit demonstrations of how to use the \texttt{-l} switch are given throughout this documentation. You can call the \texttt{-l} switch with a `+' symbol either before or after - \announce*{2017-06-25} + \announce{2017-06-25} another YAML file; for example: \begin{commandshell} latexindent.pl -l=+myyaml.yaml myfile.tex @@ -234,6 +234,7 @@ latexindent.pl -l + myyaml.yaml myfile.tex will \emph{only} load \texttt{localSettings.yaml}, and \texttt{myyaml.yaml} will be ignored. You may also choose to omit the \texttt{yaml} extension, such as + \announce{2017-06-25} \begin{commandshell} latexindent.pl -l=localSettings,myyaml myfile.tex \end{commandshell} @@ -291,8 +292,7 @@ latexindent.pl myfile \subsection{From \texttt{arara}}\label{sec:arara} Using \texttt{latexindent.pl} from the command line is fine for some folks, but - others may find it easier to use from \texttt{arara}. \texttt{arara} ships with - a rule, \texttt{indent.yaml}, but in case you do not have this rule, you can find it at \cite{paulo}. + others may find it easier to use from \texttt{arara}; you can find the arara rule at \cite{paulo}. You can use the rule in any of the ways described in \cref{lst:arara} (or combinations thereof). In fact, \texttt{arara} allows yet greater flexibility -- you can use \texttt{yes/no}, \texttt{true/false}, or \texttt{on/off} to toggle the various options. @@ -329,7 +329,7 @@ latexindent.pl myfile \texttt{localSettings} & \texttt{-l} \\ \texttt{onlyDefault} & \texttt{-d} \\ \texttt{cruft} & \texttt{-c} \\ - \texttt{modifylinebreaks} & \texttt{-m} \\ + %\texttt{modifylinebreaks} & \texttt{-m} \\ \bottomrule \end{tabular} \end{table} diff --git a/Master/texmf-dist/doc/support/latexindent/title.tex b/Master/texmf-dist/doc/support/latexindent/title.tex new file mode 100644 index 00000000000..78845b84c5b --- /dev/null +++ b/Master/texmf-dist/doc/support/latexindent/title.tex @@ -0,0 +1,31 @@ +\title{% + \begin{tcolorbox}[ + width=5.2cm, + boxrule=0pt, + colframe=white!40!black, + colback=white, + rightrule=2pt, + sharp corners, + enhanced, + overlay={\node[anchor=north east,outer sep=2pt] at ([xshift=3cm,yshift=4mm]frame.north east) {\includegraphics[width=3cm]{logo}}; }] + \centering\ttfamily\bfseries latexindent.pl\\[1cm] Version 3.2.2 + \end{tcolorbox} +} +\author{Chris Hughes \thanks{and contributors! See \vref{sec:contributors}. For + all communication, please visit \cite{latexindent-home}.}} +\maketitle +\begin{adjustwidth}{1cm}{1cm} + \small + \texttt{latexindent.pl} is a \texttt{Perl} script that indents \texttt{.tex} (and other) + files according to an indentation scheme that the user can modify to suit their + taste. Environments, including those with alignment delimiters (such as \texttt{tabular}), + and commands, including those that can split braces and brackets across lines, + are \emph{usually} handled correctly by the script. Options for \texttt{verbatim}-like + environments and commands, together with indentation after headings (such as \lstinline!chapter!, \lstinline!section!, etc) + are also available. The script also has the ability to modifiy line breaks, and add + comment symbols. All user options are customisable via the switches in the YAML interface. +\end{adjustwidth} +\tableofcontents +{\small + \lstlistoflistings +} |