LyX and Xfree 4.1 on Win32

2001-07-11 Thread Claus Hentschel

Due to an increasing number of mails concerning problems using LyX together
with XFree 4.1 on Win32 I have checked this configuration myself.

First of all: Using XFree needs much more time to configure (at the moment
hopefully) than just installing and uing Starnet's XWin32 nearly
out-of-the-box. Using the current releases of Xfree on Win2000 SR2 and this
batch file to start LyX:

 cut here 
@echo off
SET DISPLAY=127.0.0.1:0.0
SET PATH=.;\cygwin\bin;\cygwin\usr\X11R6\bin;\cygwin\usr\local\bin;%PATH%
SET HOME=d:\MyHomeDirectory
SET LANG=DE

rem cleanup after last run
attrib -s \cygwin\tmp\.X11-unix\X0
del \cygwin\tmp\.X11-unix\X0
rmdir \cygwin\tmp\.X11-unix

start XWin -screen 0 1024x768x32 -engine 4
start /B lyx.exe -geometry 800x700+100+5
start /B twm
exit
 cut here 

opens LyX inside the Xfree window. As display manager I have choosen the
standard twm which is part of Xfree itself.
Because I didn't spend too much time to test this configuration my keyboard
layout was not correct. But I have read about a location to pick localized
keyboard layout files on Xfree's web site. So hopefully the keyboard could
be configured correctly as well ;-)

Now the PROBLEMS with this configuration (Because I have used Lyx before
there exists a preference file in $HOME/.lyx on my system!!! All who have
installed Lyx/Xfree for the first time: please look below at MAIN PROBLEM):

1) Opening any existing LyX file no text is visible.
   Solution: I had to disable 'scalable fonts' in Edit-Preferences inside
LyX to view the text of my documents. After that LyX behaved as if using
Xwin32 instead.

2) If any error box come up Xfree seems to be frozen (the cursor has been
gone).
   Waiting 60-90 seconds brings back the cursor and work can be continued.
(That's indeed no solution ;-)

The MAIN PROBLEM arrised when exiting LyX/Xfree and restarting both. Due to
the change I have made in Edit-Preferences LyX has created a file
$HOME/.lyx/preferences.xform which only has COLOR settings as follows:

\gui_background 0 0 0
...
\gui_text 0 0 0

So all colors are set to black (RGB setting 0 0 0)!? This will be default,
too when installing XFree/LyX for the first time! Now nothing can be seen on
the screen but a big black hole as the LyX window.

Obviously LyX isn't able to determine the color values from Xfree. This
seems to be a bug in Xfree or a bug in Xforms (we have to use Xforms 0.89
although Lyx on Unix is based on 0.88).

Replacing that file with the following will make LyX visible and behave like
using Starnet's XWin32:

 cut here 
### This file is part of
### 
###  LyX, The Document Processor
###
###  Copyright 1995 Matthias Ettrich
###  Copyright 1995-2000 The LyX Team.
###
### 

# This file is written by LyX, if you want to make your own
# modifications you should do them from inside LyX and save

\gui_background 161 161 161
\gui_buttonbottom 38 40 38
\gui_buttonleft 186 193 186
\gui_buttonright 38 40 38
\gui_buttontop 186 193 186
\gui_inactive 110 110 110
\gui_push_button 255 255 0
\gui_selected 186 193 186
\gui_text 0 0 0
 cut here 

I hope this helps all Xfree users a little bit ;-)

Another PROBLEM concerning a stackdump produced when trying to open LyX in
Xfree:

I haven't tested XFCE (what is that?). Most mailers with problems have
installed that package/tool or any other window manager not part of Xfree
itself. Because twm shows LyX running those errors may be due to any
incompatibility of those tools.

Conclusion: If in doubt try using Starnet's XWin32 instead for a while!
Question: Has anybody out there experiences using LyX on Xfree? If so, I
would appreciate to get some hints and/or a configuration script/procedure.

Claus





Re: Re: Q: long table and chemical formula

2001-07-11 Thread Guenter Milde

On Tue, 10 Jul 2001 23:58:50 +0300 wrote Dekel Tsur [EMAIL PROTECTED]:

 On Tue, Jul 10, 2001 at 04:38:33PM -0400, Wonil Chang wrote:
  Hello all,
  
  I need to convert a long data file (more than 100 rows and 5 columns) to a
  table in lyx. I tried to insert tabular by clicking on the table menubar, but
  the maximum row configured by default is 50. How can I increase the limit?
 
 You can change the limits only by changing the source.
 It is also possible to use script for converting a text file into a LyX table.
 See http://www.mail-archive.com/lyx-users@lists.lyx.org/msg11775.html

The csv2lyx script has improved much since this posting. (Would it be ok to
send it to the list?)

 
  I have to use subscripts and superscripts for chemical formula very often. Is
  there any package that can make my life a little bit easier?
 
 Since I'm not a chemist, I don't know about such packages.
 But you can use math macros (see the user guide).

Math macros are ok for a complex/long formula that appears quite often in
your text: you define it one time (which is a bit tedious) and then you can
use it all over the place. (See the attached lyx-file for an example)
If you have a lot of different fromulas, it might
be helpfull to define keybindings for sub- and superscript: In my
keybindings-file I have

\bind C-S-underscoremath-insert _   # subscript
\bind C-asciicircum   math-insert ^   # superscript

So for water, I press H Ctrl-_ 2 Esc O. Note that I don't need to  switch to
math_mode with Ctrl-M, as Ctrl-_ does this for me (if not already in, but
then I could simply use _ without Ctrl).



PS:  Question to the gurus: 

Could I have a function or macro that does this but
also changes the font to roman?

\bind C-S-underscoremath-insert _\mathrm{}does not work

defining a (math-macro sub 1) does not work either (font changes cannot be
included in the macro definiton in a WYSIWYM manner, only via \textrm{#1}
all in red)


Guenter

--
[EMAIL PROTECTED]
 

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\language german
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\paperorientation portrait
\leftmargin 2cm
\topmargin 1cm
\rightmargin 2cm
\bottommargin 2cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Standard


\begin_inset FormulaMacro 
\newcommand{\LiTa}{\textrm{LiTaO}_{3}}

\end_inset 


\layout Comment

The macro LiTa was created with
\layout Comment

M-x math-macro LiTa
\layout Comment

To make it available, copy to some place in the document.
\layout Comment

To use it, write 
\backslash 
LiTa in math-mode (^C) and you will get 
\begin_inset Formula \( \LiTa  \)
\end_inset 


\the_end



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Bronek Baraniecki

Dnia Wto 10. Lipiec 2001 10:07, napisae:
 On Tue, 10 Jul 2001 01:11:48 +0200 wrote Bronek Baraniecki 
[EMAIL PROTECTED]:
  Servus for All,
  On my Redhat system (LANGUAGE=pl_PL, LANG=pl_PL) after upgrading from
  lyx-1.1.6fix1-1 to lyx-1.1.6fix2-1 I've received
  pretty menu items in polish, but lost handy keyboard shortcuts for
  the the menu items. There are only few (two or three underlined
  characters to make Meta(Alt)+ cuts.
 
  Can I do something to make it work as in 1.1.6fix1-1? What have I to
  do and how to do it? or should I comeback to version 1.1.6fix1-1?

 No need to go back. There is still the possibility to define additional
 bindings in a *.bind file in your .lyx/bind directory

 In the Configuration menu of LyXI set Bindings to a personal bind file
 "gm.bind" (which is in ~/.lyx/bind and therefore found by LyX also
 without given path)

 In the bind-file I have

\bind_file cua.bind
#\bind_file emacs.bind

# we also would like to incorporate some additional  menu shortcuts

\bind_file de_menus.bind

# my favourite privat bindings
\bind "M-m x"   "math-insert times"   # was "math-insert _"
\bind "M-m S-asterisk"  "math-insert cdot"# times in German math
 notation

\bind "S-F2""buffer-write-as"
\bind "M-comma" "math-insert ,"   # small space: \, in
 Latex \bind "C-S-underscore""math-insert _"   # subscript
 \bind "C-asciicircum"   "math-insert ^"   # superscript

 The file de_menus.bind is already prepared to work with the new LyX
 menus: All bindings that have "underscore-bindings" now are commented
 out, just some additional bindings remain.

 Thus my proposal would be to take the old pl_menus.bind (or what it is
 called), comment out the existing bindings, load it from a "homemade"
 bindfile (together with cua.bind or emacs.bind) and set the bindings to
 this file in the Settings/Configuration-Menu.

 Hope this helps

 Guenter


But yet, I've gone back. I utilized for my needs a de_menus.bin, made 
everything (I thing so) you said above but it doesn't work. So I 
downgraded to ver. 1.1.6fix1 where everything is OK.

Greetings

Bruno
-- 
-
Cho ni grd, Peryklesie, ni aden z mieszkacw nie lubi
Jkw aobnych, nikt dzisiaj uczt nie bdzie si 
cieszy...(Archilochos,p.JD)
-



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Bronek Baraniecki

Dnia Pon  9. Lipiec 2001 12:30, napisae:
 Matej Cepl [EMAIL PROTECTED] writes:
 | I think, it should be enough to switch to english keyboard in KDE
 | and than switch on Polish keyboard in LyX.

 Should be enough to switch to polish keyborad in KDE.

 | However, better
 | solution is to switch off all KDE support for international
 | keyboards (they are broken, IMHO) and use plain X support.

 If you have a suitable xmodmap:

 xmodmap my-polish-xmodmap-file

 and you should be ok.

Yes, this way it works, is OK but only for a while. When xmodmap is on 
board, you can write in lyx but not in Kword, kmail or something alike. 
Switching to kde xkb desables xmodmap, you have again kick to xterm to 
run command xmodmap, and so on.

Smile!

-- 
-
Lecz jeli
Kto mniema, e jaki postpek przed bogiem
Zatai zdoa --- niechybnie jest w bdzie.(Pindar)
-



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Jean-Marc Lasgouttes

 Bronek == Bronek Baraniecki [EMAIL PROTECTED] writes:

Bronek But yet, I've gone back. I utilized for my needs a
Bronek de_menus.bin, made everything (I thing so) you said above but
Bronek it doesn't work. So I downgraded to ver. 1.1.6fix1 where
Bronek everything is OK.

You should probably contact Pawel Dziekonski
[EMAIL PROTECTED], who is in charge of polish
translation.

JMarc



Cancellation in equations

2001-07-11 Thread Rem

Hi,

I need help with the following (it is either not there or I couldn't find it
because I am still not quite awake!):

I have an equation that is being derived and I need to show some
cancellations during the evolution. Is there a way I can show the
cancellations, like a line segment (probably slope = 1, to be more specific)
drawn on a division?

I hope I was clear enough to be understood.. If not, I will drink more
coffee!

Thanks

Remzi




Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Lars Gullik Bjønnes

Bronek Baraniecki [EMAIL PROTECTED] writes:

| Dnia Pon  9. Lipiec 2001 12:30, napisa³e¶:
|  Matej Cepl [EMAIL PROTECTED] writes:
|  | I think, it should be enough to switch to english keyboard in KDE
|  | and than switch on Polish keyboard in LyX.
| 
|  Should be enough to switch to polish keyborad in KDE.
| 
|  | However, better
|  | solution is to switch off all KDE support for international
|  | keyboards (they are broken, IMHO) and use plain X support.
| 
|  If you have a suitable xmodmap:
| 
|  xmodmap my-polish-xmodmap-file
| 
|  and you should be ok.
| 
| Yes, this way it works, is OK but only for a while. When xmodmap is on 
| board, you can write in lyx but not in Kword, kmail or something alike. 
| Switching to kde xkb desables xmodmap, you have again kick to xterm to 
| run command xmodmap, and so on.

mmm... but kde xkb should also work... you get keysyms from the X
server as usual(?)


-- 
Lgb



Re: Q: long table and chemical formula

2001-07-11 Thread Thomas de Grenier de Latour

Guenter Milde wrote:
 
 PS:  Question to the gurus:
 
 Could I have a function or macro that does this but
 also changes the font to roman?
 
 \bind C-S-underscoremath-insert _\mathrm{}does not work
 
 defining a (math-macro sub 1) does not work either (font changes cannot be
 included in the macro definiton in a WYSIWYM manner, only via \textrm{#1}
 all in red)
 
 Guenter
 


There is a lyx function called command-sequence which can help to
define strange shortcuts. Try something like this:
\bind C-S-underscorecommand-sequence math-insert _;
math-insert mathrm;
But this work only for the first char after the mathrm, because there is
no {}.
A very ugly solution is this one:
command-sequence math-insert _; tex-mode; type m; type a; type t; type
h; type r; type m; type {;
The closing } is added by LyX (type has the same behaviour as you with
your favorite keyboard).
But when I re-read it, the shame falls on me (I've got a lot of such
things in my perso.bind), and I expect real gurus will forgive me... 

--
Thomas.



Re: Cancellation in equations

2001-07-11 Thread Oscar Lopez

Rem wrote:
 
 
 I have an equation that is being derived and I need to show some
 cancellations during the evolution. Is there a way I can show the
 cancellations, like a line segment (probably slope = 1, to be more specific)
 drawn on a division?
 

In  latex preamble

\usepackage{cancel}

and then in math environment

\cancelto{reason_of_cancelation}{whatever_you_need_to_cancel}

There are several commands, look at the package documentation 

Hope it helps

 
 Remzi

-- 
http://www.iit.upco.es/~oscar
No amount of genius can overcome a preoccupation with detail.



Re: Q: long table and chemical formula

2001-07-11 Thread Thomas de Grenier de Latour

Thomas de Grenier de Latour (Hey! It's me!) wrote:
 
 command-sequence math-insert _; tex-mode; type m; type a; type t; type
 h; type r; type m; type {;
 

H... strange... it does work when entered in the minibuffer, but not
as a binded shortcut. Sorry for the mistake.


(In fact, when this thing is binded to a key, all the type stuff is
done behind the math box, where the first cursor stands. The second one,
the one of the math box, isn't activated until I touch the keyboard
again. Probably I'm bugy, or my LyX is drunk, but two cursors are one
too much.)


 --
 Thomas.



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Bronek Baraniecki

Dnia ro 11. Lipiec 2001 15:46, napisae:
 Bronek Baraniecki [EMAIL PROTECTED] writes:
 | Dnia Pon  9. Lipiec 2001 12:30, napisae:
 |  Matej Cepl [EMAIL PROTECTED] writes:
 |  | I think, it should be enough to switch to english keyboard in KDE
 |  | and than switch on Polish keyboard in LyX.
 | 
 |  Should be enough to switch to polish keyborad in KDE.
 | 
 |  | However, better
 |  | solution is to switch off all KDE support for international
 |  | keyboards (they are broken, IMHO) and use plain X support.
 | 
 |  If you have a suitable xmodmap:
 | 
 |  xmodmap my-polish-xmodmap-file
 | 
 |  and you should be ok.
 |
 | Yes, this way it works, is OK but only for a while. When xmodmap is
 | on board, you can write in lyx but not in Kword, kmail or something
 | alike. Switching to kde xkb desables xmodmap, you have again kick to
 | xterm to run command xmodmap, and so on.

 mmm... but kde xkb should also work... you get keysyms from the X
 server as usual(?)

Tat's right. If /etc/X11/XF86Config is Option "XkbLayout" "pl" then KDE 
gives me polish map, can use any kde (and other) editor except Lyx. If 
command is run xmodmap, it looks like xkb extenions are overiten (?!)


-- 
-
Niedugo, dziadki, tej gry waszej bdzie;
Po chwili drugi nad czym inszym sidzie.(J.K.)
-



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Bronek Baraniecki

Dnia ro 11. Lipiec 2001 15:29, napisae:
  "Bronek" == Bronek Baraniecki [EMAIL PROTECTED] writes:

 Bronek But yet, I've gone back. I utilized for my needs a
 Bronek de_menus.bin, made everything (I thing so) you said above but
 Bronek it doesn't work. So I downgraded to ver. 1.1.6fix1 where
 Bronek everything is OK.

 You should probably contact Pawel Dziekonski
 [EMAIL PROTECTED], who is in charge of polish
 translation.

 JMarc

Thank you, I sent him a mail, now waiting.

Bruno

-- 
-
Ani za duo, ani  za mao --- to miara najlepsza
Bakcha, bo albo ci blem, albo szalestwem napeni.(Euenos)
-



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Lars Gullik Bjønnes

Bronek Baraniecki [EMAIL PROTECTED] writes:

|  mmm... but kde xkb should also work... you get keysyms from the X
|  server as usual(?)
| 
| Tat's right. If /etc/X11/XF86Config is Option XkbLayout pl then KDE 
| gives me polish map, can use any kde (and other) editor except Lyx. If 
| command is run xmodmap, it looks like xkb extenions are overiten (?!)

You should run lyx as lyx -dbg key to find out what lyx really sees.

-- 
Lgb



search shortcuts don't work

2001-07-11 Thread Scott Otterson

The shortcuts for the search box's forward and backward search arrows are
supposed to be M-f and M-b.  But, in Lyx 1.1.6fix2, they move the cursor back
and forth in the search text window, rather than activating forward or backward
searching.

If this is a bug, is this the proper place to report it?  If this is not, am I
confused?

Thanks,

Scott



Footnote on the next page

2001-07-11 Thread Detlev Humann



Hi!
My problem is that Lyx/Latexputs the footnote 
mark(=number) correctly in the text of one page, but the footnote text (with 
correct footnote number of course) appears on the bottom of 
the_next_page.
(I know that Lyx/Latex sometimes splits a footnote 
over two pages, which isn´tvery nice but acceptable. However, this is not 
my problem as I have interfootnotelinepenalty=1 in Latex preamble. The 
strange thing in my case is that it doesn´t make a difference if I comment it 
out or if I don´t)
Therefore myquestion is: How can I prevent 
this well known"M$-Word-Feature"in my Lyx/Latex document? I´d like 
to have footnote mark and footnote text on the_same_page.
Thanks in advance!
Detlev





Re: Footnote on the next page

2001-07-11 Thread Herbert Voss

 Detlev Humann wrote:
 
 (I know that Lyx/Latex sometimes splits a footnote over two pages,
 which isn´t very nice but acceptable. However, this is not my problem
 as I have interfootnotelinepenalty=1 in Latex preamble. The
 strange thing in my case is that it doesn´t make a difference if I
 comment it out or if I don´t)

if you have the correct
\interfootnotelinepenalty=1

in preamble send a minimal lay-file, which shows the
behaviour.

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/




LyX and Xfree 4.1 on Win32

2001-07-11 Thread Claus Hentschel

Due to an increasing number of mails concerning problems using LyX together
with XFree 4.1 on Win32 I have checked this configuration myself.

First of all: Using XFree needs much more time to configure (at the moment
hopefully) than just installing and uing Starnet's XWin32 nearly
out-of-the-box. Using the current releases of Xfree on Win2000 SR2 and this
batch file to start LyX:

 cut here 
@echo off
SET DISPLAY=127.0.0.1:0.0
SET PATH=.;\cygwin\bin;\cygwin\usr\X11R6\bin;\cygwin\usr\local\bin;%PATH%
SET HOME=d:\MyHomeDirectory
SET LANG=DE

rem cleanup after last run
attrib -s \cygwin\tmp\.X11-unix\X0
del \cygwin\tmp\.X11-unix\X0
rmdir \cygwin\tmp\.X11-unix

start XWin -screen 0 1024x768x32 -engine 4
start /B lyx.exe -geometry 800x700+100+5
start /B twm
exit
 cut here 

opens LyX inside the Xfree window. As display manager I have choosen the
standard twm which is part of Xfree itself.
Because I didn't spend too much time to test this configuration my keyboard
layout was not correct. But I have read about a location to pick localized
keyboard layout files on Xfree's web site. So hopefully the keyboard could
be configured correctly as well ;-)

Now the PROBLEMS with this configuration (Because I have used Lyx before
there exists a preference file in $HOME/.lyx on my system!!! All who have
installed Lyx/Xfree for the first time: please look below at MAIN PROBLEM):

1) Opening any existing LyX file no text is visible.
   Solution: I had to disable 'scalable fonts' in Edit-Preferences inside
LyX to view the text of my documents. After that LyX behaved as if using
Xwin32 instead.

2) If any error box come up Xfree seems to be frozen (the cursor has been
gone).
   Waiting 60-90 seconds brings back the cursor and work can be continued.
(That's indeed no solution ;-)

The MAIN PROBLEM arrised when exiting LyX/Xfree and restarting both. Due to
the change I have made in Edit-Preferences LyX has created a file
$HOME/.lyx/preferences.xform which only has COLOR settings as follows:

\gui_background 0 0 0
...
\gui_text 0 0 0

So all colors are set to black (RGB setting 0 0 0)!? This will be default,
too when installing XFree/LyX for the first time! Now nothing can be seen on
the screen but a big black hole as the LyX window.

Obviously LyX isn't able to determine the color values from Xfree. This
seems to be a bug in Xfree or a bug in Xforms (we have to use Xforms 0.89
although Lyx on Unix is based on 0.88).

Replacing that file with the following will make LyX visible and behave like
using Starnet's XWin32:

 cut here 
### This file is part of
### 
###  LyX, The Document Processor
###
###  Copyright 1995 Matthias Ettrich
###  Copyright 1995-2000 The LyX Team.
###
### 

# This file is written by LyX, if you want to make your own
# modifications you should do them from inside LyX and save

\gui_background 161 161 161
\gui_buttonbottom 38 40 38
\gui_buttonleft 186 193 186
\gui_buttonright 38 40 38
\gui_buttontop 186 193 186
\gui_inactive 110 110 110
\gui_push_button 255 255 0
\gui_selected 186 193 186
\gui_text 0 0 0
 cut here 

I hope this helps all Xfree users a little bit ;-)

Another PROBLEM concerning a stackdump produced when trying to open LyX in
Xfree:

I haven't tested XFCE (what is that?). Most mailers with problems have
installed that package/tool or any other window manager not part of Xfree
itself. Because twm shows LyX running those errors may be due to any
incompatibility of those tools.

Conclusion: If in doubt try using Starnet's XWin32 instead for a while!
Question: Has anybody out there experiences using LyX on Xfree? If so, I
would appreciate to get some hints and/or a configuration script/procedure.

Claus





Re: Re: Q: long table and chemical formula

2001-07-11 Thread Guenter Milde

On Tue, 10 Jul 2001 23:58:50 +0300 wrote Dekel Tsur [EMAIL PROTECTED]:

 On Tue, Jul 10, 2001 at 04:38:33PM -0400, Wonil Chang wrote:
  Hello all,
  
  I need to convert a long data file (more than 100 rows and 5 columns) to a
  table in lyx. I tried to insert tabular by clicking on the table menubar, but
  the maximum row configured by default is 50. How can I increase the limit?
 
 You can change the limits only by changing the source.
 It is also possible to use script for converting a text file into a LyX table.
 See http://www.mail-archive.com/lyx-users@lists.lyx.org/msg11775.html

The csv2lyx script has improved much since this posting. (Would it be ok to
send it to the list?)

 
  I have to use subscripts and superscripts for chemical formula very often. Is
  there any package that can make my life a little bit easier?
 
 Since I'm not a chemist, I don't know about such packages.
 But you can use math macros (see the user guide).

Math macros are ok for a complex/long formula that appears quite often in
your text: you define it one time (which is a bit tedious) and then you can
use it all over the place. (See the attached lyx-file for an example)
If you have a lot of different fromulas, it might
be helpfull to define keybindings for sub- and superscript: In my
keybindings-file I have

\bind C-S-underscoremath-insert _   # subscript
\bind C-asciicircum   math-insert ^   # superscript

So for water, I press H Ctrl-_ 2 Esc O. Note that I don't need to  switch to
math_mode with Ctrl-M, as Ctrl-_ does this for me (if not already in, but
then I could simply use _ without Ctrl).



PS:  Question to the gurus: 

Could I have a function or macro that does this but
also changes the font to roman?

\bind C-S-underscoremath-insert _\mathrm{}does not work

defining a (math-macro sub 1) does not work either (font changes cannot be
included in the macro definiton in a WYSIWYM manner, only via \textrm{#1}
all in red)


Guenter

--
[EMAIL PROTECTED]
 

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\language german
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\paperorientation portrait
\leftmargin 2cm
\topmargin 1cm
\rightmargin 2cm
\bottommargin 2cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Standard


\begin_inset FormulaMacro 
\newcommand{\LiTa}{\textrm{LiTaO}_{3}}

\end_inset 


\layout Comment

The macro LiTa was created with
\layout Comment

M-x math-macro LiTa
\layout Comment

To make it available, copy to some place in the document.
\layout Comment

To use it, write 
\backslash 
LiTa in math-mode (^C) and you will get 
\begin_inset Formula \( \LiTa  \)
\end_inset 


\the_end



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Bronek Baraniecki

Dnia Wto 10. Lipiec 2001 10:07, napisae:
 On Tue, 10 Jul 2001 01:11:48 +0200 wrote Bronek Baraniecki 
[EMAIL PROTECTED]:
  Servus for All,
  On my Redhat system (LANGUAGE=pl_PL, LANG=pl_PL) after upgrading from
  lyx-1.1.6fix1-1 to lyx-1.1.6fix2-1 I've received
  pretty menu items in polish, but lost handy keyboard shortcuts for
  the the menu items. There are only few (two or three underlined
  characters to make Meta(Alt)+ cuts.
 
  Can I do something to make it work as in 1.1.6fix1-1? What have I to
  do and how to do it? or should I comeback to version 1.1.6fix1-1?

 No need to go back. There is still the possibility to define additional
 bindings in a *.bind file in your .lyx/bind directory

 In the Configuration menu of LyXI set Bindings to a personal bind file
 "gm.bind" (which is in ~/.lyx/bind and therefore found by LyX also
 without given path)

 In the bind-file I have

\bind_file cua.bind
#\bind_file emacs.bind

# we also would like to incorporate some additional  menu shortcuts

\bind_file de_menus.bind

# my favourite privat bindings
\bind "M-m x"   "math-insert times"   # was "math-insert _"
\bind "M-m S-asterisk"  "math-insert cdot"# times in German math
 notation

\bind "S-F2""buffer-write-as"
\bind "M-comma" "math-insert ,"   # small space: \, in
 Latex \bind "C-S-underscore""math-insert _"   # subscript
 \bind "C-asciicircum"   "math-insert ^"   # superscript

 The file de_menus.bind is already prepared to work with the new LyX
 menus: All bindings that have "underscore-bindings" now are commented
 out, just some additional bindings remain.

 Thus my proposal would be to take the old pl_menus.bind (or what it is
 called), comment out the existing bindings, load it from a "homemade"
 bindfile (together with cua.bind or emacs.bind) and set the bindings to
 this file in the Settings/Configuration-Menu.

 Hope this helps

 Guenter


But yet, I've gone back. I utilized for my needs a de_menus.bin, made 
everything (I thing so) you said above but it doesn't work. So I 
downgraded to ver. 1.1.6fix1 where everything is OK.

Greetings

Bruno
-- 
-
Cho ni grd, Peryklesie, ni aden z mieszkacw nie lubi
Jkw aobnych, nikt dzisiaj uczt nie bdzie si 
cieszy...(Archilochos,p.JD)
-



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Bronek Baraniecki

Dnia Pon  9. Lipiec 2001 12:30, napisae:
 Matej Cepl [EMAIL PROTECTED] writes:
 | I think, it should be enough to switch to english keyboard in KDE
 | and than switch on Polish keyboard in LyX.

 Should be enough to switch to polish keyborad in KDE.

 | However, better
 | solution is to switch off all KDE support for international
 | keyboards (they are broken, IMHO) and use plain X support.

 If you have a suitable xmodmap:

 xmodmap my-polish-xmodmap-file

 and you should be ok.

Yes, this way it works, is OK but only for a while. When xmodmap is on 
board, you can write in lyx but not in Kword, kmail or something alike. 
Switching to kde xkb desables xmodmap, you have again kick to xterm to 
run command xmodmap, and so on.

Smile!

-- 
-
Lecz jeli
Kto mniema, e jaki postpek przed bogiem
Zatai zdoa --- niechybnie jest w bdzie.(Pindar)
-



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Jean-Marc Lasgouttes

 Bronek == Bronek Baraniecki [EMAIL PROTECTED] writes:

Bronek But yet, I've gone back. I utilized for my needs a
Bronek de_menus.bin, made everything (I thing so) you said above but
Bronek it doesn't work. So I downgraded to ver. 1.1.6fix1 where
Bronek everything is OK.

You should probably contact Pawel Dziekonski
[EMAIL PROTECTED], who is in charge of polish
translation.

JMarc



Cancellation in equations

2001-07-11 Thread Rem

Hi,

I need help with the following (it is either not there or I couldn't find it
because I am still not quite awake!):

I have an equation that is being derived and I need to show some
cancellations during the evolution. Is there a way I can show the
cancellations, like a line segment (probably slope = 1, to be more specific)
drawn on a division?

I hope I was clear enough to be understood.. If not, I will drink more
coffee!

Thanks

Remzi




Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Lars Gullik Bjønnes

Bronek Baraniecki [EMAIL PROTECTED] writes:

| Dnia Pon  9. Lipiec 2001 12:30, napisa³e¶:
|  Matej Cepl [EMAIL PROTECTED] writes:
|  | I think, it should be enough to switch to english keyboard in KDE
|  | and than switch on Polish keyboard in LyX.
| 
|  Should be enough to switch to polish keyborad in KDE.
| 
|  | However, better
|  | solution is to switch off all KDE support for international
|  | keyboards (they are broken, IMHO) and use plain X support.
| 
|  If you have a suitable xmodmap:
| 
|  xmodmap my-polish-xmodmap-file
| 
|  and you should be ok.
| 
| Yes, this way it works, is OK but only for a while. When xmodmap is on 
| board, you can write in lyx but not in Kword, kmail or something alike. 
| Switching to kde xkb desables xmodmap, you have again kick to xterm to 
| run command xmodmap, and so on.

mmm... but kde xkb should also work... you get keysyms from the X
server as usual(?)


-- 
Lgb



Re: Q: long table and chemical formula

2001-07-11 Thread Thomas de Grenier de Latour

Guenter Milde wrote:
 
 PS:  Question to the gurus:
 
 Could I have a function or macro that does this but
 also changes the font to roman?
 
 \bind C-S-underscoremath-insert _\mathrm{}does not work
 
 defining a (math-macro sub 1) does not work either (font changes cannot be
 included in the macro definiton in a WYSIWYM manner, only via \textrm{#1}
 all in red)
 
 Guenter
 


There is a lyx function called command-sequence which can help to
define strange shortcuts. Try something like this:
\bind C-S-underscorecommand-sequence math-insert _;
math-insert mathrm;
But this work only for the first char after the mathrm, because there is
no {}.
A very ugly solution is this one:
command-sequence math-insert _; tex-mode; type m; type a; type t; type
h; type r; type m; type {;
The closing } is added by LyX (type has the same behaviour as you with
your favorite keyboard).
But when I re-read it, the shame falls on me (I've got a lot of such
things in my perso.bind), and I expect real gurus will forgive me... 

--
Thomas.



Re: Cancellation in equations

2001-07-11 Thread Oscar Lopez

Rem wrote:
 
 
 I have an equation that is being derived and I need to show some
 cancellations during the evolution. Is there a way I can show the
 cancellations, like a line segment (probably slope = 1, to be more specific)
 drawn on a division?
 

In  latex preamble

\usepackage{cancel}

and then in math environment

\cancelto{reason_of_cancelation}{whatever_you_need_to_cancel}

There are several commands, look at the package documentation 

Hope it helps

 
 Remzi

-- 
http://www.iit.upco.es/~oscar
No amount of genius can overcome a preoccupation with detail.



Re: Q: long table and chemical formula

2001-07-11 Thread Thomas de Grenier de Latour

Thomas de Grenier de Latour (Hey! It's me!) wrote:
 
 command-sequence math-insert _; tex-mode; type m; type a; type t; type
 h; type r; type m; type {;
 

H... strange... it does work when entered in the minibuffer, but not
as a binded shortcut. Sorry for the mistake.


(In fact, when this thing is binded to a key, all the type stuff is
done behind the math box, where the first cursor stands. The second one,
the one of the math box, isn't activated until I touch the keyboard
again. Probably I'm bugy, or my LyX is drunk, but two cursors are one
too much.)


 --
 Thomas.



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Bronek Baraniecki

Dnia ro 11. Lipiec 2001 15:46, napisae:
 Bronek Baraniecki [EMAIL PROTECTED] writes:
 | Dnia Pon  9. Lipiec 2001 12:30, napisae:
 |  Matej Cepl [EMAIL PROTECTED] writes:
 |  | I think, it should be enough to switch to english keyboard in KDE
 |  | and than switch on Polish keyboard in LyX.
 | 
 |  Should be enough to switch to polish keyborad in KDE.
 | 
 |  | However, better
 |  | solution is to switch off all KDE support for international
 |  | keyboards (they are broken, IMHO) and use plain X support.
 | 
 |  If you have a suitable xmodmap:
 | 
 |  xmodmap my-polish-xmodmap-file
 | 
 |  and you should be ok.
 |
 | Yes, this way it works, is OK but only for a while. When xmodmap is
 | on board, you can write in lyx but not in Kword, kmail or something
 | alike. Switching to kde xkb desables xmodmap, you have again kick to
 | xterm to run command xmodmap, and so on.

 mmm... but kde xkb should also work... you get keysyms from the X
 server as usual(?)

Tat's right. If /etc/X11/XF86Config is Option "XkbLayout" "pl" then KDE 
gives me polish map, can use any kde (and other) editor except Lyx. If 
command is run xmodmap, it looks like xkb extenions are overiten (?!)


-- 
-
Niedugo, dziadki, tej gry waszej bdzie;
Po chwili drugi nad czym inszym sidzie.(J.K.)
-



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Bronek Baraniecki

Dnia ro 11. Lipiec 2001 15:29, napisae:
  "Bronek" == Bronek Baraniecki [EMAIL PROTECTED] writes:

 Bronek But yet, I've gone back. I utilized for my needs a
 Bronek de_menus.bin, made everything (I thing so) you said above but
 Bronek it doesn't work. So I downgraded to ver. 1.1.6fix1 where
 Bronek everything is OK.

 You should probably contact Pawel Dziekonski
 [EMAIL PROTECTED], who is in charge of polish
 translation.

 JMarc

Thank you, I sent him a mail, now waiting.

Bruno

-- 
-
Ani za duo, ani  za mao --- to miara najlepsza
Bakcha, bo albo ci blem, albo szalestwem napeni.(Euenos)
-



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Lars Gullik Bjønnes

Bronek Baraniecki [EMAIL PROTECTED] writes:

|  mmm... but kde xkb should also work... you get keysyms from the X
|  server as usual(?)
| 
| Tat's right. If /etc/X11/XF86Config is Option XkbLayout pl then KDE 
| gives me polish map, can use any kde (and other) editor except Lyx. If 
| command is run xmodmap, it looks like xkb extenions are overiten (?!)

You should run lyx as lyx -dbg key to find out what lyx really sees.

-- 
Lgb



search shortcuts don't work

2001-07-11 Thread Scott Otterson

The shortcuts for the search box's forward and backward search arrows are
supposed to be M-f and M-b.  But, in Lyx 1.1.6fix2, they move the cursor back
and forth in the search text window, rather than activating forward or backward
searching.

If this is a bug, is this the proper place to report it?  If this is not, am I
confused?

Thanks,

Scott



Footnote on the next page

2001-07-11 Thread Detlev Humann



Hi!
My problem is that Lyx/Latexputs the footnote 
mark(=number) correctly in the text of one page, but the footnote text (with 
correct footnote number of course) appears on the bottom of 
the_next_page.
(I know that Lyx/Latex sometimes splits a footnote 
over two pages, which isn´tvery nice but acceptable. However, this is not 
my problem as I have interfootnotelinepenalty=1 in Latex preamble. The 
strange thing in my case is that it doesn´t make a difference if I comment it 
out or if I don´t)
Therefore myquestion is: How can I prevent 
this well known"M$-Word-Feature"in my Lyx/Latex document? I´d like 
to have footnote mark and footnote text on the_same_page.
Thanks in advance!
Detlev





Re: Footnote on the next page

2001-07-11 Thread Herbert Voss

 Detlev Humann wrote:
 
 (I know that Lyx/Latex sometimes splits a footnote over two pages,
 which isn´t very nice but acceptable. However, this is not my problem
 as I have interfootnotelinepenalty=1 in Latex preamble. The
 strange thing in my case is that it doesn´t make a difference if I
 comment it out or if I don´t)

if you have the correct
\interfootnotelinepenalty=1

in preamble send a minimal lay-file, which shows the
behaviour.

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/




LyX and Xfree 4.1 on Win32

2001-07-11 Thread Claus Hentschel

Due to an increasing number of mails concerning problems using LyX together
with XFree 4.1 on Win32 I have checked this configuration myself.

First of all: Using XFree needs much more time to configure (at the moment
hopefully) than just installing and uing Starnet's XWin32 nearly
out-of-the-box. Using the current releases of Xfree on Win2000 SR2 and this
batch file to start LyX:

 cut here 
@echo off
SET DISPLAY=127.0.0.1:0.0
SET PATH=.;\cygwin\bin;\cygwin\usr\X11R6\bin;\cygwin\usr\local\bin;%PATH%
SET HOME=d:\MyHomeDirectory
SET LANG=DE

rem cleanup after last run
attrib -s \cygwin\tmp\.X11-unix\X0
del \cygwin\tmp\.X11-unix\X0
rmdir \cygwin\tmp\.X11-unix

start XWin -screen 0 1024x768x32 -engine 4
start /B lyx.exe -geometry 800x700+100+5
start /B twm
exit
 cut here 

opens LyX inside the Xfree window. As display manager I have choosen the
standard twm which is part of Xfree itself.
Because I didn't spend too much time to test this configuration my keyboard
layout was not correct. But I have read about a location to pick localized
keyboard layout files on Xfree's web site. So hopefully the keyboard could
be configured correctly as well ;-)

Now the PROBLEMS with this configuration (Because I have used Lyx before
there exists a preference file in $HOME/.lyx on my system!!! All who have
installed Lyx/Xfree for the first time: please look below at MAIN PROBLEM):

1) Opening any existing LyX file no text is visible.
   Solution: I had to disable 'scalable fonts' in Edit->Preferences inside
LyX to view the text of my documents. After that LyX behaved as if using
Xwin32 instead.

2) If any error box come up Xfree seems to be frozen (the cursor has been
gone).
   Waiting 60-90 seconds brings back the cursor and work can be continued.
(That's indeed no solution ;-)

The MAIN PROBLEM arrised when exiting LyX/Xfree and restarting both. Due to
the change I have made in Edit->Preferences LyX has created a file
$HOME/.lyx/preferences.xform which only has COLOR settings as follows:

\gui_background 0 0 0
...
\gui_text 0 0 0

So all colors are set to black (RGB setting 0 0 0)!? This will be default,
too when installing XFree/LyX for the first time! Now nothing can be seen on
the screen but a big black hole as the LyX window.

Obviously LyX isn't able to determine the color values from Xfree. This
seems to be a bug in Xfree or a bug in Xforms (we have to use Xforms 0.89
although Lyx on Unix is based on 0.88).

Replacing that file with the following will make LyX visible and behave like
using Starnet's XWin32:

 cut here 
### This file is part of
### 
###  LyX, The Document Processor
###
###  Copyright 1995 Matthias Ettrich
###  Copyright 1995-2000 The LyX Team.
###
### 

# This file is written by LyX, if you want to make your own
# modifications you should do them from inside LyX and save

\gui_background 161 161 161
\gui_buttonbottom 38 40 38
\gui_buttonleft 186 193 186
\gui_buttonright 38 40 38
\gui_buttontop 186 193 186
\gui_inactive 110 110 110
\gui_push_button 255 255 0
\gui_selected 186 193 186
\gui_text 0 0 0
 cut here 

I hope this helps all Xfree users a little bit ;-)

Another PROBLEM concerning a stackdump produced when trying to open LyX in
Xfree:

I haven't tested XFCE (what is that?). Most mailers with problems have
installed that package/tool or any other window manager not part of Xfree
itself. Because twm shows LyX running those errors may be due to any
incompatibility of those tools.

Conclusion: If in doubt try using Starnet's XWin32 instead for a while!
Question: Has anybody out there experiences using LyX on Xfree? If so, I
would appreciate to get some hints and/or a configuration script/procedure.

Claus





Re: Re: Q: long table and chemical formula

2001-07-11 Thread Guenter Milde

On Tue, 10 Jul 2001 23:58:50 +0300 wrote Dekel Tsur <[EMAIL PROTECTED]>:

> On Tue, Jul 10, 2001 at 04:38:33PM -0400, Wonil Chang wrote:
> > Hello all,
> > 
> > I need to convert a long data file (more than 100 rows and 5 columns) to a
> > table in lyx. I tried to insert tabular by clicking on the table menubar, but
> > the maximum row configured by default is 50. How can I increase the limit?
> 
> You can change the limits only by changing the source.
> It is also possible to use script for converting a text file into a LyX table.
> See http://www.mail-archive.com/lyx-users@lists.lyx.org/msg11775.html

The csv2lyx script has improved much since this posting. (Would it be ok to
send it to the list?)

 
> > I have to use subscripts and superscripts for chemical formula very often. Is
> > there any package that can make my life a little bit easier?
> 
> Since I'm not a chemist, I don't know about such packages.
> But you can use math macros (see the user guide).

Math macros are ok for a complex/long formula that appears quite often in
your text: you define it one time (which is a bit tedious) and then you can
use it all over the place. (See the attached lyx-file for an example)
If you have a lot of different fromulas, it might
be helpfull to define keybindings for sub- and superscript: In my
keybindings-file I have

\bind "C-S-underscore""math-insert _"   # subscript
\bind "C-asciicircum"   "math-insert ^"   # superscript

So for water, I press H Ctrl-_ 2 Esc O. Note that I don't need to  switch to
math_mode with Ctrl-M, as Ctrl-_ does this for me (if not already in, but
then I could simply use _ without Ctrl).



PS:  Question to the gurus: 

Could I have a function or macro that does this but
also changes the font to roman?

\bind "C-S-underscore""math-insert _\mathrm{}"does not work

defining a (math-macro sub 1) does not work either (font changes cannot be
included in the macro definiton in a WYSIWYM manner, only via \textrm{#1}
all in red)


Guenter

--
[EMAIL PROTECTED]
 

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\language german
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\paperorientation portrait
\leftmargin 2cm
\topmargin 1cm
\rightmargin 2cm
\bottommargin 2cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle plain

\layout Standard


\begin_inset FormulaMacro 
\newcommand{\LiTa}{\textrm{LiTaO}_{3}}

\end_inset 


\layout Comment

The macro LiTa was created with
\layout Comment

M-x math-macro LiTa
\layout Comment

To make it available, copy to some place in the document.
\layout Comment

To use it, write 
\backslash 
LiTa in math-mode (^C) and you will get 
\begin_inset Formula \( \LiTa  \)
\end_inset 


\the_end



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Bronek Baraniecki

Dnia Wto 10. Lipiec 2001 10:07, napisae:
> On Tue, 10 Jul 2001 01:11:48 +0200 wrote Bronek Baraniecki 
<[EMAIL PROTECTED]>:
> > Servus for All,
> > On my Redhat system (LANGUAGE=pl_PL, LANG=pl_PL) after upgrading from
> > lyx-1.1.6fix1-1 to lyx-1.1.6fix2-1 I've received
> > pretty menu items in polish, but lost handy keyboard shortcuts for
> > the the menu items. There are only few (two or three underlined
> > characters to make Meta(Alt)+ cuts.
> >
> > Can I do something to make it work as in 1.1.6fix1-1? What have I to
> > do and how to do it? or should I comeback to version 1.1.6fix1-1?
>
> No need to go back. There is still the possibility to define additional
> bindings in a *.bind file in your .lyx/bind directory
>
> In the Configuration menu of LyXI set Bindings to a personal bind file
> "gm.bind" (which is in ~/.lyx/bind and therefore found by LyX also
> without given path)
>
> In the bind-file I have
>
>\bind_file cua.bind
>#\bind_file emacs.bind
>
># we also would like to incorporate some additional  menu shortcuts
>
>\bind_file de_menus.bind
>
># my favourite privat bindings
>\bind "M-m x"   "math-insert times"   # was "math-insert _"
>\bind "M-m S-asterisk"  "math-insert cdot"# times in German math
> notation
>
>\bind "S-F2""buffer-write-as"
>\bind "M-comma" "math-insert ,"   # small space: \, in
> Latex \bind "C-S-underscore""math-insert _"   # subscript
> \bind "C-asciicircum"   "math-insert ^"   # superscript
>
> The file de_menus.bind is already prepared to work with the new LyX
> menus: All bindings that have "underscore-bindings" now are commented
> out, just some additional bindings remain.
>
> Thus my proposal would be to take the old pl_menus.bind (or what it is
> called), comment out the existing bindings, load it from a "homemade"
> bindfile (together with cua.bind or emacs.bind) and set the bindings to
> this file in the Settings/Configuration-Menu.
>
> Hope this helps
>
> Guenter
>

But yet, I've gone back. I utilized for my needs a de_menus.bin, made 
everything (I thing so) you said above but it doesn't work. So I 
downgraded to ver. 1.1.6fix1 where everything is OK.

Greetings

Bruno
-- 
-
Cho ni gród, Peryklesie, ni aden z mieszkaców nie lubi
Jków aobnych, nikt dzisiaj uczt nie bdzie si 
cieszy...(Archilochos,p.JD)
-



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Bronek Baraniecki

Dnia Pon  9. Lipiec 2001 12:30, napisae:
> Matej Cepl <[EMAIL PROTECTED]> writes:
> | I think, it should be enough to switch to english keyboard in KDE
> | and than switch on Polish keyboard in LyX.
>
> Should be enough to switch to polish keyborad in KDE.
>
> | However, better
> | solution is to switch off all KDE support for international
> | keyboards (they are broken, IMHO) and use plain X support.
>
> If you have a suitable xmodmap:
>
> xmodmap 
>
> and you should be ok.

Yes, this way it works, is OK but only for a while. When xmodmap is on 
board, you can write in lyx but not in Kword, kmail or something alike. 
Switching to kde xkb desables xmodmap, you have again kick to xterm to 
run command xmodmap, and so on.

Smile!

-- 
-
Lecz jeli
Kto mniema, e jaki postpek przed bogiem
Zatai zdoa --- niechybnie jest w bdzie.(Pindar)
-



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Jean-Marc Lasgouttes

> "Bronek" == Bronek Baraniecki <[EMAIL PROTECTED]> writes:

Bronek> But yet, I've gone back. I utilized for my needs a
Bronek> de_menus.bin, made everything (I thing so) you said above but
Bronek> it doesn't work. So I downgraded to ver. 1.1.6fix1 where
Bronek> everything is OK.

You should probably contact Pawel Dziekonski
<[EMAIL PROTECTED]>, who is in charge of polish
translation.

JMarc



Cancellation in equations

2001-07-11 Thread Rem

Hi,

I need help with the following (it is either not there or I couldn't find it
because I am still not quite awake!):

I have an equation that is being derived and I need to show some
cancellations during the evolution. Is there a way I can show the
cancellations, like a line segment (probably slope = 1, to be more specific)
drawn on a division?

I hope I was clear enough to be understood.. If not, I will drink more
coffee!

Thanks

Remzi




Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Lars Gullik Bjønnes

Bronek Baraniecki <[EMAIL PROTECTED]> writes:

| Dnia Pon  9. Lipiec 2001 12:30, napisa³e¶:
| > Matej Cepl <[EMAIL PROTECTED]> writes:
| > | I think, it should be enough to switch to english keyboard in KDE
| > | and than switch on Polish keyboard in LyX.
| >
| > Should be enough to switch to polish keyborad in KDE.
| >
| > | However, better
| > | solution is to switch off all KDE support for international
| > | keyboards (they are broken, IMHO) and use plain X support.
| >
| > If you have a suitable xmodmap:
| >
| > xmodmap 
| >
| > and you should be ok.
| 
| Yes, this way it works, is OK but only for a while. When xmodmap is on 
| board, you can write in lyx but not in Kword, kmail or something alike. 
| Switching to kde xkb desables xmodmap, you have again kick to xterm to 
| run command xmodmap, and so on.

mmm... but kde xkb should also work... you get keysyms from the X
server as usual(?)


-- 
Lgb



Re: Q: long table and chemical formula

2001-07-11 Thread Thomas de Grenier de Latour

Guenter Milde wrote:
> 
> PS:  Question to the gurus:
> 
> Could I have a function or macro that does this but
> also changes the font to roman?
> 
> \bind "C-S-underscore""math-insert _\mathrm{}"does not work
> 
> defining a (math-macro sub 1) does not work either (font changes cannot be
> included in the macro definiton in a WYSIWYM manner, only via \textrm{#1}
> all in red)
> 
> Guenter
> 
>

There is a lyx function called "command-sequence" which can help to
define strange shortcuts. Try something like this:
\bind "C-S-underscore""command-sequence math-insert _;
math-insert mathrm;"
But this work only for the first char after the mathrm, because there is
no {}.
A very ugly solution is this one:
"command-sequence math-insert _; tex-mode; type m; type a; type t; type
h; type r; type m; type {;"
The closing } is added by LyX (type has the same behaviour as you with
your favorite keyboard).
But when I re-read it, the shame falls on me (I've got a lot of such
things in my perso.bind), and I expect real gurus will forgive me... 

--
Thomas.



Re: Cancellation in equations

2001-07-11 Thread Oscar Lopez

Rem wrote:
> 
> 
> I have an equation that is being derived and I need to show some
> cancellations during the evolution. Is there a way I can show the
> cancellations, like a line segment (probably slope = 1, to be more specific)
> drawn on a division?
> 

In  latex preamble

\usepackage{cancel}

and then in math environment

\cancelto{reason_of_cancelation}{whatever_you_need_to_cancel}

There are several commands, look at the package documentation 

Hope it helps

> 
> Remzi

-- 
http://www.iit.upco.es/~oscar
No amount of genius can overcome a preoccupation with detail.



Re: Q: long table and chemical formula

2001-07-11 Thread Thomas de Grenier de Latour

Thomas de Grenier de Latour (Hey! It's me!) wrote:
> 
> "command-sequence math-insert _; tex-mode; type m; type a; type t; type
> h; type r; type m; type {;"
> 

H... strange... it does work when entered in the minibuffer, but not
as a binded shortcut. Sorry for the mistake.


(In fact, when this "thing" is binded to a key, all the "type" stuff is
done behind the math box, where the first cursor stands. The second one,
the one of the math box, isn't activated until I touch the keyboard
again. Probably I'm bugy, or my LyX is drunk, but two cursors are one
too much.)


> --
> Thomas.



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Bronek Baraniecki

Dnia ro 11. Lipiec 2001 15:46, napisae:
> Bronek Baraniecki <[EMAIL PROTECTED]> writes:
> | Dnia Pon  9. Lipiec 2001 12:30, napisae:
> | > Matej Cepl <[EMAIL PROTECTED]> writes:
> | > | I think, it should be enough to switch to english keyboard in KDE
> | > | and than switch on Polish keyboard in LyX.
> | >
> | > Should be enough to switch to polish keyborad in KDE.
> | >
> | > | However, better
> | > | solution is to switch off all KDE support for international
> | > | keyboards (they are broken, IMHO) and use plain X support.
> | >
> | > If you have a suitable xmodmap:
> | >
> | > xmodmap 
> | >
> | > and you should be ok.
> |
> | Yes, this way it works, is OK but only for a while. When xmodmap is
> | on board, you can write in lyx but not in Kword, kmail or something
> | alike. Switching to kde xkb desables xmodmap, you have again kick to
> | xterm to run command xmodmap, and so on.
>
> mmm... but kde xkb should also work... you get keysyms from the X
> server as usual(?)

Tat's right. If /etc/X11/XF86Config is Option "XkbLayout" "pl" then KDE 
gives me polish map, can use any kde (and other) editor except Lyx. If 
command is run xmodmap, it looks like xkb extenions are overiten (?!)


-- 
-
Niedugo, dziadki, tej gry waszej bdzie;
Po chwili drugi nad czym inszym sidzie.(J.K.)
-



Re: Menu-keyboard-shcuts problem

2001-07-11 Thread Bronek Baraniecki

Dnia ro 11. Lipiec 2001 15:29, napisae:
> > "Bronek" == Bronek Baraniecki <[EMAIL PROTECTED]> writes:
>
> Bronek> But yet, I've gone back. I utilized for my needs a
> Bronek> de_menus.bin, made everything (I thing so) you said above but
> Bronek> it doesn't work. So I downgraded to ver. 1.1.6fix1 where
> Bronek> everything is OK.
>
> You should probably contact Pawel Dziekonski
> <[EMAIL PROTECTED]>, who is in charge of polish
> translation.
>
> JMarc

Thank you, I sent him a mail, now waiting.

Bruno

-- 
-
Ani za duo, ani  za mao --- to miara najlepsza
Bakcha, bo albo ci bólem, albo szalestwem napeni.(Euenos)
-



Re: lyx 1.1.6 and polish chars

2001-07-11 Thread Lars Gullik Bjønnes

Bronek Baraniecki <[EMAIL PROTECTED]> writes:

| > mmm... but kde xkb should also work... you get keysyms from the X
| > server as usual(?)
| 
| Tat's right. If /etc/X11/XF86Config is Option "XkbLayout" "pl" then KDE 
| gives me polish map, can use any kde (and other) editor except Lyx. If 
| command is run xmodmap, it looks like xkb extenions are overiten (?!)

You should run lyx as "lyx -dbg key" to find out what lyx really sees.

-- 
Lgb



search shortcuts don't work

2001-07-11 Thread Scott Otterson

The shortcuts for the search box's forward and backward search arrows are
supposed to be M-f and M-b.  But, in Lyx 1.1.6fix2, they move the cursor back
and forth in the search text window, rather than activating forward or backward
searching.

If this is a bug, is this the proper place to report it?  If this is not, am I
confused?

Thanks,

Scott



Footnote on the next page

2001-07-11 Thread Detlev Humann



Hi!
My problem is that Lyx/Latex puts the footnote 
mark(=number) correctly in the text of one page, but the footnote text (with 
correct footnote number of course) appears on the bottom of 
the_next_page.
(I know that Lyx/Latex sometimes splits a footnote 
over two pages, which isn´t very nice but acceptable. However, this is not 
my problem as I have interfootnotelinepenalty=1 in Latex preamble. The 
strange thing in my case is that it doesn´t make a difference if I comment it 
out or if I don´t)
Therefore my question is: How can I prevent 
this well known "M$-Word-Feature" in my Lyx/Latex document? I´d like 
to have footnote mark and footnote text on the_same_page.
Thanks in advance!
Detlev
 
 
 


Re: Footnote on the next page

2001-07-11 Thread Herbert Voss

> Detlev Humann wrote:
> 
> (I know that Lyx/Latex sometimes splits a footnote over two pages,
> which isn´t very nice but acceptable. However, this is not my problem
> as I have interfootnotelinepenalty=1 in Latex preamble. The
> strange thing in my case is that it doesn´t make a difference if I
> comment it out or if I don´t)

if you have the correct
\interfootnotelinepenalty=1

in preamble send a minimal lay-file, which shows the
behaviour.

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/