Andre Poenitz wrote:
On Fri, Mar 21, 2008 at 05:04:53PM -0400, rgheck wrote:
The attached patch adds a facility for file-specific layout, e.g.:
\begin_local_layout
Format 6
InsetLayout CharStyle:MenuItem
LyxType charstyle
LabelString menu
LatexType command
LatexName menuitem
Font
Family Sans
EndFont
Preamble
\newcommand{\menuitem}[1]{\sffamily{#1}}
EndPreamble
End
\end_local_layout
which I presently have working in the headers of Customization.lyx. As I've
started to use 1.6 a bit, I've found that this kind of file-specific layout
is incredibly useful. If I'm working on a file, and I want to define a new
character style, or paragraph layout, or whatever, I may want it only for
that file. I don't want to have to create a *.module and then copy it
somewhere, etc, etc. I just want to create layout.
Comments?
Cool stuff if it works ;-)
Amazingly enough, it does. I think that's the first time I've ever done
something like that and had it pretty much work as soon as it compiled....
rh