Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 16 18:47
    cereda commented #132
  • Oct 16 18:47
    cereda reopened #132
  • Oct 16 17:40
    pablgonz closed #132
  • Oct 16 17:40
    pablgonz commented #132
  • Oct 16 17:17
    cereda commented #132
  • Oct 11 10:20
    pablgonz commented #132
  • Oct 11 08:30
    cereda commented #132
  • Oct 11 05:00
    pablgonz opened #132
  • Sep 24 16:04
    Delanii commented #131
  • Sep 24 16:03
    Delanii commented #131
  • Sep 24 15:54
    nlct commented #131
  • Sep 24 15:48
    Delanii commented #131
  • Sep 23 11:29
    cereda commented #131
  • Sep 21 15:24
    Delanii commented #131
  • Sep 21 09:16
    nlct commented #131
  • Sep 20 17:02
    Delanii edited #131
  • Sep 20 17:00
    Delanii edited #131
  • Sep 20 16:58
    Delanii edited #131
  • Sep 20 16:57
    Delanii opened #131
  • Sep 18 10:38
    cereda commented #130
Paulo Cereda
@cereda
However, only the last version of TeX Live gets updates. So if you have TeX Live 2018, when updating your packages (e.g, tlmgr update --all), you will get arara 4.0.
tlmgr info arara
package:     arara
category:    Package
shortdesc:   Automation of LaTeX compilation
longdesc:    Arara is comparable with other well-known compilation tools like latexmk and rubber. The key difference is that arara determines its actions from metadata in the source code, rather than relying on indirect resources, such as log file analysis. Arara requires a Java virtual machine.
installed:   Yes
revision:    48201
sizes:       src: 625k, doc: 2849k, run: 5177k, bin: 5k
relocatable: No
cat-version: 4.0.3
cat-date:    2018-07-13 16:30:26 +0200
cat-license: bsd
cat-topics:  compilation
collection:  collection-binextra
Zoltán Csáti
@CsatiZoltan
@cereda Thank you. Can you give me an online link (if it exists) pointing to the arara package for TeX Live 2018 (I am writing a tutorial for arara and I would like to include this information)? Just as I did above for the Miktex link.
Paulo Cereda
@cereda
@CsatiZoltan Cool, nice to hear about the tutorial! I really don't know a place where we can see the TL package version like MiKTeX one. We could check the Subversion source and see that the package was updated on July 13 (https://tug.org/svn/texlive/trunk/Master/texmf-dist/scripts/arara/), but it is too vague. I know that TL tries to keep up with CTAN, so perhaps point to https://ctan.org/pkg/arara and say that TL is usually sync'ed with CTAN within one or two days...
Zoltán Csáti
@CsatiZoltan
Thanks, perfect!
Paulo Cereda
@cereda
Yay!
Diaa
@diaa.abidou_gitlab

Hello everyone,

I asked this question in tex.sx chat, but I will ask it here again since it drowned in the chat room there.

For the following MWE on overleaf,

https://v2.overleaf.com/9463521727nkrptbfhcctp

When compiling the child file, its arara option "interaction: nonstopmode" isn't passed to the parent as seen in the log file here

https://pastebin.com/tznPcYu5

So, how can I make the options inside the child file be fetched by the parent file?

Ash
@ashthespy
@diaa.abidou_gitlab not sure - but it might have changed to action
or was it the other way around? Meh - sorry, nevermind!
Paulo Cereda
@cereda
@diaa.abidou_gitlab Everything is correct. arara only extracts directives from the file provided as command line argument. Even if you use files, only file and reference parameters are redefined. That means that the other potential parameters are kept.
I am not exactly sure what you want to achieve, but perhaps the right thing to do is invoke arara on your child document while pointing files to your main document.
Diaa
@diaa.abidou_gitlab
@cereda
I was trying to make arara also fetch the parameters found inside the child file in addition to those in the parent file.
However, from what I understand from your reply, I believe that compiling another file using files will make arara overlook those parameters of the calling file (i.e. child.tex) and only fetch those of the called file (i.e. parent.tex).
Paulo Cereda
@cereda
@diaa.abidou_gitlab arara only extracts directives from the file provided in the command line.
There's is absolutely no way of changing this behaviour.
Ash
@ashthespy
Hi all -- OT question but would anyone know a way to filter CTAN for only fonts and typesetting packages?
Nicola Talbot
@nlct
@ashthespy You could try the font topics. The simplest method is to probably go to the cloud tags https://ctan.org/topics/cloud and type "font" into the filter. Typesetting may be a bit too general, since most packages deal with some level of typesetting.
Ash
@ashthespy
I now use an ignore topic list (engine, viewer, etc)- but was wondering if there was something easier.
Nicola Talbot
@nlct
@ashthespy I'm sorry, I can't think of anything else (but that doesn't mean that there isn't a way).
Ash
@ashthespy
Now that 4.0 has is up and stable - how would you suggest I can implement a way to determine which step out of all directives arara is in?

:point_up: March 23, 2017 6:50 PM :point_up: March 23, 2017 8:03 PM

PS: This is in reference to this from long ago :-)

Ash
@ashthespy
I could earlier parse the logfile for Running ..... but with the new version that seems to have been removed?
Paulo Cereda
@cereda
ooh this is a tricky question. :wink:
@ashthespy Well, removed is not exactly accurate, we made it look better because of my typographical OCD. :D
In the log file, a directive is about to be processed in lines with I am ready to interpret rule ...
And it ends with Task result: ...
Ash
@ashthespy
ah - is there a way to determine it from the console output (via the verbose -v) mode?
I should clarify what I meant by logfile. We just capture the console output from the spawned shell. So ^^
Paulo Cereda
@cereda
@ashthespy Perhaps you could look for lines starting with (. If there is a match, it is a task. :wink:
Ash
@ashthespy
@cereda Could you point me towards how you build up the string? Will regex it then :-)
Paulo Cereda
@cereda
@ashthespy There are 4 elements in each line:
(Foo) Bar ....................................... STATUS
The first element, enclosed in parentheses, denotes the name associated to the current rule (it is the outmost name key in the rule).
The second element is the current command from the rule. It can be truncated if too wide.
Then the third element is a bunch of dots to align the display. At least 3 dots will be displayed.
At last, the fourth element is the execution status.
Paulo Cereda
@cereda
@ashthespy I am afraid of regex, they are evil. :scream_cat:
Ash
@ashthespy
@cereda I'm afraid I don't seem to see this in my typical logs:
> arara Paper -v

  __ _ _ __ __ _ _ __ __ _ 
 / _` | '__/ _` | '__/ _` |
| (_| | | | (_| | | | (_| |
 \__,_|_|  \__,_|_|  \__,_|

Processing 'Paper.tex' (size: 58 KB, last modified:
11/12/2018 11:19:50), please wait.

-----------------------------------------------------------------
(PDFLaTeX) PDFLaTeX engine
-----------------------------------------------------------------
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit)
entering extended mode
Ash
@ashthespy
ah - the output you describe is for the non verbose mode - which would be pointless for what I am trying to do (log parsing for errors) ;-)
Btw - there isn't an easy way to determine if the engine being used is arara (just from the logs that is) - I gave up trying to regex match the ascii art :-)
Paulo Cereda
@cereda
@ashthespy Well, you didn't tell me you were running arara in verbose mode. :wink:
@ashthespy Sorry, I am a bit lost here...
Nicola Talbot
@nlct

The log file (arara.log) that's created with the -l command line switch provides far more detail. For example:

14 Nov 2018 15:50:24.185 INFO  - I am ready to interpret task 'PDFLaTeX engine' from rule 'PDFLaTeX'.
14 Nov 2018 15:50:24.185 INFO  - System command: [ pdflatex, test.tex ]

Is that the kind of information you're looking for?

Ash
@ashthespy
@nlct @cereda Hmm - the use case is an atom package for LaTeX (https://github.com/James-Yu/Atom-LaTeX) so instead of writing to a separate log file the STDIO output is captured and parsed to try and highlight errors.
So while the -l is quite verbose and nice, it adds another layer of complexity
I now just match /-+\r\n(\((\w+)\)\s+)\r\n-+\r\n/g to try and determine the number of tasks arara runs
Ash
@ashthespy

Btw - there isn't an easy way to determine if the engine being used is arara (just from the logs that is) - I gave up trying to regex match the ascii art :-)

What I meant by this is for example, latexmk has a Latexmk: applying rule that lets me match for it, was wondering if there was a similar way of determining via the STDIO that its arara running the show.

Ash
@ashthespy

I now just match /-+\r\n(\((\w+)\)\s+)\r\n-+\r\n/g to try and determine the number of tasks arara runs

To match

-----------------------------------------------------------------
(PDFLaTeX) PDFLaTeX engine
-----------------------------------------------------------------
EvanAad
@EvanAad
Hello! Is there a way to add directive-context methods to Arara? Specifically, I'd like to add a method similar to the built-in, rule-context method writeToFile(String reference, String text, boolean append), except I'd like it to be accessible inside directives.
EvanAad
@EvanAad
And, while I'm asking, I wonder whether Arara has directive-context variables that can be used to communicate state (even merely Boolean state) from one directive to another down the file?
EvanAad
@EvanAad
Lastly, is there a directive-context API for querying and modifying the Arara database, other than the built-in 'changed' and 'unchanged' methods?