problem with RevTeX and setspace package
Hello everyone, I have a problem with a file using RevTeX class and setspace package. When I try to compile the following simple file: %% LyX 1.5.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english,preprint]{revtex4} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{setspace} \doublespacing \makeatletter \usepackage{babel} \makeatother \begin{document} %\doublespacing I \\am \end{document} I get: Package: `setspace' 6.7 2000/12/01 ) ! Undefined control sequence. \setstretch ...ef \baselinestretch [EMAIL PROTECTED] l.7 \doublespacing I googled for the problem but couldn't find anything useful. Any hint? I found a workaround, that is using the preprint option for the revtex package and setting to single the line spacing in the document properties panel (or deleting the \doublespacing command in the tex file). Regards, -- Diego http://www.ares001.altervista.org/
Vertical alignment in tabulars...
Hi there, I know that this is a question which has been answered some times before, but somehow none of the hints work for me (1.5.4). So I would be very thankful if someone could point me to what I'm missing. I'd like to have all cells of a tabular aligned to the top, regardless of the content. The LyX options seem to allow this, but don't work. Any help is greatly appreciated, Medon newfile7.lyx Description: application/lyx
Re: problem with RevTeX and setspace package
On Sunday 02 March 2008 08:57, Ares wrote: Hello everyone, I have a problem with a file using RevTeX class and setspace package. When I try to compile the following simple file: %% LyX 1.5.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english,preprint]{revtex4} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{setspace} \doublespacing \makeatletter \usepackage{babel} \makeatother \begin{document} %\doublespacing I \\am \end{document} I get: Package: `setspace' 6.7 2000/12/01 ) ! Undefined control sequence. \setstretch ...ef \baselinestretch [EMAIL PROTECTED] l.7 \doublespacing I googled for the problem but couldn't find anything useful. Any hint? I found a workaround, that is using the preprint option for the revtex package and setting to single the line spacing in the document properties panel (or deleting the \doublespacing command in the tex file). Regards, I get the same thing when I use latex to compile your file. Like you, I find that commenting out the \doublespacing allows it to compile. I also find that if I change the revtex4 to book, it compiles. So there's some conflict between revtex4 and setspace. I think there's probably something missing from revtex4.cls (or revsymb.sty) that exists in book.cls, but I couldn't find it. One thing I might recommend is that you put the following into the LyX part of your layout file: Input stdclass.inc Format 2 That's helped me out of similar situations. SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: Problems printing and exporting
rh, Thanx for answering, eventhough you didn't give me straight answers (most likely cos my questions were all over the place) I think that having several TeX might be what confuses my lyx. I assume that uninstalling them (including Lyx) and then installing one TeX and Lyx should solve most of the problems. regarding the message: \makeatother The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. it pops up either when I want to print, or when I want to see de DVI even when I want to export to PDF... So other than what I see on screen I have no idea of how my docs look like. at times it says that my printer is not install properly but so far I haven't had any problems printing from any other software. On Sat, Mar 1, 2008 at 9:35 AM, rgheck [EMAIL PROTECTED] wrote: M-L wrote: On Sat, 1 Mar 2008, Rene Maya shared this with us all: --} I hope that you can help me because I actually really like working with Lyx, --} but then again if I can't make pdf or print then is pretty much useless for --} me. I can feel the frustration that we have all felt, and I am not certain that I know enough about Kubuntu or Ubuntu to write anything helpful, but obviously you need to know a little about what you need to print. You need the gs package to print from LyX, but you may need another packages as well. I actually print from xpdf or kpdf after converting the file to a PDF. And I do the same sort of thing: ViewDVI, and then print from your DVI viewer. I want to see the thing before I print it anyway, so this isn't an extra step. rh
Re: problem with RevTeX and setspace package
Ares wrote: Package: `setspace' 6.7 2000/12/01 ) ! Undefined control sequence. \setstretch ...ef \baselinestretch [EMAIL PROTECTED] l.7 \doublespacing revtex4 (as well as some other classes) do not work with setspace. This might be intentional, as changing line spacing is considered non-standard use (or mis-use) of such classes, that aim to provide a very specific layout. However, to get setspace working with revtex4.cls, put the following in the preamble (and reset LyX's line spacing value to single): \makeatletter [EMAIL PROTECTED] 10pt documents % or: [EMAIL PROTECTED] 11pt documents [EMAIL PROTECTED] 12pt documents [EMAIL PROTECTED] \makeatother \usepackage{setspace} \doublespace Jürgen
Re: Problems printing and exporting
Rene Maya wrote: rh, Thanx for answering, eventhough you didn't give me straight answers (most likely cos my questions were all over the place) I think that having several TeX might be what confuses my lyx. I assume that uninstalling them (including Lyx) and then installing one TeX and Lyx should solve most of the problems. Very possibly that is the problem. Uninstall LyX and all your TeX stuff, and then JUST install LyX. Kubuntu should pull in the dependencies automatically. I.e., it should install TeX for you and configure everything. If not, well, try Fedora. ;-) rh
how to insert a theorem?
Hello, Sorry for this stupid question, but I can't manage inserting a theorem. I already switched my document to ams-seq, I read around the wiki, etc, but simply I can't find out how to insert a theorem/example/whatever environment to a LyX file. I am a long time LaTeX user, so ERT would work, but I would like to avoid it in order to learn LyX properly. I would like to know at least the click this many, then that way, but it would be better if it would come together with a shortcut. I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? (runtime = I mean defined in the document's properties.) If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) Thanks for your help! Viktor
Re: how to insert a theorem?
Viktor Nagy wrote: Hello, Sorry for this stupid question, but I can't manage inserting a theorem. I already switched my document to ams-seq, I read around the wiki, etc, but simply I can't find out how to insert a theorem/example/whatever environment to a LyX file. I am a long time LaTeX user, so ERT would work, but I would like to avoid it in order to learn LyX properly. I would like to know at least the click this many, then that way, but it would be better if it would come together with a shortcut. I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? (runtime = I mean defined in the document's properties.) If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) Thanks for your help! Viktor If you are using one of the AMS classes, just start a new paragraph, then click the drop down list of environments (left-most widget in the first tool bar, or M-p space to open it from the keyboard), and click on Theorem. /Paul
Re: how to insert a theorem?
On Sun, 2008-03-02 at 13:55 -0500, Paul A. Rubin wrote: Viktor Nagy wrote: Hello, Sorry for this stupid question, but I can't manage inserting a theorem. ... If you are using one of the AMS classes, just start a new paragraph, then click the drop down list of environments (left-most widget in the first tool bar, or M-p space to open it from the keyboard), and click on Theorem. Additionally, the short-cut keys should show up on the bottom bar the moment you choose the environment (assuming one's been assigned)... Kenward -- The church says the earth is flat, but I know that it is round, for I have seen the shadow on the moon, and I have more faith in a shadow than in the church.--Ferdinand Magellan
Re: LyX won't compile my document any more [solved]
Thanks for the many answers. Once again, I learned about features I hadn't used before, such as the source view and other useful things. I exported my document to LaTeX and looked at it in a TeX editor and got exactly the same error messages. Then I took my minimal example from the first mail and it wouldn't compile either. TeX seemed to complain about every single letter (always some kind of encoding problems). Then I made a completely new minimal example with not more than seven lines in the TeX editor and again got the error messages. Funny enough, I got error messages for unreadable letters or signs in lines one to seven, but also in line eight, nine, ten up to twenty- something (where I gave up hitting enter). Well, I hadn't even deleted a space there... So I figured it could be due to my TeX distribution and re-installed it and now everything works fine again. I wouldn't call this a ›solution‹ and still don't know why it got broken from one day to another, but at least I can work with it again. Thanks again for helping and stormy greetings from Vienna, Max Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html for details.
Misplaced noalign error?
Hullo all, I'm trying to insert a page break in a document, as a section heading keeps getting orphaned on the previous page, which I don't want. However, LyX keeps complaining about a Misplaced \noalign for the page break. Thoughts? If there's another way to keep the section heading with the following CV list items, that'd work too... I'm using the moderncv class, and the source code in question is... --- \cvlanguage{Miscellaneous}{}{Ipsum dolor} \newpage{} \section{Platforms and networks} \cvlistitem{Mac OS X} --- TIA! Y.
Re: how to insert a theorem?
Viktor Nagy wrote: I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) In LyX 1.5, you can't include layouts at runtime. In 1.6, you will be able to do so. So e.g. you can use article and include various modules that define theorem environments. In 1.5, you can kind of get this effect by editing the article layout, but this is not a runtime thing. rh
problem with RevTeX and setspace package
Hello everyone, I have a problem with a file using RevTeX class and setspace package. When I try to compile the following simple file: %% LyX 1.5.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english,preprint]{revtex4} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{setspace} \doublespacing \makeatletter \usepackage{babel} \makeatother \begin{document} %\doublespacing I \\am \end{document} I get: Package: `setspace' 6.7 2000/12/01 ) ! Undefined control sequence. \setstretch ...ef \baselinestretch [EMAIL PROTECTED] l.7 \doublespacing I googled for the problem but couldn't find anything useful. Any hint? I found a workaround, that is using the preprint option for the revtex package and setting to single the line spacing in the document properties panel (or deleting the \doublespacing command in the tex file). Regards, -- Diego http://www.ares001.altervista.org/
Vertical alignment in tabulars...
Hi there, I know that this is a question which has been answered some times before, but somehow none of the hints work for me (1.5.4). So I would be very thankful if someone could point me to what I'm missing. I'd like to have all cells of a tabular aligned to the top, regardless of the content. The LyX options seem to allow this, but don't work. Any help is greatly appreciated, Medon newfile7.lyx Description: application/lyx
Re: problem with RevTeX and setspace package
On Sunday 02 March 2008 08:57, Ares wrote: Hello everyone, I have a problem with a file using RevTeX class and setspace package. When I try to compile the following simple file: %% LyX 1.5.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english,preprint]{revtex4} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{setspace} \doublespacing \makeatletter \usepackage{babel} \makeatother \begin{document} %\doublespacing I \\am \end{document} I get: Package: `setspace' 6.7 2000/12/01 ) ! Undefined control sequence. \setstretch ...ef \baselinestretch [EMAIL PROTECTED] l.7 \doublespacing I googled for the problem but couldn't find anything useful. Any hint? I found a workaround, that is using the preprint option for the revtex package and setting to single the line spacing in the document properties panel (or deleting the \doublespacing command in the tex file). Regards, I get the same thing when I use latex to compile your file. Like you, I find that commenting out the \doublespacing allows it to compile. I also find that if I change the revtex4 to book, it compiles. So there's some conflict between revtex4 and setspace. I think there's probably something missing from revtex4.cls (or revsymb.sty) that exists in book.cls, but I couldn't find it. One thing I might recommend is that you put the following into the LyX part of your layout file: Input stdclass.inc Format 2 That's helped me out of similar situations. SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: Problems printing and exporting
rh, Thanx for answering, eventhough you didn't give me straight answers (most likely cos my questions were all over the place) I think that having several TeX might be what confuses my lyx. I assume that uninstalling them (including Lyx) and then installing one TeX and Lyx should solve most of the problems. regarding the message: \makeatother The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. it pops up either when I want to print, or when I want to see de DVI even when I want to export to PDF... So other than what I see on screen I have no idea of how my docs look like. at times it says that my printer is not install properly but so far I haven't had any problems printing from any other software. On Sat, Mar 1, 2008 at 9:35 AM, rgheck [EMAIL PROTECTED] wrote: M-L wrote: On Sat, 1 Mar 2008, Rene Maya shared this with us all: --} I hope that you can help me because I actually really like working with Lyx, --} but then again if I can't make pdf or print then is pretty much useless for --} me. I can feel the frustration that we have all felt, and I am not certain that I know enough about Kubuntu or Ubuntu to write anything helpful, but obviously you need to know a little about what you need to print. You need the gs package to print from LyX, but you may need another packages as well. I actually print from xpdf or kpdf after converting the file to a PDF. And I do the same sort of thing: ViewDVI, and then print from your DVI viewer. I want to see the thing before I print it anyway, so this isn't an extra step. rh
Re: problem with RevTeX and setspace package
Ares wrote: Package: `setspace' 6.7 2000/12/01 ) ! Undefined control sequence. \setstretch ...ef \baselinestretch [EMAIL PROTECTED] l.7 \doublespacing revtex4 (as well as some other classes) do not work with setspace. This might be intentional, as changing line spacing is considered non-standard use (or mis-use) of such classes, that aim to provide a very specific layout. However, to get setspace working with revtex4.cls, put the following in the preamble (and reset LyX's line spacing value to single): \makeatletter [EMAIL PROTECTED] 10pt documents % or: [EMAIL PROTECTED] 11pt documents [EMAIL PROTECTED] 12pt documents [EMAIL PROTECTED] \makeatother \usepackage{setspace} \doublespace Jürgen
Re: Problems printing and exporting
Rene Maya wrote: rh, Thanx for answering, eventhough you didn't give me straight answers (most likely cos my questions were all over the place) I think that having several TeX might be what confuses my lyx. I assume that uninstalling them (including Lyx) and then installing one TeX and Lyx should solve most of the problems. Very possibly that is the problem. Uninstall LyX and all your TeX stuff, and then JUST install LyX. Kubuntu should pull in the dependencies automatically. I.e., it should install TeX for you and configure everything. If not, well, try Fedora. ;-) rh
how to insert a theorem?
Hello, Sorry for this stupid question, but I can't manage inserting a theorem. I already switched my document to ams-seq, I read around the wiki, etc, but simply I can't find out how to insert a theorem/example/whatever environment to a LyX file. I am a long time LaTeX user, so ERT would work, but I would like to avoid it in order to learn LyX properly. I would like to know at least the click this many, then that way, but it would be better if it would come together with a shortcut. I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? (runtime = I mean defined in the document's properties.) If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) Thanks for your help! Viktor
Re: how to insert a theorem?
Viktor Nagy wrote: Hello, Sorry for this stupid question, but I can't manage inserting a theorem. I already switched my document to ams-seq, I read around the wiki, etc, but simply I can't find out how to insert a theorem/example/whatever environment to a LyX file. I am a long time LaTeX user, so ERT would work, but I would like to avoid it in order to learn LyX properly. I would like to know at least the click this many, then that way, but it would be better if it would come together with a shortcut. I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? (runtime = I mean defined in the document's properties.) If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) Thanks for your help! Viktor If you are using one of the AMS classes, just start a new paragraph, then click the drop down list of environments (left-most widget in the first tool bar, or M-p space to open it from the keyboard), and click on Theorem. /Paul
Re: how to insert a theorem?
On Sun, 2008-03-02 at 13:55 -0500, Paul A. Rubin wrote: Viktor Nagy wrote: Hello, Sorry for this stupid question, but I can't manage inserting a theorem. ... If you are using one of the AMS classes, just start a new paragraph, then click the drop down list of environments (left-most widget in the first tool bar, or M-p space to open it from the keyboard), and click on Theorem. Additionally, the short-cut keys should show up on the bottom bar the moment you choose the environment (assuming one's been assigned)... Kenward -- The church says the earth is flat, but I know that it is round, for I have seen the shadow on the moon, and I have more faith in a shadow than in the church.--Ferdinand Magellan
Re: LyX won't compile my document any more [solved]
Thanks for the many answers. Once again, I learned about features I hadn't used before, such as the source view and other useful things. I exported my document to LaTeX and looked at it in a TeX editor and got exactly the same error messages. Then I took my minimal example from the first mail and it wouldn't compile either. TeX seemed to complain about every single letter (always some kind of encoding problems). Then I made a completely new minimal example with not more than seven lines in the TeX editor and again got the error messages. Funny enough, I got error messages for unreadable letters or signs in lines one to seven, but also in line eight, nine, ten up to twenty- something (where I gave up hitting enter). Well, I hadn't even deleted a space there... So I figured it could be due to my TeX distribution and re-installed it and now everything works fine again. I wouldn't call this a ›solution‹ and still don't know why it got broken from one day to another, but at least I can work with it again. Thanks again for helping and stormy greetings from Vienna, Max Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html for details.
Misplaced noalign error?
Hullo all, I'm trying to insert a page break in a document, as a section heading keeps getting orphaned on the previous page, which I don't want. However, LyX keeps complaining about a Misplaced \noalign for the page break. Thoughts? If there's another way to keep the section heading with the following CV list items, that'd work too... I'm using the moderncv class, and the source code in question is... --- \cvlanguage{Miscellaneous}{}{Ipsum dolor} \newpage{} \section{Platforms and networks} \cvlistitem{Mac OS X} --- TIA! Y.
Re: how to insert a theorem?
Viktor Nagy wrote: I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) In LyX 1.5, you can't include layouts at runtime. In 1.6, you will be able to do so. So e.g. you can use article and include various modules that define theorem environments. In 1.5, you can kind of get this effect by editing the article layout, but this is not a runtime thing. rh
problem with RevTeX and setspace package
Hello everyone, I have a problem with a file using RevTeX class and setspace package. When I try to compile the following simple file: %% LyX 1.5.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english,preprint]{revtex4} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{setspace} \doublespacing \makeatletter \usepackage{babel} \makeatother \begin{document} %\doublespacing I \\am \end{document} I get: Package: `setspace' 6.7 <2000/12/01> ) ! Undefined control sequence. \setstretch ...ef \baselinestretch [EMAIL PROTECTED] l.7 \doublespacing I googled for the problem but couldn't find anything useful. Any hint? I found a workaround, that is using the preprint option for the revtex package and setting to single the line spacing in the document properties panel (or deleting the \doublespacing command in the tex file). Regards, -- Diego http://www.ares001.altervista.org/
Vertical alignment in tabulars...
Hi there, I know that this is a question which has been answered some times before, but somehow none of the hints work for me (1.5.4). So I would be very thankful if someone could point me to what I'm missing. I'd like to have all cells of a tabular aligned to the top, regardless of the content. The LyX options seem to allow this, but don't work. Any help is greatly appreciated, Medon newfile7.lyx Description: application/lyx
Re: problem with RevTeX and setspace package
On Sunday 02 March 2008 08:57, Ares wrote: > Hello everyone, > > I have a problem with a file using RevTeX class and setspace package. > When I try to compile the following simple file: > > %% LyX 1.5.1 created this file. For more info, see http://www.lyx.org/. > %% Do not edit unless you really know what you are doing. > \documentclass[english,preprint]{revtex4} > \usepackage[T1]{fontenc} > \usepackage[latin9]{inputenc} > \usepackage{setspace} > \doublespacing > > \makeatletter > \usepackage{babel} > \makeatother > > \begin{document} > > %\doublespacing > I > \\am > \end{document} > > I get: > > Package: `setspace' 6.7 <2000/12/01> > ) > ! Undefined control sequence. > \setstretch ...ef \baselinestretch [EMAIL PROTECTED] > > l.7 \doublespacing > > I googled for the problem but couldn't find anything useful. Any hint? > I found a workaround, that is using the preprint option for the revtex > package and setting to single the line spacing in the document > properties panel (or deleting the \doublespacing command in the tex > file). > > Regards, I get the same thing when I use latex to compile your file. Like you, I find that commenting out the \doublespacing allows it to compile. I also find that if I change the revtex4 to book, it compiles. So there's some conflict between revtex4 and setspace. I think there's probably something missing from revtex4.cls (or revsymb.sty) that exists in book.cls, but I couldn't find it. One thing I might recommend is that you put the following into the LyX part of your layout file: Input stdclass.inc Format 2 That's helped me out of similar situations. SteveT Steve Litt Books written in LyX: Troubleshooting Techniques of the Successful Technologist Twenty Eight Tales of Troubleshooting Troubleshooting: Just the Facts
Re: Problems printing and exporting
rh, Thanx for answering, eventhough you didn't give me straight answers (most likely cos my questions were all over the place) I think that having several TeX might be what confuses my lyx. I assume that uninstalling them (including Lyx) and then installing one TeX and Lyx should solve most of the problems. regarding the message: \makeatother > The control sequence at the end of the top line > of your error message was never \def'ed. If you have > misspelled it (e.g., `\hobx'), type `I' and the correct > spelling (e.g., `I\hbox'). Otherwise just continue, > and I'll forget about whatever was undefined. it pops up either when I want to print, or when I want to see de DVI even when I want to export to PDF... So other than what I see on screen I have no idea of how my docs look like. at times it says that my printer is not install properly but so far I haven't had any problems printing from any other software. On Sat, Mar 1, 2008 at 9:35 AM, rgheck <[EMAIL PROTECTED]> wrote: > M-L wrote: > > On Sat, 1 Mar 2008, Rene Maya shared this with us all: > > > >> --} I hope that you can help me because I actually really like working > with > >> Lyx, --} but then again if I can't make pdf or print then is pretty > much > >> useless for --} me. > >> > > > > I can feel the frustration that we have all felt, and I am not certain > that I > > know enough about Kubuntu or Ubuntu to write anything helpful, but > obviously > > you need to know a little about what you need to print. > > > > You need the gs package to print from LyX, but you may need another > packages > > as well. I actually print from xpdf or kpdf after converting the file to > a > > PDF. > > > > > And I do the same sort of thing: View>DVI, and then print from your DVI > viewer. I want to see the thing before I print it anyway, so this isn't > an extra step. > > rh > >
Re: problem with RevTeX and setspace package
Ares wrote: > Package: `setspace' 6.7 <2000/12/01> > ) > ! Undefined control sequence. > \setstretch ...ef \baselinestretch [EMAIL PROTECTED] > > l.7 \doublespacing revtex4 (as well as some other classes) do not work with setspace. This might be intentional, as changing line spacing is considered non-standard use (or mis-use) of such classes, that aim to provide a very specific layout. However, to get setspace working with revtex4.cls, put the following in the preamble (and reset LyX's line spacing value to "single"): \makeatletter [EMAIL PROTECTED] 10pt documents % or: [EMAIL PROTECTED] 11pt documents [EMAIL PROTECTED] 12pt documents [EMAIL PROTECTED] \makeatother \usepackage{setspace} \doublespace Jürgen
Re: Problems printing and exporting
Rene Maya wrote: rh, Thanx for answering, eventhough you didn't give me straight answers (most likely cos my questions were all over the place) I think that having several TeX might be what confuses my lyx. I assume that uninstalling them (including Lyx) and then installing one TeX and Lyx should solve most of the problems. Very possibly that is the problem. Uninstall LyX and all your TeX stuff, and then JUST install LyX. Kubuntu should pull in the dependencies automatically. I.e., it should install TeX for you and configure everything. If not, well, try Fedora. ;-) rh
how to insert a theorem?
Hello, Sorry for this stupid question, but I can't manage inserting a theorem. I already switched my document to ams-seq, I read around the wiki, etc, but simply I can't find out how to insert a theorem/example/whatever environment to a LyX file. I am a long time LaTeX user, so ERT would work, but I would like to avoid it in order to learn LyX properly. I would like to know at least the "click this many, then that" way, but it would be better if it would come together with a shortcut. I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? (runtime = I mean defined in the document's properties.) If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) Thanks for your help! Viktor
Re: how to insert a theorem?
Viktor Nagy wrote: Hello, Sorry for this stupid question, but I can't manage inserting a theorem. I already switched my document to ams-seq, I read around the wiki, etc, but simply I can't find out how to insert a theorem/example/whatever environment to a LyX file. I am a long time LaTeX user, so ERT would work, but I would like to avoid it in order to learn LyX properly. I would like to know at least the "click this many, then that" way, but it would be better if it would come together with a shortcut. I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? (runtime = I mean defined in the document's properties.) If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) Thanks for your help! Viktor If you are using one of the AMS classes, just start a new paragraph, then click the drop down list of environments (left-most widget in the first tool bar, or M-p space to open it from the keyboard), and click on Theorem. /Paul
Re: how to insert a theorem?
On Sun, 2008-03-02 at 13:55 -0500, Paul A. Rubin wrote: > Viktor Nagy wrote: > > Hello, > > > > Sorry for this stupid question, but I can't manage inserting a theorem. ... > If you are using one of the AMS classes, just start a new paragraph, > then click the drop down list of environments (left-most widget in the > first tool bar, or M-p space to open it from the keyboard), and click on > Theorem. Additionally, the short-cut keys should show up on the bottom bar the moment you choose the environment (assuming one's been assigned)... Kenward -- The church says the earth is flat, but I know that it is round, for I have seen the shadow on the moon, and I have more faith in a shadow than in the church.--Ferdinand Magellan
Re: LyX won't compile my document any more [solved]
Thanks for the many answers. Once again, I learned about features I hadn't used before, such as the source view and other useful things. I exported my document to LaTeX and looked at it in a TeX editor and got exactly the same error messages. Then I took my minimal example from the first mail and it wouldn't compile either. TeX seemed to complain about every single letter (always some kind of encoding problems). Then I made a completely new minimal example with not more than seven lines in the TeX editor and again got the error messages. Funny enough, I got error messages for unreadable letters or signs in lines one to seven, but also in line eight, nine, ten up to twenty- something (where I gave up hitting enter). Well, I hadn't even deleted a space there... So I figured it could be due to my TeX distribution and re-installed it and now everything works fine again. I wouldn't call this a ›solution‹ and still don't know why it got broken from one day to another, but at least I can work with it again. Thanks again for helping and stormy greetings from Vienna, Max Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html for details.
Misplaced noalign error?
Hullo all, I'm trying to insert a page break in a document, as a section heading keeps getting orphaned on the previous page, which I don't want. However, LyX keeps complaining about a "Misplaced \noalign" for the page break. Thoughts? If there's another way to keep the section heading with the following CV list items, that'd work too... I'm using the moderncv class, and the source code in question is... --- \cvlanguage{Miscellaneous}{}{Ipsum dolor} \newpage{} \section{Platforms and networks} \cvlistitem{Mac OS X} --- TIA! Y.
Re: how to insert a theorem?
Viktor Nagy wrote: I would like to know as well, what is the lightest document class that is sufficient for a theorem. (I prefer the modularity of LaTeX a lot, and don't want to use ams-seq all the time.) Is it possible to include layouts at runtime, like packages? If yes what should I include? (I think ams-seq.inc would suffice, but don't know.) In LyX 1.5, you can't include layouts at runtime. In 1.6, you will be able to do so. So e.g. you can use article and include various "modules" that define theorem environments. In 1.5, you can kind of get this effect by editing the article layout, but this is not a runtime thing. rh