| View previous topic :: View next topic |
| Author |
Message |
amk
Joined: 26 Mar 2008 Posts: 2
|
Posted: Wed Mar 26, 2008 5:50 pm Post subject: use of package listings doesnt work |
|
|
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 |
|
 |
amk
Joined: 26 Mar 2008 Posts: 2
|
Posted: Thu Mar 27, 2008 5:37 pm Post subject: |
|
|
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 |
|
 |
ceke
Joined: 22 Nov 2008 Posts: 1
|
|
| Back to top |
|
 |
|