I've been using the LaTeX bundle successfully with TextMate. But I have come unstuck when I want to install a new font, for example Garamond. From http://www.ctan.org/tex-archive/fonts/mathdesign/ I see I must;
(1) Install a package called mathdesign (2) unzip the file mdugm.zip into the root directory of my texmf tree
My questions to the list are
(1) How do I download and install a package with TextMate / the bundle / using the terminal ? (2) where do I find the textmf directory in SnowLeopard ?
Thanks Lucy .
On 2010-03-23, at 10:58 AM, Lucy Buykx wrote:
I've been using the LaTeX bundle successfully with TextMate. But I have come unstuck when I want to install a new font, for example Garamond. From http://www.ctan.org/tex-archive/fonts/mathdesign/ I see I must;
(1) Install a package called mathdesign (2) unzip the file mdugm.zip into the root directory of my texmf tree
My questions to the list are
(1) How do I download and install a package with TextMate / the bundle / using the terminal ? (2) where do I find the textmf directory in SnowLeopard ?
Thanks Lucy .
Hi,
It's not really a Textmate thing; at least it never occured to me that Textmate may have something to do with it. I assume you have TexLive installed, although I think the process would be the same for every distro.
1) Download the zip file and unzip it to (2). If (2) already exists, I found that unzipping may not work, but you would have to manually move the files contained in the zip to the relative subfolders of (2).
2) The texmf directory is at ~/Library/texmf/, where ~ is your home directory (/Users/yourusernamehere/). If the folder does not exist, you may have to create it.
3) Fire up terminal, run "sudo texhash" and type in your root password.
Cheers,
JJ
On 23 Mar 2010, at 15:09, Jan Jakob Bornheim wrote:
On 2010-03-23, at 10:58 AM, Lucy Buykx wrote:
I've been using the LaTeX bundle successfully with TextMate. But I have come unstuck when I want to install a new font, for example Garamond. From http://www.ctan.org/tex-archive/fonts/mathdesign/ I see I must;
(1) Install a package called mathdesign (2) unzip the file mdugm.zip into the root directory of my texmf tree
My questions to the list are
(1) How do I download and install a package with TextMate / the bundle / using the terminal ? (2) where do I find the textmf directory in SnowLeopard ?
Thanks Lucy .
Hi JJ
Thanks for the prompt response. I appreciate it may not be a TextMate thing, but I am using the LaTeX bundle within TextMate. I have tried the various commands to find what version of LaTex I have installed, as have other more geeky people (who use Linux or other programs to use LaTeX on a Mac) and none of them can find LaTeX on this computer although it obviously exists. So we have concluded that it must be bound up and hidden somewhere in the TextMate application.
Hi,
It's not really a Textmate thing; at least it never occured to me that Textmate may have something to do with it. I assume you have TexLive installed, although I think the process would be the same for every distro.
- Download the zip file and unzip it to (2). If (2) already exists, I found that unzipping may not work, but you would have to manually move the files contained in the zip to the relative subfolders of (2).
The texmf directory is at ~/Library/texmf/, where ~ is your home directory (/Users/yourusernamehere/). If the folder does not exist, you may have to create it.
Fire up terminal, run "sudo texhash" and type in your root password.
Can you tell me what "sudo texhash" does before I go do it. And is the root password the same as my administrator password?
Cheers,
JJ
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Lucy;
I'm afraid you've run into the border area where the usual OS X ease of use has been deceptively covering up unix stuff, this leads to grinding of teeth from linux/unix experts who are used to working in the command line/ Terminal.
"sudo" prefixing a command gives the command administrator or "root" privilege i.e. the command will have access to all areas of your system - you are right to be cautious.
texhash:
"If a new class or style file has been added (but not if these files have been modified), the users have to update their 'file name data base' (FNDB) before they can use these classes and styles. For instance, teTeX users have to execute texhash;"
from: http://en.wikibooks.org/wiki/LaTeX/Collaborative_Writing_of_LaTeX_Documents
As for finding Latex - I can assure you that TextMate does no more Latex processing than just syntax highlighting. Producing pdfs etc is handled by the particular distribution of latex you have installed.
Try:
which latex
or
which pdflatex
On my system they point show the programs are in /usr/texbin and much of the rest of the "stuff" is in /usr/local/texlive/
-chris
On Tue, Mar 23, 2010 at 4:13 PM, Lucy Buykx lucy@buykx.com wrote:
On 23 Mar 2010, at 15:09, Jan Jakob Bornheim wrote:
On 2010-03-23, at 10:58 AM, Lucy Buykx wrote:
I've been using the LaTeX bundle successfully with TextMate. But I have come unstuck when I want to install a new font, for example Garamond. From http://www.ctan.org/tex-archive/fonts/mathdesign/ I see I must;
(1) Install a package called mathdesign (2) unzip the file mdugm.zip into the root directory of my texmf tree My questions to the list are (1) How do I download and install a package with TextMate / the bundle / using the terminal ? (2) where do I find the textmf directory in SnowLeopard ? Thanks Lucy .
Hi JJ Thanks for the prompt response. I appreciate it may not be a TextMate thing, but I am using the LaTeX bundle within TextMate. I have tried the various commands to find what version of LaTex I have installed, as have other more geeky people (who use Linux or other programs to use LaTeX on a Mac) and none of them can find LaTeX on this computer although it obviously exists. So we have concluded that it must be bound up and hidden somewhere in the TextMate application.
Hi, It's not really a Textmate thing; at least it never occured to me that Textmate may have something to do with it. I assume you have TexLive installed, although I think the process would be the same for every distro.
- Download the zip file and unzip it to (2). If (2) already exists, I found
that unzipping may not work, but you would have to manually move the files contained in the zip to the relative subfolders of (2).
- The texmf directory is at ~/Library/texmf/, where ~ is your home
directory (/Users/yourusernamehere/). If the folder does not exist, you may have to create it. 3) Fire up terminal, run "sudo texhash" and type in your root password.
Can you tell me what "sudo texhash" does before I go do it. And is the root password the same as my administrator password?
Cheers, JJ _______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Lucy,
never mind. I get the same output. However IIRC Textmate installed texlive for me and I assume it should be in this path on your mac as well:
/usr/local/texlive/
Try
cd /usr/local/texlive
If that doesn't give you an error and you get a line like this dyn090:texlive
the assumption was right.
Cheers, Nick
Am 23.03.2010 um 17:59 schrieb Lucy Buykx:
On 23 Mar 2010, at 16:47, chris wrote:
Try:
which latex
or
which pdflatex
Hi Chris
When I try the above I get nothing...
Last login: Tue Mar 23 15:54:40 on console dyn090:~ lucy$ which latex dyn090:~ lucy$ which pdflatex dyn090:~ lucy$
Any ideas?
Lucy
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 2010-03-23, at 12:47 PM, chris wrote:
Lucy;
I'm afraid you've run into the border area where the usual OS X ease of use has been deceptively covering up unix stuff, this leads to grinding of teeth from linux/unix experts who are used to working in the command line/ Terminal.
"sudo" prefixing a command gives the command administrator or "root" privilege i.e. the command will have access to all areas of your system - you are right to be cautious.
Just to add to that, at least on my system, the sudo prefix is necessary because the regular user does not have write access to the folder /usr/local/texlive/ where the database is stored. I am pretty sure that is standard setup in Mac OS X. Thus, I said that not because I wanted to wreak havoc on your system, but rather to assure texhash has the desired effect. And yes, the password should be the same as the admin password.
JJ
On 23 Mar 2010, at 17:31, Jan Jakob Bornheim wrote:
Just to add to that, at least on my system, the sudo prefix is necessary because the regular user does not have write access to the folder /usr/local/texlive/ where the database is stored. I am pretty sure that is standard setup in Mac OS X. Thus, I said that not because I wanted to wreak havoc on your system, but rather to assure texhash has the desired effect. And yes, the password should be the same as the admin password.
Thats alright JJ. I'm OK with the concept of sudo, just didn't know what the command was. Unfortunately, as with all the other commands that are to do with LaTeX, unrecognised by my computer. And unfortunately again, my administrator password is not accepted as my root password and I recall a tech guy pulling his hair out trying to figure how to set up a root user for me. I think we gave up.
Lucy
Another thing I should mentioned is that you may try to ask in the comp.text.tex news group. This mail list is really nice and feel free to ask here. But I think that group is specific for any question related to tex, so you may get answers there quicker and better.
Back to your original question, at least on my system, mathdesign is already installed with TeXLive (mactex) distribution. More specifically, for Garaomand, what you need is the non-free Garamond fonts binary file, i.e. the .pfb files. But I have no idea where to find it since the link given by the FAQ page is dead. The file provided in CTAN are merely latex support file for this font and accompany fonts designed by the MathDesign project. It does not contain the URW Garamond fonts due to the license issue.
On 23 Mar 2010, at 17:36, Lucy Buykx wrote:
On 23 Mar 2010, at 17:31, Jan Jakob Bornheim wrote:
Just to add to that, at least on my system, the sudo prefix is necessary because the regular user does not have write access to the folder /usr/local/texlive/ where the database is stored. I am pretty sure that is standard setup in Mac OS X. Thus, I said that not because I wanted to wreak havoc on your system, but rather to assure texhash has the desired effect. And yes, the password should be the same as the admin password.
Thats alright JJ. I'm OK with the concept of sudo, just didn't know what the command was. Unfortunately, as with all the other commands that are to do with LaTeX, unrecognised by my computer. And unfortunately again, my administrator password is not accepted as my root password and I recall a tech guy pulling his hair out trying to figure how to set up a root user for me. I think we gave up.
Lucy
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I suggest you should consult the TUG (Tex User Group) mail list. This is really not a TextMate thing nor a LaTeX bundle thing. Installing and using package has nothing to do with TextMate or LaTeX bundle. They merely provide a excellent way for editing latex source file.
There are dozens of ways to check which tex you are using.
In terminal, try
tex -version
or
latex -version
Most mac users nowadays use MacTeX, aka, TeXLive. If you find "TeX Distribution" in the System preference panel, then you are using it and you can check which distribution is in use.
Finally, use terminal to check the following directory to see if you can find anything.
/usr/local/ On 23 Mar 2010, at 16:13, Lucy Buykx wrote:
On 23 Mar 2010, at 15:09, Jan Jakob Bornheim wrote:
On 2010-03-23, at 10:58 AM, Lucy Buykx wrote:
I've been using the LaTeX bundle successfully with TextMate. But I have come unstuck when I want to install a new font, for example Garamond. From http://www.ctan.org/tex-archive/fonts/mathdesign/ I see I must;
(1) Install a package called mathdesign (2) unzip the file mdugm.zip into the root directory of my texmf tree
My questions to the list are
(1) How do I download and install a package with TextMate / the bundle / using the terminal ? (2) where do I find the textmf directory in SnowLeopard ?
Thanks Lucy .
Hi JJ
Thanks for the prompt response. I appreciate it may not be a TextMate thing, but I am using the LaTeX bundle within TextMate. I have tried the various commands to find what version of LaTex I have installed, as have other more geeky people (who use Linux or other programs to use LaTeX on a Mac) and none of them can find LaTeX on this computer although it obviously exists. So we have concluded that it must be bound up and hidden somewhere in the TextMate application.
Your conclusion is absolutely wrong. I am very sure that the tex/latex/pdftex are not bound up and hidden anywhere in the TextMate
Hi,
It's not really a Textmate thing; at least it never occured to me that Textmate may have something to do with it. I assume you have TexLive installed, although I think the process would be the same for every distro.
- Download the zip file and unzip it to (2). If (2) already exists, I found that unzipping may not work, but you would have to manually move the files contained in the zip to the relative subfolders of (2).
The texmf directory is at ~/Library/texmf/, where ~ is your home directory (/Users/yourusernamehere/). If the folder does not exist, you may have to create it.
Fire up terminal, run "sudo texhash" and type in your root password.
Can you tell me what "sudo texhash" does before I go do it. And is the root password the same as my administrator password?
Cheers,
JJ
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 23 Mar 2010, at 17:10, Yan Zhou wrote:
I suggest you should consult the TUG (Tex User Group) mail list. This is really not a TextMate thing nor a LaTeX bundle thing. Installing and using package has nothing to do with TextMate or LaTeX bundle. They merely provide a excellent way for editing latex source file.
Can you confirm that the LaTeX bundle in TextMate provides support for writing source code, compiling and producing PDF output, but provides ZERO support for adding new packages?
There are dozens of ways to check which tex you are using.
In terminal, try
tex -version
or
latex -version
Have found that I do have a folder called /usr/local/texlive - MacOS Finder helpfully hides this so I was unable to see it before. However neither "tex" or "latex" are recognised as commands.
Most mac users nowadays use MacTeX, aka, TeXLive. If you find "TeX Distribution" in the System preference panel, then you are using it and you can check which distribution is in use.
Here's a screen shot of my system preferences - where would I go look for Tex Distribution?
On 23 Mar 2010, at 17:28, Lucy Buykx wrote:
On 23 Mar 2010, at 17:10, Yan Zhou wrote:
I suggest you should consult the TUG (Tex User Group) mail list. This is really not a TextMate thing nor a LaTeX bundle thing. Installing and using package has nothing to do with TextMate or LaTeX bundle. They merely provide a excellent way for editing latex source file.
Can you confirm that the LaTeX bundle in TextMate provides support for writing source code, compiling and producing PDF output, but provides ZERO support for adding new packages?
As far as I know there no such thing in latex bundle. However there maybe other ways to install tex/latex and packages through textmate.
There are dozens of ways to check which tex you are using.
In terminal, try
tex -version
or
latex -version
Have found that I do have a folder called /usr/local/texlive - MacOS Finder helpfully hides this so I was unable to see it before. However neither "tex" or "latex" are recognised as commands.
Maybe they are not added to the search path. The easiest way I suggest is just reinstall the MacTeX. http://www.tug.org/mactex/2009/ Everything should be fixed. You can use the texlive utility to add/update packages, http://code.google.com/p/mactlmgr/ Most popular packages you may encounter are already in TexLive distribution. So the texlive utility will do all the job for you.
Most mac users nowadays use MacTeX, aka, TeXLive. If you find "TeX Distribution" in the System preference panel, then you are using it and you can check which distribution is in use.
Here's a screen shot of my system preferences - where would I go look for Tex Distribution?
<Screen shot 2010-03-23 at 17.27.45.png> _______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Tue, Mar 23, 2010 at 6:28 PM, Lucy Buykx lucy@buykx.com wrote:
On 23 Mar 2010, at 17:10, Yan Zhou wrote:
I suggest you should consult the TUG (Tex User Group) mail list. This is really not a TextMate thing nor a LaTeX bundle thing. Installing and using package has nothing to do with TextMate or LaTeX bundle. They merely provide a excellent way for editing latex source file.
Can you confirm that the LaTeX bundle in TextMate provides support for writing source code, compiling and producing PDF output, but provides ZERO support for adding new packages?
Well, actually it just automates that for you. It uses stuff that is installed with a TeX-distribution. AFAIK it doesn't install packages and I do not know any other editor w/ TeX-syntax highlighting it does. I have TeX Live installed and I use usually "TeX Live Utility.app" for that. Before that it was downloading and installing packages by hand.
There are dozens of ways to check which tex you are using.
In terminal, try
tex -version
or
latex -version
Have found that I do have a folder called /usr/local/texlive - MacOS Finder helpfully hides this so I was unable to see it before. However neither "tex" or "latex" are recognised as commands.
Then your path-variables are probably not set. How did you install TeX in the first place? I suggest you download MacTeX and install that. http://www.tug.org/mactex/downloading.html
That installs TeX Live and installs some graphical utilities (like the above mentioned "TeX Live Utility" as well).
Most mac users nowadays use MacTeX, aka, TeXLive. If you find "TeX Distribution" in the System preference panel, then you are using it and you can check which distribution is in use.
Here's a screen shot of my system preferences - where would I go look for Tex Distribution?
It's a pref by itself - pretty obvious in the third party-line of system preferences.
But I suggest you subscribe to "OS X TeX": http://mactex-wiki.tug.org/wiki/index.php?title=TeX_on_Mac_OS_X_mailing_list because it's getting more and more offtopic by the minute for this list.
Niels
Lucy,
the LaTeX bundle for TM is something to help you working with LaTeX, however it does NOT free you from all "administrative work" in LaTeX you need to do. Therefore, no, the bundle does NOT offer any support for adding new packages. I don't know about all the other editors that have some kind of LaTeX support (highlighting, commands...) but don't think that any of them offers you a frontend to add packages.
But apart from that it shouldn't be that hard to install a LaTeX package. As you already said, there is a texlive installation on your mac and you found out the correct path. Simply follow the instructions given before and you should be fine. Tell us if you run into any problems, most people on the list are willing to help even though your problem is not really related to Textmate itself.
Good luck, Nick
Am 23.03.2010 um 18:28 schrieb Lucy Buykx:
On 23 Mar 2010, at 17:10, Yan Zhou wrote:
I suggest you should consult the TUG (Tex User Group) mail list. This is really not a TextMate thing nor a LaTeX bundle thing. Installing and using package has nothing to do with TextMate or LaTeX bundle. They merely provide a excellent way for editing latex source file.
Can you confirm that the LaTeX bundle in TextMate provides support for writing source code, compiling and producing PDF output, but provides ZERO support for adding new packages?
There are dozens of ways to check which tex you are using.
In terminal, try
tex -version
or
latex -version
Have found that I do have a folder called /usr/local/texlive - MacOS Finder helpfully hides this so I was unable to see it before. However neither "tex" or "latex" are recognised as commands.
Most mac users nowadays use MacTeX, aka, TeXLive. If you find "TeX Distribution" in the System preference panel, then you are using it and you can check which distribution is in use.
Here's a screen shot of my system preferences - where would I go look for Tex Distribution?
<Screen shot 2010-03-23 at 17.27.45.png> _______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate