Hello there!
I've got really big problems in using the listings package in Lyx 1.1.6.fix 3
with tetex on my Redhat 7.2 Linuxbox...I would be very grateful if anybody is
out there who can give me the final tip...:-)
I installed the listings package as described but if I want to create an
export from the example file (Welcome1.java with listings.lyx, taken from
www.lyx.org/help/listings/listings.php3) to PDF or PS, Latex tells me that it
has a problem:
----------------------snip---------------------------
This is TeX, Version 3.14159 (Web2C 7.3.1)
(listings.tex
LaTeX2e <2000/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman,
italian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2000/05/19 v1.4b Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/latin1.def))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/germanb.ldf
(/usr/share/texmf/tex/generic/babel/babel.def)))
(/usr/share/texmf/tex/latex/listings/listings.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/listings/lstpatch.sty)
(/usr/share/texmf/tex/latex/listings/lstmisc.sty)) (listings.aux)
LaTeX Warning: Reference `prog1' on page 1 undefined on input line 32.
! Package Listings Error: Couldn't load requested language.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.34 ...Java Program},language=Java]{Welcome.java}
! Package Listings Error: language java undefined.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.34 ...Java Program},language=Java]{Welcome.java}
(Welcome.java (/usr/share/texmf/tex/latex/base/omscmr.fd)
Overfull \hbox (92.89641pt too wide) in paragraph at lines 6--7
[][][][][][][][][][][][][][][]
Overfull \hbox (56.90492pt too wide) in paragraph at lines 7--8
[][][][][][][][][][][][][][][][][][][][][][]
Overfull \hbox (128.8879pt too wide) in paragraph at lines 8--9
[][][][][][][][][][][][][][][][][][][][][]
) (/usr/share/texmf/tex/latex/base/t1cmtt.fd)
Overfull \hbox (10.11694pt too wide) in paragraph at lines 47--47
[]\T1/cmtt/m/n/9
\lstinputlisting[caption={#2},label={#1},stringspaces=false,fr
ame={tb},%
! Package keyval Error: stringspaces undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.66 \lst{Welcome.java}{My first Java Program}
! Package keyval Error: labelstep undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.66 \lst{Welcome.java}{My first Java Program}
! Package keyval Error: labelstyle undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.66 \lst{Welcome.java}{My first Java Program}
! Package keyval Error: indent undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.66 \lst{Welcome.java}{My first Java Program}
! Package Listings Error: Couldn't load requested language.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.66 \lst{Welcome.java}{My first Java Program}
! Package Listings Error: language java undefined.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.66 \lst{Welcome.java}{My first Java Program}
(Welcome.java [1])
LaTeX Warning: Reference `Welcome1.java' on page 2 undefined on input line 69.
Overfull \hbox (11.16669pt too wide) in paragraph at lines 73--74
[]\T1/cmtt/m/n/10
basicstyle=\fontfamily{pcr}\fontseries{m}\selectfont\footnote
size
! Package keyval Error: stringspaces undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.75 ...ny,indent=2em,language=Java]{Welcome.java}
! Package keyval Error: labelstep undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.75 ...ny,indent=2em,language=Java]{Welcome.java}
! Package keyval Error: labelstyle undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.75 ...ny,indent=2em,language=Java]{Welcome.java}
! Package keyval Error: indent undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.75 ...ny,indent=2em,language=Java]{Welcome.java}
! Package Listings Error: Couldn't load requested language.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.75 ...ny,indent=2em,language=Java]{Welcome.java}
! Package Listings Error: language java undefined.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.75 ...ny,indent=2em,language=Java]{Welcome.java}
(/usr/share/texmf/tex/latex/psnfss/t1pcr.fd) (Welcome.java
(/usr/share/texmf/tex/latex/psnfss/omspcr.fd)
Overfull \hbox (5.40356pt too wide) in paragraph at lines 6--7
[][][][][][][][][][][][][][][]
Overfull \hbox (34.20386pt too wide) in paragraph at lines 8--9
[][][][][][][][][][][][][][][][][][][][][]
)
! Package keyval Error: stringspaces undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.84 ...ny,indent=2em,language=Java]{Welcome.java}
! Package keyval Error: labelstep undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.84 ...ny,indent=2em,language=Java]{Welcome.java}
! Package keyval Error: labelstyle undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.84 ...ny,indent=2em,language=Java]{Welcome.java}
! Package keyval Error: indent undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.84 ...ny,indent=2em,language=Java]{Welcome.java}
! Package Listings Error: Couldn't load requested language.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.84 ...ny,indent=2em,language=Java]{Welcome.java}
! Package Listings Error: language java undefined.
See the Listings package documentation for explanation.
Type H <return> for immediate help.
...
l.84 ...ny,indent=2em,language=Java]{Welcome.java}
(Welcome.java
Overfull \hbox (5.40356pt too wide) in paragraph at lines 6--7
[][][][][][][][][][][][][][][]
Overfull \hbox (34.20386pt too wide) in paragraph at lines 8--9
[][][][][][][][][][][][][][][][][][][][][]
) (listings.lol) [2] [3] (listings.aux)
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
)
(see the transcript file for additional information)
Output written on listings.dvi (3 pages, 9548 bytes).
Transcript written on listings.log.
---------------------------snip-----------------------------
It creates an dvi file but with errors. What's the matter here and what can I
do to solve it? My TeX Version is:
TeX (Web2C 7.3.1) 3.14159
kpathsea version 3.3.1
Kind regards,
Thomas