Open atticus-sullivan opened 1 year ago
Making a draft since I discovered a .ist
file is (sometimes) automatically created. So I want to figure out first under which circumstances this happens and how we can honor this appropriately.
Added .ist
support for makeindex
(didn't find an equivalent for xindy). Also I needed to fix some things when checking for a rerun (like adding the makeindex/xiindy output files to the auxiliary
section of the tex-input files).
Still I would be interested in the reason why you decided to touch the output files even if they didn't change (e.g.https://github.com/minoki/cluttex/blob/c16509ed9496767f346c632b3a22e33a7a3804b3/src/cluttex.lua#L332 or https://github.com/minoki/cluttex/blob/c16509ed9496767f346c632b3a22e33a7a3804b3/src/cluttex.lua#L362 )
Still I would be interested in the reason why you decided to touch the output files even if they didn't change (e.g.
https://github.com/minoki/cluttex/blob/c16509ed9496767f346c632b3a22e33a7a3804b3/src/cluttex.lua#L332
I don't remember the exact reason, but I guess that ClutTeX assumes .ind
file (or .glo
file) should be newer than .idx
file (or .gls
file) if it is up-to-date.
Oh, that actually makes sense :+1:
Reason why I added this option is that the
glossaries
package offers the ability to add many different glossaries (not just the usualglo
but also e.g. something for symbols or abbreviations). Whilemakeglossaries
is able to process these other glossaries,cluttex
has no chance of detecting changes in files different than.glo
as it doesn't know which files to watch.Thus,
--glossaries
offers the ability to register a tool (makeindex
/xindy
, these are the tools used bymakeglossaries
internally anyhow) with the respective files (needs to specify the whole filename+ext as I wanted to give full flexibility, most of the time the filename will bemain
ormaster
I think) to watch.See https://github.com/minoki/cluttex/issues/14 for some ideas and discussion (with myself).
I changed a bit the order of the arguments in the options string so now it is
type:out:inp:log:path:args
andinp
andlog
are inferred fromout
(seems like a more logical ordering). I choseout
beforeinp
as the file-ending ofout
is typically better known than the one ofinp
and I wanted the parameter which can be used to infer the other ones as early as possible.This option offers the
--makeindex
as well as the--makeglossaries
(I don't know ofmakeglossaries
flags/options that can not be set directly formakeindex
/xindy
) features. The only thing we can't do properly is to check forNo file ...
and issue a warning that the user shall set a respective option (the only thing I could think of is to watch for common extensions likeind
(index),sls
(symbols),nls
(numbers),gls
(glossaries) andacr
(acronyms/abbreviations)).So I personally would deprecate these functions or redirect them to the proper
--glossaries
call, but that's not my decision as collaborator. That's a decision of @minoki as maintainer, I think.