GeneralNo Listings due to missing Configuration File

LaTeX specific issues not fitting into one of the other forums of this category.
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

No Listings due to missing Configuration File

Post by NELLLY »

Hello,

when I used the package listings with the following option.

Code: Select all

\documentclass{article}
\usepackage{listings}
\lstloadlanguages{XML}

\begin{document}

\end{document}
I get the following error.

Code: Select all

! Package listings error: couldn't load requested aspect.
What should I do?

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: No Listings due to missing Configuration File

Post by Stefan Kottwitz »

I don't get an error with this code example. So I guess the cause is somewhere else. Do you get this error when you try exactly this example, or only with your original document?

Stefan
LaTeX.org admin
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Re: No Listings due to missing Configuration File

Post by NELLLY »

Hi Stefan,

even with the above example I get the error.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

No Listings due to missing Configuration File

Post by Stefan Kottwitz »

Please add \listfiles to the preamble, compile again, and post the corresponding log file as attachment here. That file has some more information, and we would see the version number of the listings package.

Or directly upgrade the listings package if you would notice that the version number is less than 1.4 which is on CTAN.

Stefan
LaTeX.org admin
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Re: No Listings due to missing Configuration File

Post by NELLLY »

Hi
when I did the compilation, I get that the version is 1.0. I downloaded the version 1.4 but I got the same problem. In the attached, the new log file.
Attachments
essaititlepagemoi.log
(3.15 KiB) Downloaded 557 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: No Listings due to missing Configuration File

Post by Stefan Kottwitz »

Don't download just the .sty file. Install the package via the MiKTeX package manager, since several files belong to it.

Stefan
LaTeX.org admin
NELLLY
Posts: 113
Joined: Thu Nov 26, 2009 2:21 am

Re: No Listings due to missing Configuration File

Post by NELLLY »

Hi,

generally in all the previous packages I needed, I just save the .sty file into C:\Program Files\Miktex\tex\latex. Sincerely, this the first time I heard the existence of MiKTeX package manager. I don't know how to use it? Should it be downloaded from the web or all ready it exists in any version of Miktex. I don't know how to proceed. Could you please show me how to do in details?
Many thanks.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

No Listings due to missing Configuration File

Post by Stefan Kottwitz »

NELLLY wrote:Generally in all the previous packages I needed, I just save the .sty file into C:\Program Files\Miktex\tex\latex.
This may be ok for most packages which are simply a .sty file. Actually, the name package for a single file doesn't fit well in my opinion.

A package can consist of class files and style files, or may additionally contains fonts or themes such as beamer. You can consider it as a collection of files which should be put into the TeX tree, but possibly at different places. That's why it's the best to let a package manager do the work.

NELLLY wrote:Sincerely, this the first time I heard the existence of MiKTeX package manager. I don't know how to use it? Should it be downloaded from the web or all ready it exists in any version of Miktex.
Recent versions of MiKTeX already install it automatically, found via the start menu. Also TeX Live has a package manager, since installing and updating is important and should be easy for the user.

Installing and updating requires a recent version. If your version would be too old, you could deinstall it and install the newest TeX again.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

No Listings due to missing Configuration File

Post by localghost »

NELLLY wrote:[…] Sincerely, this the first time I heard the existence of MiKTeX package manager. I don't know how to use it? Should it be downloaded from the web or all ready it exists in any version of Miktex. I don't know how to proceed. Could you please show me how to do in details? […]
I'm convinced that reading the MiKTeX Manual will answer all your questions.


Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

No Listings due to missing Configuration File

Post by Stefan Kottwitz »

By the way, it seems that your version of MiKTeX is very old:
This is TeX, Version 3.14159 (MiKTeX 2) (preloaded format=latex 2000.11.28)
Even MiKTeX 2.5 has a newer TeX version (3.141592). Old versions of MiKTeX cannot even update a single package. The current version is MiKTeX 2.9. If your version is older than 2.8, I recommend to do a deinstallation and a fresh installation of 2.9.

Stefan
LaTeX.org admin
Post Reply