Re: Why Lyx always adds additional columns in arrays when opening?--- A not bad solution
Dear Herbert, Thank you for your solution. Along with your solution, I obtained a solution to change massive arrays including vertical lines. Some suggestions regarding to vertical/horizontal lines in arrays are: 1. horizontal lines can be input in arrays directly with \hline at the first cell of the row, while lefting the vertical lines to be added later; 2. when the file is almost done, (or you are sure you will not modify the array any more), take the following steps to add vertical lines. Step 1: backup the lyx file and then open the *.lyx file in a common text editor; Step 2: find the arrays which vertical lines should be added; Step 3: add | into the alignment string, for example, ccc|c means vertical line lies between col. 3 and col. 4. Step 4: replace the \begin_inset Formula before the array as \latex latex; replace the \end_inset after the array as \latex default; This step can be done with search/replace function. So you will not feel too troublesome. 3. dashed lines can also be done in a similar way, but package arydshln should be used. When lyx re-open the file, the arrays will be displayed as latex code (red), when it is saved, \ is changed to \backslash. Hence, backing up the file before processing is recommended. I have also checked with multi-line equations, it works! Dekel Tsur [EMAIL PROTECTED]> told me that the math editor is currently being re-written, hope the lines will be supported soon. Best wishes, Qingchang Herbert Voss wrote: Qingchang Zhong wrote: > I cannot do so because I have many many matrices like this, some of them are 10x10! Please try to help me, I have spent too much time to solve this problem. > > Do you think this is a bug? yes and no, because lyx doesn't support this any more. so lets try to make it run. .. :-) here comes a part of your lyx-file: -- > \layout Standard > > \begin_inset Formula \( \left[ \begin{array}{c|c} > A 0\\ > \hline0 B > \end{array}\right] \) > \end_inset > > \the_end it's easy to find this formulas with any simple texteditor. search for c|c, so you find it anyway. now delete at first: \begin_inset Formula and than: \end_inset your lyx-text looks now \( \left[ \begin{array}{c|c} > A 0\\ > \hline0 B > \end{array}\right] \) so far so good. save the text and open it with lyx. the whole formula now appears as text in one line: \( \left[\begin{array}{cc|c}A 0 \\0 A \\\hline0 0 A\end{array}\right] \) mark this whole line with the mouse and hit the tex-button. now your text is okay, while the formula is real latex (in red). try it with a short file. hope this helps. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Why Lyx always adds additional columns in arrays when opening?--- A not bad solution
Dear Herbert, Thank you for your solution. Along with your solution, I obtained a solution to change massive arrays including vertical lines. Some suggestions regarding to vertical/horizontal lines in arrays are: 1. horizontal lines can be input in arrays directly with \hline at the first cell of the row, while lefting the vertical lines to be added later; 2. when the file is almost done, (or you are sure you will not modify the array any more), take the following steps to add vertical lines. Step 1: backup the lyx file and then open the *.lyx file in a common text editor; Step 2: find the arrays which vertical lines should be added; Step 3: add | into the alignment string, for example, ccc|c means vertical line lies between col. 3 and col. 4. Step 4: replace the \begin_inset Formula before the array as \latex latex; replace the \end_inset after the array as \latex default; This step can be done with search/replace function. So you will not feel too troublesome. 3. dashed lines can also be done in a similar way, but package arydshln should be used. When lyx re-open the file, the arrays will be displayed as latex code (red), when it is saved, \ is changed to \backslash. Hence, backing up the file before processing is recommended. I have also checked with multi-line equations, it works! Dekel Tsur [EMAIL PROTECTED]> told me that the math editor is currently being re-written, hope the lines will be supported soon. Best wishes, Qingchang Herbert Voss wrote: Qingchang Zhong wrote: > I cannot do so because I have many many matrices like this, some of them are 10x10! Please try to help me, I have spent too much time to solve this problem. > > Do you think this is a bug? yes and no, because lyx doesn't support this any more. so lets try to make it run. .. :-) here comes a part of your lyx-file: -- > \layout Standard > > \begin_inset Formula \( \left[ \begin{array}{c|c} > A 0\\ > \hline0 B > \end{array}\right] \) > \end_inset > > \the_end it's easy to find this formulas with any simple texteditor. search for c|c, so you find it anyway. now delete at first: \begin_inset Formula and than: \end_inset your lyx-text looks now \( \left[ \begin{array}{c|c} > A 0\\ > \hline0 B > \end{array}\right] \) so far so good. save the text and open it with lyx. the whole formula now appears as text in one line: \( \left[\begin{array}{cc|c}A 0 \\0 A \\\hline0 0 A\end{array}\right] \) mark this whole line with the mouse and hit the tex-button. now your text is okay, while the formula is real latex (in red). try it with a short file. hope this helps. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Re: Why Lyx always adds additional columns in arrays when opening?---> A not bad solution
Dear Herbert, Thank you for your solution. Along with your solution, I obtained a solution to change massive arrays including vertical lines. Some suggestions regarding to vertical/horizontal lines in arrays are: 1. horizontal lines can be input in arrays directly with \hline at the first cell of the row, while lefting the vertical lines to be added later; 2. when the file is almost done, (or you are sure you will not modify the array any more), take the following steps to add vertical lines. Step 1: backup the lyx file and then open the *.lyx file in a common text editor; Step 2: find the arrays which vertical lines should be added; Step 3: add | into the alignment string, for example, ccc|c means vertical line lies between col. 3 and col. 4. Step 4: replace the \begin_inset Formula before the array as \latex latex; replace the \end_inset after the array as \latex default; This step can be done with search/replace function. So you will not feel too troublesome. 3. dashed lines can also be done in a similar way, but package arydshln should be used. When lyx re-open the file, the arrays will be displayed as latex code (red), when it is saved, \ is changed to \backslash. Hence, backing up the file before processing is recommended. I have also checked with multi-line equations, it works! Dekel Tsur <[EMAIL PROTECTED]> told me that the math editor is currently being re-written, hope the lines will be supported soon. Best wishes, Qingchang Herbert Voss wrote: Qingchang Zhong wrote: > I cannot do so because I have many many matrices like this, some of them are 10x10! Please try to help me, I have spent too much time to solve this problem. > > Do you think this is a bug? yes and no, because lyx doesn't support this any more. so lets try to make it run. .. :-) here comes a part of your lyx-file: -- > \layout Standard > > \begin_inset Formula \( \left[ \begin{array}{c|c} > A & 0\\ > \hline0 & B > \end{array}\right] \) > \end_inset > > \the_end it's easy to find this formulas with any simple texteditor. search for c|c, so you find it anyway. now delete at first: \begin_inset Formula and than: \end_inset your lyx-text looks now \( \left[ \begin{array}{c|c} > A & 0\\ > \hline0 & B > \end{array}\right] \) so far so good. save the text and open it with lyx. the whole formula now appears as text in one line: \( \left[\begin{array}{cc|c}A & 0 & \\0 & A & \\\hline0 & 0 & A\end{array}\right] \) mark this whole line with the mouse and hit the tex-button. now your text is okay, while the formula is real latex (in red). try it with a short file. hope this helps. Herbert -- http://www.educat.hu-berlin.de/~voss/lyx/
Why Lyx always adds additional columns in arrays when opening?---A bug?
Hello, I have a problem with arrays in Lyx. Frequently, I need insert vertical and horizontal lines into arrays. For example, A 0 | 0 0 A | 0 0 0 | A The corresponding latex code is : \( \left[ \begin{array}{cc|c} A 0 0\\ 0 A 0\\ \hline 0 0 A \end{array}\right] \) I could do this on digital workstation (alpha) before, but now I changed to a new computer. When I open the file including such arrays, it always adds additional columns in the array like this: \( \left[ \begin{array}{cc|c} A 0 0 \\ 0 A 0 \\ \hline 0 0 A \end{array}\right] \) When compiling it, the following error: extra alignment has been changed to ... comes out and then it stops. I have tried many versions of Lyx, 1.0.1,1.0.4,1.1.5,1.1.6... all like this. Now I moved to PC, it still exists. I think it is because Lyx reads cc|c as four columns when opening the file but three columns (which it should be) when compiling. Please help me to solve this urgent problem. Thanks a lot, Qingchang
Why Lyx always adds additional columns in arrays when opening?---A bug?
Hello, I have a problem with arrays in Lyx. Frequently, I need insert vertical and horizontal lines into arrays. For example, A 0 | 0 0 A | 0 0 0 | A The corresponding latex code is : \( \left[ \begin{array}{cc|c} A 0 0\\ 0 A 0\\ \hline 0 0 A \end{array}\right] \) I could do this on digital workstation (alpha) before, but now I changed to a new computer. When I open the file including such arrays, it always adds additional columns in the array like this: \( \left[ \begin{array}{cc|c} A 0 0 \\ 0 A 0 \\ \hline 0 0 A \end{array}\right] \) When compiling it, the following error: extra alignment has been changed to ... comes out and then it stops. I have tried many versions of Lyx, 1.0.1,1.0.4,1.1.5,1.1.6... all like this. Now I moved to PC, it still exists. I think it is because Lyx reads cc|c as four columns when opening the file but three columns (which it should be) when compiling. Please help me to solve this urgent problem. Thanks a lot, Qingchang
Why Lyx always adds additional columns in arrays when opening?---A bug?
Hello, I have a problem with arrays in Lyx. Frequently, I need insert vertical and horizontal lines into arrays. For example, A 0 | 0 0 A | 0 0 0 | A The corresponding latex code is : \( \left[ \begin{array}{cc|c} A & 0 & 0\\ 0 & A & 0\\ \hline 0 & 0 & A \end{array}\right] \) I could do this on digital workstation (alpha) before, but now I changed to a new computer. When I open the file including such arrays, it always adds additional columns in the array like this: \( \left[ \begin{array}{cc|c} A & 0 & 0 & \\ 0 & A & 0 & \\ \hline 0 & 0 & A \end{array}\right] \) When compiling it, the following error: extra alignment has been changed to ... comes out and then it stops. I have tried many versions of Lyx, 1.0.1,1.0.4,1.1.5,1.1.6... all like this. Now I moved to PC, it still exists. I think it is because Lyx reads cc|c as four columns when opening the file but three columns (which it should be) when compiling. Please help me to solve this urgent problem. Thanks a lot, Qingchang
[Fwd: Install 1.0.1/1.0.4 on Sun Solaris 2.7(?)]
Dear all, I have been using lyx 1.0.1/1.0.4 for more than one year. Recently, I had many problems with installation. I am not sure if I can work with 1.1.6 without any problem. If not, I'd better install 1.0.1 or 1.0.4. Before I was working on Digital Unix. Now I changed to Sun Solaris, probably ver 2.7. Since I am not familiar with UNIX, I have no idea to install lyx on it. I tried many times according to the INSTALL file, but failed. Some useful info/processes are attached below. 1. Some enviroments of the host: SHELL=/bin/csh HOSTTYPE=sun4 OSTYPE=solaris TERM=xterm ... CPLUS_INCLUDE_PATH=/ee/h1/local/kde/include:/ee/h1/local/qt/include:/ee/h1/local/include:/ee/h1/local/sparc-sun-solaris2.7/include:/usr/include 2. The configuring log: Command: ../configure --prefix=/ee/r0/users/contpow/zqc/bin/lyx --with-extra-lib=/ee/r0/users/contpow/zqc/bin/lib --with-extra-inc=/ee/r0/users/contpow/zqc/bin/xforms/FORMS:/ee/r0/users/contpow/zqc/bin/xpm-3.4g Log: creating cache ./config.cache configuring LyX version 1.0.1 checking whether make sets ${MAKE}... yes checking for a BSD compatible install... ../config/install-sh -c checking for a working C++ compiler... g++ checking whether the C++ compiler (g++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for sin in -lm... yes checking for fopen in -lc... yes checking for AIX... no checking for HP-UX... no checking for SunOS 4.x... no checking for SCO 3.2v4... no checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for POSIXized ISC... no checking size of void *... 4 checking size of int... 4 checking for gcc strength-reduce bug... no checking whether the C++ compiler understands explicit... yes The configuration is successfully completed. 3. Make: .. make[1]: Entering directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src' g++ -c -g -O2 -I. -I../../src -I../../images -I/ee/r0/users/contpow/zqc/bin/xforms/FORMS -I/ee/r0/users/contpow/zqc/bin/xpm-3.4g -I/ee/r0/users/contpow/zqc/bin/lyx/include -I/usr/openwin/include -DPACKAGE=\"lyx\" -DLOCALEDIR=\"/usr/local/share/locale\" ../../src/main.C In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:968, from ../../src/main.C:12: /usr/openwin/include/X11/Xlib.h:2099: ANSI C++ forbids declaration `XSetTransientForHint' with no type /usr/openwin/include/X11/Xlib.h:2107: ANSI C++ forbids declaration `XActivateScreenSaver' with no type /usr/openwin/include/X11/Xlib.h:2114: ANSI C++ forbids declaration `XAddHost' with no type /usr/openwin/include/X11/Xlib.h:2122: ANSI C++ forbids declaration `XAddHosts' with no type /usr/openwin/include/X11/Xlib.h:2129: ANSI C++ forbids declaration `XAddToExtensionList' with no type /usr/openwin/include/X11/Xlib.h:2136: ANSI C++ forbids declaration `XAddToSaveSet' with no type /usr/openwin/include/X11/Xlib.h:2190: ANSI C++ forbids declaration `XAllowEvents' with no type /usr/openwin/include/X11/Xlib.h:2196: ANSI C++ forbids declaration `XAutoRepeatOff' with no type . /usr/openwin/include/X11/Xutil.h:879: ANSI C++ forbids declaration `XUnionRegion' with no type /usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration `XXorRegion' with no type In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:972, from ../../src/main.C:12: /usr/openwin/include/X11/Xresource.h:249: ANSI C++ forbids declaration `XrmQGetResource' with no type make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src' make: *** [all] Error 1 It stops then. It seems there are some problem with the compiler. Is it right? How to solve it? Thank you in advance, Q. Zhong
[Fwd: Install 1.0.1/1.0.4 on Sun Solaris 2.7(?)]
Dear all, I have been using lyx 1.0.1/1.0.4 for more than one year. Recently, I had many problems with installation. I am not sure if I can work with 1.1.6 without any problem. If not, I'd better install 1.0.1 or 1.0.4. Before I was working on Digital Unix. Now I changed to Sun Solaris, probably ver 2.7. Since I am not familiar with UNIX, I have no idea to install lyx on it. I tried many times according to the INSTALL file, but failed. Some useful info/processes are attached below. 1. Some enviroments of the host: SHELL=/bin/csh HOSTTYPE=sun4 OSTYPE=solaris TERM=xterm ... CPLUS_INCLUDE_PATH=/ee/h1/local/kde/include:/ee/h1/local/qt/include:/ee/h1/local/include:/ee/h1/local/sparc-sun-solaris2.7/include:/usr/include 2. The configuring log: Command: ../configure --prefix=/ee/r0/users/contpow/zqc/bin/lyx --with-extra-lib=/ee/r0/users/contpow/zqc/bin/lib --with-extra-inc=/ee/r0/users/contpow/zqc/bin/xforms/FORMS:/ee/r0/users/contpow/zqc/bin/xpm-3.4g Log: creating cache ./config.cache configuring LyX version 1.0.1 checking whether make sets ${MAKE}... yes checking for a BSD compatible install... ../config/install-sh -c checking for a working C++ compiler... g++ checking whether the C++ compiler (g++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for sin in -lm... yes checking for fopen in -lc... yes checking for AIX... no checking for HP-UX... no checking for SunOS 4.x... no checking for SCO 3.2v4... no checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for POSIXized ISC... no checking size of void *... 4 checking size of int... 4 checking for gcc strength-reduce bug... no checking whether the C++ compiler understands explicit... yes The configuration is successfully completed. 3. Make: .. make[1]: Entering directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src' g++ -c -g -O2 -I. -I../../src -I../../images -I/ee/r0/users/contpow/zqc/bin/xforms/FORMS -I/ee/r0/users/contpow/zqc/bin/xpm-3.4g -I/ee/r0/users/contpow/zqc/bin/lyx/include -I/usr/openwin/include -DPACKAGE=\"lyx\" -DLOCALEDIR=\"/usr/local/share/locale\" ../../src/main.C In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:968, from ../../src/main.C:12: /usr/openwin/include/X11/Xlib.h:2099: ANSI C++ forbids declaration `XSetTransientForHint' with no type /usr/openwin/include/X11/Xlib.h:2107: ANSI C++ forbids declaration `XActivateScreenSaver' with no type /usr/openwin/include/X11/Xlib.h:2114: ANSI C++ forbids declaration `XAddHost' with no type /usr/openwin/include/X11/Xlib.h:2122: ANSI C++ forbids declaration `XAddHosts' with no type /usr/openwin/include/X11/Xlib.h:2129: ANSI C++ forbids declaration `XAddToExtensionList' with no type /usr/openwin/include/X11/Xlib.h:2136: ANSI C++ forbids declaration `XAddToSaveSet' with no type /usr/openwin/include/X11/Xlib.h:2190: ANSI C++ forbids declaration `XAllowEvents' with no type /usr/openwin/include/X11/Xlib.h:2196: ANSI C++ forbids declaration `XAutoRepeatOff' with no type . /usr/openwin/include/X11/Xutil.h:879: ANSI C++ forbids declaration `XUnionRegion' with no type /usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration `XXorRegion' with no type In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:972, from ../../src/main.C:12: /usr/openwin/include/X11/Xresource.h:249: ANSI C++ forbids declaration `XrmQGetResource' with no type make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src' make: *** [all] Error 1 It stops then. It seems there are some problem with the compiler. Is it right? How to solve it? Thank you in advance, Q. Zhong
[Fwd: Install 1.0.1/1.0.4 on Sun Solaris 2.7(?)]
Dear all, I have been using lyx 1.0.1/1.0.4 for more than one year. Recently, I had many problems with installation. I am not sure if I can work with 1.1.6 without any problem. If not, I'd better install 1.0.1 or 1.0.4. Before I was working on Digital Unix. Now I changed to Sun Solaris, probably ver 2.7. Since I am not familiar with UNIX, I have no idea to install lyx on it. I tried many times according to the INSTALL file, but failed. Some useful info/processes are attached below. 1. Some enviroments of the host: SHELL=/bin/csh HOSTTYPE=sun4 OSTYPE=solaris TERM=xterm ... CPLUS_INCLUDE_PATH=/ee/h1/local/kde/include:/ee/h1/local/qt/include:/ee/h1/local/include:/ee/h1/local/sparc-sun-solaris2.7/include:/usr/include 2. The configuring log: Command: ../configure --prefix=/ee/r0/users/contpow/zqc/bin/lyx --with-extra-lib=/ee/r0/users/contpow/zqc/bin/lib --with-extra-inc=/ee/r0/users/contpow/zqc/bin/xforms/FORMS:/ee/r0/users/contpow/zqc/bin/xpm-3.4g Log: creating cache ./config.cache configuring LyX version 1.0.1 checking whether make sets ${MAKE}... yes checking for a BSD compatible install... ../config/install-sh -c checking for a working C++ compiler... g++ checking whether the C++ compiler (g++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for sin in -lm... yes checking for fopen in -lc... yes checking for AIX... no checking for HP-UX... no checking for SunOS 4.x... no checking for SCO 3.2v4... no checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for POSIXized ISC... no checking size of void *... 4 checking size of int... 4 checking for gcc strength-reduce bug... no checking whether the C++ compiler understands explicit... yes The configuration is successfully completed. 3. Make: .. make[1]: Entering directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src' g++ -c -g -O2 -I. -I../../src -I../../images -I/ee/r0/users/contpow/zqc/bin/xforms/FORMS -I/ee/r0/users/contpow/zqc/bin/xpm-3.4g -I/ee/r0/users/contpow/zqc/bin/lyx/include -I/usr/openwin/include -DPACKAGE=\"lyx\" -DLOCALEDIR=\"/usr/local/share/locale\" ../../src/main.C In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:968, from ../../src/main.C:12: /usr/openwin/include/X11/Xlib.h:2099: ANSI C++ forbids declaration `XSetTransientForHint' with no type /usr/openwin/include/X11/Xlib.h:2107: ANSI C++ forbids declaration `XActivateScreenSaver' with no type /usr/openwin/include/X11/Xlib.h:2114: ANSI C++ forbids declaration `XAddHost' with no type /usr/openwin/include/X11/Xlib.h:2122: ANSI C++ forbids declaration `XAddHosts' with no type /usr/openwin/include/X11/Xlib.h:2129: ANSI C++ forbids declaration `XAddToExtensionList' with no type /usr/openwin/include/X11/Xlib.h:2136: ANSI C++ forbids declaration `XAddToSaveSet' with no type /usr/openwin/include/X11/Xlib.h:2190: ANSI C++ forbids declaration `XAllowEvents' with no type /usr/openwin/include/X11/Xlib.h:2196: ANSI C++ forbids declaration `XAutoRepeatOff' with no type . /usr/openwin/include/X11/Xutil.h:879: ANSI C++ forbids declaration `XUnionRegion' with no type /usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration `XXorRegion' with no type In file included from /ee/r0/users/contpow/zqc/bin/xforms/FORMS/forms.h:972, from ../../src/main.C:12: /usr/openwin/include/X11/Xresource.h:249: ANSI C++ forbids declaration `XrmQGetResource' with no type make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/ee/r0/users/contpow/zqc/bin/lyx-1.0.1/src/src' make: *** [all] Error 1 It stops then. It seems there are some problem with the compiler. Is it right? How to solve it? Thank you in advance, Q. Zhong