On Wed, Feb 13, 2002 at 04:59:25PM +1000, Allan Rae wrote:
 
> On Wed, 13 Feb 2002, Martin Vermeer wrote:
 
> No I don't think we've ever done that -- maybe you are thinking of
> KLyX?  Why would it be cool?

Hmmm, I think visually showing the depth -- in addition to actually
showing the depth itself -- would help the 'experience'.
 
> > > > Means support for David Carlisle's 'enumerate' package. (But that's
> > > > for enumerated lists only.)
> > >
> > > No, it means support for his package would be made easier.  I'm not
> > > talking about the user defining them I'm talking about LyX matching
> > > the output.
> >
> > Actually from the user viewpoint, supporting the package would be more
> > useful, as it crosses a higher treshold. Accurate visual representation
> > on the other hand, or lack of same, is IMO less critical.
> >
> > Actually I don't think supporting the package would even be very hard.
> 
> It's also a matter of _how_ do we support it.  Extending the counters
> to display other numbering schemes should make supporting it very
> clean.  And allow fixing the on-screen display of other counters as a
> bonus -- to look at the situation from a different perspective.
> 
> Allan. (ARRae)

That would be fantastic -- but not easy.

I came up with the attached experimental patch which allows me to at least 
define the basic 1aAiI labels for an \enumerate. What I got stuck with
is general labels, like 'Ex i.' 

The problem is the statement \let\enumlabel=#1% -- no matter what I do,
this is all that I get to work. Only the first character of the label
string is taken and used.

I used to be able to figure out things like this, but this
beats me. It takes a TeX guru I suppose.

Have a try!

Martin
-- 
Martin Vermeer  [EMAIL PROTECTED]
Helsinki University of Technology 
Department of Surveying
P.O. Box 1200, FIN-02015 HUT, Finland
:wq
Index: stdlists.inc
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/layouts/stdlists.inc,v
retrieving revision 1.3
diff -u -b -B -p -r1.3 stdlists.inc
--- stdlists.inc        2000/05/31 17:08:11     1.3
+++ stdlists.inc        2002/02/13 16:03:17
@@ -91,5 +91,62 @@ Style List
        \renewcommand{\makelabel}[1]{##1\hfil}}}
     {\end{list}}
   EndPreamble
+End
+
+# Carlisle Enumerate style definition
+
+Style Enum-Label
+  LabelType     Static
+  LabelString   Enum_Label:
+  Margin        Static
+  LatexType     Command
+  LatexName     enumdef
+  NextNoIndent      1
+  LeftMargin        Enum_label:xx
+  LabelSep      xxx
+  ParSkip       0.4
+  TopSep        1.3
+  BottomSep     0.7
+  ParSep        0.7
+  Align         Left
+  AlignPossible     Left
 
+  LabelFont  
+    Series      Bold
+    Shape       Italic
+    Color       green
+  EndFont
+
+  Preamble
+       \newcommand{\enumdef}[1]{%
+       \let\enumlabel#1}%
+  EndPreamble
 End
+
+Style Enum-Vario
+  Margin               Static
+  LatexType            Item_Environment
+  LatexName            enum
+  NextNoindent         1
+  LeftMargin        MMN
+  LabelSep             xx
+  ParSkip              0.4
+  ItemSep              0.2
+  TopSep               0.7
+  BottomSep            0.7
+  ParSep               0.5
+  Align                        Block
+  AlignPossible                Block, Left
+  LabelType            Counter_EnumI
+
+  #define the environment enum using enumerate package
+  Preamble
+  \usepackage{enumerate}
+  \newenvironment{enum}[1][\enumlabel]
+    {\begin{enumerate}[#1]}
+    {\end{enumerate}}
+  \def\enumlabel{1}
+  EndPreamble
+End
+
+

Attachment: msg32949/pgp00000.pgp
Description: PGP signature

Reply via email to