navaja wrote:

i've tried using listings.sty, it is installed in /tex/latex/listings.sty
my latex logfile for the document i'm using gives the following error message:
file ended while scanning use of \\lstinputlisting

why a doubleslsh here??


attached a demo

HErbert
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\begin_preamble
\listfiles
\usepackage{listings}
\end_preamble
\language ngerman
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 10
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\paperwidth 17cm
\paperheight 22cm
\leftmargin 1.2cm
\topmargin 1.4cm
\rightmargin 1.7cm
\bottommargin 1.4cm
\headsep 1cm
\secnumdepth 4
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 1
\papercolumns 1
\papersides 2
\paperpagestyle default

\layout Chapter

blah
\layout Standard

blub 
\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
lstinputlisting[language=TeX,breaklines=true,%
\newline 
   numbers=left,numberstyle=
\backslash 
tiny,%
\newline 
   basicstyle=
\backslash 
small
\backslash 
ttfamily]{newfile5.lyx}
\end_inset 


\layout Section

laber
\layout Standard

blubber
\layout Subsection

fasel
\layout Standard

blub
\the_end

Reply via email to