Re: Getting Lyx working
On Saturday 07 August 2004 01:10, Taylors wrote: Sir/Madam I just installed lyx on my RedHat 9 installation using qt Which version? Where did you got it? I had no problems with installation till I tried to load lyx when I receive lyx: error while loading shared libraries: libflimage.so.1: cannot open shared object file: No such file or directory now I know libflimage.so.1 exists in /usr/X11R6/lib I am using Fedora Core 2, but it should irrelevant here. I see that libflimage.so.1 comes from xforms. Now this weird, it looks like your version is linked with xforms, not qt. I Taylor -- José Abílio
Problems with lyx command line in WIN32/Cygwin environment
Hi everybody, I found a very strange problem in win32/cygwin environment using lyx commandline. When I try to translate a lyx file into .tex format using command line lyx --export latex YYY.lyx, it reported as following: ** Traceback (most recent call last): File e:/lyx/lyx/share/lyx/lyx2lyx/lyx2lyx, line 18, in ? import getopt, sys, string, re ImportError: No module named getopt -- ERROR! An error occured while running the conversion script. ** It sounds like the installation of LyX win32 lacked some module named getopt but I found getopt.py and getopt.pyc in the e:/lyx/lyx/bin/lib/ directory. Besides, some other files could be translated smoothly and if I use the export option in LyX GUI, the YYY.lyx could also be sucessfully translated into YYY.tex. Anybody could give some hints ? Best regards, He Jin
Re: Getting Lyx working
José Abílio Thanks for reply Well spotted I actually read the manual (amazing what that does) When you use ./configure --with-frontend=qt --with-qt-dir=/usr/lib/qt-3.1 adding the option --with-frontend=qt alters the front end from default of xforms to qt lyx then works ok feel like a fool, but thanks for the reply I Taylor On Monday 09 August 2004 09:34, Jose' Matos wrote: On Saturday 07 August 2004 01:10, Taylors wrote: Sir/Madam I just installed lyx on my RedHat 9 installation using qt Which version? Where did you got it? I had no problems with installation till I tried to load lyx when I receive lyx: error while loading shared libraries: libflimage.so.1: cannot open shared object file: No such file or directory now I know libflimage.so.1 exists in /usr/X11R6/lib I am using Fedora Core 2, but it should irrelevant here. I see that libflimage.so.1 comes from xforms. Now this weird, it looks like your version is linked with xforms, not qt. I Taylor
Re: Getting Lyx working
Taylors wrote: José Abílio Thanks for reply Well spotted I actually read the manual (amazing what that does) When you use ./configure --with-frontend=qt --with-qt-dir=/usr/lib/qt-3.1 adding the option --with-frontend=qt alters the front end from default of xforms to qt lyx then works ok feel like a fool, but thanks for the reply I Taylor Well, it doesn't address the promary problem of why you failed to build the xforms frontend when you have libflimage.so.1 and libforms.so.1 in /usr/lib. Do you have symlinks libflimage.so - libflimage.so.1, etc? If not, does adding them make the linker happy? Incidentally, if all you wanted was a RH9 binary using the Qt frontend, then why not grab it from ftp://ftp.lyx.org/pub/lyx/bin/1.3.4/lyx-1.3.4-1rh9_qt.i386.rpm ? Something to bear in mind next time you upgrade perhaps. And if nobody else contributetes a binary for RH9 and lyx 1.3.5, then maybe you're the man to fill the gap. -- Angus
Accents, Displaystyle, Line spacing
Hi LyX folks, Assorted questions: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? And in LyX/Mac what modifier keys produce the various accented characters in textmode? The User Guide mentions xkeycaps as a way to see a graphical version of the keyboard. Is this, or something similar, available for LyX/mac? Last one: Choosing Custom line spacing in Layout Document allows me to pick the line spacing. If, for example, I write in the box 1.3 with 10 pt type, what line spacing does this give? I had expected that to get 3 pts leading with 10 pt type (10 on 13), say, that I should pick 1.3 = 13/10, but this appears to give much more leading than 10 on 13. Thanks for the help. Bruce
Re: Accents, Displaystyle, Line spacing
Bruce Pourciau wrote: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? Bruce, I suspect that there may be found other ways, but a simple one is to open another math-mode box and copy the contents of the previous one to the new box. The displaystyle disappears as long as you have properly selected the material before copying it. Give it a try! Paul
Re: Accents, Displaystyle, Line spacing
Hadn't thought of that. Thanks, Paul. Paul Smith wrote: Bruce Pourciau wrote: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? Bruce, I suspect that there may be found other ways, but a simple one is to open another math-mode box and copy the contents of the previous one to the new box. The displaystyle disappears as long as you have properly selected the material before copying it. Give it a try! Paul
Re: using \figcaption as ERT
Jan Smid wrote: I replaced the text describing the figures with [ERT] \begingroup\par singlespacing \figcaption [short description] {long blabla} \endgroup Not solving your problem, but as a useful tip, you can input the above in lyx as: ert \begingroup\par singlespacing \figcaption [ /ert short description ert ] { /ert long blabla ert } \endgroup /ert where ert.../ert delimits the contents of the ERT inset. This might look more work than your text, but does mean that you can use the full power of lyx to define 'short description' and 'long blabla' without needing to use any more ERT. -- Angus
Re: using \figcaption as ERT
Angus Leeming wrote: Jan Smid wrote: I replaced the text describing the figures with [ERT] \begingroup\par singlespacing \figcaption [short description] {long blabla} \endgroup Not solving your problem, but as a useful tip, you can input the above in lyx as: ert \begingroup\par singlespacing \figcaption [ /ert short description ert ] { /ert long blabla ert } \endgroup /ert where ert.../ert delimits the contents of the ERT inset. This might look more work than your text, but does mean that you can use the full power of lyx to define 'short description' and 'long blabla' without needing to use any more ERT. uuh, where is the full power when writing a _caption_ ;-) A full power way is when LyX supports the package nonfloat or capt-of, which is very easy to do ... Herbert
Re: A newbie approaches LyX
Jean-Pierre, Thanks for this. Jean-Pierre Chretien wrote: [...] 4. I would like to be able to insert some Python script into a LyX file. This would require leaving spaces in the text (whitespace is significant in Python) and using a fixed width font. You may use any package formatting code, e.g. listing or lgrind. Personnaly I use lgrind because it's an external program which is prone to automated code documentation management. If lgrind is installed on your system, you may simply test this: lgrind -lPython foo.py foo.tex latex foo makeindex foo # you get an index of the methods :-) latex foo and see if the layout fulfills your needs. Then lgrind -i lPython foo.py foo.tex will produce a file readily inserted in lyx with (in ERT) \lgrindfile{foo} I've found that the following gives me a tex file with functions, classes and methods listed at the side and included in the index - this looks good: C:\LyX\Tex\Fileslgrind -d lgrindef y.py y.tex Using language python When importing the y.tex to LyX, it appears only in LaTeXese and is not accessible for editing in the WYSIWYW mode. The file is viewable in the dvi mode and printable from yap. The text is displayed only in one font, so that LaTeX has added little more than the indexing. Some questions: 1) In what directory does lgrind.exe expect to find lgrindef? Currently, I have it in the same directories as lgrind.ins, lgrind.exe and the input text file y.py. 2) Is there some way to make the tex material available for editing in LyX? 3) Is there some way to enhance the y.tex file, see for example the attached y.html, derived from SciTE? 4) Can lgrindef be modified to permit distinctive fonts to be used for reserved words, comments, strings etc? I don't understand LaTeXese. The attached excerpt from shows that most of the keywords are listed. Thanks again for your help. Any advice would be appreciated. Colin W. # Database of program templates for lgrind # $Id: lgrindef,v 1.7 2000/12/27 21:42:37 mike Exp $ Python|py:\ :pb=^\d?(def|class)\d\p(\d|\\|\(|\:):\ :cb=#:ce=$:sb=:se=\e:lb=':le=\e':\ :kw=accept and break class continue def del elif else except\ exec finally for from global if import in is lambda not or\ pass print raise return try while: ___ The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here: and del for israise assertelif from lambdareturn break else globalnot try class exceptiforwhile continue exec importpass yield def finally inprint Note that although the identifier as can be used as part of the syntax of import statements, it is not currently a reserved word. In some future version of Python, the identifiers as and None will both become keywords.
Re: Accents, Displaystyle, Line spacing
On Mon, 09 Aug 2004 10:22:41 -0700 Bruce Pourciau [EMAIL PROTECTED] wrote: Hadn't thought of that. Thanks, Paul. Paul Smith wrote: Bruce Pourciau wrote: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? You can insert the line \bind M-m t math-insert \displaystyle in your math.bind in order to have a shortcut M-m t or any other that is not used yet. Eric Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? Bruce, I suspect that there may be found other ways, but a simple one is to open another math-mode box and copy the contents of the previous one to the new box. The displaystyle disappears as long as you have properly selected the material before copying it. Give it a try! Paul
LyX 1.3.4 qt version and dead keys after KDE 3.2.3 upgrade
I decided to downgrade to KDE 3.2 Mandrake 10.0 Official. The dead keys bug was present not only in LyX and Kword but in other qt apps like Scribus. I found no comments about this possible bug on KDE's site. 158 rpm to remove and almost as much to reinstall... But everything went fine and the dead key bug is out. LyX qt needs KDE even if I mainly use WindowMaker... Raymond -- Édité et transmis avec des logiciels libres sous Linux !
Re: Getting Lyx working
On Saturday 07 August 2004 01:10, Taylors wrote: Sir/Madam I just installed lyx on my RedHat 9 installation using qt Which version? Where did you got it? I had no problems with installation till I tried to load lyx when I receive lyx: error while loading shared libraries: libflimage.so.1: cannot open shared object file: No such file or directory now I know libflimage.so.1 exists in /usr/X11R6/lib I am using Fedora Core 2, but it should irrelevant here. I see that libflimage.so.1 comes from xforms. Now this weird, it looks like your version is linked with xforms, not qt. I Taylor -- José Abílio
Problems with lyx command line in WIN32/Cygwin environment
Hi everybody, I found a very strange problem in win32/cygwin environment using lyx commandline. When I try to translate a lyx file into .tex format using command line lyx --export latex YYY.lyx, it reported as following: ** Traceback (most recent call last): File e:/lyx/lyx/share/lyx/lyx2lyx/lyx2lyx, line 18, in ? import getopt, sys, string, re ImportError: No module named getopt -- ERROR! An error occured while running the conversion script. ** It sounds like the installation of LyX win32 lacked some module named getopt but I found getopt.py and getopt.pyc in the e:/lyx/lyx/bin/lib/ directory. Besides, some other files could be translated smoothly and if I use the export option in LyX GUI, the YYY.lyx could also be sucessfully translated into YYY.tex. Anybody could give some hints ? Best regards, He Jin
Re: Getting Lyx working
José Abílio Thanks for reply Well spotted I actually read the manual (amazing what that does) When you use ./configure --with-frontend=qt --with-qt-dir=/usr/lib/qt-3.1 adding the option --with-frontend=qt alters the front end from default of xforms to qt lyx then works ok feel like a fool, but thanks for the reply I Taylor On Monday 09 August 2004 09:34, Jose' Matos wrote: On Saturday 07 August 2004 01:10, Taylors wrote: Sir/Madam I just installed lyx on my RedHat 9 installation using qt Which version? Where did you got it? I had no problems with installation till I tried to load lyx when I receive lyx: error while loading shared libraries: libflimage.so.1: cannot open shared object file: No such file or directory now I know libflimage.so.1 exists in /usr/X11R6/lib I am using Fedora Core 2, but it should irrelevant here. I see that libflimage.so.1 comes from xforms. Now this weird, it looks like your version is linked with xforms, not qt. I Taylor
Re: Getting Lyx working
Taylors wrote: José Abílio Thanks for reply Well spotted I actually read the manual (amazing what that does) When you use ./configure --with-frontend=qt --with-qt-dir=/usr/lib/qt-3.1 adding the option --with-frontend=qt alters the front end from default of xforms to qt lyx then works ok feel like a fool, but thanks for the reply I Taylor Well, it doesn't address the promary problem of why you failed to build the xforms frontend when you have libflimage.so.1 and libforms.so.1 in /usr/lib. Do you have symlinks libflimage.so - libflimage.so.1, etc? If not, does adding them make the linker happy? Incidentally, if all you wanted was a RH9 binary using the Qt frontend, then why not grab it from ftp://ftp.lyx.org/pub/lyx/bin/1.3.4/lyx-1.3.4-1rh9_qt.i386.rpm ? Something to bear in mind next time you upgrade perhaps. And if nobody else contributetes a binary for RH9 and lyx 1.3.5, then maybe you're the man to fill the gap. -- Angus
Accents, Displaystyle, Line spacing
Hi LyX folks, Assorted questions: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? And in LyX/Mac what modifier keys produce the various accented characters in textmode? The User Guide mentions xkeycaps as a way to see a graphical version of the keyboard. Is this, or something similar, available for LyX/mac? Last one: Choosing Custom line spacing in Layout Document allows me to pick the line spacing. If, for example, I write in the box 1.3 with 10 pt type, what line spacing does this give? I had expected that to get 3 pts leading with 10 pt type (10 on 13), say, that I should pick 1.3 = 13/10, but this appears to give much more leading than 10 on 13. Thanks for the help. Bruce
Re: Accents, Displaystyle, Line spacing
Bruce Pourciau wrote: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? Bruce, I suspect that there may be found other ways, but a simple one is to open another math-mode box and copy the contents of the previous one to the new box. The displaystyle disappears as long as you have properly selected the material before copying it. Give it a try! Paul
Re: Accents, Displaystyle, Line spacing
Hadn't thought of that. Thanks, Paul. Paul Smith wrote: Bruce Pourciau wrote: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? Bruce, I suspect that there may be found other ways, but a simple one is to open another math-mode box and copy the contents of the previous one to the new box. The displaystyle disappears as long as you have properly selected the material before copying it. Give it a try! Paul
Re: using \figcaption as ERT
Jan Smid wrote: I replaced the text describing the figures with [ERT] \begingroup\par singlespacing \figcaption [short description] {long blabla} \endgroup Not solving your problem, but as a useful tip, you can input the above in lyx as: ert \begingroup\par singlespacing \figcaption [ /ert short description ert ] { /ert long blabla ert } \endgroup /ert where ert.../ert delimits the contents of the ERT inset. This might look more work than your text, but does mean that you can use the full power of lyx to define 'short description' and 'long blabla' without needing to use any more ERT. -- Angus
Re: using \figcaption as ERT
Angus Leeming wrote: Jan Smid wrote: I replaced the text describing the figures with [ERT] \begingroup\par singlespacing \figcaption [short description] {long blabla} \endgroup Not solving your problem, but as a useful tip, you can input the above in lyx as: ert \begingroup\par singlespacing \figcaption [ /ert short description ert ] { /ert long blabla ert } \endgroup /ert where ert.../ert delimits the contents of the ERT inset. This might look more work than your text, but does mean that you can use the full power of lyx to define 'short description' and 'long blabla' without needing to use any more ERT. uuh, where is the full power when writing a _caption_ ;-) A full power way is when LyX supports the package nonfloat or capt-of, which is very easy to do ... Herbert
Re: A newbie approaches LyX
Jean-Pierre, Thanks for this. Jean-Pierre Chretien wrote: [...] 4. I would like to be able to insert some Python script into a LyX file. This would require leaving spaces in the text (whitespace is significant in Python) and using a fixed width font. You may use any package formatting code, e.g. listing or lgrind. Personnaly I use lgrind because it's an external program which is prone to automated code documentation management. If lgrind is installed on your system, you may simply test this: lgrind -lPython foo.py foo.tex latex foo makeindex foo # you get an index of the methods :-) latex foo and see if the layout fulfills your needs. Then lgrind -i lPython foo.py foo.tex will produce a file readily inserted in lyx with (in ERT) \lgrindfile{foo} I've found that the following gives me a tex file with functions, classes and methods listed at the side and included in the index - this looks good: C:\LyX\Tex\Fileslgrind -d lgrindef y.py y.tex Using language python When importing the y.tex to LyX, it appears only in LaTeXese and is not accessible for editing in the WYSIWYW mode. The file is viewable in the dvi mode and printable from yap. The text is displayed only in one font, so that LaTeX has added little more than the indexing. Some questions: 1) In what directory does lgrind.exe expect to find lgrindef? Currently, I have it in the same directories as lgrind.ins, lgrind.exe and the input text file y.py. 2) Is there some way to make the tex material available for editing in LyX? 3) Is there some way to enhance the y.tex file, see for example the attached y.html, derived from SciTE? 4) Can lgrindef be modified to permit distinctive fonts to be used for reserved words, comments, strings etc? I don't understand LaTeXese. The attached excerpt from shows that most of the keywords are listed. Thanks again for your help. Any advice would be appreciated. Colin W. # Database of program templates for lgrind # $Id: lgrindef,v 1.7 2000/12/27 21:42:37 mike Exp $ Python|py:\ :pb=^\d?(def|class)\d\p(\d|\\|\(|\:):\ :cb=#:ce=$:sb=:se=\e:lb=':le=\e':\ :kw=accept and break class continue def del elif else except\ exec finally for from global if import in is lambda not or\ pass print raise return try while: ___ The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here: and del for israise assertelif from lambdareturn break else globalnot try class exceptiforwhile continue exec importpass yield def finally inprint Note that although the identifier as can be used as part of the syntax of import statements, it is not currently a reserved word. In some future version of Python, the identifiers as and None will both become keywords.
Re: Accents, Displaystyle, Line spacing
On Mon, 09 Aug 2004 10:22:41 -0700 Bruce Pourciau [EMAIL PROTECTED] wrote: Hadn't thought of that. Thanks, Paul. Paul Smith wrote: Bruce Pourciau wrote: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert Math Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? You can insert the line \bind M-m t math-insert \displaystyle in your math.bind in order to have a shortcut M-m t or any other that is not used yet. Eric Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? Bruce, I suspect that there may be found other ways, but a simple one is to open another math-mode box and copy the contents of the previous one to the new box. The displaystyle disappears as long as you have properly selected the material before copying it. Give it a try! Paul
LyX 1.3.4 qt version and dead keys after KDE 3.2.3 upgrade
I decided to downgrade to KDE 3.2 Mandrake 10.0 Official. The dead keys bug was present not only in LyX and Kword but in other qt apps like Scribus. I found no comments about this possible bug on KDE's site. 158 rpm to remove and almost as much to reinstall... But everything went fine and the dead key bug is out. LyX qt needs KDE even if I mainly use WindowMaker... Raymond -- Édité et transmis avec des logiciels libres sous Linux !
Re: Getting Lyx working
On Saturday 07 August 2004 01:10, Taylors wrote: > Sir/Madam > > I just installed lyx on my RedHat 9 installation using qt Which version? Where did you got it? > I had no problems with installation till > I tried to load lyx when I receive > > lyx: error while loading shared libraries: libflimage.so.1: cannot open > shared object file: No such file or directory > > now I know libflimage.so.1 exists in /usr/X11R6/lib I am using Fedora Core 2, but it should irrelevant here. I see that libflimage.so.1 comes from xforms. Now this weird, it looks like your version is linked with xforms, not qt. > I Taylor -- José Abílio
Problems with lyx command line in WIN32/Cygwin environment
Hi everybody, I found a very strange problem in win32/cygwin environment using lyx commandline. When I try to translate a lyx file into .tex format using command line "lyx --export latex YYY.lyx", it reported as following: ** Traceback (most recent call last): File "e:/lyx/lyx/share/lyx/lyx2lyx/lyx2lyx", line 18, in ? import getopt, sys, string, re ImportError: No module named getopt -- ERROR! An error occured while running the conversion script. ** It sounds like the installation of LyX win32 lacked some module named "getopt" but I found getopt.py and getopt.pyc in the e:/lyx/lyx/bin/lib/ directory. Besides, some other files could be translated smoothly and if I use the "export" option in LyX GUI, the YYY.lyx could also be sucessfully translated into YYY.tex. Anybody could give some hints ? Best regards, He Jin
Re: Getting Lyx working
José Abílio Thanks for reply Well spotted I actually read the manual (amazing what that does) When you use ./configure --with-frontend=qt --with-qt-dir=/usr/lib/qt-3.1 adding the option --with-frontend=qt alters the front end from default of xforms to qt lyx then works ok feel like a fool, but thanks for the reply I Taylor On Monday 09 August 2004 09:34, Jose' Matos wrote: > On Saturday 07 August 2004 01:10, Taylors wrote: > > Sir/Madam > > > > I just installed lyx on my RedHat 9 installation using qt > > Which version? Where did you got it? > > > I had no problems with installation till > > I tried to load lyx when I receive > > > > lyx: error while loading shared libraries: libflimage.so.1: cannot open > > shared object file: No such file or directory > > > > now I know libflimage.so.1 exists in /usr/X11R6/lib > > I am using Fedora Core 2, but it should irrelevant here. I see that > libflimage.so.1 comes from xforms. Now this weird, it looks like your > version is linked with xforms, not qt. > > > I Taylor
Re: Getting Lyx working
Taylors wrote: > José Abílio > > Thanks for reply > > Well spotted > > I actually read the manual (amazing what that does) > > When you use > > ./configure --with-frontend=qt --with-qt-dir=/usr/lib/qt-3.1 > > adding the option > --with-frontend=qt > > alters the front end from default of xforms to qt > > lyx then works ok > > feel like a fool, but thanks for the reply > > I Taylor Well, it doesn't address the promary problem of why you failed to build the xforms frontend when you have libflimage.so.1 and libforms.so.1 in /usr/lib. Do you have symlinks libflimage.so -> libflimage.so.1, etc? If not, does adding them make the linker happy? Incidentally, if all you wanted was a RH9 binary using the Qt frontend, then why not grab it from ftp://ftp.lyx.org/pub/lyx/bin/1.3.4/lyx-1.3.4-1rh9_qt.i386.rpm ? Something to bear in mind next time you upgrade perhaps. And if nobody else contributetes a binary for RH9 and lyx 1.3.5, then maybe you're the man to fill the gap. -- Angus
Accents, Displaystyle, Line spacing
Hi LyX folks, Assorted questions: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert > Math > Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? And in LyX/Mac what modifier keys produce the various accented characters in textmode? The User Guide mentions xkeycaps as a way to see a graphical version of the keyboard. Is this, or something similar, available for LyX/mac? Last one: Choosing Custom line spacing in Layout > Document allows me to pick the line spacing. If, for example, I write in the box 1.3 with 10 pt type, what line spacing does this give? I had expected that to get 3 pts leading with 10 pt type (10 on 13), say, that I should pick 1.3 = 13/10, but this appears to give much more leading than 10 on 13. Thanks for the help. Bruce
Re: Accents, Displaystyle, Line spacing
Bruce Pourciau wrote: When I make up a mathematics exam, I often need to insert a series of formulas inline but in displaystyle size (retaining the inline position). I know how to force this with \displaystyle or by selecting the _contents_ of an inline formula and choosing Insert > Math > Display formula, but is there a key binding or some other method that forces the displaystyle (with inline position) more quickly? In LyX/Mac? Conversely, how does one take a displaystyle size (inline position) formula and convert it back to inline size? Bruce, I suspect that there may be found other ways, but a simple one is to open another math-mode box and copy the contents of the previous one to the new box. The displaystyle disappears as long as you have properly selected the material before copying it. Give it a try! Paul
Re: Accents, Displaystyle, Line spacing
Hadn't thought of that. Thanks, Paul. Paul Smith wrote: > > Bruce Pourciau wrote: > > When I make up a mathematics exam, I often need to insert a series of > > formulas inline but in displaystyle size (retaining the inline > > position). I know how to force this with \displaystyle or by selecting > > the _contents_ of an inline formula and choosing Insert > Math > Display > > formula, but is there a key binding or some other method that forces > > the displaystyle (with inline position) more quickly? In LyX/Mac? > > > > Conversely, how does one take a displaystyle size (inline position) > > formula and convert it back to inline size? > > Bruce, > > I suspect that there may be found other ways, but a simple one is to > open another math-mode box and copy the contents of the previous one to > the new box. The displaystyle disappears as long as you have properly > selected the material before copying it. Give it a try! > > Paul
Re: using \figcaption as ERT
Jan Smid wrote: > I replaced the text describing the figures with > [ERT] > \begingroup\par > singlespacing > \figcaption [short description] {long blabla} > \endgroup Not solving your problem, but as a useful tip, you can input the above in lyx as: \begingroup\par singlespacing \figcaption [ short description ] { long blabla } \endgroup where ... delimits the contents of the ERT inset. This might look more work than your text, but does mean that you can use the full power of lyx to define 'short description' and 'long blabla' without needing to use any more ERT. -- Angus
Re: using \figcaption as ERT
Angus Leeming wrote: Jan Smid wrote: I replaced the text describing the figures with [ERT] \begingroup\par singlespacing \figcaption [short description] {long blabla} \endgroup Not solving your problem, but as a useful tip, you can input the above in lyx as: \begingroup\par singlespacing \figcaption [ short description ] { long blabla } \endgroup where ... delimits the contents of the ERT inset. This might look more work than your text, but does mean that you can use the full power of lyx to define 'short description' and 'long blabla' without needing to use any more ERT. uuh, where is the "full power" when writing a _caption_ ;-) A full power way is when LyX supports the package nonfloat or capt-of, which is very easy to do ... Herbert
Re: A newbie approaches LyX
Jean-Pierre, Thanks for this. Jean-Pierre Chretien wrote: [...] 4. I would like to be able to insert some Python script into a LyX file. This would require leaving spaces in the text (whitespace is significant in Python) and using a fixed width font. You may use any package formatting code, e.g. listing or lgrind. Personnaly I use lgrind because it's an external program which is prone to automated code documentation management. If lgrind is installed on your system, you may simply test this: lgrind -lPython foo.py foo.tex latex foo makeindex foo # you get an index of the methods :-) latex foo and see if the layout fulfills your needs. Then lgrind -i lPython foo.py foo.tex will produce a file readily inserted in lyx with (in ERT) \lgrindfile{foo} I've found that the following gives me a tex file with functions, classes and methods listed at the side and included in the index - this looks good: C:\LyX\Tex\Files>lgrind -d lgrindef y.py >y.tex Using language python When importing the y.tex to LyX, it appears only in LaTeXese and is not accessible for editing in the WYSIWYW mode. The file is viewable in the dvi mode and printable from yap. The text is displayed only in one font, so that LaTeX has added little more than the indexing. Some questions: 1) In what directory does lgrind.exe expect to find lgrindef? Currently, I have it in the same directories as lgrind.ins, lgrind.exe and the input text file y.py. 2) Is there some way to make the tex material available for editing in LyX? 3) Is there some way to enhance the y.tex file, see for example the attached y.html, derived from SciTE? 4) Can lgrindef be modified to permit distinctive fonts to be used for reserved words, comments, strings etc? I don't understand LaTeXese. The attached excerpt from shows that most of the keywords are listed. Thanks again for your help. Any advice would be appreciated. Colin W. # Database of program templates for lgrind # $Id: lgrindef,v 1.7 2000/12/27 21:42:37 mike Exp $ Python|py:\ :pb=^\d?(def|class)\d\p(\d|\\|\(|\:):\ :cb=#:ce=$:sb=":se=\e":lb=':le=\e':\ :kw=accept and break class continue def del elif else except\ exec finally for from global if import in is lambda not or\ pass print raise return try while: ___ The following identifiers are used as reserved words, or keywords of the language, and cannot be used as ordinary identifiers. They must be spelled exactly as written here: and del for israise assertelif from lambdareturn break else globalnot try class exceptiforwhile continue exec importpass yield def finally inprint Note that although the identifier as can be used as part of the syntax of import statements, it is not currently a reserved word. In some future version of Python, the identifiers as and None will both become keywords.
Re: Accents, Displaystyle, Line spacing
On Mon, 09 Aug 2004 10:22:41 -0700 Bruce Pourciau <[EMAIL PROTECTED]> wrote: > Hadn't thought of that. Thanks, Paul. > > Paul Smith wrote: > > > > Bruce Pourciau wrote: > > > When I make up a mathematics exam, I often need to insert a series of > > > formulas inline but in displaystyle size (retaining the inline > > > position). I know how to force this with \displaystyle or by selecting > > > the _contents_ of an inline formula and choosing Insert > Math > Display > > > formula, but is there a key binding or some other method that forces > > > the displaystyle (with inline position) more quickly? In LyX/Mac? You can insert the line \bind "M-m t" "math-insert \displaystyle" in your math.bind in order to have a shortcut M-m t or any other that is not used yet. Eric > > > > > > Conversely, how does one take a displaystyle size (inline position) > > > formula and convert it back to inline size? > > > > Bruce, > > > > I suspect that there may be found other ways, but a simple one is to > > open another math-mode box and copy the contents of the previous one to > > the new box. The displaystyle disappears as long as you have properly > > selected the material before copying it. Give it a try! > > > > Paul
LyX 1.3.4 qt version and dead keys after KDE 3.2.3 upgrade
I decided to downgrade to KDE 3.2 Mandrake 10.0 Official. The dead keys bug was present not only in LyX and Kword but in other qt apps like Scribus. I found no comments about this possible bug on KDE's site. 158 rpm to remove and almost as much to reinstall... But everything went fine and the dead key bug is out. LyX qt needs KDE even if I mainly use WindowMaker... Raymond -- Édité et transmis avec des logiciels libres sous Linux !