Re: Help with installing lyx under windows XP
Hello Paul, and all the others who gave suugestions as well Thanks for the marvellous level of support - way beyond anything I've ever experienced with commercial software - as well as encouragement. The problem seems to have been the old version of sed, as well as an empty version of textclass.lst that somehow happened elsewhere on the HD as a result either of the installation or of my half-baked attempts to get it right. I now have the opening splash screen and a whole program menu to play with, as well as a free Sunday morning... oh happy day! Thanks again to all Richard Paul A. Rubin wrote: Richard Brown wrote: Thanks for your reply. I didn't intervene in the directory structure at all as far as I remember, but anyway I renamed the directory where it was, and ran the installation .exe again. (This was lyx-1.3.5-win32-nc.exe) with the following result: in C: I now have C:\lyx which contains bin, lib, man, share, tmp directories. I did nothing- the exe did this. This looks fine. The C:\lyx\bin subdirectory contains the lyx.exe program. In the c:\lyx\share subdirectory I find 2 more sub-subdirectories, one called locale (which seems to have a lot of other language stuff) and another called lyx (so this is c:\lyx\share\lyx ) which has packages.lst and textclass.lst files in. Neither is empty. The first four lines of textclass.lst are typical of the rest, and look like this-: IEEEtran IEEEtran article (IEEEtran) true aa aa article (AA) false aapaper aa article (AA V4) false aastex aastex article (AASTeX) true This is as it should be. When I run lyx, I still get the same error. I tried copying lyx.exe to the same directory as the textclass.lst files, and it was just the same. I tried copying the entire contents of the c:\lyx\share\lyx subdirectory to teh same place as the lyx.exe (ie, C:\lyx\bin) and it made no difference. The error still says LyX wasnt able to find any layout description Check the contents of the file textclass.lst Sorry, has to exit I'm way out of my depth here. Thanks for any help you may be able to give. Richard The error message typically occurs when either textclass.lst does not exist (anywhere) or textclass.lst exists but has length zero bytes (and *that* typically happens as a result of a problem with the configuration script). Now, if there's no textclass.lst in the directory where LyX starts (which is not necessarily the bin directory), then LyX should find the copy in lyx\share\lyx and start ok (I just verified this on my laptop). On the other hand, if you have a zero-length copy in the startup directory and a valid copy in lyx\share\lyx, you get the error (also just verified). So my best guess is that there is in fact a zero byte version sitting around somewhere. So here are a couple of things to try: 1. Search your PC for all copies of textclass.lst (either using the Windows search utility or by opening a command window and typing 'dir c:\textclass.lst /s'), and see if any copies with length zero show up. That will help pin down where LyX is starting, if in fact we find one. 2. Create a starting document directory (for instance, c:\lyx\work), copy the textclass.lst and paste the copy in there. While you're at it, copy packages.lst, clsfiles.lst, styfiles.lst and lyxrc.default from lyx\share\lyx into the work directory as well. (Not all of those may exist -- some are created by a successful configuration run, and I'm still not sure whether you've had one.) Now create a shortcut to the lyx.exe file (you can right-click it in Win Explorer and create the shortcut from the context menu that pops up). Now right-click the shortcut, choose Properties, and on the Shortcut tab set the target and startup entries as follows: Target: C:\lyx\bin\lyx.exe -userdir c:\lyx\work Start in: C;\lyx\bin (the second one should already be filled in correctly, but just to be sure ...). Click ok and then try to start LyX by double-clicking the shortcut. Does that help? One other thing to check: open a command prompt in c:\lyx\bin and type 'sed --version'. If the version number starts with a 3, you're using the copy of sed that came with the LyX installer, and it's known to fail in a way that leaves a zero-length textclass.lst. There's a tip on the Wiki about where to find a more recent copy of sed. Note that what you download when you follow the link from the Wiki is an *installer* that has to be run to install sed. (Some people have gotten confused and thought they were downloading sed.exe itself.) Let us know what transpires. -- Paul
Re: Caption Figure
Adinda Praditya wrote: I use roman numbering in chapter and I would like to use arabic numbering on float. So i want to change the caption in figure (float figure) to Figure 3.1 -figure description- instead of Figure III.1 -figure description-. Don't do this. This confuses the reader and therefore no book is printed in this way. I tried to add this line in preamble, \renewcommand{\caption}{\arabic{chapter}.\arabic{section}} If it is really necessary use \renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}} What docs / manual should i read? This is a LaTeX-issue not a LyX one. I therefore recommend to read a LaTeX-book, e.g. The LaTeX Companion Second Edition; F. Mittelbach and M. Goossens; Addison-Wesley; 2004 regards Uwe
Re: Lyx 1.3.6pre
Juergen Spitzmueller wrote: I haven't investigated yet, but my feeling is that this is a bug in the underlying Qt/Win Free library. Dumn question: is it possible that the qt/win free people ported a qt version including the qt-immodule patch? If so, you have to change the definition of USE_INPUT_METHODS in QContentPane.h: 29 (it has to be disabled for MacOSX at least). Forget it. This looks like a totally different bug indeed (and also does not work in the native qt widgets). Jürgen
listings format problem
Dear Herbert, I tried your following codes in LyX: I am using report as the document template: \usepackage[breaklines]{listings} \renewcommand\lstlistingname{Algorithmus} \renewcommand\lstlistlistingname{Algorithmenverzeichnis} \renewcommand\thelstlisting{\thesection.\arabic{lstlisting}} \newcommand{\lst}[2]{ \noindent\rule[-1ex]{\columnwidth}{0.3mm} \vspace{-1ex} \lstinputlisting[caption={#2},label={#1},stringspaces=false,frame={tb},lineskip=-1pt,extendedchars=true, basicstyle=\tt\footnotesize,labelstep=1,labelstyle=\tiny,indent=2em,language=Java,breaklines]{#1} \vspace{1ex} } It works fine in the normal document. However, if I import the source code with in a Enumrated environment. It will have some error for the top and button rule of the frame, Pleaes try: 1. point 1 \lst{mycode.file}{first code} 2. point 2 Where mycode.file is only: #include stdio.h void main(void) { print(hello\n); } Could you please help me to fix this problem? Thank you very much in advance! ^_^ Peter Chan __ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html
Re: user-defined section and subsection's numbering
SN M wrote: I need to change the numbering of section/subsection heading in my document created using latex. Specifically, I need to create the heading with the numbering as a user-defined combination of Uppercase lowercase letter and/or arabic numerals. For example, I would like to specficially define what goes into the numbering part of each section's and subsection's heading,as: NY New York [section's heading] NY-1 Queens [subsection's heading] NY-2 Manhattan NJ New Jersey [section's heading] NJ-1 [subsection's heading] NJ-2 The numbering is defined as 'NY' for the fist section's heading and 'NJ' for the second sectino's heading. The section heading are necessary to be alphabetical order. What do I need to do in order to define the numbering part of each section's heading separately? -Sai 1. In the preamble (Layout-Document-Preamble), enter \renewcommand{\thesubsection}{\thesection-\arabic{subsection}} (without the quotes). 2. In the text prior to the start of the New York section, add as ERT \renewcommand{\thesection}{NY} (again without the quotes). Repeat for each section. Alphabetical order is up to you. -- Paul
Re: Problem with adjacent thingies
On Fri, Jun 10, 2005 at 03:12:43PM -0500, Srinivas Nedunuri wrote: I originally reported this difficuly with the case environment but have since noticed the problem with lots of other environments, including Lemma, Definition, etc. Essentially the problem is that Lyx wont let me create adjacent Lemmas (without proofs), or adjacent Definitions, without some intervening (Standard) text. In the absence of any such text it merges the two adjacent entities into one. Does anyone have a workaround for this? Yes. Put a standard text paragraph with 'nothing' in between, i.e. {} in an ERT inset or such. Andre'
Conditional printing
Hello LYX people. I'd be very greatful for a few pointers on how to do the following- bearing in mind that I'm an advanced technical idiot, and have been using Lyx for just 8 hours! Nevertheless, I'm sure it must be possible. This is likely to be quite a long post- apologies in advance! I write educational material; and the material in its published form comes in three separate bits: the students' book, the teacher's book, and the CD. In the past I've had to write each separately, in separate files, and keeping it all together and cross referencing it is a nightmare. It would be much easier to write it all together, in one file, and then have the software separate it out when it is all finished. The basic element of everything is the exercise. The Students' Book is composed of a large number of exercises, organised into Units. Each exercise has 1)an introduction which may be in stages, and 2) a task. Each exercise has corrisponding elements in the teacher's book: the teacher's book elements are 1) set-up instructions 2) solutions to the task and 3) follow up instructions. Some of the exercises also have a script - as in filmscript - of the material on the CD. What I'd like to be able to do is write all the elements for each exercise at the same time in the same file, defining them as students book, teachers book CD stuff as I go, so that everything is checkable as I write it, and is co-ordinated. Then, when I come to print it, to have the software automatically understand where the elements go, and print it to the right file so that I end up with 4 files: the master, the students book, the teachers book and the CD script. All properly cross-reefernced. Am I asking for too much? Can it be done, and how? Thanks for your time and help, Richard Brown
Re: Problem with adjacent thingies
On 6/11/05, Andre Poenitz [EMAIL PROTECTED] wrote: I originally reported this difficuly with the case environment but have since noticed the problem with lots of other environments, including Lemma, Definition, etc. Essentially the problem is that Lyx wont let me create adjacent Lemmas (without proofs), or adjacent Definitions, without some intervening (Standard) text. In the absence of any such text it merges the two adjacent entities into one. Does anyone have a workaround for this? Yes. Put a standard text paragraph with 'nothing' in between, i.e. {} in an ERT inset or such. Actually, Andre', it is not necessary to insert {}; it is only necessary to have an empty ERT. Paul
Re: Help with installing lyx under windows XP
Hello Paul, and all the others who gave suugestions as well Thanks for the marvellous level of support - way beyond anything I've ever experienced with commercial software - as well as encouragement. The problem seems to have been the old version of sed, as well as an empty version of textclass.lst that somehow happened elsewhere on the HD as a result either of the installation or of my half-baked attempts to get it right. I now have the opening splash screen and a whole program menu to play with, as well as a free Sunday morning... oh happy day! Thanks again to all Richard Paul A. Rubin wrote: Richard Brown wrote: Thanks for your reply. I didn't intervene in the directory structure at all as far as I remember, but anyway I renamed the directory where it was, and ran the installation .exe again. (This was lyx-1.3.5-win32-nc.exe) with the following result: in C: I now have C:\lyx which contains bin, lib, man, share, tmp directories. I did nothing- the exe did this. This looks fine. The C:\lyx\bin subdirectory contains the lyx.exe program. In the c:\lyx\share subdirectory I find 2 more sub-subdirectories, one called locale (which seems to have a lot of other language stuff) and another called lyx (so this is c:\lyx\share\lyx ) which has packages.lst and textclass.lst files in. Neither is empty. The first four lines of textclass.lst are typical of the rest, and look like this-: IEEEtran IEEEtran article (IEEEtran) true aa aa article (AA) false aapaper aa article (AA V4) false aastex aastex article (AASTeX) true This is as it should be. When I run lyx, I still get the same error. I tried copying lyx.exe to the same directory as the textclass.lst files, and it was just the same. I tried copying the entire contents of the c:\lyx\share\lyx subdirectory to teh same place as the lyx.exe (ie, C:\lyx\bin) and it made no difference. The error still says LyX wasnt able to find any layout description Check the contents of the file textclass.lst Sorry, has to exit I'm way out of my depth here. Thanks for any help you may be able to give. Richard The error message typically occurs when either textclass.lst does not exist (anywhere) or textclass.lst exists but has length zero bytes (and *that* typically happens as a result of a problem with the configuration script). Now, if there's no textclass.lst in the directory where LyX starts (which is not necessarily the bin directory), then LyX should find the copy in lyx\share\lyx and start ok (I just verified this on my laptop). On the other hand, if you have a zero-length copy in the startup directory and a valid copy in lyx\share\lyx, you get the error (also just verified). So my best guess is that there is in fact a zero byte version sitting around somewhere. So here are a couple of things to try: 1. Search your PC for all copies of textclass.lst (either using the Windows search utility or by opening a command window and typing 'dir c:\textclass.lst /s'), and see if any copies with length zero show up. That will help pin down where LyX is starting, if in fact we find one. 2. Create a starting document directory (for instance, c:\lyx\work), copy the textclass.lst and paste the copy in there. While you're at it, copy packages.lst, clsfiles.lst, styfiles.lst and lyxrc.default from lyx\share\lyx into the work directory as well. (Not all of those may exist -- some are created by a successful configuration run, and I'm still not sure whether you've had one.) Now create a shortcut to the lyx.exe file (you can right-click it in Win Explorer and create the shortcut from the context menu that pops up). Now right-click the shortcut, choose Properties, and on the Shortcut tab set the target and startup entries as follows: Target: C:\lyx\bin\lyx.exe -userdir c:\lyx\work Start in: C;\lyx\bin (the second one should already be filled in correctly, but just to be sure ...). Click ok and then try to start LyX by double-clicking the shortcut. Does that help? One other thing to check: open a command prompt in c:\lyx\bin and type 'sed --version'. If the version number starts with a 3, you're using the copy of sed that came with the LyX installer, and it's known to fail in a way that leaves a zero-length textclass.lst. There's a tip on the Wiki about where to find a more recent copy of sed. Note that what you download when you follow the link from the Wiki is an *installer* that has to be run to install sed. (Some people have gotten confused and thought they were downloading sed.exe itself.) Let us know what transpires. -- Paul
Re: Caption Figure
Adinda Praditya wrote: I use roman numbering in chapter and I would like to use arabic numbering on float. So i want to change the caption in figure (float figure) to Figure 3.1 -figure description- instead of Figure III.1 -figure description-. Don't do this. This confuses the reader and therefore no book is printed in this way. I tried to add this line in preamble, \renewcommand{\caption}{\arabic{chapter}.\arabic{section}} If it is really necessary use \renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}} What docs / manual should i read? This is a LaTeX-issue not a LyX one. I therefore recommend to read a LaTeX-book, e.g. The LaTeX Companion Second Edition; F. Mittelbach and M. Goossens; Addison-Wesley; 2004 regards Uwe
Re: Lyx 1.3.6pre
Juergen Spitzmueller wrote: I haven't investigated yet, but my feeling is that this is a bug in the underlying Qt/Win Free library. Dumn question: is it possible that the qt/win free people ported a qt version including the qt-immodule patch? If so, you have to change the definition of USE_INPUT_METHODS in QContentPane.h: 29 (it has to be disabled for MacOSX at least). Forget it. This looks like a totally different bug indeed (and also does not work in the native qt widgets). Jürgen
listings format problem
Dear Herbert, I tried your following codes in LyX: I am using report as the document template: \usepackage[breaklines]{listings} \renewcommand\lstlistingname{Algorithmus} \renewcommand\lstlistlistingname{Algorithmenverzeichnis} \renewcommand\thelstlisting{\thesection.\arabic{lstlisting}} \newcommand{\lst}[2]{ \noindent\rule[-1ex]{\columnwidth}{0.3mm} \vspace{-1ex} \lstinputlisting[caption={#2},label={#1},stringspaces=false,frame={tb},lineskip=-1pt,extendedchars=true, basicstyle=\tt\footnotesize,labelstep=1,labelstyle=\tiny,indent=2em,language=Java,breaklines]{#1} \vspace{1ex} } It works fine in the normal document. However, if I import the source code with in a Enumrated environment. It will have some error for the top and button rule of the frame, Pleaes try: 1. point 1 \lst{mycode.file}{first code} 2. point 2 Where mycode.file is only: #include stdio.h void main(void) { print(hello\n); } Could you please help me to fix this problem? Thank you very much in advance! ^_^ Peter Chan __ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html
Re: user-defined section and subsection's numbering
SN M wrote: I need to change the numbering of section/subsection heading in my document created using latex. Specifically, I need to create the heading with the numbering as a user-defined combination of Uppercase lowercase letter and/or arabic numerals. For example, I would like to specficially define what goes into the numbering part of each section's and subsection's heading,as: NY New York [section's heading] NY-1 Queens [subsection's heading] NY-2 Manhattan NJ New Jersey [section's heading] NJ-1 [subsection's heading] NJ-2 The numbering is defined as 'NY' for the fist section's heading and 'NJ' for the second sectino's heading. The section heading are necessary to be alphabetical order. What do I need to do in order to define the numbering part of each section's heading separately? -Sai 1. In the preamble (Layout-Document-Preamble), enter \renewcommand{\thesubsection}{\thesection-\arabic{subsection}} (without the quotes). 2. In the text prior to the start of the New York section, add as ERT \renewcommand{\thesection}{NY} (again without the quotes). Repeat for each section. Alphabetical order is up to you. -- Paul
Re: Problem with adjacent thingies
On Fri, Jun 10, 2005 at 03:12:43PM -0500, Srinivas Nedunuri wrote: I originally reported this difficuly with the case environment but have since noticed the problem with lots of other environments, including Lemma, Definition, etc. Essentially the problem is that Lyx wont let me create adjacent Lemmas (without proofs), or adjacent Definitions, without some intervening (Standard) text. In the absence of any such text it merges the two adjacent entities into one. Does anyone have a workaround for this? Yes. Put a standard text paragraph with 'nothing' in between, i.e. {} in an ERT inset or such. Andre'
Conditional printing
Hello LYX people. I'd be very greatful for a few pointers on how to do the following- bearing in mind that I'm an advanced technical idiot, and have been using Lyx for just 8 hours! Nevertheless, I'm sure it must be possible. This is likely to be quite a long post- apologies in advance! I write educational material; and the material in its published form comes in three separate bits: the students' book, the teacher's book, and the CD. In the past I've had to write each separately, in separate files, and keeping it all together and cross referencing it is a nightmare. It would be much easier to write it all together, in one file, and then have the software separate it out when it is all finished. The basic element of everything is the exercise. The Students' Book is composed of a large number of exercises, organised into Units. Each exercise has 1)an introduction which may be in stages, and 2) a task. Each exercise has corrisponding elements in the teacher's book: the teacher's book elements are 1) set-up instructions 2) solutions to the task and 3) follow up instructions. Some of the exercises also have a script - as in filmscript - of the material on the CD. What I'd like to be able to do is write all the elements for each exercise at the same time in the same file, defining them as students book, teachers book CD stuff as I go, so that everything is checkable as I write it, and is co-ordinated. Then, when I come to print it, to have the software automatically understand where the elements go, and print it to the right file so that I end up with 4 files: the master, the students book, the teachers book and the CD script. All properly cross-reefernced. Am I asking for too much? Can it be done, and how? Thanks for your time and help, Richard Brown
Re: Problem with adjacent thingies
On 6/11/05, Andre Poenitz [EMAIL PROTECTED] wrote: I originally reported this difficuly with the case environment but have since noticed the problem with lots of other environments, including Lemma, Definition, etc. Essentially the problem is that Lyx wont let me create adjacent Lemmas (without proofs), or adjacent Definitions, without some intervening (Standard) text. In the absence of any such text it merges the two adjacent entities into one. Does anyone have a workaround for this? Yes. Put a standard text paragraph with 'nothing' in between, i.e. {} in an ERT inset or such. Actually, Andre', it is not necessary to insert {}; it is only necessary to have an empty ERT. Paul
Re: Help with installing lyx under windows XP
Hello Paul, and all the others who gave suugestions as well Thanks for the marvellous level of support - way beyond anything I've ever experienced with commercial software - as well as encouragement. The problem seems to have been the old version of sed, as well as an empty version of textclass.lst that somehow happened elsewhere on the HD as a result either of the installation or of my half-baked attempts to get it right. I now have the opening splash screen and a whole program menu to play with, as well as a free Sunday morning... oh happy day! Thanks again to all Richard Paul A. Rubin wrote: > Richard Brown wrote: > >> Thanks for your reply. I didn't intervene in the directory structure at >> all as far as I remember, but anyway I renamed the directory where it >> was, and ran the installation .exe again. (This was >> lyx-1.3.5-win32-nc.exe) with the following result: in C: I now have >> C:\lyx >> which contains bin, lib, man, share, tmp directories. I did nothing- the >> exe did this. > > > This looks fine. > >> The C:\lyx\bin subdirectory contains the lyx.exe program. >> In the c:\lyx\share subdirectory I find 2 more sub-subdirectories, one >> called locale (which seems to have a lot of other language stuff) and >> another called lyx (so this is c:\lyx\share\lyx ) which has packages.lst >> and textclass.lst files in. Neither is empty. The first four lines of >> textclass.lst are typical of the rest, and look like this-: >> >> "IEEEtran" "IEEEtran" "article (IEEEtran)" "true" >> "aa" "aa" "article (A)" "false" >> "aapaper" "aa" "article (A V4)" "false" >> "aastex" "aastex" "article (AASTeX)" "true" > > > This is as it should be. > >> When I run lyx, I still get the same error. I tried copying lyx.exe to >> the same directory as the textclass.lst files, and it was just the same. >> I tried copying the entire contents of the c:\lyx\share\lyx subdirectory >> to teh same place as the lyx.exe (ie, C:\lyx\bin) and it made no >> difference. The error still says >> >> LyX wasn’t able to find any layout description >> >> Check the contents of the file “textclass.lst” >> Sorry, has to exit >> >> >> >> I'm way out of my depth here. Thanks for any help you may be able to >> give. >> >> Richard > > > The error message typically occurs when either textclass.lst does not > exist (anywhere) or textclass.lst exists but has length zero bytes > (and *that* typically happens as a result of a problem with the > configuration script). Now, if there's no textclass.lst in the > directory where LyX starts (which is not necessarily the bin > directory), then LyX should find the copy in lyx\share\lyx and start > ok (I just verified this on my laptop). On the other hand, if you have > a zero-length copy in the startup directory and a valid copy in > lyx\share\lyx, you get the error (also just verified). So my best > guess is that there is in fact a zero byte version sitting around > somewhere. > > So here are a couple of things to try: > > 1. Search your PC for all copies of textclass.lst (either using the > Windows search utility or by opening a command window and typing 'dir > c:\textclass.lst /s'), and see if any copies with length zero show up. > That will help pin down where LyX is starting, if in fact we find one. > > 2. Create a starting document directory (for instance, c:\lyx\work), > copy the textclass.lst and paste the copy in there. While you're at > it, copy packages.lst, clsfiles.lst, styfiles.lst and lyxrc.default > from lyx\share\lyx into the work directory as well. (Not all of those > may exist -- some are created by a successful configuration run, and > I'm still not sure whether you've had one.) Now create a shortcut to > the lyx.exe file (you can right-click it in Win Explorer and create > the shortcut from the context menu that pops up). Now right-click the > shortcut, choose Properties, and on the Shortcut tab set the target > and startup entries as follows: > > Target: C:\lyx\bin\lyx.exe -userdir c:\lyx\work > Start in: C;\lyx\bin > > (the second one should already be filled in correctly, but just to be > sure ...). Click ok and then try to start LyX by double-clicking the > shortcut. Does that help? > > One other thing to check: open a command prompt in c:\lyx\bin and type > 'sed --version'. If the version number starts with a 3, you're using > the copy of sed that came with the LyX installer, and it's known to > fail in a way that leaves a zero-length textclass.lst. There's a tip > on the Wiki about where to find a more recent copy of sed. Note that > what you download when you follow the link from the Wiki is an > *installer* that has to be run to install sed. (Some people have > gotten confused and thought they were downloading sed.exe itself.) > > Let us know what transpires. > > -- Paul > > >
Re: Caption Figure
Adinda Praditya wrote: I use roman numbering in chapter and I would like to use arabic numbering on float. So i want to change the caption in figure (float figure) to "Figure 3.1 -figure description-" instead of "Figure III.1 -figure description-". Don't do this. This confuses the reader and therefore no book is printed in this way. I tried to add this line in preamble, \renewcommand{\caption}{\arabic{chapter}.\arabic{section}} If it is really necessary use \renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}} What docs / manual should i read? This is a LaTeX-issue not a LyX one. I therefore recommend to read a LaTeX-book, e.g. "The LaTeX Companion Second Edition"; F. Mittelbach and M. Goossens; Addison-Wesley; 2004 regards Uwe
Re: Lyx 1.3.6pre
Juergen Spitzmueller wrote: > > I haven't investigated yet, but my feeling is that this is a bug in the > > underlying Qt/Win Free library. > > Dumn question: is it possible that the qt/win free people ported a qt > version including the qt-immodule patch? If so, you have to change the > definition of USE_INPUT_METHODS in QContentPane.h: 29 (it has to be > disabled for MacOSX at least). Forget it. This looks like a totally different bug indeed (and also does not work in the native qt widgets). Jürgen
listings format problem
Dear Herbert, I tried your following codes in LyX: I am using report as the document template: \usepackage[breaklines]{listings} \renewcommand\lstlistingname{Algorithmus} \renewcommand\lstlistlistingname{Algorithmenverzeichnis} \renewcommand\thelstlisting{\thesection.\arabic{lstlisting}} \newcommand{\lst}[2]{ \noindent\rule[-1ex]{\columnwidth}{0.3mm} \vspace{-1ex} \lstinputlisting[caption={#2},label={#1},stringspaces=false,frame={tb},lineskip=-1pt,extendedchars=true, basicstyle=\tt\footnotesize,labelstep=1,labelstyle=\tiny,indent=2em,language=Java,breaklines]{#1} \vspace{1ex} } It works fine in the normal document. However, if I import the source code with in a Enumrated environment. It will have some error for the top and button rule of the frame, Pleaes try: 1. point 1 \lst{mycode.file}{first code} 2. point 2 Where mycode.file is only: #include void main(void) { print("hello\n"); } Could you please help me to fix this problem? Thank you very much in advance! ^_^ Peter Chan __ Discover Yahoo! Have fun online with music videos, cool games, IM and more. Check it out! http://discover.yahoo.com/online.html
Re: user-defined section and subsection's numbering
SN M wrote: I need to change the numbering of section/subsection heading in my document created using latex. Specifically, I need to create the heading with the numbering as a user-defined combination of Uppercase & lowercase letter and/or arabic numerals. For example, I would like to specficially define what goes into the numbering part of each section's and subsection's heading",as: NY New York [section's heading] NY-1 Queens [subsection's heading] NY-2 Manhattan NJ New Jersey [section's heading] NJ-1 [subsection's heading] NJ-2 The numbering is defined as 'NY' for the fist section's heading and 'NJ' for the second sectino's heading. The section heading are necessary to be alphabetical order. What do I need to do in order to define the numbering part of each section's heading separately? -Sai 1. In the preamble (Layout->Document->Preamble), enter "\renewcommand{\thesubsection}{\thesection-\arabic{subsection}}" (without the quotes). 2. In the text prior to the start of the New York section, add as ERT "\renewcommand{\thesection}{NY}" (again without the quotes). Repeat for each section. Alphabetical order is up to you. -- Paul
Re: Problem with adjacent thingies
On Fri, Jun 10, 2005 at 03:12:43PM -0500, Srinivas Nedunuri wrote: > I originally reported this difficuly with the "case" environment but have > since noticed the problem with lots of other environments, including Lemma, > Definition, etc. Essentially the problem is that Lyx wont let me create > adjacent Lemmas (without proofs), or adjacent Definitions, without some > intervening (Standard) text. In the absence of any such text it merges the > two adjacent entities into one. Does anyone have a workaround for this? Yes. Put a standard text paragraph with 'nothing' in between, i.e. {} in an ERT inset or such. Andre'
Conditional printing
Hello LYX people. I'd be very greatful for a few pointers on how to do the following- bearing in mind that I'm an advanced technical idiot, and have been using Lyx for just 8 hours! Nevertheless, I'm sure it must be possible. This is likely to be quite a long post- apologies in advance! I write educational material; and the material in its published form comes in three separate bits: the students' book, the teacher's book, and the CD. In the past I've had to write each separately, in separate files, and keeping it all together and cross referencing it is a nightmare. It would be much easier to write it all together, in one file, and then have the software separate it out when it is all finished. The basic element of everything is the exercise. The Students' Book is composed of a large number of exercises, organised into Units. Each exercise has 1)an introduction which may be in stages, and 2) a task. Each exercise has corrisponding elements in the teacher's book: the teacher's book elements are 1) set-up instructions 2) solutions to the task and 3) follow up instructions. Some of the exercises also have a script - as in filmscript - of the material on the CD. What I'd like to be able to do is write all the elements for each exercise at the same time in the same file, defining them as "students book", "teachers book" "CD stuff" as I go, so that everything is checkable as I write it, and is co-ordinated. Then, when I come to print it, to have the software automatically understand where the elements go, and print it to the right file so that I end up with 4 files: the master, the students book, the teachers book and the CD script. All properly cross-reefernced. Am I asking for too much? Can it be done, and how? Thanks for your time and help, Richard Brown
Re: Problem with adjacent thingies
On 6/11/05, Andre Poenitz <[EMAIL PROTECTED]> wrote: > > I originally reported this difficuly with the "case" environment but have > > since noticed the problem with lots of other environments, including Lemma, > > Definition, etc. Essentially the problem is that Lyx wont let me create > > adjacent Lemmas (without proofs), or adjacent Definitions, without some > > intervening (Standard) text. In the absence of any such text it merges the > > two adjacent entities into one. Does anyone have a workaround for this? > > Yes. Put a standard text paragraph with 'nothing' in between, i.e. > {} in an ERT inset or such. Actually, Andre', it is not necessary to insert {}; it is only necessary to have an empty ERT. Paul