Re: Program Listing -- programming language, etc.

2019-02-11 Thread Paul A. Rubin

On 2/11/19 8:44 AM, Bernt Lie wrote:


I use LyX 2.3.1-1 on Windows 10. Two questions related to LyX and 
inserted Program Listing:


In the Settings, I can choose Language:

  * If I make my own definition for syntax highlighting of a
programming language (say, Julia or Modelica), where in the
directory tree to I put that definition so that it shows up in the
pull-down menu of “Language”?
  * If I want to insert a link to a file instead of the code itself in
the Program Listing window, how do I do that?

Any hints are welcome, e.g., which help manual to look into, etc.

-B

The program listings feature uses a LaTeX package (listings by default, 
minted if you so choose) to handle the syntax highlighting. If you are 
using listings, the manual gives information on how to add your own 
language style (and where to store it). If you switch to minted (which 
requires the Python package Pygments and maybe some other software), I 
think you can also create your own definition ... but Pygments 
 supports both Julia and Modelica (among some 300 
languages).


I have no idea if it's possible to link to an external document inside a 
program listing inset. I suspect not.


Paul



Re: program listing of child documents with accents

2012-06-04 Thread Leandro Mattioli
Worked like a charm with LyX / TeXLive 2011.

Thanks!






Re: program listing of child documents with accents

2012-06-04 Thread Leandro Mattioli
Worked like a charm with LyX / TeXLive 2011.

Thanks!






Re: program listing of child documents with accents

2012-06-04 Thread Leandro Mattioli
Worked like a charm with LyX / TeXLive 2011.

Thanks!






Re: program listing of child documents with accents

2012-03-14 Thread Helge Hafting

On 13. feb. 2012 20:33, Ricardo wrote:

Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with
the program listing input. The document is saved utf8. I can see accents
on the pdf output, but the breaklines of the listings package does not
seem to work and I do not why. A long line does not break at any place,
despite breaklines=true param is set.
Any help welcomed


I can use utf8 source code files and have breaklines work too. Of 
course, breaklines only works for real text. A line with no spaces will 
not break up.


To make utf8 content survive, put \usepackage{listingsutf8} in the 
document preamble. In the parameters for the included child document, 
set the Include Type to Program Listing, and in Listing 
parameters, set:

breaklines=true
inputencoding={utf8/latin1}

Or possibly utf8/latin9, if you use euro symbols in your program.

With this approach, it is not necessary to change the document encoding 
away from default.


Document:
http://www.aitel.hist.no/~helgehaf/sw/lyxdemo/listing.lyx
Included program code:
http://www.aitel.hist.no/~helgehaf/sw/lyxdemo/listing.c

Helge Hafting


Re: program listing of child documents with accents

2012-03-14 Thread Helge Hafting

On 13. feb. 2012 20:33, Ricardo wrote:

Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with
the program listing input. The document is saved utf8. I can see accents
on the pdf output, but the breaklines of the listings package does not
seem to work and I do not why. A long line does not break at any place,
despite breaklines=true param is set.
Any help welcomed


I can use utf8 source code files and have breaklines work too. Of 
course, breaklines only works for real text. A line with no spaces will 
not break up.


To make utf8 content survive, put \usepackage{listingsutf8} in the 
document preamble. In the parameters for the included child document, 
set the Include Type to Program Listing, and in Listing 
parameters, set:

breaklines=true
inputencoding={utf8/latin1}

Or possibly utf8/latin9, if you use euro symbols in your program.

With this approach, it is not necessary to change the document encoding 
away from default.


Document:
http://www.aitel.hist.no/~helgehaf/sw/lyxdemo/listing.lyx
Included program code:
http://www.aitel.hist.no/~helgehaf/sw/lyxdemo/listing.c

Helge Hafting


Re: program listing of child documents with accents

2012-03-14 Thread Helge Hafting

On 13. feb. 2012 20:33, Ricardo wrote:

Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with
the program listing input. The document is saved utf8. I can see accents
on the pdf output, but the breaklines of the listings package does not
seem to work and I do not why. A long line does not break at any place,
despite breaklines=true param is set.
Any help welcomed


I can use utf8 source code files and have breaklines work too. Of 
course, breaklines only works for real text. A line with no spaces will 
not break up.


To make utf8 content survive, put \usepackage{listingsutf8} in the 
document preamble. In the parameters for the included child document, 
set the "Include Type" to "Program Listing", and in "Listing 
parameters", set:

breaklines=true
inputencoding={utf8/latin1}

Or possibly utf8/latin9, if you use euro symbols in your program.

With this approach, it is not necessary to change the document encoding 
away from default.


Document:
http://www.aitel.hist.no/~helgehaf/sw/lyxdemo/listing.lyx
Included program code:
http://www.aitel.hist.no/~helgehaf/sw/lyxdemo/listing.c

Helge Hafting


Re: program listing of child documents with accents

2012-02-13 Thread Ricardo
Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with the
program listing input. The document is saved utf8. I can see accents on the
pdf output, but the breaklines of the listings package does not seem to
work and I do not why. A long line does not break at any place, despite
breaklines=true param is set.
Any help welcomed
Thanks again.

lyx source code

 % Preview source code

%% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[11pt,catalan]{report}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\usepackage{listings}

\usepackage[a4paper]{geometry}

\geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=3.5cm,rmargin=2.5cm,headheight=2cm,headsep=1cm,footskip=1.5cm}

\setlength{\parskip}{\bigskipamount}

\setlength{\parindent}{0pt}

\usepackage{calc}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{esint}

\makeatletter

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\numberwithin{figure}{section}

%% User specified LaTeX commands.

\usepackage{verbatim}

\usepackage{varioref}

\usepackage{ucs}

\usepackage{framed}

\usepackage[T1]{fontenc}

\usepackage{ucs}

\usepackage[utf8x]{inputenc}

\makeatother

\usepackage{babel}

\begin{document}

Document d'exemple.

document;settings;language;català

document;settings;language;other utf8x

No problem with accents on main document: áéíóú

%

\framebox{\begin{minipage}[t]{1\columnwidth}%

Inserted child document with accents stored utf-8. Program listing

input selected

\scriptsize

\lstinputlisting[breaklines=true,extendedchars=false]{childdoc-utf8}

\scriptsize%

\end{minipage}}

\nocite{*}

\end{document}



utf8 saved file content:  
Child document. Stored UTF8.
Áéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèá
éíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéí


Re: program listing of child documents with accents

2012-02-13 Thread Ricardo
Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with the
program listing input. The document is saved utf8. I can see accents on the
pdf output, but the breaklines of the listings package does not seem to
work and I do not why. A long line does not break at any place, despite
breaklines=true param is set.
Any help welcomed
Thanks again.

lyx source code

 % Preview source code

%% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[11pt,catalan]{report}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\usepackage{listings}

\usepackage[a4paper]{geometry}

\geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=3.5cm,rmargin=2.5cm,headheight=2cm,headsep=1cm,footskip=1.5cm}

\setlength{\parskip}{\bigskipamount}

\setlength{\parindent}{0pt}

\usepackage{calc}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{esint}

\makeatletter

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\numberwithin{figure}{section}

%% User specified LaTeX commands.

\usepackage{verbatim}

\usepackage{varioref}

\usepackage{ucs}

\usepackage{framed}

\usepackage[T1]{fontenc}

\usepackage{ucs}

\usepackage[utf8x]{inputenc}

\makeatother

\usepackage{babel}

\begin{document}

Document d'exemple.

document;settings;language;català

document;settings;language;other utf8x

No problem with accents on main document: áéíóú

%

\framebox{\begin{minipage}[t]{1\columnwidth}%

Inserted child document with accents stored utf-8. Program listing

input selected

\scriptsize

\lstinputlisting[breaklines=true,extendedchars=false]{childdoc-utf8}

\scriptsize%

\end{minipage}}

\nocite{*}

\end{document}



utf8 saved file content:  
Child document. Stored UTF8.
Áéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèá
éíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéí


Re: program listing of child documents with accents

2012-02-13 Thread Ricardo
Following Richard advice, below posted source code of a small document.
With the current lyx configuration I can insert a child document with the
program listing input. The document is saved utf8. I can see accents on the
pdf output, but the breaklines of the listings package does not seem to
work and I do not why. A long line does not break at any place, despite
breaklines=true param is set.
Any help welcomed
Thanks again.

>>

 % Preview source code

%% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[11pt,catalan]{report}

\usepackage[T1]{fontenc}

\usepackage[utf8x]{inputenc}

\usepackage{listings}

\usepackage[a4paper]{geometry}

\geometry{verbose,tmargin=3cm,bmargin=2cm,lmargin=3.5cm,rmargin=2.5cm,headheight=2cm,headsep=1cm,footskip=1.5cm}

\setlength{\parskip}{\bigskipamount}

\setlength{\parindent}{0pt}

\usepackage{calc}

\usepackage{amsthm}

\usepackage{amsmath}

\usepackage{amssymb}

\usepackage{esint}

\makeatletter

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section}

\numberwithin{figure}{section}

%% User specified LaTeX commands.

\usepackage{verbatim}

\usepackage{varioref}

\usepackage{ucs}

\usepackage{framed}

\usepackage[T1]{fontenc}

\usepackage{ucs}

\usepackage[utf8x]{inputenc}

\makeatother

\usepackage{babel}

\begin{document}

Document d'exemple.

document;settings;language;català

document;settings;language;other utf8x

No problem with accents on main document: áéíóú

%

\framebox{\begin{minipage}[t]{1\columnwidth}%

Inserted child document with accents stored utf-8. Program listing

input selected

\scriptsize

\lstinputlisting[breaklines=true,extendedchars=false]{childdoc-utf8}

\scriptsize%

\end{minipage}}

\nocite{*}

\end{document}



<
Child document. Stored UTF8.
Áéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèá
éíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéíóúàèáéí


Re: program listing of child documents with accents

2012-02-12 Thread Richard Heck

On 02/12/2012 11:20 AM, Ricardo wrote:

Hello.
I use lyx 1.6.7 and Debian GNU/Linux 6.0

Sorry if it's a stupid question, I'm not a lyx advanced user too.

I have no problem with the main document in lyx. I can use accents and 
see them in the output. I have problems with insert;file;child 
documents and some of the program listing options. Seems that accents 
and other symbols are a problem when try to get the pdf output.The 
child documents are saved UTF-8. Despite I browsed the web, and 
checked the listings package doc, tested some options like 
extendedchars=true,  I can not get what I want. I would like to see 
the child document as it's saved, the same way if I edit it with a 
plain text editor, but I did not find the way to do it.

For example: I can not insert one word child document  àéèíòóú

I have defined Catalan as language in Lyx and unicode UTF-8 as 
codification. With this options, and the *verbatim listing* for child 
document,  I can export to pdf the main document with child documents. 
OK, there are  no complaints, I get àéèíòóú inside a box on the main 
document.  But I would like to use the *program listing* option, 
because I need to breaklines for example. I have not found the way to 
do it. Lyx complains when generate the pdf file if I change form 
verbatim listing, to program listing (same stupid one word child 
document), despite any option I tested with listing parameters.


It's possible that LaTeX package doing the listings does not like UTF-8. 
I don't know. I'd suggest you look into the documentation for that 
package. It will help others to help you, too, if you could post a small 
set of example files that exhibit the problem.


Richard



Re: program listing of child documents with accents

2012-02-12 Thread Richard Heck

On 02/12/2012 11:20 AM, Ricardo wrote:

Hello.
I use lyx 1.6.7 and Debian GNU/Linux 6.0

Sorry if it's a stupid question, I'm not a lyx advanced user too.

I have no problem with the main document in lyx. I can use accents and 
see them in the output. I have problems with insert;file;child 
documents and some of the program listing options. Seems that accents 
and other symbols are a problem when try to get the pdf output.The 
child documents are saved UTF-8. Despite I browsed the web, and 
checked the listings package doc, tested some options like 
extendedchars=true,  I can not get what I want. I would like to see 
the child document as it's saved, the same way if I edit it with a 
plain text editor, but I did not find the way to do it.

For example: I can not insert one word child document  àéèíòóú

I have defined Catalan as language in Lyx and unicode UTF-8 as 
codification. With this options, and the *verbatim listing* for child 
document,  I can export to pdf the main document with child documents. 
OK, there are  no complaints, I get àéèíòóú inside a box on the main 
document.  But I would like to use the *program listing* option, 
because I need to breaklines for example. I have not found the way to 
do it. Lyx complains when generate the pdf file if I change form 
verbatim listing, to program listing (same stupid one word child 
document), despite any option I tested with listing parameters.


It's possible that LaTeX package doing the listings does not like UTF-8. 
I don't know. I'd suggest you look into the documentation for that 
package. It will help others to help you, too, if you could post a small 
set of example files that exhibit the problem.


Richard



Re: program listing of child documents with accents

2012-02-12 Thread Richard Heck

On 02/12/2012 11:20 AM, Ricardo wrote:

Hello.
I use lyx 1.6.7 and Debian GNU/Linux 6.0

Sorry if it's a stupid question, I'm not a lyx advanced user too.

I have no problem with the main document in lyx. I can use accents and 
see them in the output. I have problems with insert;file;child 
documents and some of the program listing options. Seems that accents 
and other symbols are a problem when try to get the pdf output.The 
child documents are saved UTF-8. Despite I browsed the web, and 
checked the listings package doc, tested some options like 
extendedchars=true,  I can not get what I want. I would like to see 
the child document as it's saved, the same way if I edit it with a 
plain text editor, but I did not find the way to do it.

For example: I can not insert one word child document  "àéèíòóú"

I have defined Catalan as language in Lyx and unicode UTF-8 as 
codification. With this options, and the *verbatim listing* for child 
document,  I can export to pdf the main document with child documents. 
OK, there are  no complaints, I get "àéèíòóú" inside a box on the main 
document.  But I would like to use the *program listing* option, 
because I need to breaklines for example. I have not found the way to 
do it. Lyx complains when generate the pdf file if I change form 
verbatim listing, to program listing (same stupid one word child 
document), despite any option I tested with listing parameters.


It's possible that LaTeX package doing the listings does not like UTF-8. 
I don't know. I'd suggest you look into the documentation for that 
package. It will help others to help you, too, if you could post a small 
set of example files that exhibit the problem.


Richard



Re: program listing

2009-10-13 Thread Sam Liddicott

* Sajjad wrote, On 12/10/09 14:08:

Hello forum,

I want to write pseudo-code and i am doing that inside the program listing.

But when i generate the pdf , the code are cropped sideways.


Any hint to get around that issue?


Regards
Sajjad






Re: program listing

2009-10-13 Thread Sam Liddicott

* Sajjad wrote, On 12/10/09 14:08:

Hello forum,

I want to write pseudo-code and i am doing that inside the program listing.

But when i generate the pdf , the code are cropped sideways.


Any hint to get around that issue?


Regards
Sajjad






Re: program listing

2009-10-13 Thread Sam Liddicott

* Sajjad wrote, On 12/10/09 14:08:

Hello forum,

I want to write pseudo-code and i am doing that inside the program listing.

But when i generate the pdf , the code are cropped sideways.


Any hint to get around that issue?


Regards
Sajjad






Re: program listing

2009-10-12 Thread Sam Liddicott

* Sajjad wrote, On 12/10/09 14:08:

Hello forum,

I want to write pseudo-code and i am doing that inside the program listing.

But when i generate the pdf , the code are cropped sideways.


Any hint to get around that issue?


Use smaller fonts, or short lines?

Sam


Re: program listing

2009-10-12 Thread Sam Liddicott

* Sajjad wrote, On 12/10/09 14:08:

Hello forum,

I want to write pseudo-code and i am doing that inside the program listing.

But when i generate the pdf , the code are cropped sideways.


Any hint to get around that issue?


Use smaller fonts, or short lines?

Sam


Re: program listing

2009-10-12 Thread Sam Liddicott

* Sajjad wrote, On 12/10/09 14:08:

Hello forum,

I want to write pseudo-code and i am doing that inside the program listing.

But when i generate the pdf , the code are cropped sideways.


Any hint to get around that issue?


Use smaller fonts, or short lines?

Sam


Re: Program Listing

2009-02-24 Thread Graham
Paul A. Rubin ru...@... writes:

Thanks Paul, that works fine.

I was using float.

Graham







Re: Program Listing

2009-02-24 Thread Graham
Paul A. Rubin ru...@... writes:

Thanks Paul, that works fine.

I was using float.

Graham







Re: Program Listing

2009-02-24 Thread Graham
Paul A. Rubin  writes:

Thanks Paul, that works fine.

I was using float.

Graham







Re: Program Listing

2009-02-18 Thread Manveru
2009/2/17 Graham gra...@griffiths985.freeserve.co.uk:
 Hi, is it possible to make a Program Listing that will not fit on one page,
 to continue onto the following page.

Is it a question or statament?

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Program Listing

2009-02-18 Thread Paul A. Rubin

Graham wrote:
Hi, is it possible to make a Program Listing that will not fit on one page, 
to continue onto the following page.


Thanks




The listings environment (Insert  Program Listing) will straddle a page 
boundary automatically.  If you're putting the listing in a float, 
though, that's another story.  I don't know how to split that.


/Paul



Re: Program Listing

2009-02-18 Thread Manveru
2009/2/17 Graham gra...@griffiths985.freeserve.co.uk:
 Hi, is it possible to make a Program Listing that will not fit on one page,
 to continue onto the following page.

Is it a question or statament?

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Program Listing

2009-02-18 Thread Paul A. Rubin

Graham wrote:
Hi, is it possible to make a Program Listing that will not fit on one page, 
to continue onto the following page.


Thanks




The listings environment (Insert  Program Listing) will straddle a page 
boundary automatically.  If you're putting the listing in a float, 
though, that's another story.  I don't know how to split that.


/Paul



Re: Program Listing

2009-02-18 Thread Manveru
2009/2/17 Graham :
> Hi, is it possible to make a "Program Listing" that will not fit on one page,
> to continue onto the following page.

Is it a question or statament?

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Program Listing

2009-02-18 Thread Paul A. Rubin

Graham wrote:
Hi, is it possible to make a "Program Listing" that will not fit on one page, 
to continue onto the following page.


Thanks




The listings environment (Insert > Program Listing) will straddle a page 
boundary automatically.  If you're putting the listing in a float, 
though, that's another story.  I don't know how to split that.


/Paul



Re: Program Listing Parameters

2007-11-27 Thread Siegfried MEUNIER-GUTTIN-CLUZEL

The documentation of this package is very well done : see at

http://www.pvv.ntnu.no/~berland/latex/docs/listings.pdf

Siegfried


Re: Program Listing Parameters

2007-11-27 Thread Graham Griffiths
Graham Griffiths [EMAIL PROTECTED] writes:

 
 The program listing feature is very useful and I wonder if there is some 
 documentation available showing how to set parameters under the advanced tab.

I have manged to eliminate the error message by including a parameter 
statement of the form: fillcolor=\color{red}

However, the colour does not show up when rendered as a pdf document.

Do I need to load a LaTex package?

Any help appreciated. 






Re: Program Listing Parameters

2007-11-27 Thread Siegfried MEUNIER-GUTTIN-CLUZEL

You need the color LaTeX package.

Siegfried.


Re: Program Listing Parameters

2007-11-27 Thread Graham Griffiths
Siegfried MEUNIER-GUTTIN-CLUZEL [EMAIL PROTECTED] writes:

 
 The documentation of this package is very well done : see at
 
 http://www.pvv.ntnu.no/~berland/latex/docs/listings.pdf
 
 Siegfried

Hi Siegfried.

I defined the color 'lightblue' and then used backgroundcolor={\color
{lightblue}} and this worked fine. 

Thanks for your help.

Graham






Re: Program Listing Parameters

2007-11-27 Thread Siegfried MEUNIER-GUTTIN-CLUZEL

The documentation of this package is very well done : see at

http://www.pvv.ntnu.no/~berland/latex/docs/listings.pdf

Siegfried


Re: Program Listing Parameters

2007-11-27 Thread Graham Griffiths
Graham Griffiths [EMAIL PROTECTED] writes:

 
 The program listing feature is very useful and I wonder if there is some 
 documentation available showing how to set parameters under the advanced tab.

I have manged to eliminate the error message by including a parameter 
statement of the form: fillcolor=\color{red}

However, the colour does not show up when rendered as a pdf document.

Do I need to load a LaTex package?

Any help appreciated. 






Re: Program Listing Parameters

2007-11-27 Thread Siegfried MEUNIER-GUTTIN-CLUZEL

You need the color LaTeX package.

Siegfried.


Re: Program Listing Parameters

2007-11-27 Thread Graham Griffiths
Siegfried MEUNIER-GUTTIN-CLUZEL [EMAIL PROTECTED] writes:

 
 The documentation of this package is very well done : see at
 
 http://www.pvv.ntnu.no/~berland/latex/docs/listings.pdf
 
 Siegfried

Hi Siegfried.

I defined the color 'lightblue' and then used backgroundcolor={\color
{lightblue}} and this worked fine. 

Thanks for your help.

Graham






Re: Program Listing Parameters

2007-11-27 Thread Siegfried MEUNIER-GUTTIN-CLUZEL

The documentation of this package is very well done : see at

http://www.pvv.ntnu.no/~berland/latex/docs/listings.pdf

Siegfried


Re: Program Listing Parameters

2007-11-27 Thread Graham Griffiths
Graham Griffiths <[EMAIL PROTECTED]> writes:

> 
> The program listing feature is very useful and I wonder if there is some 
> documentation available showing how to set parameters under the advanced tab.

I have manged to eliminate the error message by including a parameter 
statement of the form: fillcolor=\color{red}

However, the colour does not show up when rendered as a pdf document.

Do I need to load a LaTex package?

Any help appreciated. 






Re: Program Listing Parameters

2007-11-27 Thread Siegfried MEUNIER-GUTTIN-CLUZEL

You need the color LaTeX package.

Siegfried.


Re: Program Listing Parameters

2007-11-27 Thread Graham Griffiths
Siegfried MEUNIER-GUTTIN-CLUZEL <[EMAIL PROTECTED]> writes:

> 
> The documentation of this package is very well done : see at
> 
> http://www.pvv.ntnu.no/~berland/latex/docs/listings.pdf
> 
> Siegfried

Hi Siegfried.

I defined the color 'lightblue' and then used backgroundcolor={\color
{lightblue}} and this worked fine. 

Thanks for your help.

Graham