Sorry for the epic !

Subfigures with no caption will not get the usual (a) (b) (c) numbering
in the output. This is due to the following code in src/insets/figinset.C :

1444                 if (!subcaption.empty())
1445                         cmdbuf = "\\subfigure[" + subcaption +
1446                                 "]{" + cmdbuf + "}";
1447                 else
1448                         cmdbuf = "\\subfigure{" + cmdbuf + "}";    

Certainly for what I'm doing, I want the numbering despite having no
caption. 

Possibilities:

a) above code is intended default. Add a note in the documentation about
using " " as caption if you want empty, numbered subfigure captions

b) patch for lyxrc option \allow_empty_subfigure_captions to give my behaviour 

c)  the .empty() check simply be removed always giving my behaviour 
(will lyxstring::append append .empty() strings correctly ?) ? 


A minor thing: in lyx-devel CVS the cursor is obscured when next to a label. Looks like
the label needs to be trimmed a bit - I keep on losing the cursor only to find
it next to a label. Sorry I only had rae source at home but this (hack) patch works
great again for me :

--- PainterBase.C.old   Thu Mar 16 01:27:06 2000
+++ PainterBase.C       Thu Mar 16 01:53:20 2000
@@ -110,16 +110,16 @@
                                    int & width, int & ascent, int & descent)
 {
        static int const d = 2;
-       width = this->width(str, font) + d * 2 + 2;
+       width = this->width(str, font) + d * 2 + 5;
        ascent = font.maxAscent() + d;
        descent = font.maxDescent() + d;
 
        if (!draw) return *this;
 
-       rectangle(x, baseline - ascent, width, ascent + descent, frame);
-       fillRectangle(x + 1, baseline - ascent + 1, width - 1, 
+       rectangle(x + 1, baseline - ascent, width - 3, ascent + descent, frame);
+       fillRectangle(x + 2, baseline - ascent + 1, width - 4, 
                      ascent + descent - 1, back);
-       text(x + d, baseline, str, font);
+       text(x + 4, baseline, str, font);
        return *this;
 }
 

 
I also get coredumps from xforms 0.88 with lyx-devel CVS when trying to paste text
into the document w. 2nd mouse button (with math panel open). The text was selected
from another X app (konsole). This is common but not reproducable. I suppose this
is xform's problem although lyx-1.0* doesn't show this behaviour (sorry I haven't
checked other versions, can do if wanted (also I don't have a -g xforms so I can't
investigate the below)).

#0  0x401e4111 in __kill ()
#1  0x401e3d66 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x401e5447 in abort () at ../sysdeps/generic/abort.c:88
#3  0x80f9188 in lyx::chdir (name=0x402b01b4 "ð«\016") at abort.C:9
#4  0x8090400 in error_handler (err_sig=11) at ../src/lyx_main.C:608
#5  <signal handler called>
#6  0x3ffecccc in ?? ()
#7  0x4020a856 in _IO_vfprintf (s=0x402ae500, format=0x40086758 "%s%s\n", 
ap=0xbffff740) at vfprintf.c:1018
#8  0x402126f7 in fprintf (stream=0x402ae500, format=0x40086758 "%s%s\n") at 
fprintf.c:32
#9  0x4007afd5 in P_errmsg ()
#10 0x40034a09 in handle_clipboard_event ()
#11 0x40046e36 in do_interaction_step ()
#12 0x40046e82 in fl_treat_interaction_events ()
#13 0x40046ec0 in fl_check_forms ()
#14 0x808dd71 in LyXGUI::runTime (this=0x81761f0) at lyx_gui.C:599                  
                 ^^^^^^^^^^^^^^^

        this is where it's being called - looks like "should never happen" just did 

Finally, off-topic but does anyone know how to "turn off" showing of images in LaTeX
(I want the same layout but no images due to low printer ink) ? [viewport] seems 
reasonable
but LaTeX doesn't like me adding options to the \includegraphics LyX produces. 

Thanks,
        john

-- 
"Of all tyrannies, a tyranny exercised for the good of its victims may
 be the most oppressive. It may be better to live under robber barons
 than under omnipotent moral busybodies. The robber baron's cruelty may
 sometimes sleep, his cupidity may at some point be satiated; but those
 who torment us for our own good will torment us without end, for they
 do so with the approval of their consciences."
        - C. S. Lewis

Reply via email to