ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: Newbie questions
Date: Sat, 24 Jun 2006 21:57:10 +0100	[thread overview]
Message-ID: <E1FuFBn-0004P0-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Sat, 24 Jun 2006 09:52:27 PDT." <82EF147D-62D7-43D1-AE93-2EA84CA10A88@pomona.edu>

> how do I "run" mktexlsr? from the OS X Terminal

Since you're using tetex, 'mktexlsr' should be in the PATH already (on
my linux system it's in /usr/bin, one of the very standard components
of PATH), so 'mktexlsr' from the Terminal should work.

If that doesn't work, what's the output of 'printenv PATH'?  And does
MacOS have 'locate'?  On Linux, 'locate mktexlsr' will tell you all
files that contain 'mktexlsr' in their full name (including
directory).  That often helps in finding where packages put files.

On (Debian) Linux an easier way is to ask the package management
system to list the files in a package, e.g:

  dpkg -L tetex-base 

which produces thousands of lines.  Maybe Mac gurus know something
similar for Mac OS?

Even more useful is to use a pipe (|) to connect the output of dpkg to
pattern-matching utility grep:

  dpkg -L tetex-base | grep t-amsl

which produces

  /usr/share/texmf-tetex/tex/context/maths/t-amsl.tex

For finding mktexlsr 'dpkg -L tetex-bin | grep mktexlsr' produces

  /usr/share/man/man1/mktexlsr.1.gz
  /usr/bin/mktexlsr

(also useful to use grep after a 'locate').

If locate doesn't exist, the elephant gun is 'find', e.g.

  find /usr -name 'mktexlsr'

or another example:

  find /usr -name 't-amsl.tex'

Find traverses the file system tree starting where you tell it (/usr
in the above examples) looking for whatever you ask, and prints out
the matching path names.

('locate' is just an optimized version of find: Once a week or so, the
system does a 'find /' and stores all the paths in a monster file, and
then 'locate' just looks in that file).

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

  reply	other threads:[~2006-06-24 20:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-24 14:56 Thomas Moore
2006-06-24 15:46 ` Sanjoy Mahajan
2006-06-24 16:45   ` Thomas Moore
2006-06-25 16:31     ` Hans Hagen
2006-06-29 15:02       ` Thomas Moore
2006-06-24 15:57 ` Mojca Miklavec
2006-06-24 16:52   ` Thomas Moore
2006-06-24 20:57     ` Sanjoy Mahajan [this message]
2006-06-24 17:15 ` Aditya Mahajan
2006-06-25 15:33 ` Mojca Miklavec
2006-06-25 16:54   ` Hans Hagen
2006-06-28 18:36     ` Thomas Moore
2006-06-29  0:33       ` Thomas Moore
2006-06-29  1:12         ` Aditya Mahajan
2006-06-29  2:35           ` Sanjoy Mahajan
2006-06-29 15:05             ` Thomas Moore
2006-06-29 14:57           ` Thomas Moore
2006-06-27 19:53 ` Gerben Wierda
2006-06-27 20:14   ` Hans Hagen
2006-06-28 18:42   ` Thomas Moore
2011-05-31 15:38 newbie questions Sanja C.
2011-05-31 16:27 ` Marco
2011-05-31 22:07 ` Pontus Lurcock
2011-05-31 23:44 ` George N. White III
2014-05-15 13:40 Joan & Gary
2014-05-16  8:03 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FuFBn-0004P0-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).