Re: working with images

2010-09-03 Thread Pavel Sanda
Jack Tanner wrote:
 When I wrote to this list a couple of weeks ago, I mentioned that I was 
 really enjoying LyX. I have to say, I'm enjoying it even more now. It's 
 remarkably useful and user-friendly. That said, I have a couple of 
 suggestions for making it a bit friendlier yet, both in the area of working 
 with images. I wouldn't be surprised if I'm just being dense, and LyX is 
 already capable of doing all this.

 1. I like being able to control how images display in LyX separately from 
 how they show up in the output. However, I've found that I often set the 
 two images to the same magnification in both. It'd be nice if it was the 
 default to use the same magnification in both so that I wouldn't have to 
 enter the number twice.

you will probably like grouping feature.

graphics settings-latex and lyx options-graphics group
(user guide, 4.4.2, Grouping of Image settings).


 2. It's not easy to view not shown or small-magnification images at full 
 size. I can right-click on an image and edit externally, but I'd rather 
 bind the left-click to a fast internal view command (or a view 
 externally command, and reserve the image properties dialog for the 
 right-click menu.

workaround is to change editor of image to your favourite viewer
and use edit entry for viewing (i use this for .eps viewing too...)
this can be done in preferences-file formats.

pavel


Re: agutex layout?

2010-09-03 Thread Evan Mason

 The location is incorrect. Put the agu-ps.sty and agutex.cls to the folder
 tex/latex/agutex
 Finally execute the command texhash.

Thanks, that works fine.

 The TeX system on Linux should be TeXLive and TeXLive comes with a 
 graphical interface to install LaTeX-packages. So after putting the cls- 
 and sty-files to tex/latex/agutex you should be able to use the TeXLive 
 package installer GUI to refresh the filename database of TeXLive.

I checked and I seem to have tetex, though texlive is available.  I am using
Mandriva 2010.0.


I have a 25-page article prepared for JGR, I wrote it using article class.  I
have run into a few minor problems with the conversion to agutex.

1. Some of the authors have accents in their names, I had written them as {\'a}
etc, but these now appear as blank spaces.

2. 'galley' mode works fine, but in 'draft' mode my figures don't appear;the
float appears with the the path and figure name printed, but no figure.

3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
about 20 figures which previously were embedded in the text, but agutex.layout
wants me to have all the figures at the end.  I've read that the way to avoid
the 'floats lost' warning is to put a Clear page every few figures, but do far
this is not working.  I have tried New page between every figure and this still
doesn't work.

Apart from these issues the layout file seems to be good.

Thanks, Evan







unary minus

2010-09-03 Thread Neal Becker
Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B, 
so the minus is too big and the space to B is too large.

Using tex code:
[A|{-B}] looks better, although I thing the minus is still too large.

What is the best lyx approach?



Re: agutex layout?

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 14:06, schrieb Evan Mason:


The TeX system on Linux should be TeXLive and TeXLive comes with a
graphical interface to install LaTeX-packages. So after putting the cls-
and sty-files to tex/latex/agutex you should be able to use the TeXLive
package installer GUI to refresh the filename database of TeXLive.


I checked and I seem to have tetex, though texlive is available.  I am using
Mandriva 2010.0.


tetex is no longer under development since 6years so better use TeXLive 
(after you submitted your paper.).



I have a 25-page article prepared for JGR, I wrote it using article class.  I
have run into a few minor problems with the conversion to agutex.

1. Some of the authors have accents in their names, I had written them as {\'a}
etc, but these now appear as blank spaces.


This is a bug in the agutex.cls file. Can you please report this to the 
agutex developers because the agutex documentation states that it should 
work:

http://www.agu.org/pubs/authors/manuscript_tools/journals/latex/spec_chars.shtml#accents

As a workaround you can put the character within a \textrm command as in 
the attached example. The result is unfortunately not perfect because 
the characters within \textrm will appear a bit too small. (Increasing 
the size one leavel leads to too large characters.)

This is another bug of agutex's \authors command.


2. 'galley' mode works fine, but in 'draft' mode my figures don't appear;the
float appears with the the path and figure name printed, but no figure.


But thats the idea of the draft mode - getting a quick preview of the 
document without images.



3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
about 20 figures which previously were embedded in the text, but agutex.layout
wants me to have all the figures at the end.  I've read that the way to avoid
the 'floats lost' warning is to put a Clear page every few figures, but do far
this is not working.  I have tried New page between every figure and this still
doesn't work.


That the figures and tables need to be placed at the end is the 
guideline of agutex. My layout strictly follows the agutex TeX example file:

ftp://ftp.agu.org/journals/latex/journals/Manuscript-Preparation/agutmpl.tex
But I don't get float errors. I guess this comes from your outdated 
LaTeX system.



Apart from these issues the layout file seems to be good.


OK, then I'll add it to LyX.

regards Uwe


Re: agutex layout?

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 15:19, schrieb Uwe Stöhr:


As a workaround you can put the character within a \textrm command as in
the attached example.


Now this is attached.

regards Uwe


agutex.lyx
Description: application/lyx


Re: unary minus

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 15:13, schrieb Neal Becker:


Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B,
so the minus is too big and the space to B is too large.


see this older mail from me:
http://osdir.com/ml/editors.lyx.general/2004-10/msg00161.html

regards Uwe


Re: unary minus

2010-09-03 Thread Paul A. Rubin

On 9/3/2010 9:13 AM, Neal Becker wrote:

Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B,
so the minus is too big and the space to B is too large.

Using tex code:
[A|{-B}] looks better, although I thing the minus is still too large.


The braces just shrink the space between the minus sign and B.  You can 
add them in the math editor by typing \{ (which will create an inset 
surrounded by {}).


What is the best lyx approach?


You might try the following key sequence (no spaces, I'm just adding 
them for legibility):

\{ ctrl-M - right-arrow B

\{ creates the inset (surrounded by LaTeX braces) to shrink the spacing.

ctrl-M puts you in text mode, so that the minus sign becomes a hyphen 
(which is shorter).


The right arrow gets you out of text mode (I assume you want B typeset 
in italics) but keeps you inside the braces.


HTH,
Paul




Re: how to add a caption to a Box inset?

2010-09-03 Thread Jürgen Spitzmüller
Justin Wood wrote:
 Thanks for the help, Jürgen. I'm not that great with using LaTeX directly,
 but is this on the right track for the boxedminipage style?
 \usepackage{boxedminipage} in the preamble; then
 
  \begin{boxedminipage}[c]{1\columnwidth}
 
 \label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}
 
 
 I inserted that as Tex code within LyX. I get a box this way, but I, err,
 can't quite see how to use this with a float and/or get a caption (in the
 Box 1, or Box 1.1 format). Sorry...

* Put the attached module in the layouts folder of your user directory 
(AboutLyX tells you where the user directory is, if there is no layouts 
folder yet, create it)

* Restart LyX

* Go to DocumentsSettings...Modules, select the module Boxed Float and hit 
Add

You should not be able to select a framed float from InsertFloats. The float 
does not exactly look like you want (the caption is outside the box). If you 
want to have the caption inside the box, the following definition in your 
document preamble (while using the Boxed Float module) should help:

\usepackage{framed}
\newcommand\flo...@simplerule[2]{{\@f...@cfont #1 #2}\par}
\renewcommand...@boxed{%
 \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
  \d...@fs@pre{\begin{framed}}%
  \d...@fs@post{\end{framed}}%
  \d...@fs@mid{\kern8pt}%
  \l...@fs@iftopcapt\iftrue}

HTH,
Jürgen
#\DeclareLyXModule{Boxed Float}
#DescriptionBegin
#Defines a new type of (framed) float.
#DescriptionEnd

# Author: Jürgen Spitzmüller sp...@lyx.org

Format 11

Float
Type  boxfloat
GuiName   Box
Placement tbp
Extension lob
NumberWithin  none
Style boxed
ListName  List of Boxes
LaTeXBuiltin  false
End




Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Todd Denniston
Pavel Sanda wrote, On 01/-10/-28163 02:59 PM:
 Todd Denniston wrote:
 So is this affecting current lyx 1.6.x on other distros?
 
 not on gentoo. what qt version do you have installed?
 pavel
 

Just so I am sure,
when you open/fire up lyx for steps 5-10, the outline pane is already open?
to reproduce for me, outline *had* to be open already and I had to select 
*back* to the first tab.

rpm -qa qt\*
qt-3.3.6-23.el5
qt-devel-3.3.6-23.el5
qt4-4.2.1-1

and ldd indicates lyx is using qt4
ldd /usr/bin/lyx |grep -i qt
libQtGui.so.4 = /usr/lib/qt4/lib/libQtGui.so.4 (0x0588b000)
libQtCore.so.4 = /usr/lib/qt4/lib/libQtCore.so.4 (0x00373000)

Unfortunately the lyx debug package was not put in EPEL so the bt may be less 
than desired.

gdb lyx
set args -dbg 8  lyxcrash2.txt 21
run


Thanks for the time you have spent looking at this, you and the other reports 
are beginning to sound
like it may be a `CentOS/RHEL 5 has something too old`, which is possible. I am 
just glad lyx 1.6
runs at all on it.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Starting program: /usr/bin/lyx -dbg 8  lyxcrash2.txt 21
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c86b90 (LWP 25250)]
Detaching after fork from child process 25251.

Program received signal SIGSEGV, Segmentation fault.
0x082da6d5 in lyx::Toc::item(lyx::DocIterator const) const ()
(gdb) bt
#0  0x082da6d5 in lyx::Toc::item(lyx::DocIterator const) const ()
#1  0x08551708 in lyx::frontend::TocModel::modelIndex(lyx::DocIterator const) 
const ()
#2  0x085519fb in lyx::frontend::TocModels::currentIndex(QString const) const
()
#3  0x086c54e7 in lyx::frontend::TocWidget::updateView() ()
#4  0x0850fcd2 in lyx::frontend::GuiView::updateDialogs() ()
#5  0x0850fe43 in lyx::frontend::GuiView::restartCursor() ()
#6  0x0823ccb9 in lyx::LyXFunc::dispatch(lyx::FuncRequest const) ()
#7  0x08221456 in lyx::dispatch(lyx::FuncRequest const) ()
#8  0x0855bc75 in lyx::frontend::Action::action() ()
#9  0x0855bd02 in lyx::frontend::Action::qt_metacall(QMetaObject::Call, int, 
void**) ()
#10 0x00464100 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#11 0x0046435f in QMetaObject::activate(QObject*, QMetaObject const*, int, int, 
void**) () from /usr/lib/qt4/lib/libQtCore.so.4
#12 0x0598b171 in QAction::triggered(bool) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#13 0x0598be2f in QAction::activate(QAction::ActionEvent) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#14 0x05c89464 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#15 0x05c8bc26 in QMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#16 0x059daae1 in QWidget::event(QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#17 0x05c866fc in QMenu::event(QEvent*) () from /usr/lib/qt4/lib/libQtGui.so.4
#18 0x05991810 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#19 0x05994293 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#20 0x084ed2db in lyx::frontend::GuiApplication::notify(QObject*, QEvent*) ()
#21 0x059ed7c8 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#22 0x059ec3df in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#23 0x05a0f275 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#24 0x00451ef1 in 
QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from 
/usr/lib/qt4/lib/libQtCore.so.4
#25 0x00451ffa in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#26 0x0045459d in QCoreApplication::exec() ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#27 0x05991287 in QApplication::exec() () from /usr/lib/qt4/lib/libQtGui.so.4
#28 0x0822d5be in lyx::LyX::exec(int, char**) ()
#29 0x081558f9 in main ()

Setting debug level to 8
Debugging `gui' (GUI handling)
GuiApplication.cpp(993): About to create new window with ID 0
GuiView.cpp(120): show banner: 1
Menus.cpp(1603): populating menu bar
Menus.cpp(1610): menu bar entries 8
Menus.cpp(1629): menu bar item File is a submenu named file
Menus.cpp(1629): menu bar item Edit is a submenu named edit
Menus.cpp(1629): menu bar item View is a submenu named view
Menus.cpp(1629): menu bar item Insert is a submenu named insert
Menus.cpp(1629): menu bar item Navigate is a submenu named navigate
Menus.cpp(1629): menu bar item Document is a submenu named document
Menus.cpp(1629): menu bar item Tools is a submenu named tools
Menus.cpp(1629): menu bar item Help is a submenu named help
GuiView.cpp(519): Passed Geometry 933x1180+512+-153
Menus.cpp(1649): Triggered menu: file
Menus.cpp(1194): populating menu 
Menus.cpp(1199):  *  menu entries 21
Menus.cpp(1194): populating menu file_lastfiles
Menus.cpp(1199):  *  menu entries 20
Menus.cpp(1194): populating menu file_vc
Menus.cpp(1196):ERROR: empty menu file_vc
Menus.cpp(1194): populating menu 

Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Pavel Sanda
Todd Denniston wrote:
 when you open/fire up lyx for steps 5-10, the outline pane is already open?

yes.

 to reproduce for me, outline *had* to be open already and I had to select 
 *back* to the first tab.
 
 qt4-4.2.1-1

 gdb lyx
 set args -dbg 8  lyxcrash2.txt 21
 run

the backtrace somewhat confirm my suspictions was that its outliner, which kill 
the whole thing down.
we made changes in 1.6.6.1 so it does not crash with qt 4.6, but it may
be possible that it was damaging for 4.2.1...
if my guess is true, then 1.6.5 should work (i would happy to know this, so we 
can warn users to upgrade
for newer Qt...)

 Thanks for the time you have spent looking at this, you and the other reports 
 are beginning to sound
 like it may be a `CentOS/RHEL 5 has something too old`, which is possible. I 
 am just glad lyx 1.6
 runs at all on it.

workaround is not to use outliner when switching buffers... ;)

pavel


Horizontal space popup

2010-09-03 Thread Torquil Macdonald Sørensen

Hi LyXers!

Is it possible to disable the Horizontal space popup that appears every time I 
left-click on such a space in a document? If find that it often appears when I 
try to click between a spacer and a character, and can be quite disruptive since 
it happens often.


-Torquil


Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Todd Denniston
Pavel Sanda wrote, On Fri, 03 Sep 2010 09:01:37 -0700:
 
 if my guess is true, then 1.6.5 should work (i would happy to know this, so we
 can warn users to upgrade for newer Qt...)

Grab copy of EPEL way back...that I had almost removed
yum remove lyx
yum install lyx-1.6.5-5.el5
lyx #setup outline
lyx # test {no breakage}
lyx # test {get breakage}
gdb lyx
set args -dbg 8  lyxcrash2.txt 21
run
Starting program: /usr/bin/lyx -dbg 8  lyxcrash2.txt 21
[Thread debugging using libthread_db enabled]
warning: .dynamic section for /usr/lib/libmng.so.1 is not at the expected 
address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for /usr/lib/liblcms.so.1 is not at the expected 
address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for /usr/lib/qt4/lib/libQtXml.so.4 is not at the 
expected address
warning: difference appears to be caused by prelink, adjusting expectations
[New Thread 0xb7c81b90 (LWP 24928)]
Detaching after fork from child process 24929.

Program received signal SIGSEGV, Segmentation fault.
0x082d5ad5 in lyx::Toc::item(lyx::DocIterator const) const ()
(gdb) bt

[The BT is the same except the addresses changed. i.e.
#0  0x082d5ad5 #1  0x085457a8 #2  0x08545e1b ... #10 0x00c3c100 ... #29 
0x081548d9]
[lyxcrash2.txt is the same except I get newfile1  newfile2 instead of newfile2 
 newfile3, i.e.
under a different and new account]

BTW1 I tried with `rm ~/.lyx/ -fr` `yum install lyx-1.6.3-1.el5` and got the 
same fault.
BTW2 the deltas that Rex lists between 1.6.5 and 1.6.5-5 I doubt affect this:
* Sun Feb 14 2010 Rex Dieter rdie...@fedoraproject.org - 1.6.5-5
- FTBFS lyx-1.6.5-4.fc13: ImplicitDSOLinking (#565009)

* Thu Jan 21 2010 Rex Dieter rdie...@fedoraproject.org - 1.6.5-4
- -fonts: Provides: lyx-{cmex10,cmmi10,cmr10,cmsy10}-fonts

* Sat Jan 16 2010 Rex Dieter rdie...@fedoraproject.org - 1.6.5-3
- rebiuld (boost)
- use simple font template

* Wed Dec 09 2009 José Matos jama...@fc.up.pt - 1.6.5-2
- Add patch for autoconf 2.65 (F13+)

* Wed Dec 09 2009 José Matos jama...@fc.up.pt - 1.6.5-1
- lyx-1.6.5



 workaround is not to use outliner when switching buffers... ;)

Workaround is to not use outliner, and switch buffers, and then close one. ;)
I just happened to hit this yesterday because I happened to want (for the first 
time :) to close
JUST one buffer instead of the whole program.  Of course I ended up getting 
whole program shutdown. :)
I can generally live with that workaround, especially as it seems to affect not 
very many folks.

Thanks again.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Pavel Sanda
Todd Denniston wrote:
 Program received signal SIGSEGV, Segmentation fault.
 0x082d5ad5 in lyx::Toc::item(lyx::DocIterator const) const ()
 (gdb) bt


ok i was wrong. another possibility would be to update qt's...

pavel


Re: Horizontal space popup

2010-09-03 Thread Richard Heck

On 09/03/2010 12:47 PM, Torquil Macdonald Sørensen wrote:

Hi LyXers!

Is it possible to disable the Horizontal space popup that appears 
every time I left-click on such a space in a document? If find that it 
often appears when I try to click between a spacer and a character, 
and can be quite disruptive since it happens often.


The context menu is defined in the stdcontext.inc menu definition file, 
which (on Linux) you would find somewhere like:

 /usr/share/lyx/ui/
You can copy this to your user directory, e.g.:
/home/you/.lyx/ui/stdcontext.inc
and then remove the definition for the context-space menu.

Richard



typing slowness with large documents

2010-09-03 Thread obregonmateo
I know that this issue has come up several times in the recent past, and that 
its been off-loaded onto xorg/QT problems. I am experiencing very slow reaction 
times when typing and deleting, as well as scrolling  the document window. I 
have the latest debian sid installation and everything else works fine.

Is there no solution for this, apart from moving to Lyx 2.0 (which is not an 
option for my large document)?

I have each chapter in a branch and I only work with one branch open at a time, 
but this doesn't help at all. I also have the navigation window closed, and 
math preview is off.

Mateo.




Re: typing slowness with large documents

2010-09-03 Thread Richard Heck

On 9/3/10 7:45 PM, obregonma...@gmail.com wrote:

I know that this issue has come up several times in the recent past, and that 
its been off-loaded onto xorg/QT problems. I am experiencing very slow reaction 
times when typing and deleting, as well as scrolling  the document window. I 
have the latest debian sid installation and everything else works fine.

   
I'm not sure it's fair to say it's been off-loaded somewhere else. If 
that is in fact the problem, then there is nothing we can do about it.



Is there no solution for this, apart from moving to Lyx 2.0 (which is not an 
option for my large document)?

   
Why wouldn't that be an option? I mean, we don't recommend 2.0 for 
serious work now, but size of document isn't a factor.


rh



Different bindings for math/non-math?

2010-09-03 Thread Wendell Smith

 Hi!

I have been using LyX for a while now, and very much enjoying it, but I 
would really love to be able to set different key bindings for math mode 
and non-math mode. My main reason for this is that in math mode, I have 
to use the Ctrl, Meta, and Shift keys so much that its starting to hurt 
my fingers, and I would like to have keybindings without modifiers 
(except maybe Shift for capitals) - so insert x would be 'v x' instead 
of just 'x', integral would be 'i', etc. Obviously, in text mode this 
would be very irritating, but in math mode, I think I would find it very 
convenient. Could that be done? Is there some way to automatically 
switch keybindings upon entering/leaving math mode?


Alternatively, is there any way to use a shortcut (or lyx function) to 
switch key bindings? That would not be quite as convenient, but still a 
good start...


Thanks,
Wendell


Re: working with images

2010-09-03 Thread Pavel Sanda
Jack Tanner wrote:
 When I wrote to this list a couple of weeks ago, I mentioned that I was 
 really enjoying LyX. I have to say, I'm enjoying it even more now. It's 
 remarkably useful and user-friendly. That said, I have a couple of 
 suggestions for making it a bit friendlier yet, both in the area of working 
 with images. I wouldn't be surprised if I'm just being dense, and LyX is 
 already capable of doing all this.

 1. I like being able to control how images display in LyX separately from 
 how they show up in the output. However, I've found that I often set the 
 two images to the same magnification in both. It'd be nice if it was the 
 default to use the same magnification in both so that I wouldn't have to 
 enter the number twice.

you will probably like grouping feature.

graphics settings-latex and lyx options-graphics group
(user guide, 4.4.2, Grouping of Image settings).


 2. It's not easy to view not shown or small-magnification images at full 
 size. I can right-click on an image and edit externally, but I'd rather 
 bind the left-click to a fast internal view command (or a view 
 externally command, and reserve the image properties dialog for the 
 right-click menu.

workaround is to change editor of image to your favourite viewer
and use edit entry for viewing (i use this for .eps viewing too...)
this can be done in preferences-file formats.

pavel


Re: agutex layout?

2010-09-03 Thread Evan Mason

 The location is incorrect. Put the agu-ps.sty and agutex.cls to the folder
 tex/latex/agutex
 Finally execute the command texhash.

Thanks, that works fine.

 The TeX system on Linux should be TeXLive and TeXLive comes with a 
 graphical interface to install LaTeX-packages. So after putting the cls- 
 and sty-files to tex/latex/agutex you should be able to use the TeXLive 
 package installer GUI to refresh the filename database of TeXLive.

I checked and I seem to have tetex, though texlive is available.  I am using
Mandriva 2010.0.


I have a 25-page article prepared for JGR, I wrote it using article class.  I
have run into a few minor problems with the conversion to agutex.

1. Some of the authors have accents in their names, I had written them as {\'a}
etc, but these now appear as blank spaces.

2. 'galley' mode works fine, but in 'draft' mode my figures don't appear;the
float appears with the the path and figure name printed, but no figure.

3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
about 20 figures which previously were embedded in the text, but agutex.layout
wants me to have all the figures at the end.  I've read that the way to avoid
the 'floats lost' warning is to put a Clear page every few figures, but do far
this is not working.  I have tried New page between every figure and this still
doesn't work.

Apart from these issues the layout file seems to be good.

Thanks, Evan







unary minus

2010-09-03 Thread Neal Becker
Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B, 
so the minus is too big and the space to B is too large.

Using tex code:
[A|{-B}] looks better, although I thing the minus is still too large.

What is the best lyx approach?



Re: agutex layout?

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 14:06, schrieb Evan Mason:


The TeX system on Linux should be TeXLive and TeXLive comes with a
graphical interface to install LaTeX-packages. So after putting the cls-
and sty-files to tex/latex/agutex you should be able to use the TeXLive
package installer GUI to refresh the filename database of TeXLive.


I checked and I seem to have tetex, though texlive is available.  I am using
Mandriva 2010.0.


tetex is no longer under development since 6years so better use TeXLive 
(after you submitted your paper.).



I have a 25-page article prepared for JGR, I wrote it using article class.  I
have run into a few minor problems with the conversion to agutex.

1. Some of the authors have accents in their names, I had written them as {\'a}
etc, but these now appear as blank spaces.


This is a bug in the agutex.cls file. Can you please report this to the 
agutex developers because the agutex documentation states that it should 
work:

http://www.agu.org/pubs/authors/manuscript_tools/journals/latex/spec_chars.shtml#accents

As a workaround you can put the character within a \textrm command as in 
the attached example. The result is unfortunately not perfect because 
the characters within \textrm will appear a bit too small. (Increasing 
the size one leavel leads to too large characters.)

This is another bug of agutex's \authors command.


2. 'galley' mode works fine, but in 'draft' mode my figures don't appear;the
float appears with the the path and figure name printed, but no figure.


But thats the idea of the draft mode - getting a quick preview of the 
document without images.



3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
about 20 figures which previously were embedded in the text, but agutex.layout
wants me to have all the figures at the end.  I've read that the way to avoid
the 'floats lost' warning is to put a Clear page every few figures, but do far
this is not working.  I have tried New page between every figure and this still
doesn't work.


That the figures and tables need to be placed at the end is the 
guideline of agutex. My layout strictly follows the agutex TeX example file:

ftp://ftp.agu.org/journals/latex/journals/Manuscript-Preparation/agutmpl.tex
But I don't get float errors. I guess this comes from your outdated 
LaTeX system.



Apart from these issues the layout file seems to be good.


OK, then I'll add it to LyX.

regards Uwe


Re: agutex layout?

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 15:19, schrieb Uwe Stöhr:


As a workaround you can put the character within a \textrm command as in
the attached example.


Now this is attached.

regards Uwe


agutex.lyx
Description: application/lyx


Re: unary minus

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 15:13, schrieb Neal Becker:


Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B,
so the minus is too big and the space to B is too large.


see this older mail from me:
http://osdir.com/ml/editors.lyx.general/2004-10/msg00161.html

regards Uwe


Re: unary minus

2010-09-03 Thread Paul A. Rubin

On 9/3/2010 9:13 AM, Neal Becker wrote:

Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B,
so the minus is too big and the space to B is too large.

Using tex code:
[A|{-B}] looks better, although I thing the minus is still too large.


The braces just shrink the space between the minus sign and B.  You can 
add them in the math editor by typing \{ (which will create an inset 
surrounded by {}).


What is the best lyx approach?


You might try the following key sequence (no spaces, I'm just adding 
them for legibility):

\{ ctrl-M - right-arrow B

\{ creates the inset (surrounded by LaTeX braces) to shrink the spacing.

ctrl-M puts you in text mode, so that the minus sign becomes a hyphen 
(which is shorter).


The right arrow gets you out of text mode (I assume you want B typeset 
in italics) but keeps you inside the braces.


HTH,
Paul




Re: how to add a caption to a Box inset?

2010-09-03 Thread Jürgen Spitzmüller
Justin Wood wrote:
 Thanks for the help, Jürgen. I'm not that great with using LaTeX directly,
 but is this on the right track for the boxedminipage style?
 \usepackage{boxedminipage} in the preamble; then
 
  \begin{boxedminipage}[c]{1\columnwidth}
 
 \label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}
 
 
 I inserted that as Tex code within LyX. I get a box this way, but I, err,
 can't quite see how to use this with a float and/or get a caption (in the
 Box 1, or Box 1.1 format). Sorry...

* Put the attached module in the layouts folder of your user directory 
(AboutLyX tells you where the user directory is, if there is no layouts 
folder yet, create it)

* Restart LyX

* Go to DocumentsSettings...Modules, select the module Boxed Float and hit 
Add

You should not be able to select a framed float from InsertFloats. The float 
does not exactly look like you want (the caption is outside the box). If you 
want to have the caption inside the box, the following definition in your 
document preamble (while using the Boxed Float module) should help:

\usepackage{framed}
\newcommand\flo...@simplerule[2]{{\@f...@cfont #1 #2}\par}
\renewcommand...@boxed{%
 \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
  \d...@fs@pre{\begin{framed}}%
  \d...@fs@post{\end{framed}}%
  \d...@fs@mid{\kern8pt}%
  \l...@fs@iftopcapt\iftrue}

HTH,
Jürgen
#\DeclareLyXModule{Boxed Float}
#DescriptionBegin
#Defines a new type of (framed) float.
#DescriptionEnd

# Author: Jürgen Spitzmüller sp...@lyx.org

Format 11

Float
Type  boxfloat
GuiName   Box
Placement tbp
Extension lob
NumberWithin  none
Style boxed
ListName  List of Boxes
LaTeXBuiltin  false
End




Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Todd Denniston
Pavel Sanda wrote, On 01/-10/-28163 02:59 PM:
 Todd Denniston wrote:
 So is this affecting current lyx 1.6.x on other distros?
 
 not on gentoo. what qt version do you have installed?
 pavel
 

Just so I am sure,
when you open/fire up lyx for steps 5-10, the outline pane is already open?
to reproduce for me, outline *had* to be open already and I had to select 
*back* to the first tab.

rpm -qa qt\*
qt-3.3.6-23.el5
qt-devel-3.3.6-23.el5
qt4-4.2.1-1

and ldd indicates lyx is using qt4
ldd /usr/bin/lyx |grep -i qt
libQtGui.so.4 = /usr/lib/qt4/lib/libQtGui.so.4 (0x0588b000)
libQtCore.so.4 = /usr/lib/qt4/lib/libQtCore.so.4 (0x00373000)

Unfortunately the lyx debug package was not put in EPEL so the bt may be less 
than desired.

gdb lyx
set args -dbg 8  lyxcrash2.txt 21
run


Thanks for the time you have spent looking at this, you and the other reports 
are beginning to sound
like it may be a `CentOS/RHEL 5 has something too old`, which is possible. I am 
just glad lyx 1.6
runs at all on it.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Starting program: /usr/bin/lyx -dbg 8  lyxcrash2.txt 21
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c86b90 (LWP 25250)]
Detaching after fork from child process 25251.

Program received signal SIGSEGV, Segmentation fault.
0x082da6d5 in lyx::Toc::item(lyx::DocIterator const) const ()
(gdb) bt
#0  0x082da6d5 in lyx::Toc::item(lyx::DocIterator const) const ()
#1  0x08551708 in lyx::frontend::TocModel::modelIndex(lyx::DocIterator const) 
const ()
#2  0x085519fb in lyx::frontend::TocModels::currentIndex(QString const) const
()
#3  0x086c54e7 in lyx::frontend::TocWidget::updateView() ()
#4  0x0850fcd2 in lyx::frontend::GuiView::updateDialogs() ()
#5  0x0850fe43 in lyx::frontend::GuiView::restartCursor() ()
#6  0x0823ccb9 in lyx::LyXFunc::dispatch(lyx::FuncRequest const) ()
#7  0x08221456 in lyx::dispatch(lyx::FuncRequest const) ()
#8  0x0855bc75 in lyx::frontend::Action::action() ()
#9  0x0855bd02 in lyx::frontend::Action::qt_metacall(QMetaObject::Call, int, 
void**) ()
#10 0x00464100 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#11 0x0046435f in QMetaObject::activate(QObject*, QMetaObject const*, int, int, 
void**) () from /usr/lib/qt4/lib/libQtCore.so.4
#12 0x0598b171 in QAction::triggered(bool) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#13 0x0598be2f in QAction::activate(QAction::ActionEvent) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#14 0x05c89464 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#15 0x05c8bc26 in QMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#16 0x059daae1 in QWidget::event(QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#17 0x05c866fc in QMenu::event(QEvent*) () from /usr/lib/qt4/lib/libQtGui.so.4
#18 0x05991810 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#19 0x05994293 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#20 0x084ed2db in lyx::frontend::GuiApplication::notify(QObject*, QEvent*) ()
#21 0x059ed7c8 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#22 0x059ec3df in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#23 0x05a0f275 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#24 0x00451ef1 in 
QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from 
/usr/lib/qt4/lib/libQtCore.so.4
#25 0x00451ffa in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#26 0x0045459d in QCoreApplication::exec() ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#27 0x05991287 in QApplication::exec() () from /usr/lib/qt4/lib/libQtGui.so.4
#28 0x0822d5be in lyx::LyX::exec(int, char**) ()
#29 0x081558f9 in main ()

Setting debug level to 8
Debugging `gui' (GUI handling)
GuiApplication.cpp(993): About to create new window with ID 0
GuiView.cpp(120): show banner: 1
Menus.cpp(1603): populating menu bar
Menus.cpp(1610): menu bar entries 8
Menus.cpp(1629): menu bar item File is a submenu named file
Menus.cpp(1629): menu bar item Edit is a submenu named edit
Menus.cpp(1629): menu bar item View is a submenu named view
Menus.cpp(1629): menu bar item Insert is a submenu named insert
Menus.cpp(1629): menu bar item Navigate is a submenu named navigate
Menus.cpp(1629): menu bar item Document is a submenu named document
Menus.cpp(1629): menu bar item Tools is a submenu named tools
Menus.cpp(1629): menu bar item Help is a submenu named help
GuiView.cpp(519): Passed Geometry 933x1180+512+-153
Menus.cpp(1649): Triggered menu: file
Menus.cpp(1194): populating menu 
Menus.cpp(1199):  *  menu entries 21
Menus.cpp(1194): populating menu file_lastfiles
Menus.cpp(1199):  *  menu entries 20
Menus.cpp(1194): populating menu file_vc
Menus.cpp(1196):ERROR: empty menu file_vc
Menus.cpp(1194): populating menu 

Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Pavel Sanda
Todd Denniston wrote:
 when you open/fire up lyx for steps 5-10, the outline pane is already open?

yes.

 to reproduce for me, outline *had* to be open already and I had to select 
 *back* to the first tab.
 
 qt4-4.2.1-1

 gdb lyx
 set args -dbg 8  lyxcrash2.txt 21
 run

the backtrace somewhat confirm my suspictions was that its outliner, which kill 
the whole thing down.
we made changes in 1.6.6.1 so it does not crash with qt 4.6, but it may
be possible that it was damaging for 4.2.1...
if my guess is true, then 1.6.5 should work (i would happy to know this, so we 
can warn users to upgrade
for newer Qt...)

 Thanks for the time you have spent looking at this, you and the other reports 
 are beginning to sound
 like it may be a `CentOS/RHEL 5 has something too old`, which is possible. I 
 am just glad lyx 1.6
 runs at all on it.

workaround is not to use outliner when switching buffers... ;)

pavel


Horizontal space popup

2010-09-03 Thread Torquil Macdonald Sørensen

Hi LyXers!

Is it possible to disable the Horizontal space popup that appears every time I 
left-click on such a space in a document? If find that it often appears when I 
try to click between a spacer and a character, and can be quite disruptive since 
it happens often.


-Torquil


Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Todd Denniston
Pavel Sanda wrote, On Fri, 03 Sep 2010 09:01:37 -0700:
 
 if my guess is true, then 1.6.5 should work (i would happy to know this, so we
 can warn users to upgrade for newer Qt...)

Grab copy of EPEL way back...that I had almost removed
yum remove lyx
yum install lyx-1.6.5-5.el5
lyx #setup outline
lyx # test {no breakage}
lyx # test {get breakage}
gdb lyx
set args -dbg 8  lyxcrash2.txt 21
run
Starting program: /usr/bin/lyx -dbg 8  lyxcrash2.txt 21
[Thread debugging using libthread_db enabled]
warning: .dynamic section for /usr/lib/libmng.so.1 is not at the expected 
address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for /usr/lib/liblcms.so.1 is not at the expected 
address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for /usr/lib/qt4/lib/libQtXml.so.4 is not at the 
expected address
warning: difference appears to be caused by prelink, adjusting expectations
[New Thread 0xb7c81b90 (LWP 24928)]
Detaching after fork from child process 24929.

Program received signal SIGSEGV, Segmentation fault.
0x082d5ad5 in lyx::Toc::item(lyx::DocIterator const) const ()
(gdb) bt

[The BT is the same except the addresses changed. i.e.
#0  0x082d5ad5 #1  0x085457a8 #2  0x08545e1b ... #10 0x00c3c100 ... #29 
0x081548d9]
[lyxcrash2.txt is the same except I get newfile1  newfile2 instead of newfile2 
 newfile3, i.e.
under a different and new account]

BTW1 I tried with `rm ~/.lyx/ -fr` `yum install lyx-1.6.3-1.el5` and got the 
same fault.
BTW2 the deltas that Rex lists between 1.6.5 and 1.6.5-5 I doubt affect this:
* Sun Feb 14 2010 Rex Dieter rdie...@fedoraproject.org - 1.6.5-5
- FTBFS lyx-1.6.5-4.fc13: ImplicitDSOLinking (#565009)

* Thu Jan 21 2010 Rex Dieter rdie...@fedoraproject.org - 1.6.5-4
- -fonts: Provides: lyx-{cmex10,cmmi10,cmr10,cmsy10}-fonts

* Sat Jan 16 2010 Rex Dieter rdie...@fedoraproject.org - 1.6.5-3
- rebiuld (boost)
- use simple font template

* Wed Dec 09 2009 José Matos jama...@fc.up.pt - 1.6.5-2
- Add patch for autoconf 2.65 (F13+)

* Wed Dec 09 2009 José Matos jama...@fc.up.pt - 1.6.5-1
- lyx-1.6.5



 workaround is not to use outliner when switching buffers... ;)

Workaround is to not use outliner, and switch buffers, and then close one. ;)
I just happened to hit this yesterday because I happened to want (for the first 
time :) to close
JUST one buffer instead of the whole program.  Of course I ended up getting 
whole program shutdown. :)
I can generally live with that workaround, especially as it seems to affect not 
very many folks.

Thanks again.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Pavel Sanda
Todd Denniston wrote:
 Program received signal SIGSEGV, Segmentation fault.
 0x082d5ad5 in lyx::Toc::item(lyx::DocIterator const) const ()
 (gdb) bt


ok i was wrong. another possibility would be to update qt's...

pavel


Re: Horizontal space popup

2010-09-03 Thread Richard Heck

On 09/03/2010 12:47 PM, Torquil Macdonald Sørensen wrote:

Hi LyXers!

Is it possible to disable the Horizontal space popup that appears 
every time I left-click on such a space in a document? If find that it 
often appears when I try to click between a spacer and a character, 
and can be quite disruptive since it happens often.


The context menu is defined in the stdcontext.inc menu definition file, 
which (on Linux) you would find somewhere like:

 /usr/share/lyx/ui/
You can copy this to your user directory, e.g.:
/home/you/.lyx/ui/stdcontext.inc
and then remove the definition for the context-space menu.

Richard



typing slowness with large documents

2010-09-03 Thread obregonmateo
I know that this issue has come up several times in the recent past, and that 
its been off-loaded onto xorg/QT problems. I am experiencing very slow reaction 
times when typing and deleting, as well as scrolling  the document window. I 
have the latest debian sid installation and everything else works fine.

Is there no solution for this, apart from moving to Lyx 2.0 (which is not an 
option for my large document)?

I have each chapter in a branch and I only work with one branch open at a time, 
but this doesn't help at all. I also have the navigation window closed, and 
math preview is off.

Mateo.




Re: typing slowness with large documents

2010-09-03 Thread Richard Heck

On 9/3/10 7:45 PM, obregonma...@gmail.com wrote:

I know that this issue has come up several times in the recent past, and that 
its been off-loaded onto xorg/QT problems. I am experiencing very slow reaction 
times when typing and deleting, as well as scrolling  the document window. I 
have the latest debian sid installation and everything else works fine.

   
I'm not sure it's fair to say it's been off-loaded somewhere else. If 
that is in fact the problem, then there is nothing we can do about it.



Is there no solution for this, apart from moving to Lyx 2.0 (which is not an 
option for my large document)?

   
Why wouldn't that be an option? I mean, we don't recommend 2.0 for 
serious work now, but size of document isn't a factor.


rh



Different bindings for math/non-math?

2010-09-03 Thread Wendell Smith

 Hi!

I have been using LyX for a while now, and very much enjoying it, but I 
would really love to be able to set different key bindings for math mode 
and non-math mode. My main reason for this is that in math mode, I have 
to use the Ctrl, Meta, and Shift keys so much that its starting to hurt 
my fingers, and I would like to have keybindings without modifiers 
(except maybe Shift for capitals) - so insert x would be 'v x' instead 
of just 'x', integral would be 'i', etc. Obviously, in text mode this 
would be very irritating, but in math mode, I think I would find it very 
convenient. Could that be done? Is there some way to automatically 
switch keybindings upon entering/leaving math mode?


Alternatively, is there any way to use a shortcut (or lyx function) to 
switch key bindings? That would not be quite as convenient, but still a 
good start...


Thanks,
Wendell


Re: working with images

2010-09-03 Thread Pavel Sanda
Jack Tanner wrote:
> When I wrote to this list a couple of weeks ago, I mentioned that I was 
> really enjoying LyX. I have to say, I'm enjoying it even more now. It's 
> remarkably useful and user-friendly. That said, I have a couple of 
> suggestions for making it a bit friendlier yet, both in the area of working 
> with images. I wouldn't be surprised if I'm just being dense, and LyX is 
> already capable of doing all this.
>
> 1. I like being able to control how images display in LyX separately from 
> how they show up in the output. However, I've found that I often set the 
> two images to the same magnification in both. It'd be nice if it was the 
> default to use the same magnification in both so that I wouldn't have to 
> enter the number twice.

you will probably like grouping feature.

graphics settings->latex and lyx options->graphics group
(user guide, 4.4.2, Grouping of Image settings).


> 2. It's not easy to view not shown or small-magnification images at full 
> size. I can right-click on an image and "edit externally", but I'd rather 
> bind the left-click to a fast internal "view" command (or a "view 
> externally" command, and reserve the image properties dialog for the 
> right-click menu.

workaround is to change editor of image to your favourite viewer
and use edit entry for viewing (i use this for .eps viewing too...)
this can be done in preferences->file formats.

pavel


Re: agutex layout?

2010-09-03 Thread Evan Mason

> The location is incorrect. Put the agu-ps.sty and agutex.cls to the folder
> tex/latex/agutex
> Finally execute the command "texhash".

Thanks, that works fine.

> The TeX system on Linux should be TeXLive and TeXLive comes with a 
> graphical interface to install LaTeX-packages. So after putting the cls- 
> and sty-files to tex/latex/agutex you should be able to use the TeXLive 
> package installer GUI to refresh the filename database of TeXLive.

I checked and I seem to have tetex, though texlive is available.  I am using
Mandriva 2010.0.


I have a 25-page article prepared for JGR, I wrote it using article class.  I
have run into a few minor problems with the conversion to agutex.

1. Some of the authors have accents in their names, I had written them as {\'a}
etc, but these now appear as blank spaces.

2. 'galley' mode works fine, but in 'draft' mode my figures don't appear;the
float appears with the the path and figure name printed, but no figure.

3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
about 20 figures which previously were embedded in the text, but agutex.layout
wants me to have all the figures at the end.  I've read that the way to avoid
the 'floats lost' warning is to put a Clear page every few figures, but do far
this is not working.  I have tried New page between every figure and this still
doesn't work.

Apart from these issues the layout file seems to be good.

Thanks, Evan







unary minus

2010-09-03 Thread Neal Becker
Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B, 
so the minus is too big and the space to B is too large.

Using tex code:
[A|{-B}] looks better, although I thing the minus is still too large.

What is the best lyx approach?



Re: agutex layout?

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 14:06, schrieb Evan Mason:


The TeX system on Linux should be TeXLive and TeXLive comes with a
graphical interface to install LaTeX-packages. So after putting the cls-
and sty-files to tex/latex/agutex you should be able to use the TeXLive
package installer GUI to refresh the filename database of TeXLive.


I checked and I seem to have tetex, though texlive is available.  I am using
Mandriva 2010.0.


tetex is no longer under development since 6years so better use TeXLive 
(after you submitted your paper.).



I have a 25-page article prepared for JGR, I wrote it using article class.  I
have run into a few minor problems with the conversion to agutex.

1. Some of the authors have accents in their names, I had written them as {\'a}
etc, but these now appear as blank spaces.


This is a bug in the agutex.cls file. Can you please report this to the 
agutex developers because the agutex documentation states that it should 
work:

http://www.agu.org/pubs/authors/manuscript_tools/journals/latex/spec_chars.shtml#accents

As a workaround you can put the character within a \textrm command as in 
the attached example. The result is unfortunately not perfect because 
the characters within \textrm will appear a bit too small. (Increasing 
the size one leavel leads to too large characters.)

This is another bug of agutex's \authors command.


2. 'galley' mode works fine, but in 'draft' mode my figures don't appear;the
float appears with the the path and figure name printed, but no figure.


But thats the idea of the draft mode - getting a quick preview of the 
document without images.



3. I'm also struggling with the 'Latex error, floats lost' warnings.  I have
about 20 figures which previously were embedded in the text, but agutex.layout
wants me to have all the figures at the end.  I've read that the way to avoid
the 'floats lost' warning is to put a Clear page every few figures, but do far
this is not working.  I have tried New page between every figure and this still
doesn't work.


That the figures and tables need to be placed at the end is the 
guideline of agutex. My layout strictly follows the agutex TeX example file:

ftp://ftp.agu.org/journals/latex/journals/Manuscript-Preparation/agutmpl.tex
But I don't get float errors. I guess this comes from your outdated 
LaTeX system.



Apart from these issues the layout file seems to be good.


OK, then I'll add it to LyX.

regards Uwe


Re: agutex layout?

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 15:19, schrieb Uwe Stöhr:


As a workaround you can put the character within a \textrm command as in
the attached example.


Now this is attached.

regards Uwe


agutex.lyx
Description: application/lyx


Re: unary minus

2010-09-03 Thread Uwe Stöhr

Am 03.09.2010 15:13, schrieb Neal Becker:


Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B,
so the minus is too big and the space to B is too large.


see this older mail from me:
http://osdir.com/ml/editors.lyx.general/2004-10/msg00161.html

regards Uwe


Re: unary minus

2010-09-03 Thread Paul A. Rubin

On 9/3/2010 9:13 AM, Neal Becker wrote:

Inserting the following in math mode
[A|-B]
the minus appears as an binary operator rather than a unary operator on B,
so the minus is too big and the space to B is too large.

Using tex code:
[A|{-B}] looks better, although I thing the minus is still too large.


The braces just shrink the space between the minus sign and B.  You can 
add them in the math editor by typing \{ (which will create an inset 
surrounded by {}).


What is the best lyx approach?


You might try the following key sequence (no spaces, I'm just adding 
them for legibility):

\{ ctrl-M - right-arrow B

\{ creates the inset (surrounded by LaTeX braces) to shrink the spacing.

ctrl-M puts you in text mode, so that the minus sign becomes a hyphen 
(which is shorter).


The right arrow gets you out of text mode (I assume you want B typeset 
in italics) but keeps you inside the braces.


HTH,
Paul




Re: how to add a caption to a Box inset?

2010-09-03 Thread Jürgen Spitzmüller
Justin Wood wrote:
> Thanks for the help, Jürgen. I'm not that great with using LaTeX directly,
> but is this on the right track for the boxedminipage style?
> \usepackage{boxedminipage} in the preamble; then
> 
>  \begin{boxedminipage}[c]{1\columnwidth}
> 
> \label{Box: hydrological cycle}Some text, blah blah\end{boxedminipage}
> 
> 
> I inserted that as Tex code within LyX. I get a box this way, but I, err,
> can't quite see how to use this with a float and/or get a caption (in the
> Box 1, or Box 1.1 format). Sorry...

* Put the attached module in the layouts folder of your user directory 
(About>LyX tells you where the user directory is, if there is no layouts 
folder yet, create it)

* Restart LyX

* Go to Documents>Settings...>Modules, select the module "Boxed Float" and hit 
"Add"

You should not be able to select a framed float from Insert>Floats. The float 
does not exactly look like you want (the caption is outside the box). If you 
want to have the caption inside the box, the following definition in your 
document preamble (while using the Boxed Float module) should help:

\usepackage{framed}
\newcommand\flo...@simplerule[2]{{\@f...@cfont #1 #2}\par}
\renewcommand...@boxed{%
 \d...@fs@cfont{\bfseries}\l...@fs@capt\flo...@simplerule
  \d...@fs@pre{\begin{framed}}%
  \d...@fs@post{\end{framed}}%
  \d...@fs@mid{\kern8pt}%
  \l...@fs@iftopcapt\iftrue}

HTH,
Jürgen
#\DeclareLyXModule{Boxed Float}
#DescriptionBegin
#Defines a new type of (framed) float.
#DescriptionEnd

# Author: Jürgen Spitzmüller 

Format 11

Float
Type  boxfloat
GuiName   "Box"
Placement tbp
Extension lob
NumberWithin  none
Style boxed
ListName  "List of Boxes"
LaTeXBuiltin  false
End




Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Todd Denniston
Pavel Sanda wrote, On 01/-10/-28163 02:59 PM:
> Todd Denniston wrote:
>> So is this affecting current lyx 1.6.x on other distros?
> 
> not on gentoo. what qt version do you have installed?
> pavel
> 

Just so I am sure,
when you open/fire up lyx for steps 5-10, the outline pane is already open?
to reproduce for me, outline *had* to be open already and I had to select 
*back* to the first tab.

rpm -qa qt\*
qt-3.3.6-23.el5
qt-devel-3.3.6-23.el5
qt4-4.2.1-1

and ldd indicates lyx is using qt4
ldd /usr/bin/lyx |grep -i qt
libQtGui.so.4 => /usr/lib/qt4/lib/libQtGui.so.4 (0x0588b000)
libQtCore.so.4 => /usr/lib/qt4/lib/libQtCore.so.4 (0x00373000)

Unfortunately the lyx debug package was not put in EPEL so the bt may be less 
than desired.

gdb lyx
set args -dbg 8 > lyxcrash2.txt 2>&1
run


Thanks for the time you have spent looking at this, you and the other reports 
are beginning to sound
like it may be a `CentOS/RHEL 5 has something too old`, which is possible. I am 
just glad lyx 1.6
runs at all on it.
-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Starting program: /usr/bin/lyx -dbg 8 > lyxcrash2.txt 2>&1
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c86b90 (LWP 25250)]
Detaching after fork from child process 25251.

Program received signal SIGSEGV, Segmentation fault.
0x082da6d5 in lyx::Toc::item(lyx::DocIterator const&) const ()
(gdb) bt
#0  0x082da6d5 in lyx::Toc::item(lyx::DocIterator const&) const ()
#1  0x08551708 in lyx::frontend::TocModel::modelIndex(lyx::DocIterator const&) 
const ()
#2  0x085519fb in lyx::frontend::TocModels::currentIndex(QString const&) const
()
#3  0x086c54e7 in lyx::frontend::TocWidget::updateView() ()
#4  0x0850fcd2 in lyx::frontend::GuiView::updateDialogs() ()
#5  0x0850fe43 in lyx::frontend::GuiView::restartCursor() ()
#6  0x0823ccb9 in lyx::LyXFunc::dispatch(lyx::FuncRequest const&) ()
#7  0x08221456 in lyx::dispatch(lyx::FuncRequest const&) ()
#8  0x0855bc75 in lyx::frontend::Action::action() ()
#9  0x0855bd02 in lyx::frontend::Action::qt_metacall(QMetaObject::Call, int, 
void**) ()
#10 0x00464100 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#11 0x0046435f in QMetaObject::activate(QObject*, QMetaObject const*, int, int, 
void**) () from /usr/lib/qt4/lib/libQtCore.so.4
#12 0x0598b171 in QAction::triggered(bool) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#13 0x0598be2f in QAction::activate(QAction::ActionEvent) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#14 0x05c89464 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#15 0x05c8bc26 in QMenu::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#16 0x059daae1 in QWidget::event(QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#17 0x05c866fc in QMenu::event(QEvent*) () from /usr/lib/qt4/lib/libQtGui.so.4
#18 0x05991810 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#19 0x05994293 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#20 0x084ed2db in lyx::frontend::GuiApplication::notify(QObject*, QEvent*) ()
#21 0x059ed7c8 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#22 0x059ec3df in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt4/lib/libQtGui.so.4
#23 0x05a0f275 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#24 0x00451ef1 in 
QEventLoop::processEvents(QFlags) () from 
/usr/lib/qt4/lib/libQtCore.so.4
#25 0x00451ffa in QEventLoop::exec(QFlags) ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#26 0x0045459d in QCoreApplication::exec() ()
   from /usr/lib/qt4/lib/libQtCore.so.4
#27 0x05991287 in QApplication::exec() () from /usr/lib/qt4/lib/libQtGui.so.4
#28 0x0822d5be in lyx::LyX::exec(int&, char**) ()
#29 0x081558f9 in main ()

Setting debug level to 8
Debugging `gui' (GUI handling)
GuiApplication.cpp(993): About to create new window with ID 0
GuiView.cpp(120): show banner: 1
Menus.cpp(1603): populating menu bar
Menus.cpp(1610): menu bar entries 8
Menus.cpp(1629): menu bar item File is a submenu named file
Menus.cpp(1629): menu bar item Edit is a submenu named edit
Menus.cpp(1629): menu bar item View is a submenu named view
Menus.cpp(1629): menu bar item Insert is a submenu named insert
Menus.cpp(1629): menu bar item Navigate is a submenu named navigate
Menus.cpp(1629): menu bar item Document is a submenu named document
Menus.cpp(1629): menu bar item Tools is a submenu named tools
Menus.cpp(1629): menu bar item Help is a submenu named help
GuiView.cpp(519): Passed Geometry 933x1180+512+-153
Menus.cpp(1649): Triggered menu: file
Menus.cpp(1194): populating menu 
Menus.cpp(1199):  *  menu entries 21
Menus.cpp(1194): populating menu file_lastfiles
Menus.cpp(1199):  *  menu entries 20
Menus.cpp(1194): populating menu file_vc
Menus.cpp(1196):ERROR: empty menu file_vc
Menus.cpp(1194): populating menu file_import
Menus.cpp(1199):  *  menu 

Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Pavel Sanda
Todd Denniston wrote:
> when you open/fire up lyx for steps 5-10, the outline pane is already open?

yes.

> to reproduce for me, outline *had* to be open already and I had to select 
> *back* to the first tab.
> 
> qt4-4.2.1-1

> gdb lyx
> set args -dbg 8 > lyxcrash2.txt 2>&1
> run

the backtrace somewhat confirm my suspictions was that its outliner, which kill 
the whole thing down.
we made changes in 1.6.6.1 so it does not crash with qt 4.6, but it may
be possible that it was damaging for 4.2.1...
if my guess is true, then 1.6.5 should work (i would happy to know this, so we 
can warn users to upgrade
for newer Qt...)

> Thanks for the time you have spent looking at this, you and the other reports 
> are beginning to sound
> like it may be a `CentOS/RHEL 5 has something too old`, which is possible. I 
> am just glad lyx 1.6
> runs at all on it.

workaround is not to use outliner when switching buffers... ;)

pavel


Horizontal space popup

2010-09-03 Thread Torquil Macdonald Sørensen

Hi LyXers!

Is it possible to disable the "Horizontal space" popup that appears every time I 
left-click on such a space in a document? If find that it often appears when I 
try to click between a spacer and a character, and can be quite disruptive since 
it happens often.


-Torquil


Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Todd Denniston
Pavel Sanda wrote, On Fri, 03 Sep 2010 09:01:37 -0700:
> 
> if my guess is true, then 1.6.5 should work (i would happy to know this, so we
> can warn users to upgrade for newer Qt...)


yum remove lyx
yum install lyx-1.6.5-5.el5
lyx #setup outline
lyx # test {no breakage}
lyx # test {get breakage}
gdb lyx
set args -dbg 8 > lyxcrash2.txt 2>&1
run
Starting program: /usr/bin/lyx -dbg 8 > lyxcrash2.txt 2>&1
[Thread debugging using libthread_db enabled]
warning: .dynamic section for "/usr/lib/libmng.so.1" is not at the expected 
address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for "/usr/lib/liblcms.so.1" is not at the expected 
address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for "/usr/lib/qt4/lib/libQtXml.so.4" is not at the 
expected address
warning: difference appears to be caused by prelink, adjusting expectations
[New Thread 0xb7c81b90 (LWP 24928)]
Detaching after fork from child process 24929.

Program received signal SIGSEGV, Segmentation fault.
0x082d5ad5 in lyx::Toc::item(lyx::DocIterator const&) const ()
(gdb) bt

[The BT is the same except the addresses changed. i.e.
#0  0x082d5ad5 #1  0x085457a8 #2  0x08545e1b ... #10 0x00c3c100 ... #29 
0x081548d9]
[lyxcrash2.txt is the same except I get newfile1 & newfile2 instead of newfile2 
& newfile3, i.e.
under a different and new account]

BTW1 I tried with `rm ~/.lyx/ -fr` `yum install lyx-1.6.3-1.el5` and got the 
same fault.
BTW2 the deltas that Rex lists between 1.6.5 and 1.6.5-5 I doubt affect this:
* Sun Feb 14 2010 Rex Dieter  - 1.6.5-5
- FTBFS lyx-1.6.5-4.fc13: ImplicitDSOLinking (#565009)

* Thu Jan 21 2010 Rex Dieter  - 1.6.5-4
- -fonts: Provides: lyx-{cmex10,cmmi10,cmr10,cmsy10}-fonts

* Sat Jan 16 2010 Rex Dieter  - 1.6.5-3
- rebiuld (boost)
- use simple font template

* Wed Dec 09 2009 José Matos  - 1.6.5-2
- Add patch for autoconf 2.65 (F13+)

* Wed Dec 09 2009 José Matos  - 1.6.5-1
- lyx-1.6.5



> workaround is not to use outliner when switching buffers... ;)

Workaround is to not use outliner, and switch buffers, and then close one. ;)
I just happened to hit this yesterday because I happened to want (for the first 
time :) to close
JUST one buffer instead of the whole program.  Of course I ended up getting 
whole program shutdown. :)
I can generally live with that workaround, especially as it seems to affect not 
very many folks.

Thanks again.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter


Re: Re: opening two tabs with outline on and closing one, crashes lyx.

2010-09-03 Thread Pavel Sanda
Todd Denniston wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x082d5ad5 in lyx::Toc::item(lyx::DocIterator const&) const ()
> (gdb) bt


ok i was wrong. another possibility would be to update qt's...

pavel


Re: Horizontal space popup

2010-09-03 Thread Richard Heck

On 09/03/2010 12:47 PM, Torquil Macdonald Sørensen wrote:

Hi LyXers!

Is it possible to disable the "Horizontal space" popup that appears 
every time I left-click on such a space in a document? If find that it 
often appears when I try to click between a spacer and a character, 
and can be quite disruptive since it happens often.


The context menu is defined in the stdcontext.inc menu definition file, 
which (on Linux) you would find somewhere like:

 /usr/share/lyx/ui/
You can copy this to your user directory, e.g.:
/home/you/.lyx/ui/stdcontext.inc
and then remove the definition for the context-space menu.

Richard



typing slowness with large documents

2010-09-03 Thread obregonmateo
I know that this issue has come up several times in the recent past, and that 
its been off-loaded onto xorg/QT problems. I am experiencing very slow reaction 
times when typing and deleting, as well as scrolling  the document window. I 
have the latest debian sid installation and everything else works fine.

Is there no solution for this, apart from moving to Lyx 2.0 (which is not an 
option for my large document)?

I have each chapter in a branch and I only work with one branch open at a time, 
but this doesn't help at all. I also have the navigation window closed, and 
math preview is off.

Mateo.




Re: typing slowness with large documents

2010-09-03 Thread Richard Heck

On 9/3/10 7:45 PM, obregonma...@gmail.com wrote:

I know that this issue has come up several times in the recent past, and that 
its been off-loaded onto xorg/QT problems. I am experiencing very slow reaction 
times when typing and deleting, as well as scrolling  the document window. I 
have the latest debian sid installation and everything else works fine.

   
I'm not sure it's fair to say it's been "off-loaded" somewhere else. If 
that is in fact the problem, then there is nothing we can do about it.



Is there no solution for this, apart from moving to Lyx 2.0 (which is not an 
option for my large document)?

   
Why wouldn't that be an option? I mean, we don't recommend 2.0 for 
serious work now, but size of document isn't a factor.


rh



Different bindings for math/non-math?

2010-09-03 Thread Wendell Smith

 Hi!

I have been using LyX for a while now, and very much enjoying it, but I 
would really love to be able to set different key bindings for math mode 
and non-math mode. My main reason for this is that in math mode, I have 
to use the Ctrl, Meta, and Shift keys so much that its starting to hurt 
my fingers, and I would like to have keybindings without modifiers 
(except maybe Shift for capitals) - so insert x would be 'v x' instead 
of just 'x', integral would be 'i', etc. Obviously, in text mode this 
would be very irritating, but in math mode, I think I would find it very 
convenient. Could that be done? Is there some way to automatically 
switch keybindings upon entering/leaving math mode?


Alternatively, is there any way to use a shortcut (or lyx function) to 
switch key bindings? That would not be quite as convenient, but still a 
good start...


Thanks,
Wendell