On Friday 19 September 2003 12:27 pm, Andre Poenitz wrote: > On Fri, Sep 19, 2003 at 01:07:06PM +0000, Angus Leeming wrote: > > Andre Poenitz wrote: > > > On Fri, Sep 19, 2003 at 12:13:25PM +0000, Angus Leeming wrote: > > >> I quite like the float insets which can have a 'Caption' > > >> environment for the text and a 'Standard' environment for the > > >> figure. I imagine a subcaption inset feeling similar. > > > > > > Do you use anything in that Standard Paragraph other than the figure > > > itself? > > > > Nope. I'm imagining LaTeX output like this with corresponding > > LyX support. > > > > \begin{figure} > > > > \caption{foo bar} > > > > \begin{centering}\subfigure[Sub foo > > bar]{\includegraphics{my_file.eps}}\par\end{centering} \end{figure} > > So that should be possible with something derived from InsetText and a > 'figure_' and mabe 'bool caption_above_' member. > > LaTeX output would put the whole text between '\caption{' and '}' and we > could get rid of layout Caption...
I'm concerned with \subfigure[foo bar]{...} How about something like your MathFracInset with two boxes one above the other. The top box contains the figure, suitably formatted (centred etc). The bottom box enables the user to input his sub-caption. This InsetSubcaption can be placed only inside a float environment, right? If I try and insert an InsetGraphics inside a float environment, (ie, using the graphics dialog) I actually end up inserting an InsetSubcaption with an InsetGraphics embedded. Hmmm. This UI business is difficult. Angus