Re: EOL characters removed when pasting a source code into a program listing section

2012-02-06 Thread Guenter Milde
On 2012-02-03, Marcin Zajączkowski wrote: ... I just did CTRL-V (normal Edit - Paste). When after a reply I tried with paste special Plain Text keeps as expected the end of line characters while Plain Text, Join Lines not. So, generally thanks for your explanation, but don't you think that

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-06 Thread Guenter Milde
On 2012-02-03, Marcin Zajączkowski wrote: ... I just did CTRL-V (normal Edit - Paste). When after a reply I tried with paste special Plain Text keeps as expected the end of line characters while Plain Text, Join Lines not. So, generally thanks for your explanation, but don't you think that

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-06 Thread Guenter Milde
On 2012-02-03, Marcin Zajączkowski wrote: ... > I just did CTRL-V (normal Edit -> Paste). When after a reply I tried > with paste special "Plain Text" keeps as expected the end of line > characters while "Plain Text, Join Lines" not. > So, generally thanks for your explanation, but don't you

EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Marcin Zajączkowski
Hi, When I add Program Listing section (Insert - Program Listing) and paste source code from IDE or a text editor the EOL characters are removed. For example: usedArgument.setValue1(); usedArgument.getValue2(); becase: usedArgument.setValue1(); usedArgument.getValue2(); Is it necessary

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Paul A . Rubin
How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. Paul

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Rich Shepard
On Thu, 2 Feb 2012, Paul A. Rubin wrote: How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. ... which is the LyX code environment. Rich

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Guenter Milde
On 2012-02-02, Rich Shepard wrote: On Thu, 2 Feb 2012, Paul A. Rubin wrote: How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. ... which is the LyX code environment. The LyX code environment is a

EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Marcin Zajączkowski
Hi, When I add Program Listing section (Insert - Program Listing) and paste source code from IDE or a text editor the EOL characters are removed. For example: usedArgument.setValue1(); usedArgument.getValue2(); becase: usedArgument.setValue1(); usedArgument.getValue2(); Is it necessary

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Paul A . Rubin
How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. Paul

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Rich Shepard
On Thu, 2 Feb 2012, Paul A. Rubin wrote: How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. ... which is the LyX code environment. Rich

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Guenter Milde
On 2012-02-02, Rich Shepard wrote: On Thu, 2 Feb 2012, Paul A. Rubin wrote: How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. ... which is the LyX code environment. The LyX code environment is a

EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Marcin Zajączkowski
Hi, When I add Program Listing section (Insert -> Program Listing) and paste source code from IDE or a text editor the EOL characters are removed. For example: usedArgument.setValue1(); usedArgument.getValue2(); becase: usedArgument.setValue1(); usedArgument.getValue2(); Is it necess

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Paul A . Rubin
How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. Paul

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Rich Shepard
On Thu, 2 Feb 2012, Paul A. Rubin wrote: How are you doing the pasting? The edit menu gives a couple of options for pasting external content, one of which preserves line breaks. ... which is the LyX code environment. Rich

Re: EOL characters removed when pasting a source code into a program listing section

2012-02-02 Thread Guenter Milde
On 2012-02-02, Rich Shepard wrote: > On Thu, 2 Feb 2012, Paul A. Rubin wrote: >> How are you doing the pasting? The edit menu gives a couple of options for >> pasting external content, one of which preserves line breaks. >... which is the LyX code environment. The "LyX code" environment is

source code question

2010-11-24 Thread Bishan Meghani
Hi LyX guys, I like using Lyx for Latex documents but i have a few problems: is it possible to edit the source code or to search for where to select a certain function contained in the source code in the tool bar menu?? Thanks Bishan MeghaniThis message and any attachment are intended solely

Re: source code question

2010-11-24 Thread Richard Heck
On 11/23/2010 11:15 AM, Bishan Meghani wrote: Hi LyX guys, I like using Lyx for Latex documents but i have a few problems: is it possible to edit the source code If you mean edit the LaTeX directly, then the answer is no. This is generated by LyX on the fly, and is not in any sense source

Re: source code question

2010-11-24 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 3:11 PM, Richard Heck rgh...@comcast.net wrote: or to search for where to select a certain function contained in the source code in the tool bar menu?? I don't understand this question. I think that Bishan is looking for a shortcut: knowing the needed LaTeX function

RE: source code question

2010-11-24 Thread Bishan Meghani
From: Liviu Andronic [landronim...@gmail.com] Sent: 24 November 2010 15:20 To: rgh...@comcast.net Cc: Bishan Meghani; lyx-users@lists.lyx.org Subject: Re: source code question On Wed, Nov 24, 2010 at 3:11 PM, Richard Heck rgh...@comcast.net wrote: or to search for where

Re: source code question

2010-11-24 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 7:24 PM, Bishan Meghani en...@nottingham.ac.uk wrote: That's correct. I would like to know if there is a way of finding out if there exists a function which does a particular thing. It is quite time-consuming to go through each menu in the toolbar. For the moment, the

Re: source code question

2010-11-24 Thread Pavel Sanda
Bishan Meghani wrote: That's correct. I would like to know if there is a way of finding out if there exists a function which does a particular thing. It is quite time-consuming to go through each menu in the toolbar. For the moment, the wikisearch hasn't helped me a great deal. if you mean

source code question

2010-11-24 Thread Bishan Meghani
Hi LyX guys, I like using Lyx for Latex documents but i have a few problems: is it possible to edit the source code or to search for where to select a certain function contained in the source code in the tool bar menu?? Thanks Bishan MeghaniThis message and any attachment are intended solely

Re: source code question

2010-11-24 Thread Richard Heck
On 11/23/2010 11:15 AM, Bishan Meghani wrote: Hi LyX guys, I like using Lyx for Latex documents but i have a few problems: is it possible to edit the source code If you mean edit the LaTeX directly, then the answer is no. This is generated by LyX on the fly, and is not in any sense source

Re: source code question

2010-11-24 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 3:11 PM, Richard Heck rgh...@comcast.net wrote: or to search for where to select a certain function contained in the source code in the tool bar menu?? I don't understand this question. I think that Bishan is looking for a shortcut: knowing the needed LaTeX function

RE: source code question

2010-11-24 Thread Bishan Meghani
From: Liviu Andronic [landronim...@gmail.com] Sent: 24 November 2010 15:20 To: rgh...@comcast.net Cc: Bishan Meghani; lyx-users@lists.lyx.org Subject: Re: source code question On Wed, Nov 24, 2010 at 3:11 PM, Richard Heck rgh...@comcast.net wrote: or to search for where

Re: source code question

2010-11-24 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 7:24 PM, Bishan Meghani en...@nottingham.ac.uk wrote: That's correct. I would like to know if there is a way of finding out if there exists a function which does a particular thing. It is quite time-consuming to go through each menu in the toolbar. For the moment, the

Re: source code question

2010-11-24 Thread Pavel Sanda
Bishan Meghani wrote: That's correct. I would like to know if there is a way of finding out if there exists a function which does a particular thing. It is quite time-consuming to go through each menu in the toolbar. For the moment, the wikisearch hasn't helped me a great deal. if you mean

source code question

2010-11-24 Thread Bishan Meghani
Hi LyX guys, I like using Lyx for Latex documents but i have a few problems: is it possible to edit the source code or to search for where to select a certain function contained in the source code in the tool bar menu?? Thanks Bishan MeghaniThis message and any attachment are intended solely

Re: source code question

2010-11-24 Thread Richard Heck
On 11/23/2010 11:15 AM, Bishan Meghani wrote: Hi LyX guys, I like using Lyx for Latex documents but i have a few problems: is it possible to edit the source code If you mean "edit the LaTeX directly", then the answer is no. This is generated by LyX on the fly, and is not in any sen

Re: source code question

2010-11-24 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 3:11 PM, Richard Heck <rgh...@comcast.net> wrote: >> or to search for where to select a certain function contained in the >> source code in the tool bar menu?? >> > I don't understand this question. > I think that Bishan is looking for a shor

RE: source code question

2010-11-24 Thread Bishan Meghani
From: Liviu Andronic [landronim...@gmail.com] Sent: 24 November 2010 15:20 To: rgh...@comcast.net Cc: Bishan Meghani; lyx-users@lists.lyx.org Subject: Re: source code question On Wed, Nov 24, 2010 at 3:11 PM, Richard Heck <rgh...@comcast.net> wrote: >>

Re: source code question

2010-11-24 Thread Liviu Andronic
On Wed, Nov 24, 2010 at 7:24 PM, Bishan Meghani wrote: > That's correct. I would like to know if there is a way of finding out if > there exists a function which does a particular thing. It is quite > time-consuming to go through each menu in the toolbar. For the moment,

Re: source code question

2010-11-24 Thread Pavel Sanda
Bishan Meghani wrote: > That's correct. I would like to know if there is a way of finding out if > there exists a function which does a particular thing. It is quite > time-consuming to go through each menu in the toolbar. For the moment, the > wikisearch hasn't helped me a great deal. if you

Re: editing source code / resume enumerate

2010-10-10 Thread Guenter Milde
On 2010-10-08, Beth Skwarecki wrote: --001636d34de3ac763304921fa183 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. I know I can view the source, but how

Re: editing source code / resume enumerate

2010-10-10 Thread Guenter Milde
On 2010-10-08, Beth Skwarecki wrote: --001636d34de3ac763304921fa183 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. I know I can view the source, but how

Re: editing source code / resume enumerate

2010-10-10 Thread Guenter Milde
On 2010-10-08, Beth Skwarecki wrote: > --001636d34de3ac763304921fa183 > Content-Type: text/plain; charset=ISO-8859-1 > Hi, I'm new to LyX. I installed enumitem.module so that I can resume > enumerations, but I can't figure out how to insert the resume command. > I know I can view the source, but

Re: editing source code / resume enumerate

2010-10-09 Thread Paul Rubin
Beth Skwarecki skwarecki at gmail.com writes: What am I missing? Using the enumitem module, you don't need to edit the LaTeX; the module provides you with a new environment that does it for you. First, just to be clear, Richard is not referring to the enumitem LaTeX package (which you also

Re: editing source code / resume enumerate

2010-10-09 Thread Paul Rubin
Beth Skwarecki skwarecki at gmail.com writes: What am I missing? Using the enumitem module, you don't need to edit the LaTeX; the module provides you with a new environment that does it for you. First, just to be clear, Richard is not referring to the enumitem LaTeX package (which you also

Re: editing source code / resume enumerate

2010-10-09 Thread Paul Rubin
Beth Skwarecki gmail.com> writes: > What am I missing? Using the enumitem module, you don't need to edit the LaTeX; the module provides you with a new environment that does it for you. First, just to be clear, Richard is not referring to the enumitem LaTeX package (which you also need and

Re: editing source code / resume enumerate

2010-10-08 Thread Paul A . Rubin
Beth Skwarecki skwarecki at gmail.com writes: Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. I know I can view the source, but how can I edit it within LyX? (I need to change \begin{enumerate} to

Re: editing source code / resume enumerate

2010-10-08 Thread Richard Heck
On 10/08/2010 03:01 PM, Beth Skwarecki wrote: Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. In general, you can insert raw LaTeX using InsertTeX Code. However, ... I know I can view the source, but

Re: editing source code / resume enumerate

2010-10-08 Thread Beth Skwarecki
On Fri, Oct 8, 2010 at 4:24 PM, Richard Heck rgh...@comcast.net wrote: the enumitem module provides the Enumerate-Resume environment for this purpose. See the attached. That's exactly the module I'm trying to use. I understand the syntax that needs to be present, but my problem is getting

Re: editing source code / resume enumerate

2010-10-08 Thread Paul A . Rubin
Beth Skwarecki skwarecki at gmail.com writes: Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. I know I can view the source, but how can I edit it within LyX? (I need to change \begin{enumerate} to

Re: editing source code / resume enumerate

2010-10-08 Thread Richard Heck
On 10/08/2010 03:01 PM, Beth Skwarecki wrote: Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. In general, you can insert raw LaTeX using InsertTeX Code. However, ... I know I can view the source, but

Re: editing source code / resume enumerate

2010-10-08 Thread Beth Skwarecki
On Fri, Oct 8, 2010 at 4:24 PM, Richard Heck rgh...@comcast.net wrote: the enumitem module provides the Enumerate-Resume environment for this purpose. See the attached. That's exactly the module I'm trying to use. I understand the syntax that needs to be present, but my problem is getting

Re: editing source code / resume enumerate

2010-10-08 Thread Paul A . Rubin
Beth Skwarecki gmail.com> writes: > > Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. I know I can view the source, but how can I edit it within LyX? (I need to change \begin{enumerate} to

Re: editing source code / resume enumerate

2010-10-08 Thread Richard Heck
On 10/08/2010 03:01 PM, Beth Skwarecki wrote: Hi, I'm new to LyX. I installed enumitem.module so that I can resume enumerations, but I can't figure out how to insert the resume command. In general, you can insert raw LaTeX using Insert>TeX Code. However, ... I know I can view the source, but

Re: editing source code / resume enumerate

2010-10-08 Thread Beth Skwarecki
On Fri, Oct 8, 2010 at 4:24 PM, Richard Heck wrote: > the enumitem module provides the Enumerate-Resume environment for this > purpose. See the attached. That's exactly the module I'm trying to use. I understand the syntax that needs to be present, but my problem is

Re: exported latex source code

2009-09-24 Thread Julien Rioux
rgheck rgh...@... writes: On 09/23/2009 10:19 AM, David Wang wrote: I found exported latex source (by File-Export-LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each [...] This

Re: exported latex source code

2009-09-24 Thread Julien Rioux
rgheck rgh...@... writes: On 09/23/2009 10:19 AM, David Wang wrote: I found exported latex source (by File-Export-LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each [...] This

Re: exported latex source code

2009-09-24 Thread Julien Rioux
rgheck writes: > > On 09/23/2009 10:19 AM, David Wang wrote: > > I found exported latex source (by File->Export->LaTex(plain)) is not > > terribly clean. Specifically, \begin{equation} and \end{equation} in general > > don't start at the first column and occupy one line each [...] >

exported latex source code

2009-09-23 Thread David Wang
Hello, I'm fairly new to Lyx. I found exported latex source (by File-Export-LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each like, for example, \begin{equation} \mathbf{y} = \mathbf{A}

Re: exported latex source code

2009-09-23 Thread rgheck
On 09/23/2009 10:19 AM, David Wang wrote: I found exported latex source (by File-Export-LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each like, for example, \begin{equation} \mathbf{y} =

exported latex source code

2009-09-23 Thread David Wang
Hello, I'm fairly new to Lyx. I found exported latex source (by File-Export-LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each like, for example, \begin{equation} \mathbf{y} = \mathbf{A}

Re: exported latex source code

2009-09-23 Thread rgheck
On 09/23/2009 10:19 AM, David Wang wrote: I found exported latex source (by File-Export-LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each like, for example, \begin{equation} \mathbf{y} =

exported latex source code

2009-09-23 Thread David Wang
Hello, I'm fairly new to Lyx. I found exported latex source (by File->Export->LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each like, for example, \begin{equation} \mathbf{y} = \mathbf{A}

Re: exported latex source code

2009-09-23 Thread rgheck
On 09/23/2009 10:19 AM, David Wang wrote: I found exported latex source (by File->Export->LaTex(plain)) is not terribly clean. Specifically, \begin{equation} and \end{equation} in general don't start at the first column and occupy one line each like, for example, \begin{equation} \mathbf{y} =

Re: Source code highlighting and indentation

2009-05-04 Thread Manveru
2009/5/3 Vito De Tullio zak.mc.kra...@libero.it: rgheck wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is available. as an alternative

Re: Source code highlighting and indentation

2009-05-04 Thread Manveru
2009/5/3 Vito De Tullio zak.mc.kra...@libero.it: rgheck wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is available. as an alternative

Re: Source code highlighting and indentation

2009-05-04 Thread Manveru
2009/5/3 Vito De Tullio : > rgheck wrote: > >>> I have used the "listings" package. It probably knows ada. (I haven't >>> used it with lyx though, just with latex.) >> There is support for listings in LyX. Use the Insert>Program Listing >> environment. Ada is available. >

Re: Source code highlighting and indentation

2009-05-03 Thread Vito De Tullio
rgheck wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is available. as an alternative to the listings package, I suggest texments_: may

Re: Source code highlighting and indentation

2009-05-03 Thread Vito De Tullio
rgheck wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is available. as an alternative to the listings package, I suggest texments_: may

Re: Source code highlighting and indentation

2009-05-03 Thread Vito De Tullio
rgheck wrote: >> I have used the "listings" package. It probably knows ada. (I haven't >> used it with lyx though, just with latex.) > There is support for listings in LyX. Use the Insert>Program Listing > environment. Ada is available. as an alternative to the listings package, I suggest

Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
Hey again, Now that I've decided on using LyX for my manual, I've started wondering how to go about getting the source code examples highlighted and indented. Most of the code examples will be in Ada, with a little bit of C here and there. Is there a way to automate this, or should I just do

Re: Source code highlighting and indentation

2009-05-02 Thread Rich Shepard
On Sat, 2 May 2009, Thomas L?cke wrote: Now that I've decided on using LyX for my manual, I've started wondering how to go about getting the source code examples highlighted and indented. Most of the code examples will be in Ada, with a little bit of C here and there. Thomas

Re: Source code highlighting and indentation

2009-05-02 Thread Jeremy C. Reed
I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.)

Re: Source code highlighting and indentation

2009-05-02 Thread rgheck
Jeremy C. Reed wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is available. rh

Re: Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
On Sat, May 2, 2009 at 9:31 PM, rgheck rgh...@bobjweil.com wrote: Jeremy C. Reed wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is

Re: Source code highlighting and indentation

2009-05-02 Thread rgheck
Thomas Løcke wrote: This works a charm. The syntax highlighting is very good, and it supports Ada 2005. It doesn't do proper indentation though, but it's very easy for me to do that manually. Check all the listings options:

Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
Hey again, Now that I've decided on using LyX for my manual, I've started wondering how to go about getting the source code examples highlighted and indented. Most of the code examples will be in Ada, with a little bit of C here and there. Is there a way to automate this, or should I just do

Re: Source code highlighting and indentation

2009-05-02 Thread Rich Shepard
On Sat, 2 May 2009, Thomas L?cke wrote: Now that I've decided on using LyX for my manual, I've started wondering how to go about getting the source code examples highlighted and indented. Most of the code examples will be in Ada, with a little bit of C here and there. Thomas

Re: Source code highlighting and indentation

2009-05-02 Thread Jeremy C. Reed
I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.)

Re: Source code highlighting and indentation

2009-05-02 Thread rgheck
Jeremy C. Reed wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is available. rh

Re: Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
On Sat, May 2, 2009 at 9:31 PM, rgheck rgh...@bobjweil.com wrote: Jeremy C. Reed wrote: I have used the listings package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the InsertProgram Listing environment. Ada is

Re: Source code highlighting and indentation

2009-05-02 Thread rgheck
Thomas Løcke wrote: This works a charm. The syntax highlighting is very good, and it supports Ada 2005. It doesn't do proper indentation though, but it's very easy for me to do that manually. Check all the listings options:

Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
Hey again, Now that I've decided on using LyX for my manual, I've started wondering how to go about getting the source code examples highlighted and indented. Most of the code examples will be in Ada, with a little bit of C here and there. Is there a way to "automate" this, or should

Re: Source code highlighting and indentation

2009-05-02 Thread Rich Shepard
On Sat, 2 May 2009, Thomas L?cke wrote: Now that I've decided on using LyX for my manual, I've started wondering how to go about getting the source code examples highlighted and indented. Most of the code examples will be in Ada, with a little bit of C here and there. Thomas

Re: Source code highlighting and indentation

2009-05-02 Thread Jeremy C. Reed
I have used the "listings" package. It probably knows ada. (I haven't used it with lyx though, just with latex.)

Re: Source code highlighting and indentation

2009-05-02 Thread rgheck
Jeremy C. Reed wrote: I have used the "listings" package. It probably knows ada. (I haven't used it with lyx though, just with latex.) There is support for listings in LyX. Use the Insert>Program Listing environment. Ada is available. rh

Re: Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
On Sat, May 2, 2009 at 9:31 PM, rgheck wrote: > Jeremy C. Reed wrote: >> >> I have used the "listings" package. It probably knows ada. (I haven't used >> it with lyx though, just with latex.) >> > > There is support for listings in LyX. Use the Insert>Program Listing >

Re: Source code highlighting and indentation

2009-05-02 Thread rgheck
Thomas Løcke wrote: This works a charm. The syntax highlighting is very good, and it supports Ada 2005. It doesn't do proper indentation though, but it's very easy for me to do that manually. Check all the listings options:

[Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Jean-Marc Lasgouttes
Hello, Can somebody help Eric? Please keep him in cc: JMarc ---BeginMessage--- Hello: I have the same problem: 1) Need to write in Spanish 2) Need to use Lyx-Code 3) Minus sign is not being recognized I tried adding: \noshorthandsspanish to the preamble or to the first line of the

Re: [Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Paul A. Rubin
Jean-Marc Lasgouttes wrote: Hello, Can somebody help Eric? Please keep him in cc: JMarc Subject: Re: LyX-Code env, bash source code, and Bad character code (-1) From: Eric Fuchs [EMAIL PROTECTED] Date: Tue, 2 Sep

[Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Jean-Marc Lasgouttes
Hello, Can somebody help Eric? Please keep him in cc: JMarc ---BeginMessage--- Hello: I have the same problem: 1) Need to write in Spanish 2) Need to use Lyx-Code 3) Minus sign is not being recognized I tried adding: \noshorthandsspanish to the preamble or to the first line of the

Re: [Eric Fuchs] Re: LyX-Code env, bash source code, and Bad character code (-1)

2008-09-03 Thread Paul A. Rubin
Jean-Marc Lasgouttes wrote: Hello, Can somebody help Eric? Please keep him in cc: JMarc Subject: Re: LyX-Code env, bash source code, and Bad character code (-1) From: Eric Fuchs [EMAIL PROTECTED] Date: Tue, 2 Sep

[Eric Fuchs] Re: LyX-Code env, bash source code, and "Bad character code (-1)

2008-09-03 Thread Jean-Marc Lasgouttes
Hello, Can somebody help Eric? Please keep him in cc: JMarc --- Begin Message --- Hello: I have the same problem: 1) Need to write in Spanish 2) Need to use Lyx-Code 3) Minus sign is not being recognized I tried adding: \noshorthandsspanish to the preamble or to the first line of

Re: [Eric Fuchs] Re: LyX-Code env, bash source code, and "Bad character code (-1)

2008-09-03 Thread Paul A. Rubin
Jean-Marc Lasgouttes wrote: Hello, Can somebody help Eric? Please keep him in cc: JMarc Subject: Re: LyX-Code env, bash source code, and "Bad character code (-1) From: Eric Fuchs <[EMAIL PROTECTED]> Date:

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
Do both of these approaches work OK with producing sane-looking HTML as well as PDFs? I have not experimented with HTML export with highlight, but I think it should be possible to add a converter to make highlight produce html output. Are then any examples of output from your 'highlight'

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
This is great, do you know how to do on Windows? I did everything as you described (with Perl insted of C++), but if i want to see a dvi preview i get folowing error: LaTex Error: File './0d__daten_prog_perl_myscript.tex' not found ...d__daten_prog_perl_myscript.tex} }

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
Robert, You should remove the -r switch in the converter! To all that uses this. If you get into problem with undefined sequences and you see the command \dq in the error report. Try remove the -r switch in the converter. HTH Gunnar.

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Robert Orr
Gunnar - Right on! Perfect. thank you for the help. It is really appreciated. I have wanted to have this capability for the longest time. I have used the listing package but I always felt that it was difficult. Often I needed to dig out the documentation to find out how to do this or

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
Do both of these approaches work OK with producing sane-looking HTML as well as PDFs? I have not experimented with HTML export with highlight, but I think it should be possible to add a converter to make highlight produce html output. Are then any examples of output from your 'highlight'

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
This is great, do you know how to do on Windows? I did everything as you described (with Perl insted of C++), but if i want to see a dvi preview i get folowing error: LaTex Error: File './0d__daten_prog_perl_myscript.tex' not found ...d__daten_prog_perl_myscript.tex} }

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
Robert, You should remove the -r switch in the converter! To all that uses this. If you get into problem with undefined sequences and you see the command \dq in the error report. Try remove the -r switch in the converter. HTH Gunnar.

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Robert Orr
Gunnar - Right on! Perfect. thank you for the help. It is really appreciated. I have wanted to have this capability for the longest time. I have used the listing package but I always felt that it was difficult. Often I needed to dig out the documentation to find out how to do this or

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
> Do both of these approaches work OK with producing sane-looking HTML as > well as PDFs? I have not experimented with HTML export with highlight, but I think it should be possible to add a converter to make highlight produce html output. > Are then any examples of output from your 'highlight'

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
> This is great, do you know how to do on Windows? > I did everything as you described (with Perl insted of C++), but if i > want to see a dvi preview i get folowing error: > LaTex Error: File './0d__daten_prog_perl_myscript.tex' not found > > ...d__daten_prog_perl_myscript.tex} >

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Gunnar Lindholm
Robert, You should remove the -r switch in the converter! To all that uses this. If you get into problem with undefined sequences and you see the command "\dq" in the error report. Try remove the -r switch in the converter. HTH Gunnar.

Re: Embedding highlighed external source code files in a LyX document

2007-03-30 Thread Robert Orr
Gunnar - Right on! Perfect. thank you for the help. It is really appreciated. I have wanted to have this capability for the longest time. I have used the listing package but I always felt that it was difficult. Often I needed to dig out the documentation to find out how to do this or

Re: Embedding highlighed external source code files in a LyX document

2007-03-29 Thread Daniel Lohmann
John Pye wrote: Hi all I know that this has 'been done' but I'm not sure how to go about it myself. I would like to link to an external source code file and 'pull it in' to my compiled document when I use pdflatex. I would like to apply source code highlighting, although that's

  1   2   3   4   >