[OS X TeX] tex files and mdimport
Adam Maxwell
amaxwell at mac.com
Mon Nov 14 15:53:48 EST 2005
On Monday, November 14, 2005, at 12:03PM, Richard Koch <koch at math.uoregon.edu> wrote:
>Folks,
>
>Adam Maxwell wrote
>
>>> I don't think they should have been searched in the first place,
>>> so Spotlight is probably working (more) correctly now. I wrote up
>>> a trivial importer that indexes .tex files by file content,
>>> \author, and \title. Any other LaTeX commands that would be worth
>>> trying to parse for metadata? If this would be useful, I'll
>>> release it under a BSD license as part of the mactextoolbox (if
>>> Maarten is agreeable).
>>
>
>and Gary Gray wrote
>
>> Maybe I am crazy (actually, I know I am, but that is for another
>> topic), but I would like to see it index everything in the .tex
>> file. Is there a reason this shouldn't be done?
>
>I believe Adam intended to do that; he'll pull out the content, but
>he'll separately pull out "author" and "title"
>information.
Exactly.
>
>My only fear is that there will end up being several tex indexers;
>let's try to avoid that by adopting one, say
>Adams. I'd like to distribute it with TeXShop, so I hope your license
>scheme permits that and permits similar
>distribution by other front ends, etc.
Right, I'd really like to avoid that as well. I've defined a bogus UTI for my experiment, but you'd probably want to define a UTI in TeXShop, then create a new MDImporter in Xcode for that UTI. I'll provide the GetMetadataForFile.m implementation, and it can be dropped into a new importer project (each one has a unique ID, generated when you create the project). If anyone else wants to use it, they follow the same procedure (set up UTI in Info.plist, create importer with unique ID).
Feel free to contact me off-list; I've done this a couple of times. You can redistribute BSD with GPL software AFAIK, so that should be no problem.
Adam
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the MacOSX-TeX
mailing list