Texmaker and TeXstudioTexmaker paths to *.cls, *.sty, *.bib

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
Post Reply
virsto
Posts: 6
Joined: Wed Feb 10, 2010 12:28 pm

Texmaker paths to *.cls, *.sty, *.bib

Post by virsto »

First, I have looked at all the messages posted that are related to my problem. I have also studied the user manual for Texmaker.

Second, I am using Texmaker 1.9.9 and Ubuntu 9.10.

Question --- How do I setup Texmaker so that I can place my *.cls and *.sty files in /usr/my_cls_sty_files and my *.bib files in /usr/my_bib_files?

Thanks for any information that might help to answer this question. :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Texmaker paths to *.cls, *.sty, *.bib

Post by josephwright »

You don't, you put them in ~/texmf/tex/latex/<class files here> and
~/texmf/bibtex/bib/<bibtex files here>
Joseph Wright
virsto
Posts: 6
Joined: Wed Feb 10, 2010 12:28 pm

Re: Texmaker paths to *.cls, *.sty, *.bib

Post by virsto »

Location of BibTeX files for TexLive 2009 on my system:

/usr/local/texlive/2009/texmf-dist/bibtex/bib

This directory contains many subdirectories, each with *.bib files

I placed my OfficeA.bib file in this directory, as per your suggestion and then tried to compile my *.tex file that references this *.bib file.

This did not work --- same problem, Texmaker could not find my bib file.

Any other ideas as to how to get this to work!

--V
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Texmaker paths to *.cls, *.sty, *.bib

Post by josephwright »

Don't add anything to the "managed" part of your system. Install the files, as I said, inside your home directory. for example, for a package "mypkg.cls" and "mypkg.bib" on my own system I would put them in

/home/joseph/texmf/tex/latex/mypkg/mypkg.cls
/home/joseph/texmf/bibtex/bib/mypkg/mypkg.bib

(Obviously adjust the user name to suit your system.)

I would then run texhash (at the Terminal, type "texhash" and let it work). TeX should then find the files
Joseph Wright
virsto
Posts: 6
Joined: Wed Feb 10, 2010 12:28 pm

Re: Texmaker paths to *.cls, *.sty, *.bib

Post by virsto »

Ok,
But, I do not understand how to use texhash, and what it actually does!!

--V
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Texmaker paths to *.cls, *.sty, *.bib

Post by josephwright »

texhash updates the file database used by TeX to find files. Unless you update the database TeX won't find any new files outside of the current path. All you do is from the Terminal type "texhash" and press Enter. It will then run, and all should be well. See http://www.tex.ac.uk/cgi-bin/texfaq2htm ... =inst-wlcf
Joseph Wright
virsto
Posts: 6
Joined: Wed Feb 10, 2010 12:28 pm

Re: Texmaker paths to *.cls, *.sty, *.bib

Post by virsto »

Eureka!
Thanks very, very much Joseph Wright :D

The texhash command was what I was missing.

Have a good day!

--V
Post Reply