Import Latex code with verbatim

2009-02-27 Thread BcBob
Matlab has a feature called publish to latex that runs code and packages the code and the output into a latex file. I would like to use it to put examples into my book but I am having trouble importing the latex code into Lyx. The problem is that comments get mangled in with code during the impor

Re: new line in a title

2009-02-27 Thread Waluyo Adi Siswanto
On Fri, 2009-02-27 at 18:43 -0500, Ehud Kaplan wrote: > I agree with you-- I SHOULD be able to see the second line as part of > the title, and I do, as my message said. The sad part is that I do > NOT see the first line, the one that came BEFORE the Cntrl-Return. > EK > I have never encountered t

Re: new line in a title

2009-02-27 Thread Ehud Kaplan
I agree with you-- I SHOULD be able to see the second line as part of the title, and I do, as my message said. The sad part is that I do NOT see the first line, the one that came BEFORE the Cntrl-Return. EK Waluyo Adi Siswanto wrote: On Fri, 2009-02-27 at 16:41 -0500, Ehud Kaplan wrote: Wh

Re: Showing trimming cross lines

2009-02-27 Thread Waluyo Adi Siswanto
> > \usepackage[cam,center]{crop} > > Jürgen Thank you for the info.. but adding it in the preamble and see the pdf. It doesn't create anything.. Is it dependent on another package to make it work.

Re: Lyx and R some help appreciated : not Sweave

2009-02-27 Thread Graham Smith
Christian Considerung your problem -- if it isn't solved yet --, have you tried to put the R verbatim text into a minipage? You would do Insert --> Box (Minipage) and paste your code there. Might be worth a shot. I did think of that, but the problem is more manually re-organising the text

new line in a title

2009-02-27 Thread Ehud Kaplan
When I insert a carriage return (or shift return or control return) in a /title,/ I do not see in the pdf output the portion of the title that preceded the carriage return. What do I do? Thanks -- Ehud Kaplan, Ph.D. Jules and Doris Stein Research to Prevent Blindness Professor Director, The labo

Re: Lyx and R some help appreciated : not Sweave

2009-02-27 Thread Christian Liesen
Graham, thanks for your reply. I have to admit that I was first sceptical about Sweave, too. But it really works fine. Considerung your problem -- if it isn't solved yet --, have you tried to put the R verbatim text into a minipage? You would do Insert --> Box (Minipage) and paste your co

Re: Lyx configuration on a Mac: problems

2009-02-27 Thread Jason Waskiewicz
I'll confess that I've been using LyX on my Mac with no trouble, but something in your description struck me as similar to a difficulty I had a short time ago on my Linux box. The specific symptoms you cited were an inability to reconfigure and an inability to make PDF and DVI files. I saw the

Including LaTeX code produced by Sweave in a LyX document

2009-02-27 Thread christiaan pauw
Hi Everybody I started using R with LyX (through Sweave) recently (earlier today actually) and can see from here that it has great potential. R has functions can generate latex tables which is highly cusomizable. When these functions are run using sweave in LyX the do exactly what they are suppose

Re: Is Lyx free for all?

2009-02-27 Thread Steve Litt
On Friday 27 February 2009 11:21:22 am Nils Friedrich wrote: > Is Lyx without costs, even if companies use it? Man, I hope so, because my company's been using LyX to write books for 8 years now. Seriously, yes it's free to companies. It's licensed with the GPL license, so if you download it, yo

Re: Is Lyx free for all?

2009-02-27 Thread Abdelrazak Younes
Paul Smith wrote: On Fri, Feb 27, 2009 at 4:21 PM, Nils Friedrich wrote: Is Lyx without costs, even if companies use it? Yes, absolutely. You mean, even on Windows??? Such a polished, powerful, performant application... Unbelievable! :-) Abdel.

Re: Is Lyx free for all?

2009-02-27 Thread Richard Heck
Nils Friedrich wrote: Is Lyx without costs, even if companies use it? LyX is licensed under the GPL and can be used in accord with those terms. So yes, you can use it as you wish, without charge, though if you or your company finds it useful, we'd absolutely appreciate a donation. Donation

Re: Is Lyx free for all?

2009-02-27 Thread Rich Shepard
On Fri, 27 Feb 2009, Nils Friedrich wrote: Is Lyx without costs, even if companies use it? Yup. You may even modify the code to adapt it to company-specific requirements if you wish to do so. Here's a link to the GNU Public License (GPL): . LyX, like

Re: Is Lyx free for all?

2009-02-27 Thread Paul Smith
On Fri, Feb 27, 2009 at 4:21 PM, Nils Friedrich wrote: > Is Lyx without costs, even if companies use it? Yes, absolutely. Paul

Re: Lyx and R some help appreciated : not Sweave

2009-02-27 Thread Graham Smith
Paul I thought that by highlighting the output in Lyx and then turning it into verbatim text by clicking on the TEX icon, I could then manually align and break lines of text. But I can't. Do I need to use Latex commands in the TEX box I have just created (which seems fair enough, I just need to

Is Lyx free for all?

2009-02-27 Thread Nils Friedrich
Is Lyx without costs, even if companies use it? -- Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

Re: Endnotes - two questions

2009-02-27 Thread Richard Heck
Doug Laidlaw wrote: On Saturday 28 February 2009 1:53:59 am Doug Laidlaw wrote: On Friday 27 February 2009 11:35:30 pm rgheck wrote: You need to put "\theendnotes" in ERT where you want them to appear. rh I noticed that in the docs. It simply writes the total number of notes.

Re: Lyx and R some help appreciated : not Sweave

2009-02-27 Thread Paul A. Rubin
Graham Smith wrote: I thought that by highlighting the output in Lyx and then turning it into verbatim text by clicking on the TEX icon, I could then manually align and break lines of text. But I can't. Do I need to use Latex commands in the TEX box I have just created (which seems fair e

Re: LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread Jürgen Spitzmüller
Guenter Milde wrote: > Strange: > > * I use a released version (LyX 1.6.1 from Debian/unstable) OK, then it's a real crash, _next_ to the assertion (Richard's backtrace also indicates a crash). > * LyX closed down suddenly, > >   with *.lyx.emergency savings that sometimes where corrupt, :-( I

Re: Showing trimming cross lines

2009-02-27 Thread Jürgen Spitzmüller
Waluyo Adi Siswanto wrote: > Is that possible in LyX... \usepackage[cam,center]{crop} Jürgen

Re: LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread Guenter Milde
On 2009-02-27, Jürgen Spitzmüller wrote: > Guenter Milde wrote: >> Is this a known bug that will be fixed in 1.6.2 ? > BTW note that you faced an assertion, not a crash. In release mode, > assertions do not shut down LyX. Strange: * I use a released version (LyX 1.6.1 from Debian/unstable) * Ly

Re: xy-pic oddities

2009-02-27 Thread Abdelrazak Younes
Pol wrote: Paul A. Rubin wrote: FWIW, I pasted your three arrow code into a new document in LyX (with \usepackage[all]{xy} in the preamble), and instant preview displayed it with three arrow heads but only one arrow (the middle one). I also threw in another math inset with an integral, and

Lyx and R some help appreciated : not Sweave

2009-02-27 Thread Graham Smith
I am trying to put together some instructions/handouts for R using Lyx 1.6.1, and the output from R is giving some grief. The two key issues are: 1. output running off the right hand edge of the page e.g a list of values for a variable 2. Alignment of output so column headings are aligned with

Showing trimming cross lines

2009-02-27 Thread Waluyo Adi Siswanto
Dear LyX Users I am just wondering about showing a trimming cross lines at the corner of the paper to show the cutting off. For example the paper size is A4, but the book manuscript is prepared in Koma-script, DIV8. If the title page, the trimming cross lines are shown below than it gives the exa

Re: xy-pic oddities

2009-02-27 Thread Pol
Paul A. Rubin wrote: > FWIW, I pasted your three arrow code into a new document in LyX (with > \usepackage[all]{xy} in the preamble), and instant preview displayed it > with three arrow heads but only one arrow (the middle one). I also > threw in another math inset with an integral, and instan

Re: Endnotes - two questions

2009-02-27 Thread Doug Laidlaw
On Saturday 28 February 2009 1:53:59 am Doug Laidlaw wrote: > On Friday 27 February 2009 11:35:30 pm rgheck wrote: > > You need to put "\theendnotes" in ERT where you want them to appear. > > > > rh > > I noticed that in the docs. It simply writes the total number of notes. > Nothing more. It sou

Re: Endnotes - two questions

2009-02-27 Thread Doug Laidlaw
On Friday 27 February 2009 11:35:30 pm rgheck wrote: > You need to put "\theendnotes" in ERT where you want them to appear. > > rh I noticed that in the docs. It simply writes the total number of notes. Nothing more. It sounds like a configuration problem at my end. Doug.

SOLVED: LyX and R: Unable to import data

2009-02-27 Thread christiaan pauw
The answer was that it was a operator (me) problem. The library that enables get.csv is Hmisc and should have been loaded. thus: <>= library(Hmisc) x=csv.get(file="/Users/christiaanpauw/tmp/x.csv") mean(x) @ 2009/2/27 christiaan pauw > Hi Everybody > I use R2.8.0 on Mac OS X. I set up LyX 1.6.1

LyX and R: Unable to import data

2009-02-27 Thread christiaan pauw
Hi Everybody I use R2.8.0 on Mac OS X. I set up LyX 1.6.1 to use Sweave today following the instructions on the LyX wiki. It seems to work fine. I can compile the test file I found on CRAN (http://cran.r-project.org/contrib/extra/lyx/) without a problem and the output looks very nice. In the test f

Re: LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread rgheck
Vincent van Ravesteijn - TNW wrote: As Guenter mentioned, he has a master with childs. Doing a cut and paste in a child document does crash LyX 1.6.1. I have no current branch or svn to test with. OK, now I have it. Note that you get an infinite loop through emergencyWriteAll() when this hap

Re: Endnotes - two questions

2009-02-27 Thread rgheck
Doug Laidlaw wrote: I am writing a book. 1. Can I have endnotes for each chapter? That seems to have been recommended. IMO, endnotes make the book more readable. In my case, that is important. For a true reference work, I would certainly opt for footnotes, because they are closer to the

Re: LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread Jürgen Spitzmüller
Vincent van Ravesteijn - TNW wrote: > Confirmed. The assert or the fix? Jürgen

Re: LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread rgheck
Vincent van Ravesteijn - TNW wrote: Whenever I copy/kill and past a branch inset LyX dies with the error message ../../../src/support/lassert.cpp(21): ASSERTION false VIOLATED IN ../../src/insets/Inset.cpp:137 terminate called after throwing an instance of 'lyx::support::ExceptionMessage'

RE: LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread Vincent van Ravesteijn - TNW
> Whenever I copy/kill and past a branch inset LyX dies with the error message > >../../../src/support/lassert.cpp(21): ASSERTION false VIOLATED >IN ../../src/insets/Inset.cpp:137 terminate called after throwing >an instance of 'lyx::support::ExceptionMessage' > what(): Inset::buffer_ member n

Re: LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread Jürgen Spitzmüller
Guenter Milde wrote: > Is this a known bug that will be fixed in 1.6.2 ? Not that I know (although we have fixed many crashes and asserts, so this one might have been resolved en passant). In any case, I cannot reproduce with 1.6.3svn (but probably I need a more detailed recipe). BTW note that

Re: Apostrophe vs. Single quotation mark

2009-02-27 Thread Jürgen Spitzmüller
Doug Laidlaw wrote: > On a keyboard, they are the same character. However, not in LyX. "Proper" single quotation marks must be inserted via M-" (or whatever the function "quote-insert single" is bound to). Jürgen

LyX 1.6.1 crash when pasting a branch inset

2009-02-27 Thread Guenter Milde
Whenever I copy/kill and past a branch inset LyX dies with the error message ../../../src/support/lassert.cpp(21): ASSERTION false VIOLATED IN ../../src/insets/Inset.cpp:137 terminate called after throwing an instance of 'lyx::support::ExceptionMessage' what(): Inset::buffer_ member not initia

Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-27 Thread Guenter Milde
On 2009-02-27, Wolfgang Engelmann wrote: > Am Thursday 26 February 2009 16:56:57 schrieb Wilfried: >> Guenter Milde wrote: >>> But how about trying to get LyX into TeXLive? >> There is already a bootable, self-sustained Linux DVD available with LyX >> integrated: >> http://www.knoppix.org/ >> Th

Re: Strategies for Writing Co-operation with Non-LyX Users?

2009-02-27 Thread Wolfgang Engelmann
Am Thursday 26 February 2009 16:56:57 schrieb Wilfried: > Guenter Milde wrote: > > On 2009-02-07, Christian Ridderström wrote: > > > On Sat, 7 Feb 2009, Wolfgang Engelmann wrote: > > >> On Friday 06 February 2009 09:32:12 A B wrote: > > >> > > >> perhaps a live CD with a whatever-Lyx would be help