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
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
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
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
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
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
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
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
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
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
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
Worked like a charm with LyX / TeXLive 2011.
Thanks!
Worked like a charm with LyX / TeXLive 2011.
Thanks!
Worked like a charm with LyX / TeXLive 2011.
Thanks!
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
the surrounding float to be called program listing, not
algorithm.
What to do?
Niko
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
the surrounding float to be called program listing, not
algorithm.
What to do?
Niko
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
s.
So, I'd the surrounding float to be called "program listing," not
"algorithm."
What to do?
Niko
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
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; ...
}
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
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; ...
}
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
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; ...
}
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; ...
> }
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
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
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.
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
- 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
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
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
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.
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
- 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
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:
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
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.
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
- 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
>
>
Is there perchance a global setting (or at least a per-document) to make
all program listing insets be left-justified?
Is there perchance a global setting (or at least a per-document) to make
all program listing insets be left-justified?
Is there perchance a global setting (or at least a per-document) to make
all program listing insets be left-justified?
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 269 matches
Mail list logo