Re: How to paste into LyX-Code ?!!

2021-11-18 Thread Steve Litt
Daniel said on Thu, 18 Nov 2021 08:48:07 +0100 >On 2021-11-17 23:28, Steve Litt wrote: >> Daniel said on Wed, 17 Nov 2021 10:44:23 +0100 >> >>> On 17/11/2021 10:01, Steve Litt wrote: >>>> Hi all, >>>> >>>> I have a C program I wa

Re: How to paste into LyX-Code ?!!

2021-11-17 Thread Daniel
On 2021-11-17 23:28, Steve Litt wrote: Daniel said on Wed, 17 Nov 2021 10:44:23 +0100 On 17/11/2021 10:01, Steve Litt wrote: Hi all, I have a C program I want to show in a book. So I use the LyX-Code environment, but when I copy the C file to the clipboard and paste it into the LyX-Code

Re: How to paste into LyX-Code ?!!

2021-11-17 Thread Steve Litt
Daniel said on Wed, 17 Nov 2021 10:44:23 +0100 >On 17/11/2021 10:01, Steve Litt wrote: >> Hi all, >> >> I have a C program I want to show in a book. So I use the LyX-Code >> environment, but when I copy the C file to the clipboard and paste it >> into the LyX-C

Re: How to paste into LyX-Code ?

2021-11-17 Thread Norman Dunbar
So I use the LyX-Code >environment, but when I copy the C file to the clipboard and paste it >into the LyX-Code environment, all the newlines are removed. What's the >right way to show a C program file within LyX? > >Thanks, > >SteveT > >Steve Litt >Spring 2021

Re: How to paste into LyX-Code ?

2021-11-17 Thread Stephan Witt
Am 17.11.2021 um 10:01 schrieb Steve Litt : > > Hi all, > > I have a C program I want to show in a book. So I use the LyX-Code > environment, but when I copy the C file to the clipboard and paste it > into the LyX-Code environment, all the newlines are removed. What's the

Re: How to paste into LyX-Code ?

2021-11-17 Thread Daniel
On 17/11/2021 10:01, Steve Litt wrote: Hi all, I have a C program I want to show in a book. So I use the LyX-Code environment, but when I copy the C file to the clipboard and paste it into the LyX-Code environment, all the newlines are removed. What's the right way to show a C program

Re: How to paste into LyX-Code ?

2021-11-17 Thread Hartmut Haase
Hi Steve, what if you rename the .c file into .txt and do in Lux insert➡️file ➡️ simple text? -- Viele Grüße Hartmut Diese Nachricht wurde mit meinem Tablett serviert.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

How to paste into LyX-Code ?

2021-11-17 Thread Steve Litt
Hi all, I have a C program I want to show in a book. So I use the LyX-Code environment, but when I copy the C file to the clipboard and paste it into the LyX-Code environment, all the newlines are removed. What's the right way to show a C program file within LyX? Thanks, SteveT Steve

SV: I need an environment similar to, but not identical to LyX-Code

2021-09-02 Thread Helge Hafting
> I need an environment similar to, but not identical to the LyX-Code > environment. Specifically, I need the page margins to be the same as > regular text, and I'd also like a smaller font. LyX-code is defined in /usr/share/lyx/layouts/lyxmacros.inc (OSes other than Linux may u

Re: I need an environment similar to, but not identical to LyX-Code

2021-06-10 Thread Paul A. Rubin
On 6/10/21 7:54 PM, Steve Litt wrote: I need an environment similar to, but not identical to the LyX-Code environment. Specifically, I need the page margins to be the same as regular text, and I'd also like a smaller font. So I figured I'd find the LaTeX definition of LyX-Code and

I need an environment similar to, but not identical to LyX-Code

2021-06-10 Thread Steve Litt
I need an environment similar to, but not identical to the LyX-Code environment. Specifically, I need the page margins to be the same as regular text, and I'd also like a smaller font. So I figured I'd find the LaTeX definition of LyX-Code and work from there, possibly using CopyStyle

Re: Blank lines in Lyx-Code mode

2018-03-14 Thread Rich Shepard
On Wed, 14 Mar 2018, Paul A. Rubin wrote: I think this behavior is pretty consistent across versions (give or take whether the blank line appears to be preserved during pasting). Paul, Oh, Okay. I don't use the code environment all that often, but when I do ... As far as the best way to in

Re: Blank lines in Lyx-Code mode

2018-03-14 Thread Paul A. Rubin
On 03/14/2018 01:52 PM, Rich Shepard wrote: On Wed, 14 Mar 2018, Bruce Momjian wrote: Using LyX 2.1.4, when I paste text using "Paste Special" into a LyX-Code block, blank lines are preserved in the LyX display. Bruce,   Have you tried a newer version, e.g., 2.2.3 or 2.3.0rc2? Ri

Re: Blank lines in Lyx-Code mode

2018-03-14 Thread Rich Shepard
On Wed, 14 Mar 2018, Bruce Momjian wrote: Using LyX 2.1.4, when I paste text using "Paste Special" into a LyX-Code block, blank lines are preserved in the LyX display. Bruce, Have you tried a newer version, e.g., 2.2.3 or 2.3.0rc2? Rich

Blank lines in Lyx-Code mode

2018-03-14 Thread Bruce Momjian
Using LyX 2.1.4, when I paste text using "Paste Special" into a LyX-Code block, blank lines are preserved in the LyX display. However, when I render the document as a PDF, the blank lines are removed. If I add a space on the empty line, the blank line is output properly. Is thi

Re: Backtick in LyX's "LyX-Code" mode

2017-12-28 Thread Bruce Momjian
t; > > > > >> > ab'c de`f > > > >> > > > > >> > in "Standard" mode I get PDF output with proper left/right single > > > >> > quotes. However, if I switch to LyX-Code mode for that text, I get > >

Re: Backtick in LyX's "LyX-Code" mode

2017-12-28 Thread Scott Kostyshak
017 at 10:24:47PM +, Bruce Momjian wrote: > > >> > I am using LyX 2.1.2 on Ubuntu 14.04. > > >> > > > >> > If I enter this: > > >> > > > >> > ab'c de`f > > >> > > > >> > in &q

Re: Backtick in LyX's "LyX-Code" mode

2017-10-05 Thread Scott Kostyshak
sing LyX 2.1.2 on Ubuntu 14.04. > >> > > >> > If I enter this: > >> > > >> > ab'c de`f > >> > > >> > in "Standard" mode I get PDF output with proper left/right single > >> > quotes. However, if I switch to LyX-C

Re: Backtick in LyX's "LyX-Code" mode

2017-09-28 Thread Guenter Milde
gt; > ab'c de`f >> > >> > in "Standard" mode I get PDF output with proper left/right single >> > quotes. However, if I switch to LyX-Code mode for that text, I get as >> > PDF output: >> > >> >ab'c de'f >&

Re: Backtick in LyX's "LyX-Code" mode

2017-09-27 Thread Bruce Momjian
rd" mode I get PDF output with proper left/right single > > quotes. However, if I switch to LyX-Code mode for that text, I get as > > PDF output: > > > > ab'c de'f > > Testing on 2.1.0 and on 2.3.0dev, I get the following as PDF output: > >

Re: Backtick in LyX's "LyX-Code" mode

2017-09-27 Thread Scott Kostyshak
On Mon, Sep 25, 2017 at 10:24:47PM +, Bruce Momjian wrote: > I am using LyX 2.1.2 on Ubuntu 14.04. > > If I enter this: > >ab'c de`f > > in "Standard" mode I get PDF output with proper left/right single > quotes. However, if I switch to LyX-

Re: Backtick in LyX's "LyX-Code" mode

2017-09-25 Thread Guenter Milde
pped to "typographical" quotes u2019 and u2018: ab’c de‘f > However, if I switch to LyX-Code mode for that text, I get as > PDF output: > ab'c de'f Here, I get the "typographical" quotes u2019 and u2018 in a teletype font: ab’c de‘f With Document>

Backtick in LyX's "LyX-Code" mode

2017-09-25 Thread Bruce Momjian
I am using LyX 2.1.2 on Ubuntu 14.04. If I enter this: ab'c de`f in "Standard" mode I get PDF output with proper left/right single quotes. However, if I switch to LyX-Code mode for that text, I get as PDF output: ab'c de'f This is a problem for text

improve my physics book with lyx code

2016-10-21 Thread edu Gpl
Dear Uwe, lyx users 1- i upgrade my small physics book: - add more image with svg in the source. - make formula font small by this code in preamble: \everymath{\scriptstyle} - improve preamble (thanks for mr.Uwe,mr.Guenter). the book her (GPL): https://sourceforge.net/projects/ohodquizgame/files/B

Re: Double quotes in LyX-Code

2013-01-15 Thread Olivier Ripoll
On 14.01.2013 09:35, Andrew Parsloe wrote: I notice when I press the double-quote key in a LyX-Code environment that LyX displays *slanted* double quotes, nor does there seem to be any shortcut specified to produce straight double quotes. I can understand this for the usual text environments

Re: Double quotes in LyX-Code

2013-01-15 Thread Scott Kostyshak
On Tue, Jan 15, 2013 at 2:47 AM, Stephan Witt wrote: > Am 15.01.2013 um 08:46 schrieb Stephan Witt : > >> Am 15.01.2013 um 08:06 schrieb Liviu Andronic : >> >>> On Mon, Jan 14, 2013 at 10:38 PM, Stephan Witt wrote: Am 14.01.2013 um 21:56 schrieb Andrew Parsloe : > What does ~ signify her

Re: Double quotes in LyX-Code

2013-01-15 Thread Andrew Parsloe
On 15/01/2013 8:47 p.m., Stephan Witt wrote: Am 15.01.2013 um 08:46 schrieb Stephan Witt : Am 15.01.2013 um 08:06 schrieb Liviu Andronic : On Mon, Jan 14, 2013 at 10:38 PM, Stephan Witt wrote: Am 14.01.2013 um 21:56 schrieb Andrew Parsloe : What does ~ signify here? It's the not operato

Re: Double quotes in LyX-Code

2013-01-14 Thread Stephan Witt
Am 15.01.2013 um 08:46 schrieb Stephan Witt : > Am 15.01.2013 um 08:06 schrieb Liviu Andronic : > >> On Mon, Jan 14, 2013 at 10:38 PM, Stephan Witt wrote: >>> Am 14.01.2013 um 21:56 schrieb Andrew Parsloe : What does ~ signify here? >>> >>> It's the not operator. In your case "not shift".

Re: Double quotes in LyX-Code

2013-01-14 Thread Stephan Witt
Am 15.01.2013 um 08:06 schrieb Liviu Andronic : > On Mon, Jan 14, 2013 at 10:38 PM, Stephan Witt wrote: >> Am 14.01.2013 um 21:56 schrieb Andrew Parsloe : >>> What does ~ signify here? >> >> It's the not operator. In your case "not shift". >> > I'm curious: What does this imply in terms of phys

Re: Double quotes in LyX-Code

2013-01-14 Thread Liviu Andronic
On Mon, Jan 14, 2013 at 10:38 PM, Stephan Witt wrote: > Am 14.01.2013 um 21:56 schrieb Andrew Parsloe : >> What does ~ signify here? > > It's the not operator. In your case "not shift". > I'm curious: What does this imply in terms of physical keyboard? That is, what should one press to get 'not sh

Re: Double quotes in LyX-Code

2013-01-14 Thread Stephan Witt
Am 14.01.2013 um 21:56 schrieb Andrew Parsloe : > On 15/01/2013 1:03 a.m., Jürgen Spitzmüller wrote: >> Andrew Parsloe wrote: >>> I notice when I press the double-quote key in a LyX-Code environment >>> that LyX displays slanted double quotes, nor does there seem to be

Re: Double quotes in LyX-Code

2013-01-14 Thread Andrew Parsloe
On 15/01/2013 1:03 a.m., Jürgen Spitzmüller wrote: Andrew Parsloe wrote: I notice when I press the double-quote key in a LyX-Code environment that LyX displays slanted double quotes, nor does there seem to be any shortcut specified to produce straight double quotes. Straight quotes are bound

Re: Double quotes in LyX-Code

2013-01-14 Thread Jürgen Spitzmüller
Andrew Parsloe wrote: > I notice when I press the double-quote key in a LyX-Code environment > that LyX displays slanted double quotes, nor does there seem to be any > shortcut specified to produce straight double quotes. Straight quotes are bound to Shift+" in the standar

Re: Double quotes in LyX-Code

2013-01-14 Thread Guenter Milde
On 2013-01-14, Andrew Parsloe wrote: > I notice when I press the double-quote key in a LyX-Code environment > that LyX displays *slanted* double quotes, nor does there seem to be any > shortcut specified to produce straight double quotes. I can understand > this for the usual text

Double quotes in LyX-Code

2013-01-14 Thread Andrew Parsloe
I notice when I press the double-quote key in a LyX-Code environment that LyX displays *slanted* double quotes, nor does there seem to be any shortcut specified to produce straight double quotes. I can understand this for the usual text environments (Standard, Quote etc.) but for LyX-Code this

Re: Lyx code env.

2011-01-15 Thread S Nedunuri
Thanks! that did the trick "Richard Heck" wrote in message news:4d319fec.30...@comcast.net... On 01/14/2011 05:48 PM, S Nedunuri wrote: Does anyone know how to adjust the left margin in the Lyx Code environment? I create an Algorithm float, and as soon as I set the env. of the co

Re: Lyx code env.

2011-01-15 Thread Richard Heck
On 01/14/2011 05:48 PM, S Nedunuri wrote: Does anyone know how to adjust the left margin in the Lyx Code environment? I create an Algorithm float, and as soon as I set the env. of the contents to Lyx Code, the contents get shifted in. I have very little column space as it is, and I don't n

Lyx code env.

2011-01-14 Thread S Nedunuri
Does anyone know how to adjust the left margin in the Lyx Code environment? I create an Algorithm float, and as soon as I set the env. of the contents to Lyx Code, the contents get shifted in. I have very little column space as it is, and I don't need a gratuitous indentation! thanks

Re: Symbol for wrapped lines in LyX-Code

2010-07-10 Thread pierrickuk
s all -- View this message in context: http://lyx.475766.n2.nabble.com/Symbol-for-wrapped-lines-in-LyX-Code-tp5277467p5277989.html Sent from the LyX - Users mailing list archive at Nabble.com.

Re: Symbol for wrapped lines in LyX-Code

2010-07-10 Thread Paul A. Rubin
Was this an accidental repost? The same message was posted a few days ago (http://thread.gmane.org/gmane.editors.lyx.general/64608) and drew several responses, including my suggestion about the listings package. /Paul

Re: Symbol for wrapped lines in LyX-Code

2010-07-10 Thread Richard Heck
On 07/10/2010 07:20 AM, pierrickuk wrote: Hi there, I am posting this as 2 hours of searching got me nowhere so far. I am writing some instructions manual to set up some software my company is distributing. For this I need to put some linux console commands for which I use the LyX-code format

Symbol for wrapped lines in LyX-Code

2010-07-10 Thread pierrickuk
Hi there, I am posting this as 2 hours of searching got me nowhere so far. I am writing some instructions manual to set up some software my company is distributing. For this I need to put some linux console commands for which I use the LyX-code format. Everything is fine unless the line is too

Re: Symbol for wrapped lines in LyX-Code

2010-07-06 Thread Liviu Andronic
On Tue, Jul 6, 2010 at 3:28 PM, Morten Juhl-Johansen Zölde-Fejér wrote: > That is actually very good. > Is anybody putting together a Tricks with LyX guide? Because this should > be in there... > You could always add this to the wiki. Regards Liviu

Re: Symbol for wrapped lines in LyX-Code

2010-07-06 Thread Paul Rubin
Morten Juhl-Johansen Zölde-Fejér writtenandread.net> writes: > > That is actually very good. > Is anybody putting together a Tricks with LyX guide? Because this should > be in there... > Thanks. Tips and tricks abound on the wiki (http://wiki.lyx.org), but I just had a look there and did not

Re: Symbol for wrapped lines in LyX-Code

2010-07-06 Thread Morten Juhl-Johansen Zölde-Fejér
posting this as 2 hours of searching got me nowhere so far. >> I am writing some instructions manual to set up some software my company >> is >> distributing. >> For this I need to put some linux console commands for which I use the >> LyX-code format. Everything is f

Re: Symbol for wrapped lines in LyX-Code

2010-07-06 Thread Paul A. Rubin
On 7/6/2010 5:38 AM, pierrickuk wrote: Hi there, I am posting this as 2 hours of searching got me nowhere so far. I am writing some instructions manual to set up some software my company is distributing. For this I need to put some linux console commands for which I use the LyX-code format

Re: Symbol for wrapped lines in LyX-Code

2010-07-06 Thread Manveru
2010/7/6 pierrickuk : > > Hi there, > > I am posting this as 2 hours of searching got me nowhere so far. > I am writing some instructions manual to set up some software my company is > distributing. > For this I need to put some linux console commands for which I use

Re: Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Todd Denniston
Paul Rubin wrote, On Fri, 28 May 2010 15:35:16 + (UTC): > Try the following: > > 1. In the preamble, \usepackage{textcomp}. > > 2. Rather than LyX-Code, Insert > Program Listing and paste the code in there. > > 3. Right click anywhere in the listing, pick Settings

Re: in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-28 Thread Paul Rubin
Try the following: 1. In the preamble, \usepackage{textcomp}. 2. Rather than LyX-Code, Insert > Program Listing and paste the code in there. 3. Right click anywhere in the listing, pick Settings..., go the Advanced tab, and insert columns=fullflexible and upquote=true. The former gets rid

in Lyx-Code quote, double quote, and back-tic not as expected.

2010-05-27 Thread Todd Denniston
is is the way I did it. Set the type of text to LyX-Code ##paste in: for i in `seq 1 10|awk '{print $1}'`; \ do \ echo "Counter $i"; \ done ## click the view pdf button in the PDF select the whole for loop (for to done) and paste it into a terminal. find out that "s are ?

Re: Lyx-Code not available in IEEEtran in Lyx 2.0 alpha 3

2010-05-25 Thread Uwe Stöhr
Am 25.05.2010 12:58, schrieb Raja Zubair: Lyx-Code was available in Lyx 1.6.6 when using the IEEEtran document class. I fixed this now. You can fix this too by adding this line to the file IEEEtran.layout: Input lyxmacros.inc regards Uwe

Re: Lyx-Code not available in IEEEtran in Lyx 2.0 alpha 3

2010-05-25 Thread Uwe Stöhr
Am 25.05.2010 12:58, schrieb Raja Zubair: Lyx-Code was available in Lyx 1.6.6 when using the IEEEtran document class. It also seems from the IEEEtran How to that the user is free to use any Latex commands (although authors are of course free to use whatever LATEX commands they are most

Re: Lyx-Code not available in IEEEtran in Lyx 2.0 alpha 3

2010-05-25 Thread Raja Zubair
Hi Uwe Lyx-Code was available in Lyx 1.6.6 when using the IEEEtran document class. It also seems from the IEEEtran How to that the user is free to use any Latex commands IEEE publications use the figure environment to contain algorithms that are not to be a part of the main text flow. Peter

Re: Lyx-Code not available in IEEEtran in Lyx 2.0 alpha 3

2010-05-24 Thread Uwe Stöhr
Am 24.05.2010 17:47, schrieb Raja Zubair: I don't find Lyx-Code in IEEEtran document class in Lyx 2.0 alpha 3. Any idea to get it back ? I need to know if IEEE accept LyX code when submitting a paper. I would wonder if yes. regards Uwe

Lyx-Code not available in IEEEtran in Lyx 2.0 alpha 3

2010-05-24 Thread Raja Zubair
Hi I don't find Lyx-Code in IEEEtran document class in Lyx 2.0 alpha 3. Any idea to get it back ? regards Zubair

Re: Changes to LyX-Code with beamer

2010-03-24 Thread Julien Rioux
On 24/03/2010 5:19 PM, Kevin Middleton wrote: I'm trying to alter the appearance of LyX-Code in a beamer presentation by following a couple of previous posts to: http://www.mail-archive.com/lyx-users-uqbj+gopo4+hph1hqnu...@public.gmane.org/msg44992.html http://www.mail-archive.com/lyx-

Changes to LyX-Code with beamer

2010-03-24 Thread Kevin Middleton
I'm trying to alter the appearance of LyX-Code in a beamer presentation by following a couple of previous posts to: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg44992.html http://www.mail-archive.com/lyx-users@lists.lyx.org/msg30149.html I copied lyxmacros.inc from Resources/la

Re: lyx-code / scrap bug?

2009-07-25 Thread Sam Liddicott
Sam Liddicott wrote: Please could someone competent with Lyx 1.6.3 try this; create a literate (noweb) document and have a scrap immediately follow a lyx-code section. In the generated .nw file (in the /tmp/lyx* dir when creating a dvi preview) the file looks like this: \} \end{lyxcode

lyx-code / scrap bug?

2009-07-21 Thread Sam Liddicott
Please could someone competent with Lyx 1.6.3 try this; create a literate (noweb) document and have a scrap immediately follow a lyx-code section. In the generated .nw file (in the /tmp/lyx* dir when creating a dvi preview) the file looks like this: \} \end{lyxcode} \selectlanguage{english

Re: change font used in lyx-code environment ??

2009-01-17 Thread Guenter Milde
nge the font in the lyx GUI, not in the output. > Is there a way I can, in the document itself, tell the Lyx-Code > environment not to use typwriter font? Export to LaTeX and see how it is defined. Then change the definition in the latex preamble. > I guess I need to change all environme

change font used in lyx-code environment ??

2009-01-16 Thread Paul Johnson
ve learned that I CAN hack the font setting in the lyxcode in the LyX file lyxmacros.inc to change the ttfamily to sffamily, but I don't like that answer so much because it changes lyxcode for all classes. Is there a way I can, in the document itself, tell the Lyx-Code environment not to use

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:

[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: Difficulty with LyX-Code and Copystyle

2008-07-29 Thread rgheck
Yes. Overwrite the Preamble definiton by defining a replacement (maybe empty) in your copy. FYI: LyX 1.6 has a new "AddToPreamble" tag for cases where you don't want to over-write but just want to add something. If I'm remembering correctly, I found I needed the tag somewhere, so

Re: Difficulty with LyX-Code and Copystyle

2008-07-29 Thread G. Milde
On 28.07.08, rgheck wrote: > G. Milde wrote: >> On 27.07.08, Steve Litt wrote: >>>> Is there a simple way I can use CopyStyle with LyX-Code and not get this >>>> error? >> Yes. Overwrite the Preamble definiton by defining a replacement (maybe >> e

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread Steve Litt
ntended to work > >>> this way, but if I create and use two LyX styles, Code1 and Code2, each > >>> of them with CopyStyle LyX-Code, then on conversion to PDF I get the > >>> following error message: > >> > >> Hi Steve, > >> > >>

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread Abdelrazak Younes
Steve Litt wrote: On Monday 28 July 2008 03:22, Abdelrazak Younes wrote: Steve Litt wrote: Hi all, I'm not calling this a bug because maybe it was never intended to work this way, but if I create and use two LyX styles, Code1 and Code2, each of them with CopyStyle LyX-Code, then on conve

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread rgheck
Abdelrazak Younes wrote: rgheck wrote: G. Milde wrote: On 27.07.08, Steve Litt wrote: Is there a simple way I can use CopyStyle with LyX-Code and not get this error? Yes. Overwrite the Preamble definiton by defining a replacement (maybe empty) in your copy. FYI: LyX 1.6 has a new

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread Abdelrazak Younes
rgheck wrote: G. Milde wrote: On 27.07.08, Steve Litt wrote: Is there a simple way I can use CopyStyle with LyX-Code and not get this error? Yes. Overwrite the Preamble definiton by defining a replacement (maybe empty) in your copy. FYI: LyX 1.6 has a new "AddToPreamble" tag

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread rgheck
G. Milde wrote: On 27.07.08, Steve Litt wrote: Is there a simple way I can use CopyStyle with LyX-Code and not get this error? Yes. Overwrite the Preamble definiton by defining a replacement (maybe empty) in your copy. FYI: LyX 1.6 has a new "AddToPreamble" tag for c

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread G. Milde
On 27.07.08, Steve Litt wrote: > On Sunday 27 July 2008 17:09, Steve Litt wrote: > > ... > > if I create and use two LyX styles, Code1 and Code2, each of them > > with CopyStyle LyX-Code, then on conversion to PDF I get the following > > error message: > > > >

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread Steve Litt
On Monday 28 July 2008 03:22, Abdelrazak Younes wrote: > Steve Litt wrote: > > Hi all, > > > > I'm not calling this a bug because maybe it was never intended to work > > this way, but if I create and use two LyX styles, Code1 and Code2, each > > of them with

Re: Difficulty with LyX-Code and Copystyle

2008-07-28 Thread Abdelrazak Younes
Steve Litt wrote: Hi all, I'm not calling this a bug because maybe it was never intended to work this way, but if I create and use two LyX styles, Code1 and Code2, each of them with CopyStyle LyX-Code, then on conversion to PDF I get the following error message: Hi Steve, Not dir

Re: Difficulty with LyX-Code and Copystyle

2008-07-27 Thread Steve Litt
On Sunday 27 July 2008 17:09, Steve Litt wrote: > Hi all, > > I'm not calling this a bug because maybe it was never intended to work this > way, but if I create and use two LyX styles, Code1 and Code2, each of them > with CopyStyle LyX-Code, then on conversion to PDF I get t

Difficulty with LyX-Code and Copystyle

2008-07-27 Thread Steve Litt
Hi all, I'm not calling this a bug because maybe it was never intended to work this way, but if I create and use two LyX styles, Code1 and Code2, each of them with CopyStyle LyX-Code, then on conversion to PDF I get the following error message: LaXeX Error: Command \lyxcode already defin

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. No reason to w

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > > I'm attaching a small proof-of-concept example that shows three things: > > Let me rephrase that:  once I wake up, I'll be attaching ... The example compiles fine in 1.6svn. It's probably too tricky to backport the changes to 1.5. Jürgen

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
Paul A. Rubin wrote: I'm attaching a small proof-of-concept example that shows three things: Let me rephrase that: once I wake up, I'll be attaching ... listingsExample.lyx Description: application/lyx

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread Paul A. Rubin
G. Milde wrote: On 20.07.08, Paul A. Rubin wrote: Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an "esc

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-23 Thread G. Milde
On 20.07.08, Paul A. Rubin wrote: > Jürgen Spitzmüller wrote: >> Anyway, I don't think you'll find a working example. As listings fails >> with multibyte glyphs, it will also fail when multibyte glyphs are used >> in ERT, no? > Not according to the documentation. You can define an "escape to L

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Anyway, I don't think you'll find a working example. As listings fails with multibyte glyphs, it will also fail when multibyte glyphs are used in ERT, no? Not according to the documentation. You can define an "escape to LaTeX" character, and anything bracketed by

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-20 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > If you mean an example for doing a listing in ERT, the OP (Álvaro) had > one in his original message.  If you mean an example using multibyte > encoding, Yes, I mean the latter. > I don't think so -- the closest I come to a "foreign" language > is some long-forgotten Germ

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: Paul A. Rubin wrote: I saw the patch you proposed on the developer list, and I think it's a reasonable compromise. The only limitation I can see is that users writing in a language that needs multibyte encoding won't be able to embed native language comments in a listi

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > I saw the patch you proposed on the developer list, and I think it's a > reasonable compromise.  The only limitation I can see is that users > writing in a language that needs multibyte encoding won't be able to > embed native language comments in a listing.  If that's import

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-19 Thread Paul A. Rubin
Jürgen Spitzmüller wrote: However, I agree the encoding switch is a hack, and we should at least limit the hack to the case where it is needed, i.e. only switch to latin1 if we actually are in a multibyte encoding. So fundamentally, I think, it's a question of whether protecting the user f

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-18 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > The listings package does not require or force the \begingroup + > \inputencoding{latin1} + \endgroup commands, nor the two blank lines. > The blank lines are purely LyX.   These mark a new paragraph. They are not inserted if you ommit a paragraph break after the listings i

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-17 Thread Paul A. Rubin
is a lstlisting code added through an inset. LyX surrounds this with\begingroup and\endgroup, and creates a new paragraph after this one. \end{lstlisting} This is indented.\LyX{}-Code behaves differently than code listing insets.Isn't this a contradiction to the User Guide? ... seems to work.

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-17 Thread Jürgen Spitzmüller
Paul A. Rubin wrote: > I think it's a consequence of LyX setting the input encoding to latin1 > (and surrounding the listing with \begingroup ... \endgroup). No, without those, it shows exactly the same behaviour. > Still, am I right that forcing latin1 > in the listings environment means that yo

Re: Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-17 Thread Paul A. Rubin
Álvaro Manuel Recio Pérez wrote: Program listing insets doesn't follow the same rules. Paragraphs after listing insets are indented even if they are conceptually identical to the LyX-Code environment. My questions are: Why does this happen? And, is there a way to globally preven

Inconsistent indentation behaviour after LyX-Code and Program Listing Inset

2008-07-06 Thread Álvaro Manuel Recio Pérez
tle, an enumeration, a figure, etc. not indented. A paragraph after LyX-Code are not indented, and it makes sense because the paragraph can be easily told apart form code. Program listing insets doesn't follow the same rules. Paragraphs after listing insets are indented even if they are

Re: Error when using ticks in lyx-code or program listing

2008-06-10 Thread Paul A. Rubin
Rune Schjellerup Philosof wrote: I'm using Lyx 1.5.4 in Windows Vista ("official" installer on top of an installed "unofficial", because pdf thingie didn't work in Vista). When I try to insert ` or ´ in lyx-code or program listing the document won't compi

Error when using ticks in lyx-code or program listing

2008-06-10 Thread Rune Schjellerup Philosof
I'm using Lyx 1.5.4 in Windows Vista ("official" installer on top of an installed "unofficial", because pdf thingie didn't work in Vista). When I try to insert ` or ´ in lyx-code or program listing the document won't compile. Actually nothing at all happens

Re: help with LyX-Code (or verbatim in ERT) and wrapping

2007-12-17 Thread Siegfried MEUNIER-GUTTIN-CLUZEL
You can use the listings LaTeX package : it has automatic breaking of long lines, and it is fully integrated in LyX. Siegfried.

help with LyX-Code (or verbatim in ERT) and wrapping

2007-12-16 Thread Stacia Hartleben
Hi guys. I am finishing up a paper for my algorithms class and I ran into a little snag when it comes to displaying code and wrapping. 1. Sometimes very long lines are simply cut off (!) Take for example this long output of a sorting algorithm: (100 100 100 98 96 95 95 92 91 91 8

Re: No indentation with LyX-Code

2007-05-29 Thread Paul Smith
On 5/27/07, Paul A. Rubin <[EMAIL PROTECTED]> wrote: > I am using LyX-Code to insert the code of a procedure in a LyX > document. Unfortunately, I cannot get the code of the procedure NOT > indented, even after having set the paragraph not indented. Any ideas? > (I am usin

Re: No indentation with LyX-Code

2007-05-27 Thread Paul A. Rubin
Paul Smith wrote: Dear All I am using LyX-Code to insert the code of a procedure in a LyX document. Unfortunately, I cannot get the code of the procedure NOT indented, even after having set the paragraph not indented. Any ideas? (I am using LyX 1.4.4.) Thanks in advance, Paul Paul, Try

Re: No indentation with LyX-Code

2007-05-27 Thread Steve Litt
The other problem is that it's not very "WYSIWYM". I think something like the following (guess, not tested) latex might work: let oldlyx-code=lyx-code let oldendlyx-code=endlyx-code renewenvironment{lyx-code}{ \leftskip -0.5in \oldlyx-code }{} The preceding should for

Re: No indentation with LyX-Code

2007-05-27 Thread Paul Smith
On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. Can be solved with "hard spaces" CTRL + space Thanks, Gunnar. It works fine! Paul

Re: No indentation with LyX-Code

2007-05-27 Thread Gunnar Lindholm
> Thanks, Gunnar, but with "type writer" text, one cannot insert spaces > in the beginning of lines. Can be solved with "hard spaces" CTRL + space

Re: No indentation with LyX-Code

2007-05-27 Thread Paul Smith
On 5/27/07, Gunnar Lindholm <[EMAIL PROTECTED]> wrote: > document. Unfortunately, I cannot get the code of the procedure NOT > indented, even after having set the paragraph not indented. Any ideas? > (I am using LyX 1.4.4.) > Write it as standard text, select textstyle "type writer" in the menu

  1   2   3   >