TeXShopProblem with custom Style File

Information and discussion about TeXShop, an integrated LaTeX environment for Mac OS X
Post Reply
PJensen
Posts: 5
Joined: Wed Apr 25, 2012 2:16 pm

Problem with custom Style File

Post by PJensen »

Hi,

I am working in TeXShop on a mac and I want to change style of my document. I want to use a stylefile with the extension *.sty. But when I use it I get an error:
! LaTex Error: File 'bioinformatics.sty.cls' not found.[...] default extension: cls
Can I somehow change the default extension, so it looks after *.sty instead of *.cls? Or is it something else that is the problem?

Hope someone can help me.

All the best,
Palle

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Problem with custom Style File

Post by kaiserkarl13 »

You should use something like

Code: Select all

\documentclass{article}
\usepackage{bioinformatics}
This tells LaTeX to use the article document class (article.cls), plus the style changes in bioinformatics.sty. Classes and packages are different things and should not be confused---one (the class) controls the entire document layout, while the other adds new commands that should work with most (all?) document classes.
PJensen
Posts: 5
Joined: Wed Apr 25, 2012 2:16 pm

Problem with custom Style File

Post by PJensen »

Thank you very much for the reply! It seems to work for me :)

I don't know why I thought it should be like

Code: Select all

\documentclass[a4paper,11pt,danish,twoside,openright]{bioinformatics}{article}
But I think it works now.

Thanks :)
Post Reply