Hi all
I've had a go at creating a module. Even though I don't know what I'm doing, I
seem to have got something that nearly works. The purpose of the module is to
create a GUI way of applying grey boxes around text (making use of the
"framed" pacakge).
Two question: First, is it possible to have a nested environment via the GUI?
That is, I want to being to select a region with the mouse, and then select
"greyed" from the pull-down menu. Unfortunately, the way it works now means
that other environments, such as section titles, are subsumed by the greyed
environment.
Secondly, is there a way of reflecting the grey background on screen. This is
probably an easy one for a .layout expert.
The module is attached but it's a hack and probably not suitable for use by
others, although it does work apart from the above problems.
--
http://www.unmusic.co.uk/ Michael Reed -- technology, gender and geek culture
freelance writer. Buy my article compilation book, Tech Book 1.
#\DeclareLyXModule{Shaded}
#DescriptionBegin
#Using the Framed package, this module ebables a shaded
#box environment.
#DescriptionEnd
Requires endnotes
AddToPreamble
\usepackage{framed}
\usepackage{color}
\definecolor{shadecolor}{gray}{0.9}
EndPreamble
# default Shaded
Style Shaded
LatexType Environment
LatexName shaded
NextNoIndent 1
LeftMargin shaded:
LabelSep xx
ParSkip 0.0
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
LabelType Static
LabelString "shaded"
LabelFont
Shape Italic
Color grey
EndFont
End