Re: Multiline equation to display equation fix?
On 26.07.04, Andrew Morrison wrote: Somehow, one of my display equations was created as (or morphed into) a multiline equation, even though it is one single equation. This normally happens when you press Enter (or Ctrl-Enter?) If you realize it immediately, undo (^Z for cua-bindings) is the easiest solution Short of editing the lyx file in vi, is there a way to change the property on this single formula? What I usually do is create a new Display-Math box and copy the content there. Not elegant but still better than vi. (and in case I have to edit the source file, I prefer jed :-) Günter -- G.Milde at web.de
Re: Multiline equation to display equation fix?
Andrew Morrison wrote: Somehow, one of my display equations was created as (or morphed into) a multiline equation, even though it is one single equation. I tried deleting a re-entering it, but the multiline designation stuck. I tried highlighting and going to Edit-Math-Change Formula Type-Displayed Formula, and still no dice. This is the correct way to change the formula type. However, not all conversions between all formula types are implemented. This explains why it does not work for you. If you start lyx from a terminal window, you will see an error message. Short of editing the lyx file in vi, is there a way to change the property on this single formula? Yes. LyX stores math formulas in latex code, so if you know latex, you can change it by hand in the .lyx file. Georg
Re: Multiline equation to display equation fix?
Georg Baum wrote: Andrew Morrison wrote: Somehow, one of my display equations was created as (or morphed into) a multiline equation, even though it is one single equation. I tried deleting a re-entering it, but the multiline designation stuck. I tried highlighting and going to Edit-Math-Change Formula Type-Displayed Formula, and still no dice. This is the correct way to change the formula type. However, not all conversions between all formula types are implemented. This explains why it does not work for you. If you start lyx from a terminal window, you will see an error message. What does work is this: Start a new document. Enter \begin{multline} \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\label{eq:part_vel}\end{multline} as text. Highlight this text and select Insert-Math-AMS Multiline environment. You've now got a single, multiline formala. Select Edit-Math-Change Formula Type-Inline Formula You'll get an error message printed to console: mutation from 'multline' to 'simple' not implemented However, if you select Edit-Math-Change Formula Type-Align Environment and then select Edit-Math-Change Formula Type-Displayed Formula or Edit-Math-Change Formula Type-Inline Formula you'll achieve what you want. Looking at the exported latex: \begin{document} \[ \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\] \end{document} -- Angus
Re: Multiline equation to display equation fix?
Andrew Morrison wrote: What it says is this: \begin{multline} \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\label{eq:part_vel}\end{multline} You encountered a bug. The menu menu Edit-Math-Change Formula Type-Displayed don't work with multline environments. You should fill out a bug report. To solve your problem, mark the characters inside your formula and copy them to a new displayed formula. regards Uwe
creating appendix long table problem
Hi guys! Im new with LyX. I have problems for creating appendix. I use the book document class. I tried to put the appendix after the list of tables where the list of tables are put after the last chapter. I select the start appendix here and use the chapter* environment. But the result on the pdf shows that the header of all the appendix I created is the list of tables. What should I do? The second problems is I tried to use the long table because my data is more than 100 rows. But it seems nothing changes in the result. The table is still being cut off by the program. What went wrong? This problems occured even when I put the page brake on some rows and nothing changes. Thanx danu __ Do You Yahoo!? Download the latest ringtones, games, and more! http://sg.mobile.yahoo.com
Print and Preview Problem Understood
I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other decorations (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the normal size, inserting an inline fraction 1/2, and selecting View pdflatex, produces an error message and a latex log file which ends like this: /var/tmp/texfonts/pk/ljfour/jknappen/ec/ecrm1000.600pk{/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc}/usr/local/teTeX/share/ texmf.tetex/fonts/type1/bluesky/cm/cmr7.pfb Error: pdflatex (file /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm /cmr7.pfb): unexpected end of file == Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? Misplaced? What's the best way to fix this? As a work-around I can set my files to use 11 pt as the normal, so that subscripts etc will be in 8 pt. Then all is well. But I would like to fix this font problem. (This doesn't have anything to do with the fact that I never downloaded the CMS Super package, does it?) Bruce Bruce Pourciau wrote: Here's the problem I've been having: in any lyx file which contains (in mathmode) a fraction or a sub or superscript, both View pdflatex and File Print produce an error message. (LyX/Mac, LyX 1.3.4, Mac 10.3.4)
Re: Print and Preview Problem Understood
Bruce Pourciau wrote: I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other decorations (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the normal size, inserting an inline fraction 1/2, and selecting View pdflatex, produces an error message and a latex log file which ends like this: /var/tmp/texfonts/pk/ljfour/jknappen/ec/ecrm1000.600pk{/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc}/usr/local/teTeX/share/ texmf.tetex/fonts/type1/bluesky/cm/cmr7.pfb Error: pdflatex (file /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm /cmr7.pfb): unexpected end of file == Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? yes, seems to be corrupted. Try it with the attached one. put it in the same place as the old one. If it doesn't work, then your map files are wrong. Herbert cmr7.pfb Description: Binary data
Re: Print and Preview Problem Understood
Thanks, Herbert. I assume I should move the old font file out or delete it, before replacing it with the new one? Herbert Voss wrote: Bruce Pourciau wrote: I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other decorations (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the normal size, inserting an inline fraction 1/2, and selecting View pdflatex, produces an error message and a latex log file which ends like this: /var/tmp/texfonts/pk/ljfour/jknappen/ec/ecrm1000.600pk{/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc}/usr/local/teTeX/share/ texmf.tetex/fonts/type1/bluesky/cm/cmr7.pfb Error: pdflatex (file /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm /cmr7.pfb): unexpected end of file == Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? yes, seems to be corrupted. Try it with the attached one. put it in the same place as the old one. If it doesn't work, then your map files are wrong. Herbert Name: cmr7.pfb cmr7.pfb Type: unspecified type (application/octet-stream) Encoding: base64 Download Status: Not downloaded with message
Re: bibliography-question 1 and 2
Wolfgang Engelmann wrote: Dear Jürgen, sorry for a late reply. I am sending you a lyx testfile plus bib-file which shows the problem with the Bibliography header (takes the header of the last chapter instead) if LAYOUT PAPER twocolumn document is on, but not, if off. I did not put it into the lyx user list, because of its length. Perhaps you could answer in the list again, if it is of interest to the readers. Thanks for your help. AFAICS this seems to be indeed sort of a bug in the book.cls, as soon as twocolumn is selected. The following redefinition of \thebibliography environment fixes it. I don't know if there is some easier solution. Regards, Jürgen P.S.: KOMA book does not have this bug. P.P.S.: You should use \url{http://bioclox.bot.biologie.uni-tuebingen.de} (package url.sty) for your references, then the URL#s will be broken correctly. \renewenvironment{thebibliography}[1] {% %% --- THIS IS NEW [EMAIL PROTECTED] [EMAIL PROTECTED] \thispagestyle{plain} \else %% --- \chapter*{\bibname}% \fi [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED] \leftmargin\labelwidth \advance\leftmargin\labelsep [EMAIL PROTECTED]@code \usecounter{enumiv}% [EMAIL PROTECTED]@empty [EMAIL PROTECTED]@enumiv}}% \sloppy \clubpenalty4000 [EMAIL PROTECTED] \clubpenalty \widowpenalty4000% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@warning{Empty `thebibliography' environment}}% \endlist}
citation numbering control
Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? Steve
Re: citation numbering control
Stephen Buonopane wrote: Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} you have a recursion here, it cannot work. in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? try in ERT, where your bibliography shall pe printed in the doc \bgroup \setcounter{enumiv}{5} \bibliographystyle{plain}% or any other style \bibliography{bibfile} % without extension .bib \egroup Herbert
Questions Problems
Hi There! I have a few question: 1. If I do undo while having 'instant-preview' on, it will not 'instant-preview' the equations in this paragraph until I click onto them again. Is that a known bug? 2. In a multi-line equation environment, how can I delete an overabundant line? 3. I would like to have definitions, lemmas, examples in my standard article layout. I tried to achieve that by 'include amsmath.inc' but it seems not to work. Is there an easy solution? 4. When I hit (Applekey+Enter), it will nicely reformat the equation from Display-mode to multiline mode (very cool) - but the cursor moves from the end of the equation to the middle. When I then just want to start a new line and not move half the equation down, I first have to use the cursor to go to the end of the line, before pressing (Applekey+Enter) That is very impractical when entering equations fast. Is there a way to shut that off? 5. I believe, it would be much more intuitive to use Enter instead of (Applekey+Enter) for starting new lines in equations. Thanks again for all help so far... Best wishes, Jan Peters Best wishes, Jan Peters === Jan Peters, Graduate Research Assistant, Dipl.Inf., Dipl.Ing., M.Sc. University of Southern California (USC) Computational Learning and Motor Control Laboratories (CLMC) 3461 Watt Way, Los Angeles, CA 90089 Phone: +1-213-740-6717, Fax: +1-213-740-1510 email: [EMAIL PROTECTED], web: www.jan-peters.net === Patriotism is the willingness to kill and be killed for trivial reasons. -Bertrand Russell ===
Re: citation numbering control
On Jul 27, 2004, at 1:37 PM, Herbert Voss wrote: Stephen Buonopane wrote: Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} you have a recursion here, it cannot work. The following works... \let\oldthebibliography=\thebibliography \let\oldendthebibliography=\endthebibliography \renewenvironment{thebibliography}[1]{% \oldthebibliography{#1}% \setcounter{enumiv}{5}% }{\oldendthebibliography} Note the first ref. will actually be 6 because it is incremented first in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? try in ERT, where your bibliography shall pe printed in the doc \bgroup \setcounter{enumiv}{5} \bibliographystyle{plain}% or any other style \bibliography{bibfile} % without extension .bib \egroup This did not work
Re: Multiline equation to display equation fix?
On 26.07.04, Andrew Morrison wrote: Somehow, one of my display equations was created as (or morphed into) a multiline equation, even though it is one single equation. This normally happens when you press Enter (or Ctrl-Enter?) If you realize it immediately, undo (^Z for cua-bindings) is the easiest solution Short of editing the lyx file in vi, is there a way to change the property on this single formula? What I usually do is create a new Display-Math box and copy the content there. Not elegant but still better than vi. (and in case I have to edit the source file, I prefer jed :-) Günter -- G.Milde at web.de
Re: Multiline equation to display equation fix?
Andrew Morrison wrote: Somehow, one of my display equations was created as (or morphed into) a multiline equation, even though it is one single equation. I tried deleting a re-entering it, but the multiline designation stuck. I tried highlighting and going to Edit-Math-Change Formula Type-Displayed Formula, and still no dice. This is the correct way to change the formula type. However, not all conversions between all formula types are implemented. This explains why it does not work for you. If you start lyx from a terminal window, you will see an error message. Short of editing the lyx file in vi, is there a way to change the property on this single formula? Yes. LyX stores math formulas in latex code, so if you know latex, you can change it by hand in the .lyx file. Georg
Re: Multiline equation to display equation fix?
Georg Baum wrote: Andrew Morrison wrote: Somehow, one of my display equations was created as (or morphed into) a multiline equation, even though it is one single equation. I tried deleting a re-entering it, but the multiline designation stuck. I tried highlighting and going to Edit-Math-Change Formula Type-Displayed Formula, and still no dice. This is the correct way to change the formula type. However, not all conversions between all formula types are implemented. This explains why it does not work for you. If you start lyx from a terminal window, you will see an error message. What does work is this: Start a new document. Enter \begin{multline} \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\label{eq:part_vel}\end{multline} as text. Highlight this text and select Insert-Math-AMS Multiline environment. You've now got a single, multiline formala. Select Edit-Math-Change Formula Type-Inline Formula You'll get an error message printed to console: mutation from 'multline' to 'simple' not implemented However, if you select Edit-Math-Change Formula Type-Align Environment and then select Edit-Math-Change Formula Type-Displayed Formula or Edit-Math-Change Formula Type-Inline Formula you'll achieve what you want. Looking at the exported latex: \begin{document} \[ \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\] \end{document} -- Angus
Re: Multiline equation to display equation fix?
Andrew Morrison wrote: What it says is this: \begin{multline} \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\label{eq:part_vel}\end{multline} You encountered a bug. The menu menu Edit-Math-Change Formula Type-Displayed don't work with multline environments. You should fill out a bug report. To solve your problem, mark the characters inside your formula and copy them to a new displayed formula. regards Uwe
creating appendix long table problem
Hi guys! Im new with LyX. I have problems for creating appendix. I use the book document class. I tried to put the appendix after the list of tables where the list of tables are put after the last chapter. I select the start appendix here and use the chapter* environment. But the result on the pdf shows that the header of all the appendix I created is the list of tables. What should I do? The second problems is I tried to use the long table because my data is more than 100 rows. But it seems nothing changes in the result. The table is still being cut off by the program. What went wrong? This problems occured even when I put the page brake on some rows and nothing changes. Thanx danu __ Do You Yahoo!? Download the latest ringtones, games, and more! http://sg.mobile.yahoo.com
Print and Preview Problem Understood
I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other decorations (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the normal size, inserting an inline fraction 1/2, and selecting View pdflatex, produces an error message and a latex log file which ends like this: /var/tmp/texfonts/pk/ljfour/jknappen/ec/ecrm1000.600pk{/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc}/usr/local/teTeX/share/ texmf.tetex/fonts/type1/bluesky/cm/cmr7.pfb Error: pdflatex (file /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm /cmr7.pfb): unexpected end of file == Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? Misplaced? What's the best way to fix this? As a work-around I can set my files to use 11 pt as the normal, so that subscripts etc will be in 8 pt. Then all is well. But I would like to fix this font problem. (This doesn't have anything to do with the fact that I never downloaded the CMS Super package, does it?) Bruce Bruce Pourciau wrote: Here's the problem I've been having: in any lyx file which contains (in mathmode) a fraction or a sub or superscript, both View pdflatex and File Print produce an error message. (LyX/Mac, LyX 1.3.4, Mac 10.3.4)
Re: Print and Preview Problem Understood
Bruce Pourciau wrote: I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other decorations (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the normal size, inserting an inline fraction 1/2, and selecting View pdflatex, produces an error message and a latex log file which ends like this: /var/tmp/texfonts/pk/ljfour/jknappen/ec/ecrm1000.600pk{/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc}/usr/local/teTeX/share/ texmf.tetex/fonts/type1/bluesky/cm/cmr7.pfb Error: pdflatex (file /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm /cmr7.pfb): unexpected end of file == Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? yes, seems to be corrupted. Try it with the attached one. put it in the same place as the old one. If it doesn't work, then your map files are wrong. Herbert cmr7.pfb Description: Binary data
Re: Print and Preview Problem Understood
Thanks, Herbert. I assume I should move the old font file out or delete it, before replacing it with the new one? Herbert Voss wrote: Bruce Pourciau wrote: I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other decorations (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the normal size, inserting an inline fraction 1/2, and selecting View pdflatex, produces an error message and a latex log file which ends like this: /var/tmp/texfonts/pk/ljfour/jknappen/ec/ecrm1000.600pk{/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc}/usr/local/teTeX/share/ texmf.tetex/fonts/type1/bluesky/cm/cmr7.pfb Error: pdflatex (file /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm /cmr7.pfb): unexpected end of file == Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? yes, seems to be corrupted. Try it with the attached one. put it in the same place as the old one. If it doesn't work, then your map files are wrong. Herbert Name: cmr7.pfb cmr7.pfb Type: unspecified type (application/octet-stream) Encoding: base64 Download Status: Not downloaded with message
Re: bibliography-question 1 and 2
Wolfgang Engelmann wrote: Dear Jürgen, sorry for a late reply. I am sending you a lyx testfile plus bib-file which shows the problem with the Bibliography header (takes the header of the last chapter instead) if LAYOUT PAPER twocolumn document is on, but not, if off. I did not put it into the lyx user list, because of its length. Perhaps you could answer in the list again, if it is of interest to the readers. Thanks for your help. AFAICS this seems to be indeed sort of a bug in the book.cls, as soon as twocolumn is selected. The following redefinition of \thebibliography environment fixes it. I don't know if there is some easier solution. Regards, Jürgen P.S.: KOMA book does not have this bug. P.P.S.: You should use \url{http://bioclox.bot.biologie.uni-tuebingen.de} (package url.sty) for your references, then the URL#s will be broken correctly. \renewenvironment{thebibliography}[1] {% %% --- THIS IS NEW [EMAIL PROTECTED] [EMAIL PROTECTED] \thispagestyle{plain} \else %% --- \chapter*{\bibname}% \fi [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED] \leftmargin\labelwidth \advance\leftmargin\labelsep [EMAIL PROTECTED]@code \usecounter{enumiv}% [EMAIL PROTECTED]@empty [EMAIL PROTECTED]@enumiv}}% \sloppy \clubpenalty4000 [EMAIL PROTECTED] \clubpenalty \widowpenalty4000% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@warning{Empty `thebibliography' environment}}% \endlist}
citation numbering control
Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? Steve
Re: citation numbering control
Stephen Buonopane wrote: Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} you have a recursion here, it cannot work. in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? try in ERT, where your bibliography shall pe printed in the doc \bgroup \setcounter{enumiv}{5} \bibliographystyle{plain}% or any other style \bibliography{bibfile} % without extension .bib \egroup Herbert
Questions Problems
Hi There! I have a few question: 1. If I do undo while having 'instant-preview' on, it will not 'instant-preview' the equations in this paragraph until I click onto them again. Is that a known bug? 2. In a multi-line equation environment, how can I delete an overabundant line? 3. I would like to have definitions, lemmas, examples in my standard article layout. I tried to achieve that by 'include amsmath.inc' but it seems not to work. Is there an easy solution? 4. When I hit (Applekey+Enter), it will nicely reformat the equation from Display-mode to multiline mode (very cool) - but the cursor moves from the end of the equation to the middle. When I then just want to start a new line and not move half the equation down, I first have to use the cursor to go to the end of the line, before pressing (Applekey+Enter) That is very impractical when entering equations fast. Is there a way to shut that off? 5. I believe, it would be much more intuitive to use Enter instead of (Applekey+Enter) for starting new lines in equations. Thanks again for all help so far... Best wishes, Jan Peters Best wishes, Jan Peters === Jan Peters, Graduate Research Assistant, Dipl.Inf., Dipl.Ing., M.Sc. University of Southern California (USC) Computational Learning and Motor Control Laboratories (CLMC) 3461 Watt Way, Los Angeles, CA 90089 Phone: +1-213-740-6717, Fax: +1-213-740-1510 email: [EMAIL PROTECTED], web: www.jan-peters.net === Patriotism is the willingness to kill and be killed for trivial reasons. -Bertrand Russell ===
Re: citation numbering control
On Jul 27, 2004, at 1:37 PM, Herbert Voss wrote: Stephen Buonopane wrote: Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} you have a recursion here, it cannot work. The following works... \let\oldthebibliography=\thebibliography \let\oldendthebibliography=\endthebibliography \renewenvironment{thebibliography}[1]{% \oldthebibliography{#1}% \setcounter{enumiv}{5}% }{\oldendthebibliography} Note the first ref. will actually be 6 because it is incremented first in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? try in ERT, where your bibliography shall pe printed in the doc \bgroup \setcounter{enumiv}{5} \bibliographystyle{plain}% or any other style \bibliography{bibfile} % without extension .bib \egroup This did not work
Re: Multiline equation to display equation fix?
On 26.07.04, Andrew Morrison wrote: > Somehow, one of my display equations was created as (or morphed into) a > multiline equation, even though it is one single equation. This normally happens when you press Enter (or Ctrl-Enter?) If you realize it immediately, undo (^Z for cua-bindings) is the easiest solution > Short of editing the lyx file in vi, is there a way to change the > property on this single formula? What I usually do is create a new Display-Math box and copy the content there. Not elegant but still better than vi. (and in case I have to edit the source file, I prefer jed :-) Günter -- G.Milde at web.de
Re: Multiline equation to display equation fix?
Andrew Morrison wrote: > Somehow, one of my display equations was created as (or morphed into) a > multiline equation, even though it is one single equation. I tried > deleting a re-entering it, but the multiline designation stuck. I tried > highlighting and going to Edit->Math->Change Formula Type->Displayed > Formula, and still no dice. This is the correct way to change the formula type. However, not all conversions between all formula types are implemented. This explains why it does not work for you. If you start lyx from a terminal window, you will see an error message. > Short of editing the lyx file in vi, is there a way to change the > property on this single formula? Yes. LyX stores math formulas in latex code, so if you know latex, you can change it by hand in the .lyx file. Georg
Re: Multiline equation to display equation fix?
Georg Baum wrote: > Andrew Morrison wrote: > >> Somehow, one of my display equations was created as (or morphed into) a >> multiline equation, even though it is one single equation. I tried >> deleting a re-entering it, but the multiline designation stuck. I tried >> highlighting and going to Edit->Math->Change Formula Type->Displayed >> Formula, and still no dice. > > This is the correct way to change the formula type. However, not all > conversions between all formula types are implemented. This explains why > it does not work for you. If you start lyx from a terminal window, you > will see an error message. What does work is this: Start a new document. Enter \begin{multline} \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\label{eq:part_vel}\end{multline} as text. Highlight this text and select Insert->Math->AMS Multiline environment. You've now got a single, multiline formala. Select Edit->Math->Change Formula Type->Inline Formula You'll get an error message printed to console: mutation from 'multline' to 'simple' not implemented However, if you select Edit->Math->Change Formula Type->Align Environment and then select Edit->Math->Change Formula Type->Displayed Formula or Edit->Math->Change Formula Type->Inline Formula you'll achieve what you want. Looking at the exported latex: \begin{document} \[ \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\] \end{document} -- Angus
Re: Multiline equation to display equation fix?
Andrew Morrison wrote: What it says is this: \begin{multline} \mathbf{u}=-\frac{1}{\rho}\int\bigtriangledown p\, dt\label{eq:part_vel}\end{multline} You encountered a bug. The menu menu Edit->Math->Change Formula Type->Displayed don't work with multline environments. You should fill out a bug report. To solve your problem, mark the characters inside your formula and copy them to a new displayed formula. regards Uwe
creating appendix & long table problem
Hi guys! Im new with LyX. I have problems for creating appendix. I use the book document class. I tried to put the appendix after the list of tables where the list of tables are put after the last chapter. I select the "start appendix here" and use the chapter* environment. But the result on the pdf shows that the header of all the appendix I created is the list of tables. What should I do? The second problems is I tried to use the long table because my data is more than 100 rows. But it seems nothing changes in the result. The table is still being cut off by the program. What went wrong? This problems occured even when I put the page brake on some rows and nothing changes. Thanx danu __ Do You Yahoo!? Download the latest ringtones, games, and more! http://sg.mobile.yahoo.com
Print and Preview Problem Understood
I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other "decorations" (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the "normal" size, inserting an inline fraction 1/2, and selecting View > pdflatex, produces an error message and a latex log file which ends like this: {/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc} Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? Misplaced? What's the best way to fix this? As a work-around I can set my files to use 11 pt as the normal, so that subscripts etc will be in 8 pt. Then all is well. But I would like to fix this font problem. (This doesn't have anything to do with the fact that I never downloaded the CMS Super package, does it?) Bruce Bruce Pourciau wrote: > > Here's the problem I've been having: in any lyx file which contains (in > mathmode) a fraction or a sub or superscript, both View > pdflatex and > File > Print produce an error message. (LyX/Mac, LyX 1.3.4, Mac 10.3.4)
Re: Print and Preview Problem Understood
Bruce Pourciau wrote: I think I have finally figured out the source of my problem: When a lyx file uses the default 10 pt font size, then any inline fraction, sub or superscript, or other "decorations" (like limits on sums or integrals), will be in 7 pt. And I seem to have a problem with a 7 pt font in my tetex installation. For example, taking a new file using the 10 pt default for the "normal" size, inserting an inline fraction 1/2, and selecting View > pdflatex, produces an error message and a latex log file which ends like this: {/usr/local/ teTeX/sha re/texmf.tetex/dvips/tetex/f7b6d320.enc} Error: pdflatex (file /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm /cmr7.pfb): unexpected end of file ==> Fatal error occurred, the output PDF file is not finished! What does this tell me? That the font cmr7.pfb is missing? Corrupted? yes, seems to be corrupted. Try it with the attached one. put it in the same place as the old one. If it doesn't work, then your map files are wrong. Herbert cmr7.pfb Description: Binary data
Re: Print and Preview Problem Understood
Thanks, Herbert. I assume I should move the old font file out or delete it, before replacing it with the new one? Herbert Voss wrote: > > Bruce Pourciau wrote: > > I think I have finally figured out the source of my problem: When a lyx > > file uses the default 10 pt font size, then any inline fraction, sub or > > superscript, or other "decorations" (like limits on sums or integrals), > > will be in 7 pt. And I seem to have a problem with a 7 pt font in my > > tetex installation. For example, taking a new file using the 10 pt > > default for the "normal" size, inserting an inline fraction 1/2, and > > selecting View > pdflatex, produces an error message and a latex log > > file which ends like this: > > > > {/usr/local/ > > teTeX/sha > > re/texmf.tetex/dvips/tetex/f7b6d320.enc} > texmf.tetex/fonts/type1/bluesky/cm/cmr7.pfb > > Error: pdflatex (file > > /usr/local/teTeX/share/texmf.tetex/fonts/type1/bluesky/cm > > /cmr7.pfb): unexpected end of file > > ==> Fatal error occurred, the output PDF file is not finished! > > > > What does this tell me? That the font cmr7.pfb is missing? Corrupted? > > yes, seems to be corrupted. Try it with the attached one. put it in the > same place as the old one. If it doesn't work, then your map files > are wrong. > > Herbert > > > Name: cmr7.pfb >cmr7.pfb Type: unspecified type (application/octet-stream) > Encoding: base64 >Download Status: Not downloaded with message
Re: bibliography-question 1 and 2
Wolfgang Engelmann wrote: > Dear Jürgen, > sorry for a late reply. I am sending you a lyx testfile plus bib-file which > shows the problem with the Bibliography header (takes the header of the > last chapter instead) if LAYOUT > PAPER >twocolumn document is on, but not, > if off. I did not put it into the lyx user list, because of its length. > Perhaps you could answer in the list again, if it is of interest to the > readers. Thanks for your help. AFAICS this seems to be indeed sort of a bug in the book.cls, as soon as twocolumn is selected. The following redefinition of \thebibliography environment fixes it. I don't know if there is some easier solution. Regards, Jürgen P.S.: KOMA book does not have this bug. P.P.S.: You should use \url{http://bioclox.bot.biologie.uni-tuebingen.de} (package url.sty) for your references, then the URL#s will be broken correctly. \renewenvironment{thebibliography}[1] {% %% ---> THIS IS NEW [EMAIL PROTECTED] [EMAIL PROTECTED] \thispagestyle{plain} \else %% <--- \chapter*{\bibname}% \fi [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL PROTECTED] [EMAIL PROTECTED] \leftmargin\labelwidth \advance\leftmargin\labelsep [EMAIL PROTECTED]@code \usecounter{enumiv}% [EMAIL PROTECTED]@empty [EMAIL PROTECTED]@enumiv}}% \sloppy \clubpenalty4000 [EMAIL PROTECTED] \clubpenalty \widowpenalty4000% [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]@warning{Empty `thebibliography' environment}}% \endlist}
citation numbering control
Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? Steve
Re: citation numbering control
Stephen Buonopane wrote: Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} you have a recursion here, it cannot work. in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? try in ERT, where your bibliography shall pe printed in the doc \bgroup \setcounter{enumiv}{5} \bibliographystyle{plain}% or any other style \bibliography{bibfile} % without extension .bib \egroup Herbert
Questions & Problems
Hi There! I have a few question: 1. If I do undo while having 'instant-preview' on, it will not 'instant-preview' the equations in this paragraph until I click onto them again. Is that a known bug? 2. In a multi-line equation environment, how can I delete an overabundant line? 3. I would like to have definitions, lemmas, examples in my standard article layout. I tried to achieve that by 'include amsmath.inc' but it seems not to work. Is there an easy solution? 4. When I hit (Applekey+Enter), it will nicely reformat the equation from Display-mode to multiline mode (very cool) - but the cursor moves from the end of the equation to the middle. When I then just want to start a new line and not move half the equation down, I first have to use the cursor to go to the end of the line, before pressing (Applekey+Enter) That is very impractical when entering equations fast. Is there a way to shut that off? 5. I believe, it would be much more intuitive to use Enter instead of (Applekey+Enter) for starting new lines in equations. Thanks again for all help so far... Best wishes, Jan Peters Best wishes, Jan Peters === Jan Peters, Graduate Research Assistant, Dipl.Inf., Dipl.Ing., M.Sc. University of Southern California (USC) Computational Learning and Motor Control Laboratories (CLMC) 3461 Watt Way, Los Angeles, CA 90089 Phone: +1-213-740-6717, Fax: +1-213-740-1510 email: [EMAIL PROTECTED], web: www.jan-peters.net === Patriotism is the willingness to kill and be killed for trivial reasons. -Bertrand Russell ===
Re: citation numbering control
On Jul 27, 2004, at 1:37 PM, Herbert Voss wrote: Stephen Buonopane wrote: Is there a simple way to start the BibTex citation numbering at something other than [1]? BibTex uses the enumiv counter, so I need to do something like \setcounter{enumiv}{5}, for example to start at 5. But this needs to be defined within the thebibliography environment. I am guessing I need to do something like \renewenvironment{thebibliography}[1][] {\begin{thebibliography}\setcounter{enumiv}{5}} {\end{thebibliography}} you have a recursion here, it cannot work. The following works... \let\oldthebibliography=\thebibliography \let\oldendthebibliography=\endthebibliography \renewenvironment{thebibliography}[1]{% \oldthebibliography{#1}% \setcounter{enumiv}{5}% }{\oldendthebibliography} Note the first ref. will actually be 6 because it is incremented first in the preamble, but this gives me errors. I am a complete novice with the renewenvironment command. Are there any good examples out there? Basically I just want to add the \setcounter command and leave everything else as is. Another approach might be to substitute my own counter for enumiv using \usecounter? try in ERT, where your bibliography shall pe printed in the doc \bgroup \setcounter{enumiv}{5} \bibliographystyle{plain}% or any other style \bibliography{bibfile} % without extension .bib \egroup This did not work