Re: Changing the layout for chapter

2011-12-08 Thread Guenter Milde
On 2011-12-08, stefano franchi wrote:
> On Thu, Dec 8, 2011 at 4:19 AM, Guenter Milde  wrote:
>> On 2011-12-07, stefano franchi wrote:
>>> On Wed, Dec 7, 2011 at 2:04 PM, Richard Heck  wrote:
 On 12/07/2011 12:50 PM, stefano franchi wrote:
> The layout file for the memoir class shows chapter headings as:

>> How about a "Memoir (article)" or "Article (memoir)" layout that does not
>> use a "chapter" style but starts the sectioning with "Section" (like
>> every other article class)?

>> (If required by the memoir class, it is still possible that the
>> "Section" style uses "LatexName chapter", "Subsection" uses "LatexName
>> section" and so forth.)

> Ah, I hadn't thought of that. I would still prefer to have a single
> layout file for both books and articles, 

Of course, you can simply not use the chapter style in a memoir document
that shall be an article...

> but tricking Lyx by switching section with chapter (and subsection with
> section, etc) it's a great idea. At least for the immediate future.

The big advantage of adding an "article (Memoir) is that you can easily
convert between documents of the ~20 "article" classes.

OTOH, with a "memoir (article)" class that uses chapters, you will get 
"invalid Style" for every chapter heading (because chapters are not
supported in "normal" article classes).

(The advantage of the additional chapter section level on top is, that it
allows double-use of a document as stand-alone article + book|record chapter.)

Günter




Re: Changing the layout for chapter

2011-12-08 Thread stefano franchi
On Thu, Dec 8, 2011 at 4:19 AM, Guenter Milde  wrote:
> On 2011-12-07, stefano franchi wrote:
>> On Wed, Dec 7, 2011 at 2:04 PM, Richard Heck  wrote:
>>> On 12/07/2011 12:50 PM, stefano franchi wrote:
 The layout file for the memoir class shows chapter headings as:
>
> How about a "Memoir (article)" or "Article (memoir)" layout that does not
> use a "chapter" style but starts the sectioning with "Section" (like
> every other article class)?
>
> (If required by the memoir class, it is still possible that the
> "Section" style uses "LatexName chapter", "Subsection" uses "LatexName
> section" and so forth.)
>

Ah, I hadn't thought of that. I would still prefer to have a single
layout file for both books and articles, but tricking Lyx by switching
section with chapter (and subsection with section, etc) it's a great
idea. At least for the immediate future.


Thanks,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Changing the layout for chapter

2011-12-08 Thread Guenter Milde
On 2011-12-07, stefano franchi wrote:
> On Wed, Dec 7, 2011 at 2:04 PM, Richard Heck  wrote:
>> On 12/07/2011 12:50 PM, stefano franchi wrote:
>>> The layout file for the memoir class shows chapter headings as:

>>> "Chapter" {Chapter Number} {newline}
>>> Chapter Title


>>> That is fine when memoir is used to typeset books, but it's very
>>> annoying when used for articles (which it's perfectly capable of
>>> doing).

>>> So I want to change the layout accordingly. But I can't figure out
>>> where, in the standard definition of the Chapter Style from
>>> stdsections.inc, is the {newline} inserted:

>> Unfortunately, this is hardcoded into LyX and not layout customizable.
>> No doubt it should be. Please feel free to file an enhancement bug.

>> Of course, the appearance in the PDF can be changed


> Ah, that's why I could not find it in the docs. I'll file an
> enhancement bug then.

> I can't be the only Lyx user who is discovering how convenient it is
> to work with the memoir class for both books and articles.


How about a "Memoir (article)" or "Article (memoir)" layout that does not
use a "chapter" style but starts the sectioning with "Section" (like
every other article class)?

(If required by the memoir class, it is still possible that the 
"Section" style uses "LatexName chapter", "Subsection" uses "LatexName
section" and so forth.)

Günter



Re: Changing the layout for chapter

2011-12-07 Thread stefano franchi
On Wed, Dec 7, 2011 at 2:04 PM, Richard Heck  wrote:
> On 12/07/2011 12:50 PM, stefano franchi wrote:
>> The layout file for the memoir class shows chapter headings as:
>>
>> "Chapter" {Chapter Number} {newline}
>> Chapter Title
>>
>>
>> That is fine when memoir is used to typeset books, but it's very
>> annoying when used for articles (which it's perfectly capable of
>> doing).
>>
>> So I want to change the layout accordingly. But I can't figure out
>> where, in the standard definition of the Chapter Style from
>> stdsections.inc, is the {newline} inserted:
>>
> Unfortunately, this is hardcoded into LyX and not layout customizable.
> No doubt it should be. Please feel free to file an enhancement bug.
>
> Of course, the appearance in the PDF can be changed
>

Ah, that's why I could not find it in the docs. I'll file an
enhancement bug then.

I can't be the only Lyx user who is discovering how convenient it is
to work with the memoir class for both books and articles.


Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA


Re: Changing the layout for chapter

2011-12-07 Thread Richard Heck
On 12/07/2011 12:50 PM, stefano franchi wrote:
> The layout file for the memoir class shows chapter headings as:
>
> "Chapter" {Chapter Number} {newline}
> Chapter Title
>
>
> That is fine when memoir is used to typeset books, but it's very
> annoying when used for articles (which it's perfectly capable of
> doing).
>
> So I want to change the layout accordingly. But I can't figure out
> where, in the standard definition of the Chapter Style from
> stdsections.inc, is the {newline} inserted:
>
Unfortunately, this is hardcoded into LyX and not layout customizable.
No doubt it should be. Please feel free to file an enhancement bug.

Of course, the appearance in the PDF can be changed

Richard

> Style Chapter
>   MarginStatic
>   Category  Section
>   LabelString   "Chapter \thechapter"
>   LabelStringAppendix   "Appendix \thechapter"
>   LabelType Counter
>   LabelCounter  chapter
>   TocLevel  0
>   LatexType Command
>   LatexName chapter
>   NeedProtect   1
>   NextNoIndent  1
>   ParSkip   0.4
>   TopSep4
>   BottomSep 0.8
>   ParSep0.8
>   Align Block
>   OptionalArgs  1
>   Font
> Series  Bold
> SizeHuge
>   EndFont
>   HTMLTag   h1
> End
>
> I thought removing the LabelString line would be enough. But it isn't:
> it just removes the "Chapter" Label
>
> Help is appreciated. Pointers to the proper  customization manual
> section are appreciated too. I could not find the information there.
>
>
>
> Cheers,
>
> Stefano
>
>



Changing the layout for chapter

2011-12-07 Thread stefano franchi
The layout file for the memoir class shows chapter headings as:

"Chapter" {Chapter Number} {newline}
Chapter Title


That is fine when memoir is used to typeset books, but it's very
annoying when used for articles (which it's perfectly capable of
doing).

So I want to change the layout accordingly. But I can't figure out
where, in the standard definition of the Chapter Style from
stdsections.inc, is the {newline} inserted:


Style Chapter
MarginStatic
Category  Section
LabelString   "Chapter \thechapter"
LabelStringAppendix   "Appendix \thechapter"
LabelType Counter
LabelCounter  chapter
TocLevel  0
LatexType Command
LatexName chapter
NeedProtect   1
NextNoIndent  1
ParSkip   0.4
TopSep4
BottomSep 0.8
ParSep0.8
Align Block
OptionalArgs  1
Font
  Series  Bold
  SizeHuge
EndFont
HTMLTag   h1
End

I thought removing the LabelString line would be enough. But it isn't:
it just removes the "Chapter" Label

Help is appreciated. Pointers to the proper  customization manual
section are appreciated too. I could not find the information there.



Cheers,

Stefano


-- 
__
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA