[OS X TeX] OT: low-tech bibliographic hyperlinking

Peter Frings peter.frings at agfa.com
Thu May 3 10:18:52 EDT 2007

On May 3, 2007, at 15:08, Roussanka Loukanova wrote:

> roussankas-computer:/usr/local rosi$ find . -name "*biblatex*" -print
> ./texlive/2007/texmf-doc/doc/english/catalogue/entries/biblatex.html
> And then, I copied + pasted
> /usr/local/texlive/2007/texmf-doc/doc/english/catalogue/entries/ 
> biblatex.html
> the browser's address sub-window: File > Open Location...

or simply use the 'open' command in the command line:
% open ./texlive/2007/texmf-doc/doc/english/catalogue/entries/ 

To make in independent of the current directory, use '/usr/local'  
instead of '.'. And you don't need the '-print' option, that's the  
default action:
% find /usr/local -name '*biblatex*'

You can combine the two using the back-tick trick:
% open `find /usr/local -name '*biblatex*'`

or use the -exec option, or pipe the result from find (or anything  
else) to 'xargs':
% find /usr/local -name '*biblatex*' | xargs -n 1 open

> Isn't there an easier way to get to the TeX catalogue online  
> straight from the Terminal's command line?

Yes. Use 'texdoc'

% texdoc jurabib
-> opens /usr/local/teTex/share/texmf.tetex/doc/help/Catalogue/ 

texdoc normally looks into the proper locations, and you can  
configure it a bit with environment variables (e.g. which viewer to  

  % man texdoc
Usage: texdoc [OPTION]... [NAME]...
   Search for NAME in the TeX documentation and start a viewer.

   --help        show this help
   -v            verbose mode: show viewer command
   -l            just list all matching files. Do not start a viewer.
   -s            search the disk. remaining arguments will be passed
                 as egrep patterns to filter the find output.

It work reasonably well if the name of the package and the filename  
of the documentation are equal. If not you may need the '-s' option  
(or use locate and grep):
% texdoc -l beamer
% locate beamer | grep guide
% texdoc -s beamer | grep guide

Or use google :-)


------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list