Questions tagged [arara]

{arara} is a TeX automation tool based on rules and directives, written in Java.

Filter by
Sorted by
Tagged with
28
votes
3answers
2k views

Is Arara safe/secure

I have just begun playing around with arara and I am curious if there are safety/security concerns. For example, pdflatex from TeX Live has shell escape disabled by default. If the TeX Live team think ...
26
votes
0answers
959 views

How to write an arara rule for knitr

I've been trying to write a rule for invoking knitr via arara, but I don't seem to know what I'm doing, apparently. The arara manual explains how to define custom rules. To do so, it is necessary to ...
25
votes
2answers
2k views

arara: making a rule to compile the main file from a chapter file

I am really enjoying the arara tool for automating the compilations of my documents- thanks Paulo and the team :) I work on a few projects that have a main file (say myfile.tex) that \includes its '...
24
votes
3answers
5k views

How to install arara with MiKTeX / Windows?

Arara is a tool to automate your LaTeX workflow. It comes pre-installed with TeXLive 2012. However, I could not find any reference on how to install it on MikTeX / Windows. In the documentation it ...
19
votes
1answer
7k views

Integration of arara in Texmaker

The documentation of arara has a chapter about IDE integration. However the often used editor Texmaker is missing. The installation of the tool itself is well described in the documentation of arara ...
18
votes
1answer
655 views

New version of arara broke my custom rule

Disclaimer: Since arara 4.0 is now live on TeX Live, I am antecipating the inevitable and asking the question myself. Hope it helps! :) I updated my TeX Live distro today and found that arara got ...
16
votes
1answer
638 views

How do I write an arara rule to conditionally execute a command

I wanted to write an arara rule that will conditionally execute a command based on the existence of external files. Here's an example rule that I was able to get working: !config # open rule for ...
15
votes
4answers
829 views

Arara problem with xelatexmk rule

After many tests in Mac OS X and Ubuntu, I haven't been able to run arara with Brent Longborough's xelatexmk.yalm rule. No matter what I do, arara seems to run latexmk with pdflatex, not with xelatex. ...
14
votes
1answer
857 views

Arara rule to delete files with wildcard

How can I define a Arara rule to delete with wildcard? The following should delete all log files in the folder of the LaTeX file. %!TEX TS-program = Arara % arara: pdflatex: { synctex: yes } % arara:...
14
votes
1answer
275 views

How do I specify two default options for an arara identifier?

(Apologies if I have the terminology incorrect.) I want to write a directive for arara that can take an argument. The directive should set the name of the output file according to the following ...
11
votes
2answers
519 views

Where do the local arara rules live under windows?

I know they go under ~/.arara under unix platforms, but I tried having them under %USERPROFILE%\.arara, and they are not getting picked up.
11
votes
1answer
553 views

arara: between silent and verbose mode

Consider the following files myfile.tex % arara: myrule: {items: [lions, zebras]} \documentclass{article} \begin{document} hello world \end{document} myrule.yaml !config # # Sample usage # % ...
10
votes
1answer
444 views

arara: problem with spaces in the name of .tex files?

I know that there is a problem with spaces in the name of .bib files. Nonetheless, the following MWE compiles perfectly fine if one does the normal latex -> bibtex -> latex -> latex compilation ...
10
votes
2answers
462 views

Is it possible to write an arara rule which uses a bash script?

I've written a shell script to convert some of my files to different formats for use in my LaTeX files. Is it possible to write an arara rule which can use my shell scripts? EDIT I should note: ...
10
votes
1answer
3k views

How to use arara with TeXworks

I'm trying to use arara with TeXworks in Ubuntu 12.10 (TeX Live 2012). I've been searching all over the web but couldn't get it working. First: I'm not sure how to correctly implement arara: Should ...
10
votes
1answer
459 views

Generating two pdf versions (based on conditional statement) from same tex file with arara

I teach university courses and my goal is to be able to output two pdf's from the same tex file: A problem set A problem set with solutions I already do this manually by calling \newif and then ...
10
votes
1answer
240 views

Is it possible to write an arara rule that invokes another arara rule?

Is it possible to create an arara rule which possibly invokes other arara rules? I've managed to write an arara rule which conditionally executes a command. !config # open rule for arara # author: ...
10
votes
1answer
896 views

How is automatic indentation done for subfiles with arara and latexindent?

I guess that I have overlooked something, but I can't find a solution to run arara on my subfiles when processing my main file. I would like to autoindent my code but only succeed for the main.tex. I ...
10
votes
1answer
2k views

How do I pass the index style file to makeindex using arara?

I am running arara like this: % arara: makeindex: { options: -s "%tm.ist" -t "%tm.glg" -o "%tm.gls" "tm.glo" } to produce glossaries with the package gloassaries. I took this options from my IDE ...
10
votes
2answers
910 views

Sublime 3 with Arara

I would like to use Sublime 3 for my LaTeX work, however I'm having some difficulty getting arara working as part of the build. I have TexLive installed so I have the arara binaries available (used ...
9
votes
2answers
305 views

Make arara close pdflatex upon error

I am using arara and TexStudio, and before I started using arara, Texstudio would shut down the pdflatex process on hitting Stop Compiling. I'm using arara with the following commands: % arara: ...
9
votes
1answer
569 views

arara: problem with animate.yaml

I wanted to automate conversion from pdf to animated gif with animate rule provided by cmhughes in answer to plotting the sequence x_n using tikz. I'm using arara+texworks+miktex on windows. I also ...
9
votes
0answers
192 views

How to precompile preamble when using arara [closed]

A different tex question led me to a link regarding a precompiled preamble. I use arara for all of my runs. What is the correct procedure to use a precompiled preamble for each of the runs made ...
8
votes
4answers
516 views

Is there a possibility to change compiler engine depending on presence of a package

I'm used to use both pdflatex and xelatex engine to compile my documents, xelatex in case of .tex files containing polyglossia package and pdflatex for the others My question is there a method ( ...
8
votes
1answer
341 views

arara: making rules for a script that takes multiple flags and arguments

I'm working on an arara rule for indent.plx which can be called in a few different ways: indent.plx myfile.tex (outputs to the terminal) indent.plx -w myfile.tex (overwrites original file and outputs ...
8
votes
1answer
384 views

Arara rule to remove all files except 'tex' and 'pdf'

I have this example % arara: pdflatex % arara: pdflatex % arara: clean: { files: [test.log,test.aux] } \documentclass{article} \usepackage{lipsum} \begin{document} \tableofcontents \section{...
8
votes
1answer
1k views

Setting environment variable with arara

I wanted to set my TEXINPUTS environment variable from with an arara rule/directive. For example my texinputs.yaml rule is !config identifier: texinputs name: texinputs command: export TEXINPUTS="@{...
8
votes
1answer
837 views

How to set a new clean arara rule that circumvents Dropbox interference in Windows?

arara is a cool tool for LaTeX automation, it works by setting your directives (i.e., a code line in tex document) to tell arara what to run next in a specific order that best suits your LaTeX ...
8
votes
1answer
255 views

How can I optimize the arara password program?

I have written the following (runable) arara-program, which creates a password-locked pdf with adjustable prohibited access rights: secure.yaml !config # GhostScript-ps2pdf password-security rule ...
7
votes
1answer
1k views

What is the most elegant way to provide a cross-platform project with automated compilation routine?

There are many different ways to automate the compilation of a LaTeX project. I would like to start a discussion, what would be the most flexible and elegant and omnipotent way to provide a project ...
7
votes
1answer
396 views

Arara rule for log file scraping

Is there a script or arara rule that does log file scraping for messages about bad boxes, warnings, and obvious rerun messages and outputs this to stdout? It doesn't need to be perfect. I am looking ...
7
votes
1answer
137 views

How to compile the main from a chapter when the main is in another directory (with arara)?

This solution works perfectly if the main is in the same directory of the chapter file. But suppose I have: maindirectory main.tex chapterdirectory chapter.tex How can I compile main.tex ...
7
votes
1answer
5k views

Problem: found character @'@' that cannot start any token

I'm trying to create an arara rule that will download my bibliography from zotero using its embedded server. The URL works, that's not the issue, but arara claims the file has a syntax issue. The ...
7
votes
1answer
561 views

How to open TeXworks' TeX root pdf result with arara?

Until now I've been using TeXworks to edit my .tex projects. When the project is divided in several subfiles I can use % TeX root=my_main_file.tex directive in order to compile the main file and not ...
7
votes
1answer
1k views

How can I save auxiliary-files into an other folder with arara?

I tried to do the following: % arara: lualatex: {options: -output-directory=.\output\ -aux-directory=.\auxiliary} I did not succeed. I also tried starting the command with -- as well as absolute ...
7
votes
1answer
72 views

How to create a meta directive in arara?

I am using arara to automatically compile some tikz images as standalone files. I have a bunch of these figures and they all have the same set of directives % arara: clean: { extensions: [ aux, bbl, ...
7
votes
1answer
128 views

arara: toggle identifier in the rule

I'm working on an arara rule that makes use of the items identifier % arara: myrule: {items: [lions, zebras]} \documentclass{article} \begin{document} hello world \end{document} The rule, ...
7
votes
1answer
229 views

(arara) make rule failure non-fatal

I have a rule that attempts to download the bibliography as part of the build, but I would preferably have the option to have it soft-fail when the download fails, as I probably have a up-to-date copy ...
7
votes
1answer
479 views

How can I build an arara rule for running perl scripts

I want to write an arara rule for perl scripts, especially for fancy-preview. (Another test-script: latexcount.) Edit: In the Command-Line perl fancy-preview jobname.tex works! I have installed ...
6
votes
2answers
1k views

How to compile glossaries with arara without Perl?

I don't want to install Perl. I am using arara for building. I make use of the glossaries package. Can I compile my document without the makeglossaries help script (I don't want to install Perl)? I ...
6
votes
1answer
484 views

Using Arara with TexCount

I'm running TeXShop and I have a pretty big document - my PhD thesis. I want to do a word count with regular intervals, not necessarily every time I compile, but I want the information to be ...
6
votes
2answers
282 views

How can I use arara to get a graphics file?

In a standard TeX Live distribution Ghostscript is, to my knowledge, present; it is hidden, but it is there. Edit: Yes, it is under \Texlive\2013\tlpkg\tlgs So to my question: How can I use arara,...
6
votes
1answer
100 views

Is it possible to pass “draft” option to documentclass with arara?

I have this document: % arara: pdflatex \documentclass[11pt, openright, % draft ]{book} \begin{document} Something \end{document} If I want both the final version and the draft one, I have ...
6
votes
1answer
239 views

arara keeps asking me to upgrade my Mac Java?

I have been using arara + TeXShop to automate the pdflatex, bibtex, pdflatex, pdflatex, until recently, array pops up a window, asking me to upgrade my Mac Java. Then, I did. I clicked "More Info", ...
6
votes
1answer
110 views

arara: fallback directive if no directives specified

Question Is it possible to tell arara to use a default directive when no directive is specified in the file, e.g. to run pdflatex twice? Background I often get LaTeX-files from other people, and ...
6
votes
1answer
108 views

Trying to convert my old custom arara rule

I have a rule which worked with the old version of arara: !config # Open the every <filename>.<format> that can be opened # The default for <filename> is the current file. # The ...
6
votes
1answer
2k views

How to use arara with TeXShop

I try to use arara with TeXShop on my Mac, but I don't understand some steps either javascript, probably because of my english & my programer level. I create first the arara.engine in the /...
6
votes
1answer
236 views

Using arara to compile powerdot twice

I want to compile my powerdot presentation twice -- once with, once without notes. I am trying to achieve this using arara with something like: % arara: latex { set \powerdotmode=slides here } % ...
6
votes
1answer
2k views

How to get a 1-click compilation of XeLaTeX with Biber using arara?

I want to use XeLaTeX as typesetting engine and Biber for my references. I want to have a 1-click-compilation setup, preferably in a GUI editor. I work on Windows, thus a solution for TeXworks or ...
6
votes
1answer
216 views

What is the correct way to use draft mode with arara?

What is the difference between % arara: pdflatex: { draft : yes } \documentclass{book} and % arara: pdflatex \documentclass[draft]{book} ? Which one is better? And when I need to run a more ...