Problem with `'’ used in program listing

2024-02-15 Thread Trevor Jenkins
I am clearly doing something stupid with a program listing in LyX. The code in the listing is fragment of SQL (for SQLite3) “name string" regexp "^(\w| |`|'|’|-)+, (\w| |`|'|’|-)+, " That is the regular expression checks for ` ‘ and ’ (backtick, straight quote and right quot

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

Program Listing -- programming language, etc.

2019-02-11 Thread Bernt Lie
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: [cid:image002.jpg@01D4C218.4CF8E290] * If I make my own definition for syntax highlighting of a programming language (say, Julia or Modelica), where

RE: LyX, Program Listing, adding support for Julia, Modelica?

2019-01-11 Thread Bernt Lie
Is it a LaTeX issue? Here is a snapshot of the Settings window for Program Listing in LyX: [cid:image002.jpg@01D4A9A4.26C5B990] My question relates to how I can make Julia (and Modelica) available as choises in the “Language” menu. -B -Original Message- From: Dr Eberhard

Re: LyX, Program Listing, adding support for Julia, Modelica?

2019-01-11 Thread Dr Eberhard Lisse
That is a LaTeX issue, I think. el On 2019-01-09 17:06 , Bernt Lie wrote: > I use LyX 2.3.1 on Windows 10 (and also LyX 2.2.3 on the same platform). > >   > > I’m including some Julia code in my document (Program Listing), but > there is no built-in support for Julia (syntax

LyX, Program Listing, adding support for Julia, Modelica?

2019-01-09 Thread Bernt Lie
I use LyX 2.3.1 on Windows 10 (and also LyX 2.2.3 on the same platform). I’m including some Julia code in my document (Program Listing), but there is no built-in support for Julia (syntax highlighting, etc.) at the moment. I have read somewhere that there exists experimental (?) support

Program listing: Julia syntax? inserint "\" and "$"?

2018-11-08 Thread Bernt Lie
Three questions on LyX 2.2.x and newer: 1. Is it possible to choose Julia as language for typesetting program listing? 2. Is it possible to insert Jupyter segments and have them typeset "correctly"? 3. How do I include symbols "\" and "$" in program listing, e.g., if

RE: Ascii file import into Program Listing...

2016-09-25 Thread Bernt Lie
s@lists.lyx.org> Subject: Re: Ascii file import into Program Listing... Edit -> Paste Special -> Experiment On Sat, Sep 24, 2016 at 8:32 AM, Bernt Lie <bernt@hit.no<mailto:bernt@hit.no>> wrote: LyX 2.2.1 on Windows 10 (64 bit)... When I copy and paste the content of a

Re: Ascii file import into Program Listing...

2016-09-24 Thread Scott Kostyshak
On Sat, Sep 24, 2016 at 02:32:38PM +, Bernt Lie wrote: > LyX 2.2.1 on Windows 10 (64 bit)... > > When I copy and paste the content of an ASCII file (e.g., Notepad, Notepad++, > etc.) into a Program Listing window, the code shows up as a single line: > information about

Re: Ascii file import into Program Listing...

2016-09-24 Thread Joel Kulesza
Edit -> Paste Special -> Experiment On Sat, Sep 24, 2016 at 8:32 AM, Bernt Lie <bernt@hit.no> wrote: > LyX 2.2.1 on Windows 10 (64 bit)... > > When I copy and paste the content of an ASCII file (e.g., Notepad, > Notepad++, etc.) into a Program Listing window, the cod

Ascii file import into Program Listing...

2016-09-24 Thread Bernt Lie
LyX 2.2.1 on Windows 10 (64 bit)... When I copy and paste the content of an ASCII file (e.g., Notepad, Notepad++, etc.) into a Program Listing window, the code shows up as a single line: information about carriage return, which is seen in the ASCII editor, seems to be lost in the LyX Program

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!

Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Rainer Koelle
Hello all, I am struggling with 1.) default settings of program listings, and 2.) creating a cross-reference to (a) program listing(s) in my document. Unfortunately, the documentation did not shed any light on me... I use the standard book template for my document. 1.) How to define

Re: Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Paul A . Rubin
Rainer Koelle rqkoelle at gmx.net writes: 1.) How to define 'default settings' for program listings? In Document Settings... LaTeX Preamble, insert \lset{key=value, key=value, ...} For example: \lstset{language=Fortran,numbers=right}. 2.) How to cross reference a program listing Try

Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Rainer Koelle
Hello all, I am struggling with 1.) default settings of program listings, and 2.) creating a cross-reference to (a) program listing(s) in my document. Unfortunately, the documentation did not shed any light on me... I use the standard book template for my document. 1.) How to define

Re: Lyx - Program Listing - default settings cross-reference

2012-04-01 Thread Paul A . Rubin
Rainer Koelle rqkoelle at gmx.net writes: 1.) How to define 'default settings' for program listings? In Document Settings... LaTeX Preamble, insert \lset{key=value, key=value, ...} For example: \lstset{language=Fortran,numbers=right}. 2.) How to cross reference a program listing Try

Lyx - Program Listing - default settings & cross-reference

2012-04-01 Thread Rainer Koelle
Hello all, I am struggling with 1.) default settings of program listings, and 2.) creating a cross-reference to (a) program listing(s) in my document. Unfortunately, the documentation did not shed any light on me... I use the standard book template for my document. 1.) How to define

Re: Lyx - Program Listing - default settings & cross-reference

2012-04-01 Thread Paul A . Rubin
Rainer Koelle gmx.net> writes: > > 1.) How to define 'default settings' for program listings? In Document > Settings... > LaTeX Preamble, insert \lset{key=value, key=value, ...} For example: \lstset{language=Fortran,numbers=right}. > > 2.) How to cross reference a

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

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

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

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

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

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

program listing of child documents with accents

2012-02-12 Thread Ricardo
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

Re: program listing of child documents with accents

2012-02-12 Thread Richard Heck
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

program listing of child documents with accents

2012-02-12 Thread Ricardo
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

Re: program listing of child documents with accents

2012-02-12 Thread Richard Heck
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

program listing of child documents with accents

2012-02-12 Thread Ricardo
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

Re: program listing of child documents with accents

2012-02-12 Thread Richard Heck
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

Re: An inline preview of a program listing from an external file

2012-02-08 Thread Marcin Zajączkowski
On 2012-02-07 10:49, Guenter Milde wrote: On 2012-02-06, Marcin Zajączkowski wrote: On 2012-01-30 13:14, Marcin Zajączkowski wrote: Hi, I added a program listing from an external file to my document using Insert - File - Child document (with type Program Listing). Everything works fine

Re: An inline preview of a program listing from an external file

2012-02-08 Thread Marcin Zajączkowski
On 2012-02-07 10:49, Guenter Milde wrote: On 2012-02-06, Marcin Zajączkowski wrote: On 2012-01-30 13:14, Marcin Zajączkowski wrote: Hi, I added a program listing from an external file to my document using Insert - File - Child document (with type Program Listing). Everything works fine

Re: An inline preview of a program listing from an external file

2012-02-08 Thread Marcin Zajączkowski
On 2012-02-07 10:49, Guenter Milde wrote: > On 2012-02-06, Marcin Zajączkowski wrote: >> On 2012-01-30 13:14, Marcin Zajączkowski wrote: >>> Hi, > >>> I added a program listing from an external file to my document using >>> Insert -> File -> Child doc

Re: An inline preview of a program listing from an external file

2012-02-07 Thread Guenter Milde
On 2012-02-06, Marcin Zajączkowski wrote: On 2012-01-30 13:14, Marcin Zajączkowski wrote: Hi, I added a program listing from an external file to my document using Insert - File - Child document (with type Program Listing). Everything works fine, but I would like to have an ability to turn

Re: An inline preview of a program listing from an external file

2012-02-07 Thread Guenter Milde
On 2012-02-06, Marcin Zajączkowski wrote: On 2012-01-30 13:14, Marcin Zajączkowski wrote: Hi, I added a program listing from an external file to my document using Insert - File - Child document (with type Program Listing). Everything works fine, but I would like to have an ability to turn

Re: An inline preview of a program listing from an external file

2012-02-07 Thread Guenter Milde
On 2012-02-06, Marcin Zajączkowski wrote: > On 2012-01-30 13:14, Marcin Zajączkowski wrote: >> Hi, >> I added a program listing from an external file to my document using >> Insert -> File -> Child document (with type Program Listing). Everything >> works fine, bu

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

Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-02-10 Thread Manveru
algorithms, they're just program listings. So, I'd the surrounding float to be called program listing, not algorithm. What to do? LyX has listings in Inset menu. You receive fully configurable listings, however if you want floats with captions, you probably need to write a module. -- Manveru jabber

Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-02-10 Thread Manveru
algorithms, they're just program listings. So, I'd the surrounding float to be called program listing, not algorithm. What to do? LyX has listings in Inset menu. You receive fully configurable listings, however if you want floats with captions, you probably need to write a module. -- Manveru jabber

Re: Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-02-10 Thread Manveru
gt; time, they aren't really algorithms, they're just program listings. > So, I'd the surrounding float to be called "program listing," not > "algorithm." > > What to do? LyX has listings in Inset menu. You receive fully configurable listings, however if you wa

Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
the surrounding float to be called program listing, not algorithm. What to do? Niko

Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
algorithms, they're just program listings. So, I'd the surrounding float to be called program listing, not algorithm. If you will have exclusively program listings and no algorithm floats, you can put the listings in algorithm floats and add to your preamble \floatname{algorithm}{Program Listing

Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
the surrounding float to be called program listing, not algorithm. What to do? Niko

Re: Rename algorithm to program listing – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
algorithms, they're just program listings. So, I'd the surrounding float to be called program listing, not algorithm. If you will have exclusively program listings and no algorithm floats, you can put the listings in algorithm floats and add to your preamble \floatname{algorithm}{Program Listing

Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Niko Schwarz
s. So, I'd the surrounding float to be called "program listing," not "algorithm." What to do? Niko

Re: Rename "algorithm" to "program listing" – How to get my program listings into my article?

2011-01-26 Thread Paul Rubin
hey aren't really algorithms, they're just program listings. > So, I'd the surrounding float to be called "program listing," not > "algorithm." > If you will have exclusively program listings and no algorithm floats, you can put the listings in algorithm floats and a

math mode in program listing

2011-01-12 Thread Jack Tanner
I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... }

Re: math mode in program listing

2011-01-12 Thread Paul Rubin
Jack Tanner ihok at hotmail.com writes: I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... } Right click on the listing, click

math mode in program listing

2011-01-12 Thread Jack Tanner
I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... }

Re: math mode in program listing

2011-01-12 Thread Paul Rubin
Jack Tanner ihok at hotmail.com writes: I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... } Right click on the listing, click

math mode in program listing

2011-01-12 Thread Jack Tanner
I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... }

Re: math mode in program listing

2011-01-12 Thread Paul Rubin
Jack Tanner hotmail.com> writes: > > I'd like to have a program listing, and to be able to insert math in > comments in the listing. Is that possible? > > For example, > > void main(argv[]) { >// calculate the mean $\mu$ >for (int i = 0; ... > }

Insert program listing: all code ends up on one line

2010-11-22 Thread Nikos Chantziaras
I'm on LyX 2.0 beta1. I wanted to include a *.c file in my document. There doesn't seem to be a way to do that, so I just copypasted the C code inside a program listing box (Insert-Program Listing). However, copypasting results in all code being put in one line. For example

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Vincent van Ravesteijn
So I have two questions at this point: How do I copypaste correctly, and is there a way to not copypaste at all and use an external *.c file? 1. Try Edit-Paste Special-Plain Text. 2. Try Insert-File-Child Document and select Include Type = Program Listing. Vincent

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Nikos Chantziaras
Type = Program Listing. Thank you. Both methods work. I think a special paste should not be needed here, given that the only thing one would paste inside a Program Listing box is source code.

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread ariestao
On Tue, 23 Nov 2010 00:53:41 +0200, Nikos Chantziaras rea...@arcor.de wrote: I'm on LyX 2.0 beta1. I wanted to include a *.c file in my document. There doesn't seem to be a way to do that, so I just copypasted the C code inside a program listing box (Insert-Program Listing). However

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Jim Oldfield
- Original Message From: Vincent van Ravesteijn v...@lyx.org To: Nikos Chantziaras rea...@arcor.de Cc: lyx-users@lists.lyx.org Sent: Mon, 22 November, 2010 22:59:39 Subject: Re: Insert program listing: all code ends up on one line So I have two questions at this point

Insert program listing: all code ends up on one line

2010-11-22 Thread Nikos Chantziaras
I'm on LyX 2.0 beta1. I wanted to include a *.c file in my document. There doesn't seem to be a way to do that, so I just copypasted the C code inside a program listing box (Insert-Program Listing). However, copypasting results in all code being put in one line. For example

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Vincent van Ravesteijn
So I have two questions at this point: How do I copypaste correctly, and is there a way to not copypaste at all and use an external *.c file? 1. Try Edit-Paste Special-Plain Text. 2. Try Insert-File-Child Document and select Include Type = Program Listing. Vincent

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Nikos Chantziaras
Type = Program Listing. Thank you. Both methods work. I think a special paste should not be needed here, given that the only thing one would paste inside a Program Listing box is source code.

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread ariestao
On Tue, 23 Nov 2010 00:53:41 +0200, Nikos Chantziaras rea...@arcor.de wrote: I'm on LyX 2.0 beta1. I wanted to include a *.c file in my document. There doesn't seem to be a way to do that, so I just copypasted the C code inside a program listing box (Insert-Program Listing). However

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Jim Oldfield
- Original Message From: Vincent van Ravesteijn v...@lyx.org To: Nikos Chantziaras rea...@arcor.de Cc: lyx-users@lists.lyx.org Sent: Mon, 22 November, 2010 22:59:39 Subject: Re: Insert program listing: all code ends up on one line So I have two questions at this point

Insert program listing: all code ends up on one line

2010-11-22 Thread Nikos Chantziaras
I'm on LyX 2.0 beta1. I wanted to include a *.c file in my document. There doesn't seem to be a way to do that, so I just copy the C code inside a "program listing" box (Insert->Program Listing). However, copy results in all code being put in one line. For example, this:

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Vincent van Ravesteijn
So I have two questions at this point: How do I copy correctly, and is there a way to not copy at all and use an external *.c file? 1. Try Edit->Paste Special->Plain Text. 2. Try Insert->File->Child Document and select Include Type = Program Listing. Vincent

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Nikos Chantziaras
Include Type = Program Listing. Thank you. Both methods work. I think a "special" paste should not be needed here, given that the only thing one would paste inside a Program Listing box is source code.

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread ariestao
On Tue, 23 Nov 2010 00:53:41 +0200, Nikos Chantziaras <rea...@arcor.de> wrote: > I'm on LyX 2.0 beta1. > > I wanted to include a *.c file in my document. There doesn't seem to be > a way to do that, so I just copy the C code inside a "program > listing&quo

Re: Insert program listing: all code ends up on one line

2010-11-22 Thread Jim Oldfield
- Original Message > From: Vincent van Ravesteijn <v...@lyx.org> > To: Nikos Chantziaras <rea...@arcor.de> > Cc: lyx-users@lists.lyx.org > Sent: Mon, 22 November, 2010 22:59:39 > Subject: Re: Insert program listing: all code ends up on one line > >

program listing justification

2010-10-01 Thread Jack Tanner
Is there perchance a global setting (or at least a per-document) to make all program listing insets be left-justified?

program listing justification

2010-10-01 Thread Jack Tanner
Is there perchance a global setting (or at least a per-document) to make all program listing insets be left-justified?

program listing justification

2010-10-01 Thread Jack Tanner
Is there perchance a global setting (or at least a per-document) to make all program listing insets be left-justified?

Re: Marking lines in a Program Listing in Lyx

2009-12-05 Thread Luke Venediger
of languages, that you wouldn't have (or would have to fake manually) in lyx-code. /Paul Hi, That's exactly the reason I'm using the listings environment. I'll poke around with writing a custom program listing and see what happens. Cheers, Luke

Re: Marking lines in a Program Listing in Lyx

2009-12-05 Thread Luke Venediger
of languages, that you wouldn't have (or would have to fake manually) in lyx-code. /Paul Hi, That's exactly the reason I'm using the listings environment. I'll poke around with writing a custom program listing and see what happens. Cheers, Luke

Re: Marking lines in a Program Listing in Lyx

2009-12-05 Thread Luke Venediger
of options, including syntax > formatting for a number of languages, that you wouldn't have (or would have > to fake manually) in lyx-code. > > /Paul > > Hi, That's exactly the reason I'm using the listings environment. I'll poke around with writing a custom program listing and see what happens. Cheers, Luke

Re: Marking lines in a Program Listing in Lyx

2009-12-04 Thread Paul A. Rubin
Steve Litt wrote: I suggest you look at the lyx-code environment. I think it's better for displaying computer programs. The listings environment gives you a whole lot of options, including syntax formatting for a number of languages, that you wouldn't have (or would have to fake

Re: Marking lines in a Program Listing in Lyx

2009-12-04 Thread Paul A. Rubin
Steve Litt wrote: I suggest you look at the lyx-code environment. I think it's better for displaying computer programs. The listings environment gives you a whole lot of options, including syntax formatting for a number of languages, that you wouldn't have (or would have to fake

Re: Marking lines in a Program Listing in Lyx

2009-12-04 Thread Paul A. Rubin
Steve Litt wrote: I suggest you look at the lyx-code environment. I think it's better for displaying computer programs. The listings environment gives you a whole lot of options, including syntax formatting for a number of languages, that you wouldn't have (or would have to fake

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Steve Litt
On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi Steve, Thanks very much, I'll give it a try. Cheers, Luke On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm

Re: Marking lines in a Program Listing in Lyx

2009-12-03 Thread Steve Litt
On Thursday 03 December 2009 16:19:19 you wrote: On Thu, Dec 3, 2009 at 4:06 PM, Steve Litt sl...@troubleshooters.comwrote: On Thursday 03 December 2009 06:59:25 Luke Venediger wrote: Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi Guys, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

Marking lines in a Program Listing in Lyx

2009-12-03 Thread Luke Venediger
Hi, Is it possible to mark certain lines in a Program Listing in Lyx? I'm writing a book and want to point out certain things in code examples. I'm trying to get the same effect as the one used by Mark Pilgrim, see http://diveintopython.org/native_data_types/lists.html#d0e5623 (example 3.6

  1   2   3   >