GeneralWarning package styles/overview

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
axelh
Posts: 16
Joined: Wed Jan 23, 2008 12:22 pm

Warning package styles/overview

Post by axelh »

I am writing my PhD thesis (over 100 pages now) using TexnicCenter. It is my first experience with Latex, and it looks amazing :D

I wanted to ask about one Warning I get.

It says: "You have requested package 'styles/shortoverview', but the package provides 'shortoverview'.

If I replace the command "\usepackage{styles/shortoverview}" by "\usepackage{shortoverview}", I get a fatal error saying that file "shortoverview.sty" was not found.
I have the file shortoverview.sty located at the folder styles.

Do you know why this warning comes and how to solve it?

Thank you!!

Recommended reading 2024:

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

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

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

Warning package styles/overview

Post by localghost »

You should not really bother about this warning. The reason for that is very simple. As you described, you have this STY file (package) located in a subdirectory of your working directory. Hence you have to give this path when including it. But every package identifies itself in the first two lines of its code. In the case of your packages this might look like the following.

Code: Select all

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{shortoverview}
Perhaps there is an additional version date given in brackets in the second line. Now you have two possible solutions to get rid of the warning.
  1. Put the package file into your working directory.
  2. Add the (relative) path to the package's identification
Since it is not recommendable to modify package (or class) files, I suggest the first procedure. But keep in mind that you only get a warning. The compiler only makes you aware of something it detected.


Best regards
Thorsten¹
axelh
Posts: 16
Joined: Wed Jan 23, 2008 12:22 pm

Re: Warning package styles/overview

Post by axelh »

Thank you for the precise answer!

I don't want to place the style file in my working directory, I want to keep the structure organized... but modifying the package is also not a good idea.

So I guess I will have to keep living with this warning. But imho it should not work like that though, I don't know if it is an issue from MikTex or TC... but it is an unnecessary warning.

Good night!
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Warning package styles/overview

Post by phi »

I don't consider this warning unnecessary. It says that there is some file at a place where it isn't expected. If the package is only intended for this single document, put it in the main directory, otherwise use a local texmf tree. The warning is harmless in this case, but it's generally better to follow the long-established conventions.
Post Reply