About bug in 1.6.5

2010-05-12 Thread Wei-Dong Lian
hi everyone,

My system is kubuntu 10.04, my lyx 1.65 was installed from  the apt-get
install lyx in kubuntu's defaut sourcelist. At beginning, it worked well,
but recently when invoke insert float figure and table, it will close down
automatically, before it also arrived.
Is there anyone who has experienced this problem, any solution will be
appreciated.

weidong


about the improvement plan of the lyx graphical interface

2010-11-04 Thread Wei-Dong Lian
hi everyone,
there is no doubt that at present lyx is really more stable and easy-to-use.
Thanks again for the developer of lyx. And I am wondering if there exists
the plan or the idea to improve the editor of lyx. I think, just a short
advice, if the editor of lyx could be somewhat like emacs, we
could customize the highlight of the keyword, with several kinds of colors,
it will be convenient and very clear for editing and organizing the article.
I am ill-informed, there may exist the proper manner to improve the editor
configuration. Any suggestion will be appreciated.
Thanks for your attention,
weidong


about the forward and backward LaTeX synctex search

2011-03-11 Thread Wei-Dong Lian
hi everyone,
I am using the lyx200rc1, great changes have made. it is very convenient to
support Chinese language. Thanks again for the lyx-team.
For the forward search, it is very easy with Evince in ubuntu and lyx200,
but the backward search is very hard.
It seems we can find the evince and gedit marriage to implement this
functionality, but lyx I can find a solution to do this.
I can succeed to do this by okular, very perfect. But okular is a kde
program, i prefer to work in gnome. i do not like to
install a kde package in my computer. So does anyone experienced the same
problem as me?
Any suggestion will be appreciated.

Thanks in advance,
weidog


increment search in lyx

2011-03-11 Thread Wei-Dong Lian
hi everyone,

I suppered a request for a increment search in lyx for a long time. Perhaps,
it is a foolish question, the concept of lyx is not to design a software
like emacs.
I am really looking forward to seeing this functionality in lyx. I have
remapping my shortcut in lyx to simulate the same shortcut in emacs, of
course, just concerning the basic edit and cursor moving related shortcuts.
I can not endure the absence of increment search. The increment search can
be considered as a sharp weapon to move the cursor in the whole document, or
you just want to move the cursor to a certain line in current screen. Yes,
we can move the cursor by C-n, C-p, C-f,C-b,M-f,M-b. It is not accurate. One
needs to move several times to reach the destination point. Right? Or, if
you have a good solution, please inform me. So I wonder if the increment
search will be taken into account for the future development.

Thanks a lot for your attention,
weidong


about the shortcuts

2011-05-20 Thread Wei-Dong Lian
hi everyone,

In the "insert cross-reference" dialog, the listbox that lists all
the selectable items does not have a shortcut, the others components in the
dialog own a shortcut for example "alt+t, o, a, e, b" etc. Does anyone know
the shortcut for the listbox? I do not like using the mouse each time to
insert a cross reference. after a filter operation in that dialog, i would
like to switch back to the listbox to select the item i want to reference.
Any suggestion will be welcome.
thanks in advance,
weidong


what is the productivity of lyx

2011-06-28 Thread Wei-Dong Lian
Hi everyone,

Thanks a lot for the contribution work by lyx team. I have written my thesis
and articles in lyx for a long time. I found it the best frontend of latex,
for tables and equations. This is the advantage of lyx, and also lyx is
an integrated IDE environment not like autex in emacs, everything should be
configured by yourself.

Sometimes, when I write equations and tables, I really enjoy the input in
lyx, cause I could input all frequently-used math symbols by shortcuts, I
also changed the prefix of math shortcut, it is very convenient. This
is great. I reconfigure the shortcuts, I nearly drop off my mouse. Still, I
need to use mouse for 5% input in lyx.

However, when I want to refer to labels and citations, each time, a dialog
pops up and I need to select some items and finish it, even with dialog
shortcuts (e.g. Alt+a,b,c,f,g,e,h), it is a bit boring. When inserting a
figure or table, one also needs to finish the pop-up dialog. They really
affects the productivity of writing.

What do you think about it?

I have some suggestions, for example,

1. can we define some templates such that one can insert figure floats with
one graphics or two graphics, or four graphics, and these styles have been
set as we defined a priori.
2. as for inserting label references or citations, other than answering a
popup dialog, can we consider some GUI style like ido (e.g. ido in emacs)?
it will indicates us some items to select, not a dialog, we can directly
type something to filter these items and select one item by a confirm
shortcut, just like ido-find-file in emacs. it might be continent.
Indeed, each time, we do not need to change the style for each item. In most
cases, for the popup dialog in lyx, I just select the essential information
and then confirm it.

What about your ideas?

Sincerely,

-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: weidong.l...@gmail.com

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe "Structure et Simulation"
B.P. 92101
44321 Nantes cedex 3
FRANCE


about the ESC key

2011-08-23 Thread Wei-Dong Lian
Hello everyone,

I have a small question. The short-key I defined in the
Tools/Preference/Editing/Shortcus does not work in Dialog (e.g. Toc Dialog,
Citation Dialog or other dialogs). Is it possible to leave the self-defined
shortcuts still work in dialogs. Maybe it is a bit tricky, maybe adding a
new key mapping in the base dialog class of all dialogs.
Actually, I just want to use Ctrl+g as Esc to cancel the pop dialog, but
always I need to hit the Esc (very far from the keyboard center).

Any suggestion will be appreciated.
Thanks in advance,

WD


Master/Child---What exactly is inherited?

2011-10-11 Thread Wei-Dong Lian
hi everyone,

I was confused about the document settings between master and child. I
learnt from
http://comments.gmane.org/gmane.editors.lyx.general/68593
that "However, when compiling the master, the child document will be
included without preamble, i.e. the master settings are used for
the complete document."

Curiously, I found that the figure placement settings (i.e.
Document->Settings->Float Placement) in child document did make effects.
This is boring. Each time, if i want to change this settings. I need to
update the settings in all the documents. Why not suppress this settings in
child document?

What exactly is inherited from the child document settings??
Any suggestion or related experience will be appreciated.

Thanks in advance,
wd


About the tikz/pgf in lyx

2011-10-18 Thread Wei-Dong Lian
hi everyone,

I am adapting the tikz figures into lyx. I can generate tikz codes in
a separated file, name with *.tikz.
The idea is to generate tikz codes for drawing in each file but control
their styles globally. The line width, font size, colors or other styles
will be consistent throughout the whole document. Even if in several
generated tikz files you want special style, you can just modify that file
and suppress the global style options.

Now if in latex, we can replace 'includegraphics' with 'input' in the
following tex code. it works well.
***
\begin{figure}[h]
  \centering
  \includegraphics{}
  \caption{caption}
  \label{"waiting for reftex-label call..."}
\end{figure}
***
But in lyx, we need to add ERT code 'input{*.tikz}' for each figure. This is
not consistent with the Insert Graphics of Lyx. So I want still use the
Insert Graphics in lyx to treat tikz as a image file as *.eps, *.png.

I wonder if we could redefine the \includegraphics{*.tikz} to input{*.tikz}
for the specific extension file, Or  from the FileFormat Settings for tikz
in the preference dialog, does it exist some possible solutions for tikz?
I know that we can define a converter of tikz to pdf in the preference
dialog settings, then tikz can be viewed as a ordinary graphics file.
However, in beamer presentation, we can not define the animation operations.
So still I expect lyx can treat .tikz as tex code but with a manner more
elegant.

Any other experiences about the usage of tikz in lyx will also
be appreciated.

Thanks in advance,
weidong


Tex Code for a specific class type

2011-10-18 Thread Wei-Dong Lian
Hello,

I have a small problem in using the pgf codes. In beamer, I need to define
some animations operations, examples \only<1->{pgf code}. However, for my
article document, I do not want to invoke the animation operations codes. I
wonder if we can determine the document type, if it is beamer, then include
the animations codes, otherwise suppress these codes. As such, the pgf codes
are applicable to both beamer and article document type. Otherwise, one will
maintain two versions of the same file. It is a bit ugly.
Does someone know how to determine the current document type to suppress
some unrelated codes for a certain document type.

Thanks,
wd


Re: Tex Code for a specific class type

2011-10-18 Thread Wei-Dong Lian
hi,

Yes, you were right. I did not use beamer article but the ordinary article
and elesvier article. Then I got error message.

wd

On Tue, Oct 18, 2011 at 8:41 PM, Liviu Andronic wrote:

> On Tue, Oct 18, 2011 at 7:18 PM, Wei-Dong Lian 
> wrote:
> > Hello,
> > I have a small problem in using the pgf codes. In beamer, I need to
> define
> > some animations operations, examples \only<1->{pgf code}. However, for my
> > article document, I do not want to invoke the animation operations codes.
> I
> > wonder if we can determine the document type, if it is beamer, then
> include
> > the animations codes, otherwise suppress these codes. As such, the pgf
> codes
> > are applicable to both beamer and article document type. Otherwise, one
> will
> > maintain two versions of the same file. It is a bit ugly.
> >
> I'm not sure if you do so already. Have you tried switching from
> beamer (presentation) to beamer (article)? I would assume that the
> beamer version of 'article' would take care of such animations.
>
> Regards
> Liviu
>
>
> > Does someone know how to determine the current document type to suppress
> > some unrelated codes for a certain document type.
> > Thanks,
> > wd
>
>
>
> --
> 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
>



-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: weidong.l...@gmail.com

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe "Structure et Simulation"
B.P. 92101
44321 Nantes cedex 3
FRANCE


Re: Tex Code for a specific class type

2011-10-18 Thread Wei-Dong Lian
hi Richard,

Thanks a lot for your suggestion. The problem is that my pgf codes are
generated in several external files. In this case, the branch can not be
used, since I assume that branch is controlled by lyx not implemented by Tex
code. I can employ the branch in my external files.

weidong

On Tue, Oct 18, 2011 at 7:57 PM, Richard Heck  wrote:

> On 10/18/2011 01:18 PM, Wei-Dong Lian wrote:
> > Hello,
> >
> > I have a small problem in using the pgf codes. In beamer, I need to
> > define some animations operations, examples \only<1->{pgf code}.
> > However, for my article document, I do not want to invoke the
> > animation operations codes. I wonder if we can determine the document
> > type, if it is beamer, then include the animations codes, otherwise
> > suppress these codes. As such, the pgf codes are applicable to both
> > beamer and article document type. Otherwise, one will maintain two
> > versions of the same file. It is a bit ugly.
> > Does someone know how to determine the current document type to
> > suppress some unrelated codes for a certain document type.
> >
> You can't do this without using more TeX code. In TeX code, you can test
> for some macro that is only defined in one of the two classes.
>
> In LyX, though, you could instead use branches.
>
> Richard
>
>


-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: weidong.l...@gmail.com

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe "Structure et Simulation"
B.P. 92101
44321 Nantes cedex 3
FRANCE


launching pdflatex for two times

2011-10-23 Thread Wei-Dong Lian
hi everyone,

I am trying the tikz/pgf for the flying-arrows, see
http://www.texample.net/tikz/examples/beamer-arrows/

The question is I need to invoke pdflatex two times. I have tried if I did
it by pdflatex main.tex; pdflatex main.tex two times.
It worked well. How can we launch pdflatex for two times when compling lyx
to pdf?

Thanks.

Weidong


about the figure in lyx

2011-10-23 Thread Wei-Dong Lian
hello,

I am including a figure in lyx through ERT command, e.g.
\includegraphics[width=0.2\columnwidth]{1_5_part_orignal_model_L10240X10240_R20_alternative.eps};

The problem was that the converted pdf file was not in the current path, but
the lyx cache path i.e. /tmp/x.
Thus, I got a error that

! Package pdftex.def Error: File
`1_5_part_orignal_model_L10240X10240_R20_alter

native-eps-converted-to.pdf' not found.


How to deal with this problem?


Thanks for your suggestion.

weidong


Re: about the figure in lyx

2011-10-23 Thread Wei-Dong Lian
Hi,

Includegraphics is written in separated file of tikz codes. Of course,
Insert->Graphics works perfectly.

Weidong

On Sun, Oct 23, 2011 at 6:54 PM, Liviu Andronic wrote:

> On Sun, Oct 23, 2011 at 6:32 PM, Wei-Dong Lian 
> wrote:
> > hello,
> > I am including a figure in lyx through ERT command, e.g.
> >
> \includegraphics[width=0.2\columnwidth]{1_5_part_orignal_model_L10240X10240_R20_alternative.eps};
> >
> Have you tried using Insert > Graphics?
>
> Liviu
>
>
> > The problem was that the converted pdf file was not in the current path,
> but
> > the lyx cache path i.e. /tmp/x.
> > Thus, I got a error that
> >
> > ! Package pdftex.def Error: File
> > `1_5_part_orignal_model_L10240X10240_R20_alter
> >
> > native-eps-converted-to.pdf' not found.
> >
> > How to deal with this problem?
> >
> > Thanks for your suggestion.
> >
> > weidong
>
>
>
> --
> 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
>



-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: weidong.l...@gmail.com

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe "Structure et Simulation"
B.P. 92101
44321 Nantes cedex 3
FRANCE


Badly needly for lyx 1.6.4 under ubuntu 8.04

2010-03-29 Thread Wei-Dong Lian
Hi everyone,

I would like to know if there is a solution to install lyx 1.64 or
even higher version under ubuntu 8.04.
By default, lyx 1.5.3 is installed in ubuntu 8.04, to be honest, I began
with lyx1.6.4, so now all of my old lyx documents could not be opened. In
addition, in the new version of lyx after 1.64 they really added more useful
features, easy to use. So if any suggestion will be appreciated.

ECN
Weidong


Re: Badly needly for lyx 1.6.4 under ubuntu 8.04

2010-03-29 Thread Wei-Dong Lian
On Mon, Mar 29, 2010 at 8:27 PM, rgheck  wrote:

> On 03/29/2010 02:17 PM, Wei-Dong Lian wrote:
>
>> Hi everyone,
>>
>> I would like to know if there is a solution to install lyx 1.64 or
>> even higher version under ubuntu 8.04.
>> By default, lyx 1.5.3 is installed in ubuntu 8.04, to be honest, I began
>> with lyx1.6.4, so now all of my old lyx documents could not be opened. In
>> addition, in the new version of lyx after 1.64 they really added more
>> useful
>> features, easy to use. So if any suggestion will be appreciated.
>>
>>
>>
> I assume you could compile 1.6.4 yourself? This is not that hard to do, as
> long as you can install the various dependencies.
>
> rh
>
>

Thanks for your suggestions, I am afraid it is not that easy to install
these various dependencies.
It is more complex, I need to install many packages and remove many packages
to satisfy the decencies between packages.
I added one source list of lyx 1.64 of ubuntu9.10 to my source list,  and I
tried the command 'sudo aptitude install lyx', it got several solutions to
install lyx 1.64, but it seemed that I will remove nearly all of packages in
my ubuntu 8.04 and install new packages. so I did not dare to try that, it
may harm my current system. If someone had experienced a successful case
like this, please give me some suggestions, thanks in advance. And also any
other solution will be welcomed.
weidong


Re: Compiling LyX on Ubuntu/Debian (was Badly needly for lyx 1.6.4 under ubuntu 8.04)

2010-03-30 Thread Wei-Dong Lian
Hi Alan,
Thanks lot, I am really grateful to inform you that the way you mentioned
below really worked well. It worked in my computer ubuntu 8.04 LTS, except a
problem of Latex style and layout problem. I think it is a slight one, I
could install it.
Thanks again for your detailed instructions.
Weidong LIAN

On Tue, Mar 30, 2010 at 2:38 AM, Typhoon  wrote:

> On Mon, 29 Mar 2010 20:17:25 +0200
> Wei-Dong Lian  wrote:
>
> > Hi everyone,
> >
> > I would like to know if there is a solution to install lyx 1.64 or
> > even higher version under ubuntu 8.04.
> 
> > ECN
> > Weidong
>
> Hello Weidong,
> Here is a short Howto that I wrote for compiling LyX and using GNU Stow
> to keep it out of the way of your existing LyX installation.
>
> -
>
> ===
>  Compiling LyX on Ubuntu or Debian
> ===
>
> 
>  And using GNU Stow
> 
>
> Getting the tools
> =
>
> 1. y...@yourmachine:~$ sudo apt-get build-dep lyx
> 2. y...@yourmachine:~$ sudo apt-get install stow
> 3. y...@yourmachine:~$ sudo apt-get install automake
> 4. y...@yourmachine:~$ sudo atp-get install autoconf
>
>
> This should get most or all of what you need. There may be a
> substantial download if you have no building tools already installed.
>
> Getting LyX
> ===
>
> You want the "source code".
>
> Download the source tarball from  http://www.lyx.org/Download. The
> downloaded file will be named lyx-1.6.5.tar.gz.
>
> Local directory
> ===
>
> 1. y...@yourmachine:~$ mkdir local
> 2. y...@yourmachine:~$ mv lyx-1.6.5.tar.gz ./local
>   (Note: the tarball may be downloaded to some special directory,
>   usually either Desktop or Downloads. You may need to adjust the
>   above command line accordingly)
> 3. y...@yourmachine:~$ cd local
> 4. y...@yourmachine:~$ tar xovzf lyx-1.6.5.tar.gz
>   This will create a new sub-directory under ~/local and will unpack
>   the source files for lyx.
> 4. y...@yourmachine:~$ cd lyx-1.6.5
>
> Compiling
> =
>
> 1. y...@yourmachine:~$ ./autogen.sh
>   Check the output - if it says something is missing, then use
>   apt-get to install it.
> 2. y...@yourmachine:~$ ./configure --with-version-suffix=165
>   We give it a different suffix so that it doesn't conflict with your
>   existing LyX installation. You can use both the new version and the
>   previously installed version.
>
>   Check the output - if it says something is missing, then install
>   using apt-get. Repeat items 1 and 2.
> 3. y...@yourmachine:~$ make
>   Depending on your machine, this may take some time. If there is an
>   error, then read the output. You probably need to use apt-get to
>   install some new piece of software.
> 4. y...@yourmachine:~$ sudo make install prefix=/usr/local/stow/lyx165
> 5. y...@yourmachine:~$ cd /usr/local/stow
> 6. y...@yourmachine:~$ sudo stow lyx165
>
> Running the new version
> ===
>
> y...@yourmachine:~$ lyx165
>
> You can also make a "launcher" for the new version by right clicking
> on the panel. The command should be /usr/local/bin/lyx165.
>
> You can also run your old LyX version using the simple command:
>
> y...@yourmachine:~$ lyx
>
> In a launcher, the command /usr/local/bin/lyx will run the old version.
>
>
>
> Please let me know if there is any problem with any of the steps here.
> Cheers,
> Alan
>
>
>
>
> --
> Alan L Tyreehttp://www2.austlii.edu.au/~alan
> Tel:  04 2748 6206
>
>