-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support arara (feature request/ question) #907
Comments
I'll look into arara. I'm pushing an update for the second request as we speak. |
Thanks for the quick fix! Regarding arara, my ---
!config
# Define key to minimize number of runs.
# Note that we always use batchmode since arara sees pdftex exit code and stops
# without executing further directives only if the exit code of the command was
# not zero (independent of the visibility on the console).
preambles:
minimize_runs: |
% arara: pdflatex: {interaction: batchmode, synctex: yes, shell: yes,
% arara: --> options: ["-file-line-error", "-max-print-line=120"]}
% arara: biber if found('log', 'Please \\(re\\)run Biber on the file')
% arara: --> && found('bcf', 'citekey')
% arara: pdflatex: {interaction: batchmode, synctex: yes,
% arara: --> options: ["-file-line-error", "-max-print-line=120"]}
% arara: --> if found('log', 'Please \\(re\\)run Biber on the file')
% arara: --> && found('bcf', 'citekey')
% arara: pdflatex: {interaction: batchmode, synctex: yes, shell: yes,
% arara: --> options: ["-file-line-error", "-max-print-line=120"]}
% arara: --> if found('log', '(undefined references|Please rerun|Rerun to get)') I can then replicate latexmk functionaly by running |
Ok, I've added an initial version of this now. I don't really think it will work very well, but it is a starting point. If you are willing to help me, I think we can make this work well together. To be more specific: I don't quite understand how to define a natural default behaviour. It seems arara depends on directives in the preamble, although based on your last post I understand you can or should use yaml files. Before I understand how this should be expected to work, it is (of course) difficult to provide a natural interface from vimtex. It would also be useful to get some info on how you think the different commands should work from an arara perspective. I assume arara does not do continuous compilation..? |
Thank you! I will test it this weekend. I know @cereda is a vim user so he might be interested... |
No problem. Although so far this is very untested and will probably fail... :p |
I've been summoned here by the power of poking ducks! 😄 Hello friends! Nice to meet you, Karl! It is always a great experience to learn about awesome projects like yours and make new friends. That's what open source and knowledge sharing are about. 😉 The default behaviour of % arara: pdftex
Hello world.
\bye will tell A very straightforward approach would be a simple external call to
So far so good. Then Pedro decided to complicate things. 😄 As seen in https://github.com/cereda/arara/issues/65, we can now have a predefined preamble. The new That's it, basically. 😄 Thanks for your effort in making the vim world better! Cheerio! Paulo
|
Hello, I would like to use arara too. So I added to my vimrc let g:vimtex_compiler_method = 'arara' based on the doc (g:vimtex_compiler_method) Now, when I open an existing tex file I get the next error
Other than that error the file opens normally. Runing :VimtexCompile throws:
At the moment I am manually compiling by |
First, all: Sorry for taking so long to respond. It's been summer holidays, and @cereda Nice to meet you as well, Paulo! I'm happy to see you join the @mjezzini I'm sorry that you had to experience the pre-alpha version. I've @petobens I think things should work relatively well now. Doing Let me know what you all think. I guess the main thing lacking now is the docs... |
I've updated the docs and removed the experimental label. I think things work mostly as expected now. |
@lervag Hello, Karl!
Yes and no, actually. 😉 The tool takes a different approach and requires an explicit mention, in the form of a directive, of which files should be removed. For instance (using the new syntax introduced in version 4.0): % arara: clean: { files: [
% arara: --> test.aux,
% arara: --> test.log,
% arara: --> test.toc
% arara: --> ] }
\documentclass{article}
... Another way of achieving this is by using extension matching: % arara: clean: { extensions: [ aux, log, toc ] }
\documentclass{article}
... However, this approach only removes files based on the base name of the current file + provided extensions. The two approaches can be combined at any time. In short, Cheerio! |
@lervag thank you!! |
@petobens Happy to help :) @cereda I'm not sure I understand. How do you determine if you do clean or compile? Can you have multiple directives in one file, then specify on the command line which directive to use? I guess that is what @petobens example sort of shows, and so this makes sense. I think one could use this to allow cleaning from vimtex by assuming there is a clean directive available. However, perhaps it is simpler to just use latexmk for cleaning from vimtex, even with arara? My proposal is this: If being able to clean the document from vimtex (e.g. with the |
@lervag Hello, Karl! This might sound like a paradigm shift: % arara: pdftex
% arara: pdftex
Hello world.
\bye The two directives tell % arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
\documentclass{article}
... This is a typical scenario for a paper or thesis writing, in which you have to rerun your engine a couple of times in order to get labels correctly adjusted, and one run of % arara: pdflatex
% arara: bibtex
% arara: pdflatex
% arara: pdflatex
% arara: clean: { files: [ mypaper.log ] }
\documentclass{article}
... I added a The command line switch @petobens uses refers to shortcuts of predefined preambles which will be appended to the existing one inside the source code. Directives are all executed once found (there are conditionals too, but for now let us keep things simple). 😉 Sorry if my explanation was a bit confused, it's early in the morning and I am running out of coffee. ☕️ 😉 Cheerio! Paulo |
Ok, I think I understand. And if I do, then I think the current seemingly minimal implementation should work well. Thanks for your input, @cereda! |
@lervag I can confirm that |
Great, happy to hear it! And thanks for the kind words :) |
I have two questions:
i) Is it possible to add support for arara
ii) Can I somehow disable the quickfix parsing? I've set
but I would also like to set
and parse the quickfix myself.
Thanks!!
The text was updated successfully, but these errors were encountered: