Re: moving to linux...part3: preferred bibtex editor: Zotero

2007-06-15 Thread hzluo

Is there maybe someone here in lyx community
who has the knowledge and is interested to
make that work (and probably many scientists happy)?


If it can put a format like \cite{...} to clipboard,
I have a patch to make lyx paste such kind of strings
as a citation. It's not identical as the push, but I
prefers this way more.

If you need I can give you my patch. But you have to
patch the source code and compile your own version.
You can also find the patch at lyx-devel list.

Hangzai


Re: How to build LyX on Windows

2007-06-13 Thread hzluo

I got the SVN to compile fine with the instructions, but after
copying the .exe
over lyxc.exe of a completed 1.4.4 install, a dialog appears

"Runtime Error R6034,
An application has made an attempt to load the C runtime library 
incorrectly.

Please contact the application's support team for more information."


In the installer you used to install LyX 1.4.4 "lyxc.exe" is the real 
lyx.exe while the "lyx.exe" there is a wrapper for the lyxc.exe. 
Confusing? - indeed.

You can reinstall LyX 1.4.4 using this installer:
http://wiki.lyx.org/Windows/LyXWinInstaller

Then you can simply replace the lyx.exe with the one you compiled.

regards Uwe


I know this problem. The solution is pretty, strange.
I mean strange, because it's one of the M$ disgusting thing...
And it can't be solved even you install 1.5rc1 and replace the
lyx.exe and tex2lyx.exe with the one you just compiled.

The root of this problem is that the LyX installer ships with an
old version of c++ lib (msvcr80.dll and msvcp80.dll). However,
the VC++ 2005 express edition with SP1 has newer version of the
two libraries. So, if lyx is compiled as recommended
in INSTALL.Win32, the lyx.exe and tex2lyx.exe ask for newer version
of DLLs, and M$ refuses to link them with older version of DLLs
that is shiped with the installer (either for 1.4.x and 1.5).
So, if you just replace the .exe files, it won't run at all.
You must replace the DLLs as well, with the newer version.

How to find the newer version of DLLs? It's another M$
disgusting thing... M$ install them in the system dir,
and managed by the compatibility patch component.
So, if you search the Windows dir, you will find
several copies of the same name (msvcr80.dll and msvcp80.dll).
You must select the correct ones, and copy them out
to overwrite the ones in your LyX bin dir.

You think your install will work with above two steps?
No! We have another M$ disgusting thing to prevent it
from excuting.
Please check your LyX bin dir, you will find several
DLLs other than the two M$ disgusting DLLs. Most of
them are linked with older version of the two M$
DLLs. If you replace the M$ DLLs with newer version,
they won't be loaded. But lyx.exe needs some of them.
So, lyx.exe still can't run. You have to use the verion
of these DLLs linking with the newer version of M$ DLLs.
Lucky you can find them in the LyX devel dir tree, if
you properly compiled out the lyx.exe and tex2lyx.exe.
Use these files to replace the ones in LyX bin dir.

OK. Until now you may successfully run lyx.exe.
I mean "may" because you may also fail due to
other M$ disgusting things... And, more importantly,
you have to replace the Resources dir with the one you
just build from the lyx source code. Or else lyx.exe
may behave strange. You need to do this even if you
install 1.5rc1 and replace the .exe with your built one.
Because some scripts are changed frequently.

OK, so far I have a suggestion to the installer.
May we ship with newer version of M$ DLLs?
It costed me two whole days to find the problem
and figure out the solution... If we ship with
newer version of the two DLLs, we may have less
chance to meet this problem.

Finally, I really hate the disgusting M$
compatibility patch mechanism. It causes
much more problem than it can resulve...

Regards,
Hangzai


Re: Thesis templates needed

2007-06-12 Thread hzluo

If you are interested, please visit my homepage
and download my thesis template:

http://webpages.uncc.edu/~hluo/

The thesis is written entirely in LyX.
The template is made to adapt to LyX
in some extent. I also included a
brief introduction of how to use
this template in LyX.

Hangzai.


Re: math toolbar usability suggestion (tiny)

2007-06-08 Thread hzluo

I am not sure I understand. Do the labels appear under the icons? Do
we support that?

JMarc


Current install version do not have an icon for functions popup.

I think the patch is on the way.
We now have a functions.xpm for that button.
So you will have a 20x20 button instead of a long string.

BTW, I think the provided functions.xpm is not
so informative. I made another one.
Please see attached. If anyone wants to test
it, just put it in images\math
I have tested it at normal size and large size.
It looks good at both size.

Hangzai

functions.xpm
Description: Binary data


Re: Fully contained lyx + miktex distribution!

2007-05-21 Thread hzluo

I know LyxWinInstaller but it isn't what I want. I want to install
everything on 100 computers by unzipping a file (which contains a single
folder) or copying over the network.
As I wrote this is not possible. I have on my todo list to change my 
installer

so that it can be run
silently because this was requested by some University computer pool guys. 
But

I currently focused
my work to help to get LyX 1.5.0 ready and the silent installer became much
more complicated than I
thought. Our compuert gusy pointed me to problematics that were completely 
new

for me, so I postponed this.


This is very useful for administrators who need to install tens or hundreds 
of
computers. I have my own script to install MiKTeX, LyX, and needed bundle 
such
as ASpell. MiKTeX has a nice property that it can be split to two part, one 
in
program dir and one in config dir, then a init executable can be called to 
init
a full functional MiKTeX. So my script can easily install MiKTeX: extract 
two
files to appropriate dir, and run the init exe. For LyX things are a little 
bit

more complex. Because we generally have a customized configure for LyX, like
toolbars, tools dir, etc. So What I do is save a copy of the user configure
dir tree of LyX. The bad thing is that now LyX and bundled softwares must be
installed in fixed dir. It has no problem for me most of the time. In very
rare cases it may be a problem.

So, based on my observation, I suggest just pack all LyX into a zip is good
enough. Administrators must customize their installation no matther how well
your silient installation is. If possible, provides a better init executable
than current configure.py.

Hangzai