Re: Formatting source code
"Lars Gullik Bjønnes" wrote: > > This is really a great package. > I just tested with buffer.C in the LyX distribution and it worked > flawlessly. > > I think we should somehow create support for this in LyX. > The listings package seems to be actively maintained too. > I agree of course ! Thy - Thierry LEMEUNIER Equipe Langue et Dialogue - Laboratoire d'Informatique de L'Universite du Maine Institut d'Informatique Claude Chappe rue Laennec F72085 LE MANS CEDEX 9 - Tel : 33/0 2 4383 3865 Fax : 33/0 2 4383 3868 mailto : [EMAIL PROTECTED] webpage : http://www-ic2.univ-lemans.fr/~lemeunie/ -
Re: Macros ?
Andre Poenitz wrote: > > > > It works very well. Thanks for the tip. > > > But, what if one tries to 'compose' a more complex binding? > > > For instance, I've tried to 'concatenate' in the same "C-a s" binding a > > > 'sel-insert' instruction with a 'math-insert ^' one. No luck. > > > Any ideas out there ? > > > Thanks again. > > > > In Version 1.1.3 there is a new function named "command-sequence" > > which will probably do what you want. > > I think it will. The syntax is > > \bind "C-a s" "command-sequence self-insert Hello ; math-insert alpha ;" Yes, it works fine. Nice trick, thanks. But, mind me if I insist, where is the explanation obout this function in the docs ? > > Mind the final semicolon. And it gets tricky once you need to insert a > semicolon that way. It just occurs to me: We could change the delimiter > to a newline (does anybody know whether this wil break lyxrc parsing?) > > Or we could use some ed-like syntax > > \bind "C-a s" "command-sequence self-insert Hellomath-insert >alpha" > > where could be any character that does not occur within the > commands... > > Andre' > > -- > It'll take a long time to eat 63.000 peanuts. > Andri Pvnitz . [EMAIL PROTECTED] -- Dr. Luis A. Fernandez Department of Analytical Chemistry University of The Basque Country P.O. Box 644, 48080 Bilbao (Spain)
Re: Macros ?
> > \bind "C-a s" "command-sequence self-insert Hello ; math-insert alpha ;" > > Yes, it works fine. Nice trick, thanks. > But, mind me if I insist, where is the explanation obout this function > in the docs ? There is actually no explanation about this function in the docs, partly because I am lazy, partly because I am genuinely short of time, partly because I feel that this is an ugly hack that has to be corrected some time and partly because nobody else did the work ;-| Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Re: Macros ?
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Or we could use some ed-like syntax Andre> \bind "C-a s" "command-sequence self-insert Andre> Hellomath-insert alpha" Andre> where could be any character that does not occur within Andre> the commands... Yes, it may be a solution, or just use an escaped ; when you want a ;. JMarc
Re: Macros ?
> Yes, it may be a solution, or just use an escaped ; when you want a ;. I tried escaping first but that's opening a can of worms. You have to escape the escape character if you need that verbatim etc. Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]
Hyphenation!
I'm sorry but hyphenation is always my problem... Now I'm at the end of my thesis and I NEED the correct hyphenation. Many words have uncorrect hyphenation. Too much word to solve the problem manually... This is what I've done to make hyphenation correct: 1)I changed manually the file /usr/share/texmf/tex/generic/config/language.dat and uncommented the line italian ithyph.tex and did "configure" under lyx Nothing appened... :-( 2) Ran "texconfig" under Hyphenation -> LaTeX menu I edited language.dat file (I added a blank character and deleted it, just to update the file) Than I stroke "Exit" (I haven't found any "rebuild" option, so I thought it was automatic). Nothing happened :-< How can I do? I use tetex-0.9-17 under RedHat Linux 6.0 Please help me... Emanuele
RE: Hyphenation!
Hi Emanuele! On 09-Mar-2000 Emanuele Olivetti wrote: > I'm sorry but hyphenation is always my problem... > Now I'm at the end of my thesis and I NEED the correct hyphenation. > Many words have uncorrect hyphenation. Too much word to solve > the problem manually... > > This is what I've done to make hyphenation correct: > > 1)I changed manually the file > /usr/share/texmf/tex/generic/config/language.dat > and uncommented the line > italian ithyph.tex > and did "configure" under lyx > Nothing appened... :-( > This is a pure LaTeX problem so LyX cannot do anything. > 2) Ran "texconfig" > under Hyphenation -> LaTeX menu I edited language.dat file > (I added a blank character and deleted it, just to update the file) > Than I stroke "Exit" (I haven't found any "rebuild" option, so I > thought it was automatic). > Just edit that file again with texconfig, but add a language not just add space or something like that. Then save it and exit and you'll see that it recreates the format files (you have to choose the latex-hypenations!) After this just go inside lyx BE SURE that you selected as language italian in Layout->Document!!! and View the file you'll see that it should be much better :) > > How can I do? I use tetex-0.9-17 under RedHat Linux 6.0 > Should suffice I use it all the time with english, german and italian texts :) Greets Jürgen -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Italienallee 13/N Tel:+39-0471-450260 I-39100 Bozen Fax:+39-0471-450296 ITALY Web:http://www.sad.it/~jug You will have a long and boring life. -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Re: Hyphenation!
> "Emanuele" == Emanuele Olivetti <[EMAIL PROTECTED]> writes: Emanuele> 2) Ran "texconfig" under Hyphenation -> LaTeX menu I edited Emanuele> language.dat file (I added a blank character and deleted it, Emanuele> just to update the file) Than I stroke "Exit" (I haven't Emanuele> found any "rebuild" option, so I thought it was automatic). Emanuele> Nothing happened :-< You are supposed to find an option to rebuild latex format. I do not have texconfig right here, so I can't help more... JMarc
How to begin chapter on the right?
I'm printing a two-side report (my thesis) written with LyX: How can I make LyX start a new chapter on the right side (i.e. on a page with odd number)? Otherwise, how can I add a white page before a chapter? Thanks in advance Emanuele
Re: How to begin chapter on the right?
Emanuele Olivetti wrote: > > I'm printing a two-side report (my thesis) written with LyX: > How can I make LyX start a new chapter on the right side > (i.e. on a page with odd number)? > > Otherwise, how can I add a white page before a chapter? > > Thanks in advance > > Emanuele insert \pagebreak (in Tex-Mode!). this will make the paragraph start on a new page, but will not produce a blank page. The following trick works to insert a blank page: \pagebreak \hfill \pagebreak timm
Re: How to begin chapter on the right?
Emanuele Olivetti wrote: > > I'm printing a two-side report (my thesis) written with LyX: > How can I make LyX start a new chapter on the right side > (i.e. on a page with odd number)? \cleardoublepage Wolfgang
Re: How to begin chapter on the right?
>>Date: Thu, 09 Mar 2000 17:40:03 +0100 >>From: timm danker <[EMAIL PROTECTED]> >>Cc: Lyx User Mailing List <[EMAIL PROTECTED]> >>Subject: Re: How to begin chapter on the right? >> >>Emanuele Olivetti wrote: >>> >>> I'm printing a two-side report (my thesis) written with LyX: >>> How can I make LyX start a new chapter on the right side >>> (i.e. on a page with odd number)? >>> >>> Otherwise, how can I add a white page before a chapter? >>> >>> Thanks in advance >>> >>> Emanuele >> >>insert \pagebreak (in Tex-Mode!). this will make the paragraph start on >>a new page, but will not produce a blank page. The following trick works >>to insert a blank page: \pagebreak \hfill \pagebreak >> >>timm This should be *really* set by the document class options: - with book or alike, twoside does it (new right page for initial pages of chapters and parts) - with report or alike, you must set in addition openright in the extraoption box -- Jean-Pierre
reference to chapters in different parts
Glop glop I am writing in a book layout, and cross references to chapters/sections in different parts give the correct chapters/sections numbering, without the part number, which could be somewhat confusing. I guess one should write almost self-contained parts, and that the references to forein parts should seldom be used. In this case, it is easy to cross-ref to the part AND to the section. But is there a simple way to have the part number included in the ref, both everytime or whenever the part is different from the current one? Laurent Duval == The best of man is like water (Lao Tseu) ==
Latex Not Usable
Hi! I'm using LyX since a couple of years and i'm really happy with it. But now, I have problem to install it on a new system. I installed Debian 2.1 (i386) and LyX 1.2.2. When I do a reconfigure, I get: +checking for "latex"... not useable +checking for "latex2e"... not useable I did a latex ltxcheck and all is OK. The same for texconfig. Any ideas of the problem? Thanks Spec: I have these packages on my system: ii tetex-base 0.9.981113-1 basic teTeX library files ii tetex-bin 0.9.981113-2 teTeX binary files ii tetex-dev 0.9.981113-2 kpathsea.a and include files for teTeX ii tetex-doc 0.9.981113-1 teTeX documentation ii tetex-extra 0.9.981113-1 extra teTeX library files ii tetex-nonfree 0.9.981113-1 non-free teTeX library files gcc version egcs-2.91.66 Debian GNU/Linux (egcs-1.1.2 release) libc6 xforms 0.89 __ Get Your Private, Free Email at http://www.hotmail.com
float placement?
I've got a problem getting figure floats to go where I need them. What I want is for each figure to be on a page by itselfbut to be on the next page after it is placed in the text. I've tried !h and !hp a and various combinations in the float placement section of the document layout. however, the figures on their own page always seem to get put at the end of the doccument. it seems like the hp option tells lyx to "put the figure here if possible...but if not put it on its own page at the end of the doccument" What I want is "Put the figure on its own page and put it as close to here as possible" Is there anyway to get the behavoir I desire? Thank you :) Thanks you. Michael McPherson
new document class
Hi... I am a LyX beginner and I want to write my Master thesis in LyX. For that I have to use the university-specified document class. I have the .sty and .cls versions of the class so I can use either of them. They work fine with Latex. My problem is how to make LyX "understand" that specific class. I am runninf LyX 1.0.1. as it is the one installed at school. I tried all what came in the LyX manuals (Reference Manual, Customization manual, etc.) but nothing worked. Anybody has an idea on how to overcome this problem? Do I have to have a leter version of LyX in order to overcome the problem? Thank you very much, -- Wail
Re: new document class
On Thu, Mar 09, 2000 at 04:53:53PM -0500, Wail wrote: > Hi... > > I am a LyX beginner and I want to write my Master thesis in LyX. > For that I have to use the university-specified document class. > I have the .sty and .cls versions of the class so I can use either > of them. They work fine with Latex. My problem is how to make > LyX "understand" that specific class. > I am runninf LyX 1.0.1. as it is the one installed at school. > I tried all what came in the LyX manuals (Reference Manual, > Customization manual, etc.) but nothing worked. > Anybody has an idea on how to overcome this problem? > Do I have to have a leter version of LyX in order to overcome > the problem? > > Thank you very much, You should probably get lyx-1.1.4fix1 at least. The Customization manual should explain everything and it works nicely, as far as I can see. ---Kayvan -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc.| Laura Isabella Sylvan | Katherine Yelena http://www.successlinks.com/kayvan | Reach your goals now! | Robin Gregory
Re: new document class
On Thu, 9 Mar 2000, Wail wrote: > Hi... > > I am a LyX beginner and I want to write my Master thesis in LyX. > For that I have to use the university-specified document class. > I have the .sty and .cls versions of the class so I can use either > of them. They work fine with Latex. My problem is how to make > LyX "understand" that specific class. > I am runninf LyX 1.0.1. as it is the one installed at school. > I tried all what came in the LyX manuals (Reference Manual, > Customization manual, etc.) but nothing worked. > Anybody has an idea on how to overcome this problem? > Do I have to have a leter version of LyX in order to overcome > the problem? LyX-1.1.4 has a much improved section in Customization about adding new classes. You should get the school to upgrade to 1.0.4 with the manuals from the 1.1.4 distribution (or from the lyxdoc cvs module). Allan. (ARRae)