Re: LyX on PC and Mac
On Wed, May 1, 2013 at 3:17 PM, Liviu Andronic landronim...@gmail.comwrote: On Wed, May 1, 2013 at 9:28 PM, Andrew Rodgers pandy1...@hotmail.co.uk wrote: Hello, I hope this is the right place to ask this question, if not, then I apologise. I would like to know how compatible the Windows and Mac versions of LyX are. Very. Is it easy to start writing a LyX document on one platform and then save it, open it on the other platform, and continue to work on it. Also, are there any common problems associated with doing this? Any information you can give me on this would be greatly appreciated. Editing should just work. Compiling to LaTeX is a different matter and will depend on the local LaTeX distribution. Hi Andrew, I'd like to expand on Liviu's and Richard's answer. If you are already well-versed with LaTeX, ignore what follows. Perhaps it may help other users with similar questions. LyX files will be perfectly compatible across different operating systems. You will be able to move them across platforms without ever worrying about losing anything. However, things get more complicated when you want to produce a pdf file from LyX. LyX converts its source file to a Latex file and then compiles it into pdf with the help of the local TeX installation. TeX is a very large system including literally hundreds of package and it is always possible that the installation on one platform lacks some packages present on the other one. Sometimes you may get errors because the two platforms you are working on have different versions of the same package(s) installed. I use LyX on 4 different machines (2 Linux, 2 Macs) and I periodically need to spend some time managing the four TeX installations and keeping them into a reasonably synchronized state. You'll have less problems if you stick to standard LaTeX engines, classes, and packages. Be prepared to invest more time if you decide to use cutting-edge portions of the TeX system (i.e. LuaTeX, Biblatex, etc.) Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Compilation problem
On Tue, Apr 30, 2013 at 3:30 AM, Emil Pavlov emil.p.pav...@gmail.comwrote: На 29.04.2013 23:43, curtis osterhoudt написа: I ran into this problem just this weekend (using the 2.1.0 dev version of LyX on a debian-based system). I happen to have figured out what I did wrong, though it didn't have anything to do with forward/reverse searches; I thought the condition was interesting: I put some ERT into my document to change some enumeration settings (explicitly, the following command to change numbering to a lowercase letter surrounded by parentheses: \renewcommand{\theenumi}{(\alph{enumi})}). Later on, though, in playing with that command, I changed it to the following: \renewcommand{\theenumi}{(\theenumi)}. This, I think, is a sort of circular definition, and pdflatex chokes on it, and LyX appears to be frozen (I think it's waiting for pdflatex to finish its compilation). If you haven't started LyX from the command line (so that you can simply ctrl-c it), then you can use the following to kill the process: From a command window, run top or htop, and find the process (likely gs or pdflatex) which is eating up resources and kill it that way. OR run the command ps -ef | grep pdflatex (or whatever process you suspect of hanging), which will return the process number of the program running. Then you can run kill process number (or, for extreme maliciousness, kill -9 process number) to make LyX useable again. Hope that helps! -- *From:* Emil Pavlov emil.p.pav...@gmail.com emil.p.pav...@gmail.com *To:* lyx-users@lists.lyx.org *Sent:* Monday, April 29, 2013 1:15 PM *Subject:* Compilation problem I have a large lyx document (several child documents, together around 60 pages) and sometimes I have problems compiling the pdf. I even cannot close lyx, because it says it is still compiling. 1. How can I interrupt the compilation? 2. How can I fix this? I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I enable forward/reverse search (I really need this feature). Best regards, Emil OK, this happened again. But I cannot find any process called pdflatex. This time forward/reverse search was off. You may not be using pdflatex (there are other backends that produce pdf: XeLatex. :LuaTeX, Latex with ps2pdf, and so on). When it hangs, try opening up a terminal and searching for a process containing the tex string in its name. For example with this command: ps aux | grep tex Alternatively, you may want to double-check which command you are using to produce the pdf file from the View menu (you should see it in parentheses next to the various View pdf items. It may also be the case that your compilation hangs not on latex but while processing references (in which case bibtex or biber would be to blame), or while indexing (texindy, makeindex, xindy). Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Problems with Undefined control sequence - \newfloat \float \floatstyle
On Tue, Apr 30, 2013 at 12:42 PM, caio rodrigues caiorss.rodrig...@gmail.com wrote: %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} \floatstyle{} \newfloat{}{}{} \providecommand{\name}{} \floatname{}{\protect\name} The first line is inserted automatically as soon as you start a new table float. But I have never seen the following 4 lines. Did LyX insert them in the preamble? Have you tried inserting a table into a new test file? Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
RE: LyX on PC and Mac
Hi Stefano, Thanks a lot for your answer. I'm not very familiar with LaTeX, so it was very helpful. Is it easier to keep certain TeX distributions synced than it is for others, or is it just a case of updating them both regularly? I currently use MikTex on Windows and I am planing to use MacTex on Mac. Also, it has occurred to me that there may be problems using an imported BibTex bibliography across two different operating systems. Assuming the same .bib file was present on both systems, would there be problems with LyX locating it on one OS if it had been imported on the other OS? I would think that the directory the .bib file is located in is important, but I don't know any specifics. Any experience you may have of this would be very welcome. Thanks again for your help. Thanks, Andrew Date: Fri, 10 May 2013 08:02:47 -0500 Subject: Re: LyX on PC and Mac From: stefano.fran...@gmail.com To: landronim...@gmail.com CC: pandy1...@hotmail.co.uk; lyx-users@lists.lyx.org On Wed, May 1, 2013 at 3:17 PM, Liviu Andronic landronim...@gmail.com wrote: On Wed, May 1, 2013 at 9:28 PM, Andrew Rodgers pandy1...@hotmail.co.uk wrote: Hello, I hope this is the right place to ask this question, if not, then I apologise. I would like to know how compatible the Windows and Mac versions of LyX are. Very. Is it easy to start writing a LyX document on one platform and then save it, open it on the other platform, and continue to work on it. Also, are there any common problems associated with doing this? Any information you can give me on this would be greatly appreciated. Editing should just work. Compiling to LaTeX is a different matter and will depend on the local LaTeX distribution. Hi Andrew, I'd like to expand on Liviu's and Richard's answer. If you are already well-versed with LaTeX, ignore what follows. Perhaps it may help other users with similar questions. LyX files will be perfectly compatible across different operating systems. You will be able to move them across platforms without ever worrying about losing anything. However, things get more complicated when you want to produce a pdf file from LyX. LyX converts its source file to a Latex file and then compiles it into pdf with the help of the local TeX installation. TeX is a very large system including literally hundreds of package and it is always possible that the installation on one platform lacks some packages present on the other one. Sometimes you may get errors because the two platforms you are working on have different versions of the same package(s) installed. I use LyX on 4 different machines (2 Linux, 2 Macs) and I periodically need to spend some time managing the four TeX installations and keeping them into a reasonably synchronized state. You'll have less problems if you stick to standard LaTeX engines, classes, and packages. Be prepared to invest more time if you decide to use cutting-edge portions of the TeX system (i.e. LuaTeX, Biblatex, etc.) Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: [ANNOUNCE] LyX 2.0.6 Released
On Thu, May 9, 2013 at 3:38 PM, Richard Heck rgh...@lyx.org wrote: Public release of LyX version 2.0.6 Ubuntu binaries are available on the PPA: https://launchpad.net/~lyx-devel/+archive/release . For Raring and Saucy, I dropped the 'defoma' dep. Those using those distros, please let me know if all works as expected. Regards, Liviu
Re: LyX on PC and Mac
On 05/10/2013 11:17 AM, Andrew Rodgers wrote: Also, it has occurred to me that there may be problems using an imported BibTex bibliography across two different operating systems. Assuming the same .bib file was present on both systems, would there be problems with LyX locating it on one OS if it had been imported on the other OS? I would think that the directory the .bib file is located in is important, but I don't know any specifics. It all depends upon what kind of path you set to the bib file. If the path is absolute, you will have a problem. If you keep it in the same directory as the LyX file, I think you are usually OK. But the better solution is to put it in an appropriate system location. You can find out on each machine where TeX looks for bib files by running: kpsepath bib You can also set an environment variable, like: export BIBINPUTS=/home/rgheck/files/bibtex:: to tell TeX another place to look. Richard
Problem producing tables with knitr and xtable
I have been playing with LyX and knitr. I have had no problem generating figures generally using ggplot2 I cannot get LyX to generate a table with knitr and xtable. The file table.knitr one is my last attempt to generate a table. Not a success though there is something there. table.kniter2.lyx is a successful example of my running the same code in R and then just cutting and pasting the resulting LaTeX code (minus the \begin{table}[ht] \end{table} of course. Can anyone give me some pointers as to what I am doing wrong? I seem to have spent about 2 hours trying to find some useful examples without much success. Thanks. table.knitr1.lyx Description: application/lyx table.kniter2.lyx Description: application/lyx
Re: Problem producing tables with knitr and xtable
On Fri, May 10, 2013 at 8:55 PM, John Kane jrkrid...@yahoo.ca wrote: I have been playing with LyX and knitr. I have had no problem generating figures generally using ggplot2 I cannot get LyX to generate a table with knitr and xtable. See attached. Two issues: - You need to use chunk option results=asis (similar to results=tex for Sweave) - By default xtable() outputs the table in a floating environment; it makes little sense to put that in a table float. Use print.xtable(..., floating=F) to avoid this. Liviu The file table.knitr one is my last attempt to generate a table. Not a success though there is something there. table.kniter2.lyx is a successful example of my running the same code in R and then just cutting and pasting the resulting LaTeX code (minus the \begin{table}[ht] \end{table} of course. Can anyone give me some pointers as to what I am doing wrong? I seem to have spent about 2 hours trying to find some useful examples without much success. Thanks. -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail table.knitr1.lyx Description: Binary data
Re: LyX on PC and Mac
On Fri, May 10, 2013 at 10:17 AM, Andrew Rodgers pandy1...@hotmail.co.ukwrote: Hi Stefano, Thanks a lot for your answer. I'm not very familiar with LaTeX, so it was very helpful. Is it easier to keep certain TeX distributions synced than it is for others, or is it just a case of updating them both regularly? I currently use MikTex on Windows and I am planing to use MacTex on Mac. I cannot tell you anything about MikTeX, because I don't use Windows. From what I read here on the list, it should make your life simpler, to a certain extent, because it is capable of downloading packages on the fly if they are not not present in your current installation. More generally, though: it is a good idea to keep your Tex installations in reasonable sync. TeXLive (which MacTeX is based upon) comes out with a new major version once a year. When, and if, you upgrade, be sure to do it on all your machines. As I mentioned, the only real problems I ever ran into where with new packages with very fast development cycles. In particular, Biblatex and biber (bib reference packages that replace bibtex) were progressing so rapidly that keeping track of new versions and keeping them in sync gave me some trouble over the last couple of years. They are much more stable now, and the situation has improved. LuaTeX (a backend that replaces the standard TeX engine) is now in a similar situation. But if you stay away from cutting edge packages, you should not have any serious problems. BTW, there is TeXLive for Windows as well. A very brief comparison with MikTeX is here, in case you are interested: http://www.texdev.net/2011/11/19/tex-on-windows-miktex-or-tex-live/ The author (Joseph Wright) is a *very* reliable source on all TeX-related matters. Cheers, S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Problem specifying a new converter
On 10/05/2013 1:13 a.m., Richard Heck wrote: On 05/08/2013 05:34 PM, Andrew Parsloe wrote: On 9/05/2013 1:34 a.m., Richard Heck wrote: On 05/07/2013 05:10 PM, Andrew Parsloe wrote: On 8/05/2013 4:39 a.m., Richard Heck wrote: On 05/07/2013 10:17 AM, Stephen Brooking wrote: Hi, I have specified a new converter to convert Visio drawings into PDF (using some VBScript borrowed from elsewhere on the web), but have run into issues. My converter is specified like this: cscript path/vsd2pdf.vbs $$i $$o When Visio runs, it can't access the file to convert because the current directory is not the temp directory that LyX created (I'm not familiar enough with VBScript to know why or where). So my question is this: is there a '$$' variable that specifies the temporary directory in use, so that I can form an absolute path to the $$i and $$o files? No, but you should not need this. LyX ought to be running the converter in the temporary directory, but perhaps the cscript thingy resets the current directory? Richard No? I hesitate to contradict you Richard but in my tinkering with Python scripts I've run converters using *all* the following: [snip] $$p The full directory path of the LyX temporary directory. On my Windows system one day this was C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/ OK, thanks. This is in the documentation as the path to the input file, which usually would be the temporary directory. Perhaps that should be clarified. Richard The path that is missing from these $$ variables is that to the *back-up* directory. At present I have a script where I have to put that in by hand, even though LyX knows the path and it should be retrievable (in my opinion) by a script. Worth an enhancement request? You mean the directory where LyX stores backups, yes? Should be pretty easy to do. Richard Enhancement ticket #8667. Andrew
Re: LyX on PC and Mac
On Wed, May 1, 2013 at 3:17 PM, Liviu Andronic landronim...@gmail.comwrote: On Wed, May 1, 2013 at 9:28 PM, Andrew Rodgers pandy1...@hotmail.co.uk wrote: Hello, I hope this is the right place to ask this question, if not, then I apologise. I would like to know how compatible the Windows and Mac versions of LyX are. Very. Is it easy to start writing a LyX document on one platform and then save it, open it on the other platform, and continue to work on it. Also, are there any common problems associated with doing this? Any information you can give me on this would be greatly appreciated. Editing should just work. Compiling to LaTeX is a different matter and will depend on the local LaTeX distribution. Hi Andrew, I'd like to expand on Liviu's and Richard's answer. If you are already well-versed with LaTeX, ignore what follows. Perhaps it may help other users with similar questions. LyX files will be perfectly compatible across different operating systems. You will be able to move them across platforms without ever worrying about losing anything. However, things get more complicated when you want to produce a pdf file from LyX. LyX converts its source file to a Latex file and then compiles it into pdf with the help of the local TeX installation. TeX is a very large system including literally hundreds of package and it is always possible that the installation on one platform lacks some packages present on the other one. Sometimes you may get errors because the two platforms you are working on have different versions of the same package(s) installed. I use LyX on 4 different machines (2 Linux, 2 Macs) and I periodically need to spend some time managing the four TeX installations and keeping them into a reasonably synchronized state. You'll have less problems if you stick to standard LaTeX engines, classes, and packages. Be prepared to invest more time if you decide to use cutting-edge portions of the TeX system (i.e. LuaTeX, Biblatex, etc.) Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Compilation problem
On Tue, Apr 30, 2013 at 3:30 AM, Emil Pavlov emil.p.pav...@gmail.comwrote: На 29.04.2013 23:43, curtis osterhoudt написа: I ran into this problem just this weekend (using the 2.1.0 dev version of LyX on a debian-based system). I happen to have figured out what I did wrong, though it didn't have anything to do with forward/reverse searches; I thought the condition was interesting: I put some ERT into my document to change some enumeration settings (explicitly, the following command to change numbering to a lowercase letter surrounded by parentheses: \renewcommand{\theenumi}{(\alph{enumi})}). Later on, though, in playing with that command, I changed it to the following: \renewcommand{\theenumi}{(\theenumi)}. This, I think, is a sort of circular definition, and pdflatex chokes on it, and LyX appears to be frozen (I think it's waiting for pdflatex to finish its compilation). If you haven't started LyX from the command line (so that you can simply ctrl-c it), then you can use the following to kill the process: From a command window, run top or htop, and find the process (likely gs or pdflatex) which is eating up resources and kill it that way. OR run the command ps -ef | grep pdflatex (or whatever process you suspect of hanging), which will return the process number of the program running. Then you can run kill process number (or, for extreme maliciousness, kill -9 process number) to make LyX useable again. Hope that helps! -- *From:* Emil Pavlov emil.p.pav...@gmail.com emil.p.pav...@gmail.com *To:* lyx-users@lists.lyx.org *Sent:* Monday, April 29, 2013 1:15 PM *Subject:* Compilation problem I have a large lyx document (several child documents, together around 60 pages) and sometimes I have problems compiling the pdf. I even cannot close lyx, because it says it is still compiling. 1. How can I interrupt the compilation? 2. How can I fix this? I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I enable forward/reverse search (I really need this feature). Best regards, Emil OK, this happened again. But I cannot find any process called pdflatex. This time forward/reverse search was off. You may not be using pdflatex (there are other backends that produce pdf: XeLatex. :LuaTeX, Latex with ps2pdf, and so on). When it hangs, try opening up a terminal and searching for a process containing the tex string in its name. For example with this command: ps aux | grep tex Alternatively, you may want to double-check which command you are using to produce the pdf file from the View menu (you should see it in parentheses next to the various View pdf items. It may also be the case that your compilation hangs not on latex but while processing references (in which case bibtex or biber would be to blame), or while indexing (texindy, makeindex, xindy). Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Problems with Undefined control sequence - \newfloat \float \floatstyle
On Tue, Apr 30, 2013 at 12:42 PM, caio rodrigues caiorss.rodrig...@gmail.com wrote: %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} \floatstyle{} \newfloat{}{}{} \providecommand{\name}{} \floatname{}{\protect\name} The first line is inserted automatically as soon as you start a new table float. But I have never seen the following 4 lines. Did LyX insert them in the preamble? Have you tried inserting a table into a new test file? Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
RE: LyX on PC and Mac
Hi Stefano, Thanks a lot for your answer. I'm not very familiar with LaTeX, so it was very helpful. Is it easier to keep certain TeX distributions synced than it is for others, or is it just a case of updating them both regularly? I currently use MikTex on Windows and I am planing to use MacTex on Mac. Also, it has occurred to me that there may be problems using an imported BibTex bibliography across two different operating systems. Assuming the same .bib file was present on both systems, would there be problems with LyX locating it on one OS if it had been imported on the other OS? I would think that the directory the .bib file is located in is important, but I don't know any specifics. Any experience you may have of this would be very welcome. Thanks again for your help. Thanks, Andrew Date: Fri, 10 May 2013 08:02:47 -0500 Subject: Re: LyX on PC and Mac From: stefano.fran...@gmail.com To: landronim...@gmail.com CC: pandy1...@hotmail.co.uk; lyx-users@lists.lyx.org On Wed, May 1, 2013 at 3:17 PM, Liviu Andronic landronim...@gmail.com wrote: On Wed, May 1, 2013 at 9:28 PM, Andrew Rodgers pandy1...@hotmail.co.uk wrote: Hello, I hope this is the right place to ask this question, if not, then I apologise. I would like to know how compatible the Windows and Mac versions of LyX are. Very. Is it easy to start writing a LyX document on one platform and then save it, open it on the other platform, and continue to work on it. Also, are there any common problems associated with doing this? Any information you can give me on this would be greatly appreciated. Editing should just work. Compiling to LaTeX is a different matter and will depend on the local LaTeX distribution. Hi Andrew, I'd like to expand on Liviu's and Richard's answer. If you are already well-versed with LaTeX, ignore what follows. Perhaps it may help other users with similar questions. LyX files will be perfectly compatible across different operating systems. You will be able to move them across platforms without ever worrying about losing anything. However, things get more complicated when you want to produce a pdf file from LyX. LyX converts its source file to a Latex file and then compiles it into pdf with the help of the local TeX installation. TeX is a very large system including literally hundreds of package and it is always possible that the installation on one platform lacks some packages present on the other one. Sometimes you may get errors because the two platforms you are working on have different versions of the same package(s) installed. I use LyX on 4 different machines (2 Linux, 2 Macs) and I periodically need to spend some time managing the four TeX installations and keeping them into a reasonably synchronized state. You'll have less problems if you stick to standard LaTeX engines, classes, and packages. Be prepared to invest more time if you decide to use cutting-edge portions of the TeX system (i.e. LuaTeX, Biblatex, etc.) Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: [ANNOUNCE] LyX 2.0.6 Released
On Thu, May 9, 2013 at 3:38 PM, Richard Heck rgh...@lyx.org wrote: Public release of LyX version 2.0.6 Ubuntu binaries are available on the PPA: https://launchpad.net/~lyx-devel/+archive/release . For Raring and Saucy, I dropped the 'defoma' dep. Those using those distros, please let me know if all works as expected. Regards, Liviu
Re: LyX on PC and Mac
On 05/10/2013 11:17 AM, Andrew Rodgers wrote: Also, it has occurred to me that there may be problems using an imported BibTex bibliography across two different operating systems. Assuming the same .bib file was present on both systems, would there be problems with LyX locating it on one OS if it had been imported on the other OS? I would think that the directory the .bib file is located in is important, but I don't know any specifics. It all depends upon what kind of path you set to the bib file. If the path is absolute, you will have a problem. If you keep it in the same directory as the LyX file, I think you are usually OK. But the better solution is to put it in an appropriate system location. You can find out on each machine where TeX looks for bib files by running: kpsepath bib You can also set an environment variable, like: export BIBINPUTS=/home/rgheck/files/bibtex:: to tell TeX another place to look. Richard
Problem producing tables with knitr and xtable
I have been playing with LyX and knitr. I have had no problem generating figures generally using ggplot2 I cannot get LyX to generate a table with knitr and xtable. The file table.knitr one is my last attempt to generate a table. Not a success though there is something there. table.kniter2.lyx is a successful example of my running the same code in R and then just cutting and pasting the resulting LaTeX code (minus the \begin{table}[ht] \end{table} of course. Can anyone give me some pointers as to what I am doing wrong? I seem to have spent about 2 hours trying to find some useful examples without much success. Thanks. table.knitr1.lyx Description: application/lyx table.kniter2.lyx Description: application/lyx
Re: Problem producing tables with knitr and xtable
On Fri, May 10, 2013 at 8:55 PM, John Kane jrkrid...@yahoo.ca wrote: I have been playing with LyX and knitr. I have had no problem generating figures generally using ggplot2 I cannot get LyX to generate a table with knitr and xtable. See attached. Two issues: - You need to use chunk option results=asis (similar to results=tex for Sweave) - By default xtable() outputs the table in a floating environment; it makes little sense to put that in a table float. Use print.xtable(..., floating=F) to avoid this. Liviu The file table.knitr one is my last attempt to generate a table. Not a success though there is something there. table.kniter2.lyx is a successful example of my running the same code in R and then just cutting and pasting the resulting LaTeX code (minus the \begin{table}[ht] \end{table} of course. Can anyone give me some pointers as to what I am doing wrong? I seem to have spent about 2 hours trying to find some useful examples without much success. Thanks. -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail table.knitr1.lyx Description: Binary data
Re: LyX on PC and Mac
On Fri, May 10, 2013 at 10:17 AM, Andrew Rodgers pandy1...@hotmail.co.ukwrote: Hi Stefano, Thanks a lot for your answer. I'm not very familiar with LaTeX, so it was very helpful. Is it easier to keep certain TeX distributions synced than it is for others, or is it just a case of updating them both regularly? I currently use MikTex on Windows and I am planing to use MacTex on Mac. I cannot tell you anything about MikTeX, because I don't use Windows. From what I read here on the list, it should make your life simpler, to a certain extent, because it is capable of downloading packages on the fly if they are not not present in your current installation. More generally, though: it is a good idea to keep your Tex installations in reasonable sync. TeXLive (which MacTeX is based upon) comes out with a new major version once a year. When, and if, you upgrade, be sure to do it on all your machines. As I mentioned, the only real problems I ever ran into where with new packages with very fast development cycles. In particular, Biblatex and biber (bib reference packages that replace bibtex) were progressing so rapidly that keeping track of new versions and keeping them in sync gave me some trouble over the last couple of years. They are much more stable now, and the situation has improved. LuaTeX (a backend that replaces the standard TeX engine) is now in a similar situation. But if you stay away from cutting edge packages, you should not have any serious problems. BTW, there is TeXLive for Windows as well. A very brief comparison with MikTeX is here, in case you are interested: http://www.texdev.net/2011/11/19/tex-on-windows-miktex-or-tex-live/ The author (Joseph Wright) is a *very* reliable source on all TeX-related matters. Cheers, S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Problem specifying a new converter
On 10/05/2013 1:13 a.m., Richard Heck wrote: On 05/08/2013 05:34 PM, Andrew Parsloe wrote: On 9/05/2013 1:34 a.m., Richard Heck wrote: On 05/07/2013 05:10 PM, Andrew Parsloe wrote: On 8/05/2013 4:39 a.m., Richard Heck wrote: On 05/07/2013 10:17 AM, Stephen Brooking wrote: Hi, I have specified a new converter to convert Visio drawings into PDF (using some VBScript borrowed from elsewhere on the web), but have run into issues. My converter is specified like this: cscript path/vsd2pdf.vbs $$i $$o When Visio runs, it can't access the file to convert because the current directory is not the temp directory that LyX created (I'm not familiar enough with VBScript to know why or where). So my question is this: is there a '$$' variable that specifies the temporary directory in use, so that I can form an absolute path to the $$i and $$o files? No, but you should not need this. LyX ought to be running the converter in the temporary directory, but perhaps the cscript thingy resets the current directory? Richard No? I hesitate to contradict you Richard but in my tinkering with Python scripts I've run converters using *all* the following: [snip] $$p The full directory path of the LyX temporary directory. On my Windows system one day this was C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/ OK, thanks. This is in the documentation as the path to the input file, which usually would be the temporary directory. Perhaps that should be clarified. Richard The path that is missing from these $$ variables is that to the *back-up* directory. At present I have a script where I have to put that in by hand, even though LyX knows the path and it should be retrievable (in my opinion) by a script. Worth an enhancement request? You mean the directory where LyX stores backups, yes? Should be pretty easy to do. Richard Enhancement ticket #8667. Andrew
Re: LyX on PC and Mac
On Wed, May 1, 2013 at 3:17 PM, Liviu Andronicwrote: > On Wed, May 1, 2013 at 9:28 PM, Andrew Rodgers > wrote: > > Hello, > > > > I hope this is the right place to ask this question, if not, then I > > apologise. > > > > I would like to know how compatible the Windows and Mac versions of LyX > are. > > > Very. > > > > Is it easy to start writing a LyX document on one platform and then save > it, > > open it on the other platform, and continue to work on it. Also, are > there > > any common problems associated with doing this? Any information you can > give > > me on this would be greatly appreciated. > > > Editing should just work. Compiling to LaTeX is a different matter and > will depend on the local LaTeX distribution. > > Hi Andrew, I'd like to expand on Liviu's and Richard's answer. If you are already well-versed with LaTeX, ignore what follows. Perhaps it may help other users with similar questions. LyX files will be perfectly compatible across different operating systems. You will be able to move them across platforms without ever worrying about losing anything. However, things get more complicated when you want to produce a pdf file from LyX. LyX converts its source file to a Latex file and then compiles it into pdf with the help of the local TeX installation. TeX is a very large system including literally hundreds of package and it is always possible that the installation on one platform lacks some packages present on the other one. Sometimes you may get errors because the two platforms you are working on have different versions of the same package(s) installed. I use LyX on 4 different machines (2 Linux, 2 Macs) and I periodically need to spend some time managing the four TeX installations and keeping them into a reasonably synchronized state. You'll have less problems if you stick to standard LaTeX engines, classes, and packages. Be prepared to invest more time if you decide to use "cutting-edge" portions of the TeX system (i.e. LuaTeX, Biblatex, etc.) Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Compilation problem
On Tue, Apr 30, 2013 at 3:30 AM, Emil Pavlovwrote: > На 29.04.2013 23:43, curtis osterhoudt написа: > > I ran into this problem just this weekend (using the 2.1.0 dev version > of LyX on a debian-based system). I happen to have figured out what I did > wrong, though it didn't have anything to do with forward/reverse searches; > I thought the condition was interesting: I put some ERT into my document to > change some enumeration settings (explicitly, the following command to > change numbering to a lowercase letter surrounded by parentheses: > \renewcommand{\theenumi}{(\alph{enumi})}). Later on, though, in playing > with that command, I changed it to the following: > \renewcommand{\theenumi}{(\theenumi)}. This, I think, is a sort of > circular definition, and pdflatex chokes on it, and LyX appears to be > frozen (I think it's waiting for pdflatex to finish its compilation). > >If you haven't started LyX from the command line (so that you can > simply ctrl-c it), then you can use the following to kill the process: > > >From a command window, run "top" or "htop", and find the process > (likely gs or pdflatex) which is eating up resources and kill it that way. > OR > run the command "ps -ef | grep pdflatex" (or whatever process you suspect > of hanging), which will return the process number of the program running. > Then you can run "kill " (or, for extreme maliciousness, > "kill -9 ") to make LyX useable again. > >Hope that helps! > > > >-- > *From:* Emil Pavlov > *To:* lyx-users@lists.lyx.org > *Sent:* Monday, April 29, 2013 1:15 PM > *Subject:* Compilation problem > > I have a large lyx document (several child documents, together around 60 > pages) and sometimes I have problems compiling the pdf. I even cannot > close lyx, because it says it is still compiling. > 1. How can I interrupt the compilation? > 2. How can I fix this? > > I have Lyx 2.0.5.1 on Linux mint 13. The problem usually occurs when I > enable forward/reverse search (I really need this feature). > > Best regards, > Emil > > > > OK, this happened again. But I cannot find any process called > pdflatex. This time forward/reverse search was off. > You may not be using pdflatex (there are other backends that produce pdf: XeLatex. :LuaTeX, Latex with ps2pdf, and so on). When it hangs, try opening up a terminal and searching for a process containing the "tex" string in its name. For example with this command: ps aux | grep tex Alternatively, you may want to double-check which command you are using to produce the pdf file from the View menu (you should see it in parentheses next to the various "View pdf" items. It may also be the case that your compilation hangs not on latex but while processing references (in which case bibtex or biber would be to blame), or while indexing (texindy, makeindex, xindy). Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Problems with Undefined control sequence - \newfloat \float \floatstyle
On Tue, Apr 30, 2013 at 12:42 PM, caio rodrigues < caiorss.rodrig...@gmail.com> wrote: > > %% Because html converters don't know tabularnewline > \providecommand{\tabularnewline}{\\} > \floatstyle{} > \newfloat{}{}{} > \providecommand{\name}{} > \floatname{}{\protect\name} > The first line is inserted automatically as soon as you start a new table float. But I have never seen the following 4 lines. Did LyX insert them in the preamble? Have you tried inserting a table into a new test file? Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
RE: LyX on PC and Mac
Hi Stefano, Thanks a lot for your answer. I'm not very familiar with LaTeX, so it was very helpful. Is it easier to keep certain TeX distributions synced than it is for others, or is it just a case of updating them both regularly? I currently use MikTex on Windows and I am planing to use MacTex on Mac. Also, it has occurred to me that there may be problems using an imported BibTex bibliography across two different operating systems. Assuming the same .bib file was present on both systems, would there be problems with LyX locating it on one OS if it had been imported on the other OS? I would think that the directory the .bib file is located in is important, but I don't know any specifics. Any experience you may have of this would be very welcome. Thanks again for your help. Thanks, Andrew Date: Fri, 10 May 2013 08:02:47 -0500 Subject: Re: LyX on PC and Mac From: stefano.fran...@gmail.com To: landronim...@gmail.com CC: pandy1...@hotmail.co.uk; lyx-users@lists.lyx.org On Wed, May 1, 2013 at 3:17 PM, Liviu Andronicwrote: On Wed, May 1, 2013 at 9:28 PM, Andrew Rodgers wrote: > Hello, > > I hope this is the right place to ask this question, if not, then I > apologise. > > I would like to know how compatible the Windows and Mac versions of LyX are. > Very. > Is it easy to start writing a LyX document on one platform and then save it, > open it on the other platform, and continue to work on it. Also, are there > any common problems associated with doing this? Any information you can give > me on this would be greatly appreciated. > Editing should just work. Compiling to LaTeX is a different matter and will depend on the local LaTeX distribution. Hi Andrew, I'd like to expand on Liviu's and Richard's answer. If you are already well-versed with LaTeX, ignore what follows. Perhaps it may help other users with similar questions. LyX files will be perfectly compatible across different operating systems. You will be able to move them across platforms without ever worrying about losing anything. However, things get more complicated when you want to produce a pdf file from LyX. LyX converts its source file to a Latex file and then compiles it into pdf with the help of the local TeX installation. TeX is a very large system including literally hundreds of package and it is always possible that the installation on one platform lacks some packages present on the other one. Sometimes you may get errors because the two platforms you are working on have different versions of the same package(s) installed. I use LyX on 4 different machines (2 Linux, 2 Macs) and I periodically need to spend some time managing the four TeX installations and keeping them into a reasonably synchronized state. You'll have less problems if you stick to standard LaTeX engines, classes, and packages. Be prepared to invest more time if you decide to use "cutting-edge" portions of the TeX system (i.e. LuaTeX, Biblatex, etc.) Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: [ANNOUNCE] LyX 2.0.6 Released
On Thu, May 9, 2013 at 3:38 PM, Richard Heckwrote: > Public release of LyX version 2.0.6 > Ubuntu binaries are available on the PPA: https://launchpad.net/~lyx-devel/+archive/release . For Raring and Saucy, I dropped the 'defoma' dep. Those using those distros, please let me know if all works as expected. Regards, Liviu
Re: LyX on PC and Mac
On 05/10/2013 11:17 AM, Andrew Rodgers wrote: Also, it has occurred to me that there may be problems using an imported BibTex bibliography across two different operating systems. Assuming the same .bib file was present on both systems, would there be problems with LyX locating it on one OS if it had been imported on the other OS? I would think that the directory the .bib file is located in is important, but I don't know any specifics. It all depends upon what kind of path you set to the bib file. If the path is absolute, you will have a problem. If you keep it in the same directory as the LyX file, I think you are usually OK. But the better solution is to put it in an appropriate "system" location. You can find out on each machine where TeX looks for bib files by running: > kpsepath bib You can also set an environment variable, like: export BIBINPUTS=/home/rgheck/files/bibtex:: to tell TeX another place to look. Richard
Problem producing tables with knitr and xtable
I have been playing with LyX and knitr. I have had no problem generating figures generally using ggplot2 I cannot get LyX to generate a table with knitr and xtable. The file table.knitr one is my last attempt to generate a table. Not a success though there is something there. table.kniter2.lyx is a successful example of my running the same code in R and then just cutting and pasting the resulting LaTeX code (minus the \begin{table}[ht] & \end{table} of course. Can anyone give me some pointers as to what I am doing wrong? I seem to have spent about 2 hours trying to find some useful examples without much success. Thanks. table.knitr1.lyx Description: application/lyx table.kniter2.lyx Description: application/lyx
Re: Problem producing tables with knitr and xtable
On Fri, May 10, 2013 at 8:55 PM, John Kanewrote: > I have been playing with LyX and knitr. I have had no problem generating > figures generally using ggplot2 I cannot get LyX to generate a table with > knitr and xtable. > See attached. Two issues: - You need to use chunk option results="asis" (similar to results=tex for Sweave) - By default xtable() outputs the table in a floating environment; it makes little sense to put that in a table float. Use print.xtable(..., floating=F) to avoid this. Liviu > The file table.knitr one is my last attempt to generate a table. Not a > success though there is something there. table.kniter2.lyx is a successful > example of my running the same code in R and then just cutting and pasting > the resulting LaTeX code (minus the \begin{table}[ht] & \end{table} of > course. > > Can anyone give me some pointers as to what I am doing wrong? I seem to > have spent about 2 hours trying to find some useful examples without much > success. > > Thanks. -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail table.knitr1.lyx Description: Binary data
Re: LyX on PC and Mac
On Fri, May 10, 2013 at 10:17 AM, Andrew Rodgerswrote: > Hi Stefano, > > Thanks a lot for your answer. I'm not very familiar with LaTeX, so it was > very helpful. Is it easier to keep certain TeX distributions synced than it > is for others, or is it just a case of updating them both regularly? I > currently use MikTex on Windows and I am planing to use MacTex on Mac. > I cannot tell you anything about MikTeX, because I don't use Windows. From what I read here on the list, it should make your life simpler, to a certain extent, because it is capable of downloading packages on the fly if they are not not present in your current installation. More generally, though: it is a good idea to keep your Tex installations in reasonable sync. TeXLive (which MacTeX is based upon) comes out with a new major version once a year. When, and if, you upgrade, be sure to do it on all your machines. As I mentioned, the only real problems I ever ran into where with new packages with very fast development cycles. In particular, Biblatex and biber (bib reference packages that replace bibtex) were progressing so rapidly that keeping track of new versions and keeping them in sync gave me some trouble over the last couple of years. They are much more stable now, and the situation has improved. LuaTeX (a backend that replaces the standard TeX engine) is now in a similar situation. But if you stay away from "cutting edge" packages, you should not have any serious problems. BTW, there is TeXLive for Windows as well. A very brief comparison with MikTeX is here, in case you are interested: http://www.texdev.net/2011/11/19/tex-on-windows-miktex-or-tex-live/ The author (Joseph Wright) is a *very* reliable source on all TeX-related matters. Cheers, S. -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org
Re: Problem specifying a new converter
On 10/05/2013 1:13 a.m., Richard Heck wrote: On 05/08/2013 05:34 PM, Andrew Parsloe wrote: On 9/05/2013 1:34 a.m., Richard Heck wrote: On 05/07/2013 05:10 PM, Andrew Parsloe wrote: On 8/05/2013 4:39 a.m., Richard Heck wrote: On 05/07/2013 10:17 AM, Stephen Brooking wrote: Hi, I have specified a new converter to convert Visio drawings into PDF (using some VBScript borrowed from elsewhere on the web), but have run into issues. My converter is specified like this: cscript /vsd2pdf.vbs "$$i" "$$o" When Visio runs, it can't access the file to convert because the current directory is not the temp directory that LyX created (I'm not familiar enough with VBScript to know why or where). So my question is this: is there a '$$' variable that specifies the temporary directory in use, so that I can form an absolute path to the $$i and $$o files? No, but you should not need this. LyX ought to be running the converter in the temporary directory, but perhaps the cscript thingy resets the current directory? Richard No? I hesitate to contradict you Richard but in my tinkering with Python scripts I've run converters using *all* the following: [snip] $$p The full directory path of the LyX temporary directory. On my Windows system one day this was C:/Users/Andrew/AppData/Local/Temp/lyx_tmpdir.gq2540/lyx_tmpbuf5/ OK, thanks. This is in the documentation as "the path to the input file", which usually would be the temporary directory. Perhaps that should be clarified. Richard The path that is missing from these $$ variables is that to the *back-up* directory. At present I have a script where I have to put that in by hand, even though LyX knows the path and it should be retrievable (in my opinion) by a script. Worth an enhancement request? You mean the directory where LyX stores backups, yes? Should be pretty easy to do. Richard Enhancement ticket #8667. Andrew