Changing from \pmatrix to \matrix
I wrote a \pmatrix, then I changed my idea and I want a simple \matrix: is there a way to switch from the previous environment to the desired one without rewriting or copy/paste the matrix? I have not been able to do it, nor to find help on the docs... :-( Thanks a lot Fabio
Reverse search with xdvi
Hi all, I configured reverse search as explained in section 5.6.3 of the Additional features manual. In particular, I setted Preferences-File Handling-File formats to xdvi -editor lyxeditor.sh %f %l and I created, as suggested, a lyxeditor.sh executable file in my $HOME/bin which contains #!/bin/sh LYXPIPE=$HOME/.lyx/lyxpipe COMMAND=LYXCMD:revdvi:server-goto-file-row:$1 $2 echo $COMMAND ${LYXPIPE}.in || exit read ${LYXPIPE}.out || exit Now, when I produce a dvi if I ctrl+click then every time I get in xdvi the following error message Command lyxeditor.sh /tmp/lyx_tmpdir.MT4824/lyx_tmpbuf2/test.tex 1534 exited with error code 2 $HOME/bin/lyxeditor.sh: 5: read: arg count Nevertheless, I in the lyx source file I am correctly positioned in the intended line. So, all in all it works, but getting allways the error message is a bit annoying... Is there a fix to this? What is wrong in lyxeditor.sh? Please note that if I comment out the last line, I don't get the error any longer and it still works: so is the last line necessary? Thanks a lot F.
Re: Reverse search with xdvi
Anyway does changing the line read ${LYXPIPE}.out || exit into read TMP ${LYXPIPE}.out || exit work for you? Pavel Yes this works. Thanks. But is there any difference with regards to simply comment it? To answer your previous question: yes, there is a reason for I want to use named pipe. The reason is that I often edit tex files via vim and so my Xresource for xdvi.editor is setted to vim: using pipe I thought I could be able to use reverse search regardless of the way xdvi is invoked and indeed that seems the case to me, by the tests I did. Finally, I will collect all the necessary commands which work in my case for inverse/direct search, for reference just in case somebody else will need them since they are a little bit different from the ones listed in the documentation: xdvi: inverse search: Tools-Preferences-File Handling-File formats xdvi -editor lyxeditor.sh %f %l direct search: Tools-Preferences-Output-General xdvi -nofork -sourceposition $$n $$t $$o -editor lyxeditor.sh %f %l okular: inverse search: Tools-Preferences-File Handling-File formats okular --unique direct search: Tools-Preferences-Output-General okular --unique $$o#src:$$n $$f The executable lyxeditor.sh should contain #!/bin/sh LYXPIPE=$HOME/.lyx/lyxpipe COMMAND=LYXCMD:revdvi:server-goto-file-row:$1 $2 echo $COMMAND ${LYXPIPE}.in || exit read TMP ${LYXPIPE}.out || exit F.
About reimporting from latex
Hi all, I know that exporting to latex and then reimporting to lyx is not that smooth, but I made a simple try which surpise me: - create a new lyx file, - in Document - Settings - Document class choose article (AMS) - insert a theorem (even just a word after it, no math nor images) - export it to latex This way you get a very simple and clean tex file. Now, in lyx create a new file and import the saved tex file: instead of seeing Theorem 1. etc. you see the ert \begin{thm} etc. \end{thm} and it doesn't even compile! Am I missing something? If not, how is it possible that the conversion fails even on a such simple and basic example? TIA Fabio
Re: About reimporting from latex
Hi all, I know that exporting to latex and then reimporting to lyx is not that smooth, but I made a simple try which surpise me: - create a new lyx file, - in Document - Settings - Document class choose article (AMS) - insert a theorem (even just a word after it, no math nor images) - export it to latex This way you get a very simple and clean tex file. Now, in lyx create a new file and import the saved tex file: instead of seeing Theorem 1. etc. you see the ert \begin{thm} etc. \end{thm} and it doesn't even compile! Am I missing something? If not, how is it possible that the conversion fails even on a such simple and basic example? Hmm. I think this is a consequence of modularization of the AMS files. You did this in 1.6.x, yes? Sorry, I forgot to give my settings: lyx 1.6.1 installed in ubuntu 8.10 via backport repository, with no customization and a freshly created default ~/.lyx We'll have to fix this, if so. If you do, please let me know what I should do while waiting for the fix in the repository. Thanks Fabio
Re: About reimporting from latex
Hmm. I think this is a consequence of modularization of the AMS files. You did this in 1.6.x, yes? Sorry, I forgot to give my settings: lyx 1.6.1 installed in ubuntu 8.10 via backport repository, with no customization and a freshly created default ~/.lyx We'll have to fix this, if so. If you do, please let me know what I should do while waiting for the fix in the repository. Until the fix will be done and available on the repository, for the moment I demodulized amsart: I copied amsart.layout in ~/.lyx/layouts, then I removed the line DefaultModule theorems-ams and I inserted in its place the content of theorems-ams.module. Did I do it in the right way? I think so, because it works... ;-)) Fabio
Changing from \pmatrix to \matrix
I wrote a \pmatrix, then I changed my idea and I want a simple \matrix: is there a way to switch from the previous environment to the desired one without rewriting or copy/paste the matrix? I have not been able to do it, nor to find help on the docs... :-( Thanks a lot Fabio
Reverse search with xdvi
Hi all, I configured reverse search as explained in section 5.6.3 of the Additional features manual. In particular, I setted Preferences-File Handling-File formats to xdvi -editor lyxeditor.sh %f %l and I created, as suggested, a lyxeditor.sh executable file in my $HOME/bin which contains #!/bin/sh LYXPIPE=$HOME/.lyx/lyxpipe COMMAND=LYXCMD:revdvi:server-goto-file-row:$1 $2 echo $COMMAND ${LYXPIPE}.in || exit read ${LYXPIPE}.out || exit Now, when I produce a dvi if I ctrl+click then every time I get in xdvi the following error message Command lyxeditor.sh /tmp/lyx_tmpdir.MT4824/lyx_tmpbuf2/test.tex 1534 exited with error code 2 $HOME/bin/lyxeditor.sh: 5: read: arg count Nevertheless, I in the lyx source file I am correctly positioned in the intended line. So, all in all it works, but getting allways the error message is a bit annoying... Is there a fix to this? What is wrong in lyxeditor.sh? Please note that if I comment out the last line, I don't get the error any longer and it still works: so is the last line necessary? Thanks a lot F.
Re: Reverse search with xdvi
Anyway does changing the line read ${LYXPIPE}.out || exit into read TMP ${LYXPIPE}.out || exit work for you? Pavel Yes this works. Thanks. But is there any difference with regards to simply comment it? To answer your previous question: yes, there is a reason for I want to use named pipe. The reason is that I often edit tex files via vim and so my Xresource for xdvi.editor is setted to vim: using pipe I thought I could be able to use reverse search regardless of the way xdvi is invoked and indeed that seems the case to me, by the tests I did. Finally, I will collect all the necessary commands which work in my case for inverse/direct search, for reference just in case somebody else will need them since they are a little bit different from the ones listed in the documentation: xdvi: inverse search: Tools-Preferences-File Handling-File formats xdvi -editor lyxeditor.sh %f %l direct search: Tools-Preferences-Output-General xdvi -nofork -sourceposition $$n $$t $$o -editor lyxeditor.sh %f %l okular: inverse search: Tools-Preferences-File Handling-File formats okular --unique direct search: Tools-Preferences-Output-General okular --unique $$o#src:$$n $$f The executable lyxeditor.sh should contain #!/bin/sh LYXPIPE=$HOME/.lyx/lyxpipe COMMAND=LYXCMD:revdvi:server-goto-file-row:$1 $2 echo $COMMAND ${LYXPIPE}.in || exit read TMP ${LYXPIPE}.out || exit F.
About reimporting from latex
Hi all, I know that exporting to latex and then reimporting to lyx is not that smooth, but I made a simple try which surpise me: - create a new lyx file, - in Document - Settings - Document class choose article (AMS) - insert a theorem (even just a word after it, no math nor images) - export it to latex This way you get a very simple and clean tex file. Now, in lyx create a new file and import the saved tex file: instead of seeing Theorem 1. etc. you see the ert \begin{thm} etc. \end{thm} and it doesn't even compile! Am I missing something? If not, how is it possible that the conversion fails even on a such simple and basic example? TIA Fabio
Re: About reimporting from latex
Hi all, I know that exporting to latex and then reimporting to lyx is not that smooth, but I made a simple try which surpise me: - create a new lyx file, - in Document - Settings - Document class choose article (AMS) - insert a theorem (even just a word after it, no math nor images) - export it to latex This way you get a very simple and clean tex file. Now, in lyx create a new file and import the saved tex file: instead of seeing Theorem 1. etc. you see the ert \begin{thm} etc. \end{thm} and it doesn't even compile! Am I missing something? If not, how is it possible that the conversion fails even on a such simple and basic example? Hmm. I think this is a consequence of modularization of the AMS files. You did this in 1.6.x, yes? Sorry, I forgot to give my settings: lyx 1.6.1 installed in ubuntu 8.10 via backport repository, with no customization and a freshly created default ~/.lyx We'll have to fix this, if so. If you do, please let me know what I should do while waiting for the fix in the repository. Thanks Fabio
Re: About reimporting from latex
Hmm. I think this is a consequence of modularization of the AMS files. You did this in 1.6.x, yes? Sorry, I forgot to give my settings: lyx 1.6.1 installed in ubuntu 8.10 via backport repository, with no customization and a freshly created default ~/.lyx We'll have to fix this, if so. If you do, please let me know what I should do while waiting for the fix in the repository. Until the fix will be done and available on the repository, for the moment I demodulized amsart: I copied amsart.layout in ~/.lyx/layouts, then I removed the line DefaultModule theorems-ams and I inserted in its place the content of theorems-ams.module. Did I do it in the right way? I think so, because it works... ;-)) Fabio
About reimporting from latex
Hi all, I know that exporting to latex and then reimporting to lyx is not that smooth, but I made a simple try which surpise me: - create a new lyx file, - in Document -> Settings -> Document class choose "article (AMS)" - insert a theorem (even just a word after it, no math nor images) - export it to latex This way you get a very simple and clean tex file. Now, in lyx create a new file and import the saved tex file: instead of seeing "Theorem 1. etc." you see the ert \begin{thm} etc. \end{thm} and it doesn't even compile! Am I missing something? If not, how is it possible that the conversion fails even on a such simple and basic example? TIA Fabio
Re: About reimporting from latex
Hi all, I know that exporting to latex and then reimporting to lyx is not that smooth, but I made a simple try which surpise me: - create a new lyx file, - in Document -> Settings -> Document class choose "article (AMS)" - insert a theorem (even just a word after it, no math nor images) - export it to latex This way you get a very simple and clean tex file. Now, in lyx create a new file and import the saved tex file: instead of seeing "Theorem 1. etc." you see the ert \begin{thm} etc. \end{thm} and it doesn't even compile! Am I missing something? If not, how is it possible that the conversion fails even on a such simple and basic example? Hmm. I think this is a consequence of modularization of the AMS files. You did this in 1.6.x, yes? Sorry, I forgot to give my settings: lyx 1.6.1 installed in ubuntu 8.10 via backport repository, with no customization and a freshly created default ~/.lyx We'll have to fix this, if so. If you do, please let me know what I should do while waiting for the fix in the repository. Thanks Fabio
Re: About reimporting from latex
Hmm. I think this is a consequence of modularization of the AMS files. You did this in 1.6.x, yes? Sorry, I forgot to give my settings: lyx 1.6.1 installed in ubuntu 8.10 via backport repository, with no customization and a freshly created default ~/.lyx We'll have to fix this, if so. If you do, please let me know what I should do while waiting for the fix in the repository. Until the fix will be done and available on the repository, for the moment I "demodulized" amsart: I copied amsart.layout in ~/.lyx/layouts, then I removed the line DefaultModule theorems-ams and I inserted in its place the content of theorems-ams.module. Did I do it in the right way? I think so, because it works... ;-)) Fabio
Changing from \pmatrix to \matrix
I wrote a \pmatrix, then I changed my idea and I want a simple \matrix: is there a way to switch from the previous environment to the desired one without rewriting or copy/paste the matrix? I have not been able to do it, nor to find help on the docs... :-( Thanks a lot Fabio
Reverse search with xdvi
Hi all, I configured reverse search as explained in section 5.6.3 of the "Additional features manual". In particular, I setted Preferences->File Handling->File formats to xdvi -editor "lyxeditor.sh %f %l" and I created, as suggested, a lyxeditor.sh executable file in my $HOME/bin which contains #!/bin/sh LYXPIPE="$HOME/.lyx/lyxpipe" COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2" echo "$COMMAND" > "${LYXPIPE}".in || exit read < "${LYXPIPE}".out || exit Now, when I produce a dvi if I ctrl+click then every time I get in xdvi the following error message Command "lyxeditor.sh /tmp/lyx_tmpdir.MT4824/lyx_tmpbuf2/test.tex 1534" exited with error code 2 $HOME/bin/lyxeditor.sh: 5: read: arg count Nevertheless, I in the lyx source file I am correctly positioned in the intended line. So, all in all it works, but getting allways the error message is a bit annoying... Is there a fix to this? What is wrong in "lyxeditor.sh"? Please note that if I comment out the last line, I don't get the error any longer and it still works: so is the last line necessary? Thanks a lot F.
Re: Reverse search with xdvi
Anyway does changing the line read < "${LYXPIPE}".out || exit into read TMP < "${LYXPIPE}".out || exit work for you? Pavel Yes this works. Thanks. But is there any difference with regards to simply comment it? To answer your previous question: yes, there is a reason for I want to use named pipe. The reason is that I often edit tex files via vim and so my Xresource for xdvi.editor is setted to vim: using pipe I thought I could be able to use reverse search regardless of the way xdvi is invoked and indeed that seems the case to me, by the tests I did. Finally, I will collect all the necessary commands which work in my case for inverse/direct search, for reference just in case somebody else will need them since they are a little bit different from the ones listed in the documentation: xdvi: inverse search: Tools->Preferences->File Handling->File formats xdvi -editor "lyxeditor.sh %f %l" direct search: Tools->Preferences->Output->General xdvi -nofork -sourceposition "$$n $$t" $$o -editor "lyxeditor.sh %f %l" okular: inverse search: Tools->Preferences->File Handling->File formats okular --unique direct search: Tools->Preferences->Output->General okular --unique "$$o#src:$$n $$f" The executable lyxeditor.sh should contain #!/bin/sh LYXPIPE="$HOME/.lyx/lyxpipe" COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2" echo "$COMMAND" > "${LYXPIPE}".in || exit read TMP < "${LYXPIPE}".out || exit F.