Document Classesuse a cls file in texmaker

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
biacdc
Posts: 7
Joined: Fri Feb 04, 2011 7:44 pm

use a cls file in texmaker

Post by biacdc »

I have a .cls file that I want to use with texmaker.
With winedt I just did this in the preamble "\documentclass[useAMS,usenatbib]{biom}", where biom is the .cls file, and it worked perfectly.
However, with texmaker, when I try to compile my latex document, the following error is produced "! LaTeX Error: File `biom.cls' not found.", and I cannot proceed into creating my .pdf.
How do I make texmaker find my .cls file?

Thank you very much,
Beatriz
Last edited by biacdc on Fri Feb 04, 2011 9:09 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: use a cls file in texmaker

Post by localghost »

That's not a problem of your editor. The class file cannot be found in the TeX installation tree. For the present it's sufficient to put the class file into the same folder where the sources are located. If you have to use that class regularly, you should place it into a local TeX tree. The documentation of your LaTeX distribution helps hot to manage that.


Best regards and welcome to the board
Thorsten
biacdc
Posts: 7
Joined: Fri Feb 04, 2011 7:44 pm

Re: use a cls file in texmaker

Post by biacdc »

Hi,
I did put the .cls file in the same folder of my .tex file, yet it does not work, I don't know what else to do, this is really weird, specially because it was working nicely with winedt.
biacdc
Posts: 7
Joined: Fri Feb 04, 2011 7:44 pm

Re: use a cls file in texmaker

Post by biacdc »

It took me quiet a while to realize what was the problem! winedt was not case sensitive to files' names, so when I inserted in the preamble the class as {biom}, it would read my class named Biom.cls. Texmaker on the other hand is case sensitive, and that is why it wouldn't work.
Thank you very much for the reply!
Beatriz
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: use a cls file in texmaker

Post by frabjous »

That doesn't make any sense. The editor does not look for the .cls file, LaTeX does. Are these editor installed on the same computer? Do the computers use the same file system type? Unix-type machines are usually case sensitive, but Windows machines aren't.
biacdc
Posts: 7
Joined: Fri Feb 04, 2011 7:44 pm

Re: use a cls file in texmaker

Post by biacdc »

I was using winedt in a windows machine, and texmaker in my new one with linux. That's why the case sensitiveness. A small detail that took me almost the whole afternoon... :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: use a cls file in texmaker

Post by localghost »

Now that the problem is solved, please follow the directions of my last reply.
Post Reply