LaTeXEditor Forum Forum Index LaTeXEditor Forum
LaTeXEditor Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

use of package listings doesnt work

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    LaTeXEditor Forum Forum Index -> Editor
View previous topic :: View next topic  
Author Message
amk



Joined: 26 Mar 2008
Posts: 2

PostPosted: Wed Mar 26, 2008 5:50 pm    Post subject: use of package listings doesnt work Reply with quote

Hi there,

I', a newbie in latex but I'm getting into it quite well. but I seem tohave some problems mit LEd.

I want to insert sourcecode mit the package listings.

I impprt it via usepackage and want to use it then in my tex file... but also with minumal configuration and no sourcecode in it I'm getting the same error again and again. no matter what I do.


maybe you can help me. i edited everything exactly as I saw it on several websites.


this is the listings code... i also tried it without the language and backgraound things in it
Code:

\lstset{
   language=C,                % {} für normalen Klartext
   backgroundcolor=\color{white},
   linewidth=\linewidth,       % Zeilenbreite
   breaklines=true,             % Zeileumbruch
   breakatwhitespace=true, %Umbruch an Leerzeichen
   caption = test listing       % Überschrift
}
\begin{lstlisting}





\end{lstlisting}


this is the error message that i get everytime..and i havnt found something similar on the web to help me

Code:

Underfull  \hbox (badness 10000) in paragraph at lines 102--1
("C:\Program Files\MiKTeX 2.7\tex\latex\listings\lstlang1.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\listings\lstmisc.sty")
! Missing number, treated as zero.
<to be read again>
                   \relax
l.11 \begin{lstlisting}
                       
Back to top
View user's profile Send private message
amk



Joined: 26 Mar 2008
Posts: 2

PostPosted: Thu Mar 27, 2008 5:37 pm    Post subject: Reply with quote

I kind of solved it.

it was just about the template that i was using. exactly it was the used *.cls file.

dont know what it is doing wrong, but when I used another template (and another *.cls) the listing worked without problems.

I was using the eis_msc_thesis.cls by Johan Carlson


c ya
Back to top
View user's profile Send private message
ceke



Joined: 22 Nov 2008
Posts: 1

PostPosted: Sat Nov 22, 2008 2:53 pm    Post subject: Reply with quote

Hej guys,

The problem is now resolved:
http://www.latex-community.org/viewtopic.php?f=4&t=3141&st=0&sk=t&sd=a&start=0


Also, check http://www.csee.ltu.se/~johanc/ for an updated version of the template.

(Click on the link regarding LaTeX templates etc. and you'll get it)

/JC
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    LaTeXEditor Forum Forum Index -> Editor All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group