Dear LyX Developers and Users, For the past couple of days, I've been working on a custom LaTeX document class for a non-profit. It is based on memoir, and while it is still a work in progress, I'd like to think that it is rather awesome.
Because the final goal is to use this document class in LyX (version 2.0, they have already downloaded and started using the release candidate), I'm trying to create custom insets and environments for the document class features. One environment that has me stumped though, is how to create an inset for the memoir "sidecaption" feature. The sidecaption environment allows you to typeset the caption of your figure in the margin (similar to the way that the Tufte handout and book classes work), and the style guide for this class calls for their use. This is how an example in LaTeX would work. \begin{figure} \begin{sidecaption}{A typical learning center in Mexico City.} \resizebox*{\textwidth}{!}{\includegraphics{learning1.jpg}} \end{sidecaption} \end{figure} Does anyone have any ideas on how I could create an inset that captures all of this information? The tricky bit seems to be that the caption is specified in the \begin{sidecaption} statement, rather than as a \caption command. I know that LyX 2 now supports creating insets for optional arguments, but I'm not entirely sure how I could use that to solve this difficulty. I'd greatly appreciate any thoughts. (Also, if it works, this would be a very nice addition to the memoir layout that currently ships with LyX 2. Would it be too late to incorporate it?) Cheers, Rob