![]() When TeX needs to find a file, it searches things in ~/Library/texmf/ first, and the system-wide texmf second, so if you modify a standard TeX file and place it there, the modified file will be used. ![]() (Note that this is different from /Library, which is system-wide. Personal TeX files should be stored in ~/Library/texmf. I use the MacTex TeX distribution, instructions may change depending on which distribution you use. The following webpage was helpful to locating different things related to the LaTeX distribution: Mac The "Installing LaTeX Packages" instructions at Wikibooks suck. Installing LaTeX packages is very confusing and unclear, which makes using them a big pain in the arse. \documentclass Packages Installing LaTeX Packages The following LaTeX code is a selection from Batchelor's classic Introduction to Fluid Dynamics: Latex consists of Tex source code, which is typeset and output into one of a number of different formats (PDF, DV, LaTeX is a document typesetting system used primarily for scientific and mathematical documents. ![]() SECOND NOTE: When you put a new file or folder into the texmf directory, you should do a rehash to update the TeX database to include the files in this texmf directory with the list of available files: Just do mkdir -p ~/Library/texmf/tex/latex and you're on your way. Most TeX or LaTeX installers won't create these directories for you. NOTE: If any of these directories don't exist, you'll need to create them. bst (bib style files) in ~/Library/texmf/bibtex/bst You can put your BibTeX-related files in ~/Library/texmf/bibtex/bib ![]() You can put your LyX-related files in ~/Library/texmf/tex/latex/lyx You can put your LaTeX-related files in ~/Library/texmf/tex/latex You can put your TeX-related files in ~/Library/texmf or in ~/Library/texmf/tex ![]() The following directory schema is Mac-specific but it is how we organize our user tex/latex/lyx files: You should see where your texmf directories are.Īlternatively, you can make your own, and pass the location of your custom texmf directory to the texhash command. If you aren't sure, just run the texhash command, which will update the TeX database with the contents of the texmf directory. To install files, first you'll need to know where your TeX-related directories (which all live under the texmf/ directory) are located. Don't call pdftex from the command line without specifying which pdftex, e.g. If this is the case, remove the line sourcing these from your dot file, and just add /sw to your path manually.Ģ. Define your $PATH variable (see Dot files) to point to the MacTeX version of pdflatex (located in /usr/texbin/pdftex).įink may be putting /sw (or whatever your Fink prefix is) at the FRONT of your path, by default, if you are sourcing the file /sw/bin/init.sh or /sw/bin/pathsetup.sh or something similar. In this case, I recommend one of the following options:ġ. There may be a conflict with the version of pdftex installed by Fink and the version installed by MacTeX. I still recommend installing MacTeX from here: Mac Leopard (10.5) and Snow Leopard (10.6)įor Macs, I recommend installing MacTeX from here: Problems with pdftex? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |