diff options
author | Karl Berry <karl@freefriends.org> | 2019-07-15 20:48:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-07-15 20:48:56 +0000 |
commit | 4450dac922ac3fa8bc77879f7b849b6de9423624 (patch) | |
tree | e1f8373069d5162f5a7f56fe7291e223974956ec /Master/texmf-dist/doc | |
parent | 7a4db7bf8cd94e48795dc8fdf633969f194dc121 (diff) |
arara (15jul19)
git-svn-id: svn://tug.org/texlive/trunk@51646 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/support/arara/README.md | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/arara/arara-manual.pdf | bin | 1825373 -> 1838719 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/support/arara/arara.sty | 9 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/arara/chapters/introduction.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/arara/chapters/rules.tex | 20 |
5 files changed, 29 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/support/arara/README.md b/Master/texmf-dist/doc/support/arara/README.md index 2a47fa278d1..d65679d4ba0 100644 --- a/Master/texmf-dist/doc/support/arara/README.md +++ b/Master/texmf-dist/doc/support/arara/README.md @@ -7,7 +7,7 @@ ![Language: Java](https://img.shields.io/badge/language-Java-blue.svg?style=flat-square) ![Minimum JRE: 5.0](https://img.shields.io/badge/minimum_JRE-5.0-blue.svg?style=flat-square) [![License: New BSD](https://img.shields.io/badge/license-New_BSD-blue.svg?style=flat-square)](https://opensource.org/licenses/bsd-license) -![CTAN packaging: 4.0.5](https://img.shields.io/badge/CTAN_packaging-4.0.5-blue.svg?style=flat-square) +![CTAN packaging: 4.0.6](https://img.shields.io/badge/CTAN_packaging-4.0.6-blue.svg?style=flat-square) `arara` is a TeX automation tool based on rules and directives. It gives you a way to enhance your TeX experience. The tool is an effort to provide a concise way to automate the daily TeX workflow for users and also package writers. Users might write their own rules when the provided ones do not suffice. @@ -30,7 +30,7 @@ Now when you run `arara myfile`, that directive (`% arara: ...`) will be seen an ![Current version: 4.0](https://img.shields.io/badge/current_version-4.0-blue.svg?style=flat-square) ![Development version: 5.0](https://img.shields.io/badge/development_version-5.0-red.svg?style=flat-square) -The stable major version of `arara` is the 4.0 series (note that revision numbers may vary). Please refer to the development branch for more information on the upcoming 5.0 series release. The master branch always refers to the stable version (including potential revisions). The CTAN packaging for the current version is 4.0.3 (for internal use). +The stable major version of `arara` is the 4.0 series (note that revision numbers may vary). Please refer to the development branch for more information on the upcoming 5.0 series release. The master branch always refers to the stable version (including potential revisions). The CTAN packaging for the current version is 4.0.6 (for internal use). For historical purposes, the source code for older versions of `arara` is available in the [releases](https://github.com/cereda/arara/releases) section of our repository. However, be mindful that these versions are unsupported. diff --git a/Master/texmf-dist/doc/support/arara/arara-manual.pdf b/Master/texmf-dist/doc/support/arara/arara-manual.pdf Binary files differindex be98238ecfc..ef749492084 100644 --- a/Master/texmf-dist/doc/support/arara/arara-manual.pdf +++ b/Master/texmf-dist/doc/support/arara/arara-manual.pdf diff --git a/Master/texmf-dist/doc/support/arara/arara.sty b/Master/texmf-dist/doc/support/arara/arara.sty index 573d12f270c..c366a2528f9 100644 --- a/Master/texmf-dist/doc/support/arara/arara.sty +++ b/Master/texmf-dist/doc/support/arara/arara.sty @@ -53,6 +53,7 @@ \RequirePackage{amsfonts} \RequirePackage{kmath} \RequirePackage{bookman} +\RequirePackage{comfortaa} \RequirePackage[regular]{sourcecodepro} \RequirePackage{adforn} @@ -74,7 +75,7 @@ pdfpagelabels ]{hyperref} -\newcommand{\araratext}[1]{{\normalfont\fontfamily{fco}\selectfont\color{araracolour}\bfseries#1}} +\newcommand{\araratext}[1]{{\normalfont\comfortaa\color{araracolour}\bfseries#1}} \newcommand*\arara{\araratext{ar\kern-.03emar\kern-.03ema}} \newcommand*\slogan{\araratext{The cool \TeX\ automation tool}} @@ -430,8 +431,8 @@ \renewcommand{\subsubsecheadstyle}{\normalsize\normalfont\em} \renewcommand{\paraheadstyle}{\normalsize\normalfont\em} \renewcommand{\subparaheadstyle}{\normalsize\normalfont\em} -\renewcommand{\partnumfont}{\Large\fontfamily{fco}\selectfont\bfseries} -\renewcommand{\partnamefont}{\Large\fontfamily{fco}\selectfont\bfseries} +\renewcommand{\partnumfont}{\Large\comfortaa\bfseries} +\renewcommand{\partnamefont}{\Large\comfortaa\bfseries} \renewcommand{\parttitlefont}{\Huge\normalfont\em} \renewcommand{\booktitlefont}{\huge\normalfont\em} \renewcommand{\booknamefont}{\huge\normalfont\em} @@ -454,7 +455,7 @@ \renewcommand*{\chapnamefont}{\normalfont}% \renewcommand*{\printchaptername}{% \centering\includegraphics[scale=.15]{logos/bird.pdf}\par}% - \renewcommand*{\chapnumfont}{\fontfamily{fco}\selectfont\bfseries}% + \renewcommand*{\chapnumfont}{\comfortaa\bfseries}% \renewcommand*{\printchapternum}{\centering \chapnumfont \ifanappendix \thechapter \else \textcolor{araracolour}{\numtoname{\c@chapter}}\fi}% \renewcommand*{\chaptitlefont}{\normalfont\itshape\huge\centering}% diff --git a/Master/texmf-dist/doc/support/arara/chapters/introduction.tex b/Master/texmf-dist/doc/support/arara/chapters/introduction.tex index 10f7af82084..f064774c9ae 100644 --- a/Master/texmf-dist/doc/support/arara/chapters/introduction.tex +++ b/Master/texmf-dist/doc/support/arara/chapters/introduction.tex @@ -48,7 +48,7 @@ Quite surprising. However, this behaviour is not wrong at all, it is completely That is the major difference of \arara\ when compared to other tools: \emph{it is not an automatic process and the tool does not employ any guesswork on its own}. You are in control of your documents; \arara\ will not do anything unless you \emph{teach it how to do a task and explicitly tell it to execute the task}. \end{messagebox} -Now, how does one tell \arara\ to do a task? That is the actually the easy part, provided that you have everything up and running. We accomplish the task by adding a special comment line, hereafter known as \emph{directive}, somewhere in our \rbox{hello.tex} file (preferably in the first lines): +Now, how does one tell \arara\ to do a task? That is actually the easy part, provided that you have everything up and running. We accomplish the task by adding a special comment line, hereafter known as \emph{directive}, somewhere in our \rbox{hello.tex} file (preferably in the first lines): \begin{ncodebox}{Source file}{teal}{\icnote}{white}{hello.tex} % arara: pdflatex @@ -127,7 +127,7 @@ Our example has one directive, referencing \rbox{pdflatex}. It is important to o Once \arara\ finds a directive, it will look for the associated \emph{rule}. In our example, it will look for a rule named \rbox{pdflatex} which will evidently run the \rbox{pdflatex} command line application. Rules are \gls{YAML} files named according to their identifiers followed by the \rbox{yaml} extension and follow a strict structure. This concept is covered in Section~\ref{sec:rule}, on page~\pageref{sec:rule}. \begin{messagebox}{New feature in version 4.0}{araracolour}{\icattention}{white} -\textbf{\gls{REPL} workflow} -- \arara\ now employs a \gls{REPL} workflow for rules and directives. In previous versions, directives were extracted, their corresponding rules were analized, commands were built and added to a queue before any proper execution or evaluation. I decided to change this workflow, so now \arara\ evaluates each rule on demand, i.e, there is no \emph{a priori} checking. A rule will \emph{always} reflect the current state, including potential side effects from previous executed rules. +\textbf{\gls{REPL} workflow} -- \arara\ now employs a \gls{REPL} workflow for rules and directives. In previous versions, directives were extracted, their corresponding rules were analyzed, commands were built and added to a queue before any proper execution or evaluation. I decided to change this workflow, so now \arara\ evaluates each rule on demand, i.e, there is no \emph{a priori} checking. A rule will \emph{always} reflect the current state, including potential side effects from previous executed rules. \end{messagebox} Now, we have a queue of pairs $(\textit{directive}, \textit{rule})$ to process. For each pair, \arara\ will map the directive to its corresponding rule, evaluate it and run the proper command. The execution chain requires that command $i$ was successfully executed to then proceed to command $i+1$, and so forth. This is also by design: \arara\ will halt the execution if any of the commands in the queue had raised an error. How does one know if a command was successfully executed? \arara\ checks the corresponding \emph{exit status} available after a command execution. In general, a successful execution yields 0 as its exit status. diff --git a/Master/texmf-dist/doc/support/arara/chapters/rules.tex b/Master/texmf-dist/doc/support/arara/chapters/rules.tex index f7a29b465ff..f2e7bfd0bc7 100644 --- a/Master/texmf-dist/doc/support/arara/chapters/rules.tex +++ b/Master/texmf-dist/doc/support/arara/chapters/rules.tex @@ -290,6 +290,16 @@ spreadsheet import functions also use this setting. % arara: dvipspdf: { output: article } \end{codebox} +\item[\rulebox{dvisvgm}{samcarter}] This rule runs \rbox{dvisvgm} in order to obtain a corresponding \rbox{svg} file, a vector graphics format based on XML, from the initial \rbox{dvi} reference. It is important to observe that the base name is acquired from the \mtbox{currentFile} reference (i.e, the name without the associated extension) and used to construct the resulting file. + +\begin{description} +\item[\abox{options}] This option, as the name indicates, takes a list of raw command line options and appends it to the actual system call. An error is thrown if any data structure other than a proper list is provided as the value. +\end{description} + +\begin{codebox}{Example}{teal}{\icnote}{white} +% arara: dvisvgm +\end{codebox} + \item[\rulebox{etex}{Marco Daniel, Paulo Cereda, Nicola Talbot}] This rule runs the \rbox{etex} extended (plain) \TeX\ engine on the provided \mtbox{currentFile} reference, generating a corresponding file in a device independent format. \begin{description} @@ -393,6 +403,16 @@ spreadsheet import functions also use this setting. \end{description} \item[\abox{where}] This option, as the name indicates, sets the file location containing the indentation settings according to the provided value. This option can only be used if, and only if, \rbox[cyan]{local} is set as the value for the \abox{settings} option, otherwise the rule will throw an error. + +\item[\abox{replacement}] This option, as the name indicates, implements the replacement mode switches. Three possible values are available: + +\begin{description} +\item[\povalue{full}] This value, as the name indicates, performs indentation and replacements, not respecting verbatim code blocks. + +\item[\povalue{noverb}] This value, as the name indicates, performs indentation and replacements, and will respect verbatim code blocks. + +\item[\povalue{noindent}] This value, as the name implies, will not perform indentation, and will perform replacements not respecting verbatim code blocks. +\end{description} \end{description} \begin{codebox}{Example}{teal}{\icnote}{white} |