Helmut Kopka's interpretation of the TDS

David Carlisle twg-tds@mail.tug.org
Tue, 26 Nov 1996 14:34:20 GMT


> I find alias kpsemore 'set xxx=`kpsewhich \!$` && echo $xxx ; more $xxx'
> absolutely liberating.  It gives me both the path and the
> text of the macro file without any difficulty at all.

or for emacs addicts:

(defun tex-find-file (file)
 (interactive "sFile Name: ")
 (let ((obuff "*Shell Command Output*"))
 (shell-command (concat " kpsewhich  tex 2> /dev/null " file))
   (if (not (get-buffer obuff))
       (message (format "No such file: %s" file))  
     (set-buffer obuff)
     (find-file (buffer-substring (point-min) (- (point-max) 1)))
     )))


Which reminds me, Karl any chance of a kpsewhich extension to
be able to return `all files beginning with xyz' so I can plug
filename-completion into the above. Once you've used emacs for a
day or (decade) or so it's hard to have to type the whole of a
filename without hitting the space bar and have it auto-complete....

One final point, just so this message has something to do with the
TDS:-)

Editorial comment about the last draft. Should 
barbara beeton \>
on the last page be
Barbara Beeton \>
I know the shift key on her machine broke some time back but still???

David