Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Roberto Gorjão wrote: Thank you both, Paul and Helge, for your complete explanations! I understood why the source view, in LyX, doesn't operate like a "code mode" yet. Nevertheless, to work on the exported LaTeX I'm not convinced that a "simple text editor" is the best solution, even if for tweaking or fine tunning. I think that it is Here is what you can do - if you want to fine-tune the code generated by LyX: * Use the source view to find code that you want different. * Remove from LyX the paragraph/math/whatever that creates the wrong code. * Insert->Tex Code, then type tweaked latex, possibly based on the original stuff. This way will clearly only work for small adjustments that are few and far between. Sometimes, it might be enough. Helge Hafting
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Thanks, Curtis and all, I also used to work with JEdit but I was not aware that it had a LaTeX plugin. I will give it both, JEdit and Eclipse a try. Thanks! Roberto --- curtis osterhoudt wrote: Both JEdit (http://www.jedit.org/) and Cream (http://cream.sourceforge.net/download.html) have treated me well, both are cross-platform, and both support lots of different highlighting/code modes. -- Roberto Gorjão freelance designer and web designer personal site: www.castelosnoar.com PORTUGAL / BRAGA / PÓVOA DE LANHOSO
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Roberto Gorjão wrote: > Which code editor, if any, would you recommend to edit LaTeX? > Preferably one that doesn't mess, or messes as little as possible, > with what LyX does. > > I'm on Win XP. Both JEdit (http://www.jedit.org/) and Cream (http://cream.sourceforge.net/download.html) have treated me well, both are cross-platform, and both support lots of different highlighting/code modes. Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, and more! http://tv.yahoo.com/collections/3658
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Roberto Gorjão wrote: Which code editor, if any, would you recommend to edit LaTeX? Preferably one that doesn't mess, or messes as little as possible, with what LyX does. I'm on Win XP. Personally, on XP I would go with Notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm). It comes with syntax highlighting for a bunch of languages, including TeX. Someone posted some tips for configuring it for LaTeX at http://physics.syr.edu/~salgado/software/latex/miktex_setup/#useNotepad++. I use it for other purposes. I haven't used it with LaTeX because I haven't needed to fiddle with raw LaTeX in some time. /Paul
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Roberto Gorjão wrote: Which code editor, if any, would you recommend to edit LaTeX? Preferably one that doesn't mess, or messes as little as possible, with what LyX does. I'm on Win XP. Bummer. The KDE program kile is quite good, I think. Of course, there's always emacs with the LaTeX mode, if you like that kind of thing. Richard
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
> Being used to > web page visual editors, I was expecting that the source viewer would > function like a "code mode" that we could choose as an alternative to > the normal "design mode", as happens with dreamweaver, The view source windows will, eventually, turn to 'view/edit source window', but as others have pointed out, the benefit does not really justify the efforts at this point. This is mostly because .tex -> .lyx conversion in lyx is not bullet-proof so the edit mode will not work well if we force the feature into lyx. Cheers, Bo
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Thank you both, Paul and Helge, for your complete explanations! I understood why the source view, in LyX, doesn't operate like a "code mode" yet. Nevertheless, to work on the exported LaTeX I'm not convinced that a "simple text editor" is the best solution, even if for tweaking or fine tunning. I think that it is always agreeable to have some basic help on the fly, when editing code, like code highlighting, code folding, or code assistance/completion. I've only tried LEd for a couple of hours, but it seems that it doesn't use/recognize the same packages and/or classes than LyX and that it introduces changes in LaTeX code when it compiles it for previewing (as I'm still a complete newbie in all this, I hope I have not misunderstood it). I'm inclined to use TeXlipse, as I'm already used to work with Eclipse, but I would like to know your views about this... Which code editor, if any, would you recommend to edit LaTeX? Preferably one that doesn't mess, or messes as little as possible, with what LyX does. I'm on Win XP. Thanks! Roberto - Paul A. Rubin wrote: Typically, I think, the sort of LaTeX tweaking you have in mind is something I would do in preparation for a final draft, not during the writing of the document. So I would be content to export to LaTeX, edit the LaTeX in a simple text editor, and go that route. -- Roberto Gorjão freelance designer and web designer personal site: www.castelosnoar.com PORTUGAL / BRAGA / PÓVOA DE LANHOSO
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Paul A. Rubin wrote: Roberto Gorjão wrote: Hi all, I would like to learn a bit more of LaTeX. I found surprising that we couldn't edit latex code directly on LyX at source view... Being used to web page visual editors, I was expecting that the source viewer would function like a "code mode" that we could choose as an alternative to the normal "design mode", as happens with dreamweaver, for instance. I know that we can edit LaTeX with the ERT command and at the preamble, but it isn't really the same as a "code mode". As I'm already used to code web languages (HTML, CSS, JavaScript, PHP) using Eclipse I was happy to find about the TeXlipse plugin. But it seems far less complete than LEd or TeXnic. I would like to know what's your opinion about the best strategy and tools to learn and work directly on LaTeX while keep using LyX for text creation. Something like having dreamweavers' "design mode" and "code mode" at the same time. This is really a question for the developers, but here's my uninformed opinion. Most of a LyX document is in what you might call an internal representation (what you see when you look at the .lyx file). LyX converts that to LaTeX when you view source. Correct. You are not viewing the "source", but the "latex export" with this mode. I think it would be fairly easy to allow you to edit LaTeX code that came from the preamble or ERT boxes (stuff you entered directly), but to do what you want would require that LyX be able to do a reverse conversion (from LaTeX back to LyX) on the fly. Furthermore, it would require considerable defensive coding to make sure that what you entered in the edit window, which might be perfectly valid LaTeX, did not screw up the LyX code upon reverse conversion. So this would IMHO be a huge effort for the developers. LyX already has File->import->latex. So there is effort, but not necessarily huge: 1. Cut from the lyx document whatever the user changed 2. Re-import the changed stuff. Now, if the user made a mistake, this part will result in a big ERT box being imported, and perhaps printing/viewing won't work until that is corrected. This new import would have to handle stuff smaller than a whole document. In order to collaborate today, consider file->export->latex in order to send off a latex file, and file->import->latex in order to import a changed latex file back into LyX. Helge Hafting
Re: LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Roberto Gorjão wrote: Hi all, I would like to learn a bit more of LaTeX. I found surprising that we couldn't edit latex code directly on LyX at source view... Being used to web page visual editors, I was expecting that the source viewer would function like a "code mode" that we could choose as an alternative to the normal "design mode", as happens with dreamweaver, for instance. I know that we can edit LaTeX with the ERT command and at the preamble, but it isn't really the same as a "code mode". As I'm already used to code web languages (HTML, CSS, JavaScript, PHP) using Eclipse I was happy to find about the TeXlipse plugin. But it seems far less complete than LEd or TeXnic. I would like to know what's your opinion about the best strategy and tools to learn and work directly on LaTeX while keep using LyX for text creation. Something like having dreamweavers' "design mode" and "code mode" at the same time. This is really a question for the developers, but here's my uninformed opinion. Most of a LyX document is in what you might call an internal representation (what you see when you look at the .lyx file). LyX converts that to LaTeX when you view source. I think it would be fairly easy to allow you to edit LaTeX code that came from the preamble or ERT boxes (stuff you entered directly), but to do what you want would require that LyX be able to do a reverse conversion (from LaTeX back to LyX) on the fly. Furthermore, it would require considerable defensive coding to make sure that what you entered in the edit window, which might be perfectly valid LaTeX, did not screw up the LyX code upon reverse conversion. So this would IMHO be a huge effort for the developers. I'm not sure the payoff would be all that great. Typically, I think, the sort of LaTeX tweaking you have in mind is something I would do in preparation for a final draft, not during the writing of the document. So I would be content to export to LaTeX, edit the LaTeX in a simple text editor, and go that route. I would probably use LyX Note boxes to keep track, in the document, of any tweaks I intended to make, to preserve them in the event the final edit was not actually final. That's less convenient than what you have in mind, but workable. Keep in mind with Dreamweaver (which I also use) that in Dreamweaver you are editing HTML, which is a much simpler language than LaTeX (with a much smaller vocabulary). Cheers, Paul
LyX and the lack of a "code mode"; TeXlipse versus LEd and TeXnic
Hi all, I would like to learn a bit more of LaTeX. I found surprising that we couldn't edit latex code directly on LyX at source view... Being used to web page visual editors, I was expecting that the source viewer would function like a "code mode" that we could choose as an alternative to the normal "design mode", as happens with dreamweaver, for instance. I know that we can edit LaTeX with the ERT command and at the preamble, but it isn't really the same as a "code mode". As I'm already used to code web languages (HTML, CSS, JavaScript, PHP) using Eclipse I was happy to find about the TeXlipse plugin. But it seems far less complete than LEd or TeXnic. I would like to know what's your opinion about the best strategy and tools to learn and work directly on LaTeX while keep using LyX for text creation. Something like having dreamweavers' "design mode" and "code mode" at the same time. Thanks! Roberto -- Roberto Gorjão freelance designer and web designer personal site: www.castelosnoar.com PORTUGAL / BRAGA / PÓVOA DE LANHOSO