[OS X TeX] One Last Change! (Yeah, Sure.)

Herbert Schulz herbs at wideopenwest.com
Mon Apr 14 18:49:05 CEST 2008


Howdy,

I discovered that latexmk is much smarter than I am. (I think a fairly  
easy task.)

When using the The glossary package to create a Acronym list (via the  
[acronym] option) a run through (xe/pdf)latex creates a file with  
extension .acr which is then processed through makeindex to create a  
file with extension .acn that is read back into the document in  
subsequent runs of (xe/pdf)latex. So the makeindex processing is .acr- 
 >.acn.

The glossaries package, under the same circumstances, does the  
reverse. It creates a .acn file which is processed using makeindex  
into a .acr file, etc. So the makeindex processing is .acn->.acr.

I was afraid that having both a dependancy and rule for latexmk that  
told it how to process .acn->.acr and .acr->.acn would lead to a run- 
on condition so I believed I could only support one of the two  
packages at a time.

This morning I threw caution to the wind and tried having both  
dependancies and rules in the configuration (rc) files at once. Well,  
latexmk worked perfectly fine with either glossaries or glossary.  
Since latexmk keeps track of the files produced via the (xe/pdf)latex  
run it ``knows'' which files are output and uses only those  
dependancies.

I've now included both dependancies and rules in the rc files so both  
the glossaries and glossary package should work out of the box. If you  
create custom glossaries, with either package, you still have to add  
you own dependancies and rules to the rc files (hey, I can't read you  
mind :-)) but there is an example in the rc files for a Notation list  
that works with the examples given with the packages.

You can pick up the updated Latexmk321jTeXShop.zip file from <http://homepage.mac.com/herbs2 
 >.

I promise that I'll only update this if a new version of latexmk  
appears or someone finds a bug in the distribution for TeXShop.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)





More information about the macostex-archives mailing list