LabelString problem in custom layout

2009-06-09 Thread Ryan Warner
I'm having a problem with the attached custom layout.  If I set the
TocLevel of any of my styles to be  2 the LabelString does not show
up.  Currently I work around this by setting TocLevel on all my styles
to 2.  This makes the LabelString show up, but the ToC preview window
shows the style at the wrong level.  Anyone have experience with this
type of thing?

In dvplan.layout, the styles I'm having trouble with are
Configurations, Section, and SubSection.  Install the layout and open
the included foo.lyx.  You'll see a bunch of empty lines in the ToC,
and a bunch of blank lines in the editor window.

Now make the following modification to dvplan.layout.  In the 3 styles
I mentioned in the last paragraph, change the TocLevel to 2.  Restart
LyX, and again look at foo.lyx.  You should now see the previously
missing LabelStrings.  The side effect is that these styles now show
up at the wrong level in the ToC window.

-Ryan


dvplan.tar.gz
Description: GNU Zip compressed data


Re: LabelString problem in custom layout

2009-06-09 Thread Ryan Warner
I can't seem to resolve this by changing the SecNumDepth in the layout
file, but by changing the \secnumdepth setting in the .lyx file that
fixed it.

-Ryan

On Tue, Jun 9, 2009 at 12:06 PM, Jean-Marc Lasgoutteslasgout...@lyx.org wrote:
 Le 9 juin 09 à 17:55, Ryan Warner a écrit :

 I'm having a problem with the attached custom layout.  If I set the
 TocLevel of any of my styles to be  2 the LabelString does not show
 up.  Currently I work around this by setting TocLevel on all my styles
 to 2.  This makes the LabelString show up, but the ToC preview window
 shows the style at the wrong level.  Anyone have experience with this
 type of thing?

 Try to set TocDepth qnd SecNumDepth (at the beginning of the layout file) to
 sensible value.
 The second one, in particular, indicates up to which level sections should
 be numbered by defqult.

 JMarc


LabelString problem in custom layout

2009-06-09 Thread Ryan Warner
I'm having a problem with the attached custom layout.  If I set the
TocLevel of any of my styles to be  2 the LabelString does not show
up.  Currently I work around this by setting TocLevel on all my styles
to 2.  This makes the LabelString show up, but the ToC preview window
shows the style at the wrong level.  Anyone have experience with this
type of thing?

In dvplan.layout, the styles I'm having trouble with are
Configurations, Section, and SubSection.  Install the layout and open
the included foo.lyx.  You'll see a bunch of empty lines in the ToC,
and a bunch of blank lines in the editor window.

Now make the following modification to dvplan.layout.  In the 3 styles
I mentioned in the last paragraph, change the TocLevel to 2.  Restart
LyX, and again look at foo.lyx.  You should now see the previously
missing LabelStrings.  The side effect is that these styles now show
up at the wrong level in the ToC window.

-Ryan


dvplan.tar.gz
Description: GNU Zip compressed data


Re: LabelString problem in custom layout

2009-06-09 Thread Ryan Warner
I can't seem to resolve this by changing the SecNumDepth in the layout
file, but by changing the \secnumdepth setting in the .lyx file that
fixed it.

-Ryan

On Tue, Jun 9, 2009 at 12:06 PM, Jean-Marc Lasgoutteslasgout...@lyx.org wrote:
 Le 9 juin 09 à 17:55, Ryan Warner a écrit :

 I'm having a problem with the attached custom layout.  If I set the
 TocLevel of any of my styles to be  2 the LabelString does not show
 up.  Currently I work around this by setting TocLevel on all my styles
 to 2.  This makes the LabelString show up, but the ToC preview window
 shows the style at the wrong level.  Anyone have experience with this
 type of thing?

 Try to set TocDepth qnd SecNumDepth (at the beginning of the layout file) to
 sensible value.
 The second one, in particular, indicates up to which level sections should
 be numbered by defqult.

 JMarc


LabelString problem in custom layout

2009-06-09 Thread Ryan Warner
I'm having a problem with the attached custom layout.  If I set the
TocLevel of any of my styles to be > 2 the LabelString does not show
up.  Currently I work around this by setting TocLevel on all my styles
to 2.  This makes the LabelString show up, but the ToC preview window
shows the style at the wrong level.  Anyone have experience with this
type of thing?

In dvplan.layout, the styles I'm having trouble with are
Configurations, Section, and SubSection.  Install the layout and open
the included foo.lyx.  You'll see a bunch of empty lines in the ToC,
and a bunch of blank lines in the editor window.

Now make the following modification to dvplan.layout.  In the 3 styles
I mentioned in the last paragraph, change the TocLevel to 2.  Restart
LyX, and again look at foo.lyx.  You should now see the previously
missing LabelStrings.  The side effect is that these styles now show
up at the wrong level in the ToC window.

-Ryan


dvplan.tar.gz
Description: GNU Zip compressed data


Re: LabelString problem in custom layout

2009-06-09 Thread Ryan Warner
I can't seem to resolve this by changing the SecNumDepth in the layout
file, but by changing the \secnumdepth setting in the .lyx file that
fixed it.

-Ryan

On Tue, Jun 9, 2009 at 12:06 PM, Jean-Marc Lasgouttes<lasgout...@lyx.org> wrote:
> Le 9 juin 09 à 17:55, Ryan Warner a écrit :
>>
>> I'm having a problem with the attached custom layout.  If I set the
>> TocLevel of any of my styles to be > 2 the LabelString does not show
>> up.  Currently I work around this by setting TocLevel on all my styles
>> to 2.  This makes the LabelString show up, but the ToC preview window
>> shows the style at the wrong level.  Anyone have experience with this
>> type of thing?
>
> Try to set TocDepth qnd SecNumDepth (at the beginning of the layout file) to
> sensible value.
> The second one, in particular, indicates up to which level sections should
> be numbered by defqult.
>
> JMarc


Using a table as form for LaTeX macro

2009-05-11 Thread Ryan Warner
I'd like to make a macro that takes multiple parameters.  In LyX it
would be advantageous if I visualize this as a table.  I would grab
the cell contents from this table and pass them as parameters to a
macro call.  This is way beyond what a layout can do, but what about
an external command?

-Ryan


Using a table as form for LaTeX macro

2009-05-11 Thread Ryan Warner
I'd like to make a macro that takes multiple parameters.  In LyX it
would be advantageous if I visualize this as a table.  I would grab
the cell contents from this table and pass them as parameters to a
macro call.  This is way beyond what a layout can do, but what about
an external command?

-Ryan


Using a table as form for LaTeX macro

2009-05-11 Thread Ryan Warner
I'd like to make a macro that takes multiple parameters.  In LyX it
would be advantageous if I visualize this as a table.  I would grab
the cell contents from this table and pass them as parameters to a
macro call.  This is way beyond what a layout can do, but what about
an external command?

-Ryan


Need help creating a Style in a custom layout

2009-05-05 Thread Ryan Warner
Hello LyX users,

I'm new to TeX, LaTeX, and LyX, but climbing fast.  I'm trying to make
a standardized structured document format for my company.  Right now,
I'm attempting to do this by making a custom LyX layout.

This layout is based on article.cls.  As it happens, if I apply this
style to a line in LyX, the generated output in DVI is what I want.
However, in the GUI the preview is not.  In the GUI I don't get the
prepended Feature: and the text is completely unformatted.  How do I
make the preview in the GUI resemble the output?

Here's my Style entry in my layout file:

Style Feature
LatexType Command
LatexName planfeature
Preamble
\newcommand{\planfeature}[1]{ \section{Feature: #1} }
EndPreamble
End

For that matter, how does LyX know how to display \section{FooBar}
normally?  Does it parse the class and determine the appearance or is
it predefined somewhere?

On the subject of layout files and Style entries.  Looking at the
layouts that come with LyX, there are a lot of options you can use.
Is any of that documented anywhere?  Or is it all learn by example?

-Ryan


Need help creating a Style in a custom layout

2009-05-05 Thread Ryan Warner
Hello LyX users,

I'm new to TeX, LaTeX, and LyX, but climbing fast.  I'm trying to make
a standardized structured document format for my company.  Right now,
I'm attempting to do this by making a custom LyX layout.

This layout is based on article.cls.  As it happens, if I apply this
style to a line in LyX, the generated output in DVI is what I want.
However, in the GUI the preview is not.  In the GUI I don't get the
prepended Feature: and the text is completely unformatted.  How do I
make the preview in the GUI resemble the output?

Here's my Style entry in my layout file:

Style Feature
LatexType Command
LatexName planfeature
Preamble
\newcommand{\planfeature}[1]{ \section{Feature: #1} }
EndPreamble
End

For that matter, how does LyX know how to display \section{FooBar}
normally?  Does it parse the class and determine the appearance or is
it predefined somewhere?

On the subject of layout files and Style entries.  Looking at the
layouts that come with LyX, there are a lot of options you can use.
Is any of that documented anywhere?  Or is it all learn by example?

-Ryan


Need help creating a Style in a custom layout

2009-05-05 Thread Ryan Warner
Hello LyX users,

I'm new to TeX, LaTeX, and LyX, but climbing fast.  I'm trying to make
a standardized structured document format for my company.  Right now,
I'm attempting to do this by making a custom LyX layout.

This layout is based on article.cls.  As it happens, if I apply this
style to a line in LyX, the generated output in DVI is what I want.
However, in the GUI the preview is not.  In the GUI I don't get the
prepended "Feature:" and the text is completely unformatted.  How do I
make the preview in the GUI resemble the output?

Here's my Style entry in my layout file:

Style Feature
LatexType Command
LatexName planfeature
Preamble
\newcommand{\planfeature}[1]{ \section{Feature: #1} }
EndPreamble
End

For that matter, how does LyX know how to display \section{FooBar}
normally?  Does it parse the class and determine the appearance or is
it predefined somewhere?

On the subject of layout files and Style entries.  Looking at the
layouts that come with LyX, there are a lot of options you can use.
Is any of that documented anywhere?  Or is it all learn by example?

-Ryan