Re: inserting custom layout

2010-07-19 Thread Richard Heck

On 07/20/2010 01:26 AM, Sajjad wrote:




I need some suggestion make this mapping between the manual that
i have now and .layout file that i have to edit. Some of the
macros defined in the manual has no corresponding options defined
in the LyX manual. What to do then?


That depends upon the command. Ones like \subject are going to be
treated as paragraphs. So:
Style Subject
LatexType command
LatexName subject
# this tells LyX that it goes into Front Matter
InTitle 1
End
Very basic, with no special formatting, but it will work. The only
one of the Front Matter commands you can't do this way is
\thesisDate, because LyX doesn't yet do multi-argument commands.
There will be support for that in 2.0, however. So, for now, you'd
have to enter that as ERT.


Any hint on how to do you find /subject to be treated as a Style? In 
the manual it specifies that it takes only one argument.



Isn't that just above? One argument is easy.

rh



Re: inserting custom layout

2010-07-19 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck  wrote:

>  On 07/16/2010 05:32 AM, Sajjad wrote:
>
> Hello Forum,
>
>  I have made similar post couple of months ago. The new class that i am
> trying to incorporate into LyX layout is accompanied by a description of the
> class file.
>
>  I did some configuration so  that get the liuthesis.layout in
> Document->settings->Document class option combox box. I believe that it is
> not enough to get started with the writing yet.
>
>  And i am kind of confused how to make the related configuration in the
> layout file. Lets take an example:
>
>  1. In the accompanied manual, it specifies number of options that i can
> set. One of the options is "Output format". The possible values for this
> option are:
>
>- print.
>- ePress.
>- pdfRelease.
>- draft.
>
> How to specifiy this option in the layout file. I have checked the
> customization chapter for LyX. Should it go under the section "ClassOptions"
> section or "AddToPreamble" ?
>
>  If you want one of these options set by default, but for the user to be
> able to override it, then add it ClassOptions, e.g.:
> Class Options
> Other ePress
> End
> These will turn up on the Document Class pane of Document>Settings.
>
>
>
>  There are several other Macros in the accompanied pdf file that must be
> configured in  the layout file.
>
>
>  During the previous post, one Julien showed me some hint ; like inputting
> the department name of the thesis that i am writing for and it was specified
> in the class options from LyX Documents Settings menu. He suggested this
> based on his extensive experience with LyX.
>
>  Now if i have to specify the department name in the liuthesis.layout file
> it should have went into "ClassOptions" section and  inside "Other"
> subsection. Shouldn't it?
>
>  Yes, just as with ePress, since this is a class option.
>
>
>  I need some suggestion make this mapping between the manual that i have
> now and .layout file that i have to edit. Some of the macros defined in the
> manual has no corresponding options defined in the LyX manual. What to do
> then?
>
>  That depends upon the command. Ones like \subject are going to be treated
> as paragraphs. So:
> Style Subject
> LatexType command
> LatexName subject
> # this tells LyX that it goes into Front Matter
> InTitle 1
> End
> Very basic, with no special formatting, but it will work. The only one of
> the Front Matter commands you can't do this way is \thesisDate, because LyX
> doesn't yet do multi-argument commands. There will be support for that in
> 2.0, however. So, for now, you'd have to enter that as ERT.
>

Any hint on how to do you find /subject to be treated as a Style? In the
manual it specifies that it takes only one argument.

>
> Then I'd do:
> TitleLatexName makeFrontPage
> so LyX will issue \makeFrontPage to create the title page, etc.
>
> The theorem, etc, environments can probably be copied over from LyX's own
> theorems.inc.
>
> Richard
>
> InTitle 1
>


Re: inserting custom layout

2010-07-18 Thread Richard Heck

On 07/18/2010 05:23 AM, Sajjad wrote:


The class options have been set as follows:

ClassOptions
   Other ePress, itn, [english|swedish]
End

But the same result as before, Only the ePress options is shown in 
 the class options in Documents->Settings and Predefined checkbox


Any other hint to look into?


Apparently we need quotes around the whole thing:
ClassOptions
  Other "ePress,itn,[english|swedish]"
End
Seems wrong, but it works.

rh



Re: inserting custom layout

2010-07-18 Thread Sajjad
On Sat, Jul 17, 2010 at 4:02 PM, Richard Heck  wrote:

> On 07/16/2010 09:14 PM, Sajjad wrote:
>
>>
>>
>> I have several other Options to set and i have tried them as follows:
>>
>> ClassOptions
>>   Other "ePress","itn","[english|swedish]"
>> End
>>
>>  I think the quotes are the problem. Try removing all of them.
>

Hello rh,

The class options have been set as follows:

ClassOptions
   Other ePress, itn, [english|swedish]
End

But the same result as before, Only the ePress options is shown in  the
class options in Documents->Settings and Predefined checkbox


Any other hint to look into?


Regards
Sajjad

>
> rh
>
>


Re: inserting custom layout

2010-07-17 Thread Richard Heck

On 07/16/2010 09:14 PM, Sajjad wrote:



I have several other Options to set and i have tried them as follows:

ClassOptions
   Other "ePress","itn","[english|swedish]"
End


I think the quotes are the problem. Try removing all of them.

rh



Re: inserting custom layout

2010-07-16 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck  wrote:

>  On 07/16/2010 05:32 AM, Sajjad wrote:
>
> Hello Forum,
>
>  I have made similar post couple of months ago. The new class that i am
> trying to incorporate into LyX layout is accompanied by a description of the
> class file.
>
>  I did some configuration so  that get the liuthesis.layout in
> Document->settings->Document class option combox box. I believe that it is
> not enough to get started with the writing yet.
>
>  And i am kind of confused how to make the related configuration in the
> layout file. Lets take an example:
>
>  1. In the accompanied manual, it specifies number of options that i can
> set. One of the options is "Output format". The possible values for this
> option are:
>
>- print.
>- ePress.
>- pdfRelease.
>- draft.
>
> How to specifiy this option in the layout file. I have checked the
> customization chapter for LyX. Should it go under the section "ClassOptions"
> section or "AddToPreamble" ?
>
>  If you want one of these options set by default, but for the user to be
> able to override it, then add it ClassOptions, e.g.:
> Class Options
> Other ePress
> End
> These will turn up on the Document Class pane of Document>Settings.
>


I have several other Options to set and i have tried them as follows:

ClassOptions
   Other "ePress","itn","[english|swedish]"
End

then i checked the LyX in the Documents->Settings and only "ePress" shows
up. The rest of the other options did not show up anywhere. Did they get
effected or ignored. I check the manual and it says that several Other
options can be specified with comma separation.


Anything else that  missed in the process?

>
>
>
>  There are several other Macros in the accompanied pdf file that must be
> configured in  the layout file.
>
>
>  During the previous post, one Julien showed me some hint ; like inputting
> the department name of the thesis that i am writing for and it was specified
> in the class options from LyX Documents Settings menu. He suggested this
> based on his extensive experience with LyX.
>
>  Now if i have to specify the department name in the liuthesis.layout file
> it should have went into "ClassOptions" section and  inside "Other"
> subsection. Shouldn't it?
>
>  Yes, just as with ePress, since this is a class option.
>
>
>  I need some suggestion make this mapping between the manual that i have
> now and .layout file that i have to edit. Some of the macros defined in the
> manual has no corresponding options defined in the LyX manual. What to do
> then?
>
>  That depends upon the command. Ones like \subject are going to be treated
> as paragraphs. So:
> Style Subject
> LatexType command
> LatexName subject
> # this tells LyX that it goes into Front Matter
> InTitle 1
> End
> Very basic, with no special formatting, but it will work. The only one of
> the Front Matter commands you can't do this way is \thesisDate, because LyX
> doesn't yet do multi-argument commands. There will be support for that in
> 2.0, however. So, for now, you'd have to enter that as ERT.
>
> Then I'd do:
> TitleLatexName makeFrontPage
> so LyX will issue \makeFrontPage to create the title page, etc.
>
> The theorem, etc, environments can probably be copied over from LyX's own
> theorems.inc.
>
> Richard
>
> InTitle 1
>


Re: inserting custom layout

2010-07-16 Thread Julien Rioux

On 16/07/2010 5:32 AM, Sajjad wrote:

Hello Forum,

I have made similar post couple of months ago. The new class that i am
trying to incorporate into LyX layout is accompanied by a description of the
class file.

I did some configuration so  that get the liuthesis.layout in
Document->settings->Document class option combox box. I believe that it is
not enough to get started with the writing yet.

And i am kind of confused how to make the related configuration in the
layout file. Lets take an example:

1. In the accompanied manual, it specifies number of options that i can set.
One of the options is "Output format". The possible values for this option
are:

-  print.
- ePress.
- pdfRelease.
- draft.

How to specifiy this option in the layout file. I have checked the
customization chapter for LyX. Should it go under the section "ClassOptions"
section or "AddToPreamble" ?

There are several other Macros in the accompanied pdf file that must be
configured in  the layout file.


During the previous post, one Julien showed me some hint ; like inputting
the department name of the thesis that i am writing for and it was specified
in the class options from LyX Documents Settings menu. He suggested this
based on his extensive experience with LyX.


Now if i have to specify the department name in the liuthesis.layout file it
should have went into "ClassOptions" section and  inside "Other" subsection.
Shouldn't it?


I need some suggestion make this mapping between the manual that i have now
and .layout file that i have to edit. Some of the macros defined in the
manual has no corresponding options defined in the LyX manual. What to do
then?


Regards
Sajjad



Hi,

I don't have much time at the moment to help with the layout, but if I 
remember correctly you had a basic layout file to get started, no? It 
would be useful to share it if you do have one, so that other users can 
help enhance it.


In any case, I should say that not having the layout file does not 
prevent you from starting to use LyX to write your thesis. Just use a 
layout such as book or report and use the standard markups like chapter, 
section, figures, theorems, etc. These are standard markups and will be 
understood when you change your layout (once you have a working 
liuthesis.layout). On the other hand, I would advise not to fill the 
frontmatter yet since this is where liuthesis.cls uses a lot of custom 
commands.


Cheers,
Julien


Re: inserting custom layout

2010-07-16 Thread Richard Heck

On 07/16/2010 05:32 AM, Sajjad wrote:

Hello Forum,

I have made similar post couple of months ago. The new class that i am 
trying to incorporate into LyX layout is accompanied by a description 
of the class file.


I did some configuration so  that get the liuthesis.layout in 
Document->settings->Document class option combox box. I believe that 
it is not enough to get started with the writing yet.


And i am kind of confused how to make the related configuration in the 
layout file. Lets take an example:


1. In the accompanied manual, it specifies number of options that i 
can set. One of the options is "Output format". The possible values 
for this option are:


* print.
* ePress.
* pdfRelease.
* draft.

How to specifiy this option in the layout file. I have checked the 
customization chapter for LyX. Should it go under the section 
"ClassOptions" section or "AddToPreamble" ?


If you want one of these options set by default, but for the user to be 
able to override it, then add it ClassOptions, e.g.:

Class Options
Other ePress
End
These will turn up on the Document Class pane of Document>Settings.


There are several other Macros in the accompanied pdf file that must 
be configured in  the layout file.



During the previous post, one Julien showed me some hint ; like 
inputting the department name of the thesis that i am writing for and 
it was specified in the class options from LyX Documents Settings 
menu. He suggested this based on his extensive experience with LyX.


Now if i have to specify the department name in the liuthesis.layout 
file it should have went into "ClassOptions" section and  inside 
"Other" subsection. Shouldn't it?



Yes, just as with ePress, since this is a class option.

I need some suggestion make this mapping between the manual that i 
have now and .layout file that i have to edit. Some of the macros 
defined in the manual has no corresponding options defined in the LyX 
manual. What to do then?


That depends upon the command. Ones like \subject are going to be 
treated as paragraphs. So:

Style Subject
LatexType command
LatexName subject
# this tells LyX that it goes into Front Matter
InTitle 1
End
Very basic, with no special formatting, but it will work. The only one 
of the Front Matter commands you can't do this way is \thesisDate, 
because LyX doesn't yet do multi-argument commands. There will be 
support for that in 2.0, however. So, for now, you'd have to enter that 
as ERT.


Then I'd do:
TitleLatexName makeFrontPage
so LyX will issue \makeFrontPage to create the title page, etc.

The theorem, etc, environments can probably be copied over from LyX's 
own theorems.inc.


Richard

InTitle 1