I would like to add a new engine in TeXShop which is able to perform the xindy
command in the following way:
texindy -g meindok.idx
I do not want to call the command every time from the command line, instead the dropdown menu integrated in TeXShop is quite comfortable. Unfortunately, I have no idea where the current engines shown in TeXShop are saved. There must have been a change since 2015 because all the posts which I found say that you have to create an engine in ~/Library/TeXShop/Engines
but that path does not exist any more.
Best Answer
Making a
texindy
EngineHere's what your
texindy.engine
should look like.Make sure you set the executable bit on the file. In the Terminal type:
Making a
texindy
rule forarara
An alternative way to do this (although the two approaches are not incompatible) is to make an
arara
rule to runtexindy
. We can do this modelled after themakeindex
rule given in thearara
manual.First, move the
arara.engine
from theInactive
folder to theEngines
folder in~/Library/TeXShop
if you haven't already.Then, you need to make a local configuration file for
arara
to tell it where to find your custom rules. This should be saved as~/araraconfig.yaml
(i.e., in your home folder.)Make a directory for your local rules somewhere in your home folder. For example if you make a folder
arara
in your home folder you would put the following, but the folder can be anywhere (for example, mine is in my Dropbox folder so that all my Macs can find it.) You just need to specify the place in this file.Now in the
arara
folder you've created, we can add the following rule calledtexindy.yaml
This is an
arara
rule that will allow you to calltexindy
witharara
. I've set up the rule to be able to pass the-g
option; if you need other options you will need to add them similarly to the rule.Now in your source document you can put the following, which should do all the necessary runs for you automatically. (You may need to adjust the order.)