Re: Inserting custom class file into lyx

2015-11-29 Thread Sajjad
Great !  This is where the confusion has to be resolved first. We have two
zip files  - rtthesis.zip and rtthesis-exjobb.zip . After unzipping we get
two folders - rtthesis and rtthesisex. So far I have just copied all the
contents inside rtthesis folder inside the newly created folder rtthesis at
/usr/share/tex/latex/. It is implied that this is the main package
everything will be built upon.


Do I have to do the similar with rtthesisex as well ? I thought that the
contents inside the folder rtthesisex is nothing but an example to follow,
was not sure how come they will contribute to the creation of the .layout
file from the .cls file that is already found inside the rtthesis folder.


The contents of the rtthesis.layout is as follows:

/

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[rtthesis]{rtthesis}

# Input general definitions
Input stdclass.inc

/


I suspect that something more to be added here inside the .layout file so
that all the options will be reflected through the interface.




Thanks



On Sun, Nov 29, 2015 at 3:44 PM, Sajjad  wrote:

> It could have been great if I could have pull this through. I tried the
> following preamble and it ended with the error :
>
> ///
>
> \setupThesis{
>
> author={Sajjadul Islam},
>
> title={Laser Sintering},
>
> type=msc,
>
> department=itn
>
> }
>
> \usepackage{rtmsc-defs}
>
>
> ///
>
> And The error I got is:
>
>
> ///
>
> LaTeX Error: File `rtmsc.sty' not found.
>
> //
>
> Since you already got hold of the rtthesis class you will not find
> anything inside the rtthesis folder named rtthesis.sty once you unzip the
> folder. I am not sure where it is pointing to by rtmsc.sty.
>
> But I do believe that we can pull this through together. Let me describe
> how i managed to insert the LaTeX .cls file into the LyX interface and you
> could both address the issue .
>
>
> 1. I believe that you already have the rtthesis.zip file. I unzipped it
> into /usr/share/tex/latex/ , create a directory called rtthesis and copied
> all the files inside the newly created directory.
>
> 2. Then I ran texhash command with the root priviledge.
>
> 3. I created a rtthesis.layout file inside ~/.lyx/ and ran from LyX
> interface Tools->Reconfigure.
>
> 4. Restarted Lyx and I found the rtthesis showed up.
>
>
> Since then I just got the class loading properly , but still stuck with
> the issue of the inserting the options from the interface either through
> preamble/TeX code. Before inserting as preamble , I also tried to insert
> the above code directly into the LyX interface by inserting TeX code. But
> it did not help .
>
> Thanks
>
> On Sun, Nov 29, 2015 at 4:10 AM, Sajjad  wrote:
>
>> If you insert the following through LaTeX preamble how will it affect the
>> environment combos at LyX interface where you can insert the
>> title,author,section, etc.
>>
>> \setupThesis{author = {My name}, title = {My nice thesis}, city = {Important
>> city}, year = 2015, type = phd}
>>
>> I hope that you understand my concern here. If you go to the upper left 
>> corner of the LyX interface you will see the environment combo. You can 
>> insert author,title,Abstract through
>>
>> the interface as well.
>>
>> Right now I am creating the title, author through the interface and the 
>> preview does not show the front page, front matter, and the Abstract does 
>> not show the roman
>>
>> numbering as shown in the pdf you mentioned. If I use setupThesis how can I 
>> supress the title, author element that shows up in the interface ? Should 
>> the interface
>>
>> not be adjusted accordingly to the document class that is currently loaded ?
>>
>>
>>
>> Thanks
>>
>>
>>
>> On Sat, Nov 28, 2015 at 10:54 PM, Sajjad  wrote:
>>
>>> Thanks
>>>
>>> In one of the previous posts the following LaTeX command :
>>>
>>>
>>> \setupThesis{key1=value1,key2=value2}
>>>
>>>
>>> I did not find it anywhere in the LaTeX book I am using. Is it something 
>>> advanced that you can use custom command ?
>>>
>>>
>>>
>>> On Sat, Nov 28, 2015 at 7:02 PM, Sajjad  wrote:
>>>
 Thanks !

 It worked out eventually. Now I still have many options to enter and
 you suggested to preamble . Is there any reference to it where I can
 started with ?



 On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:

> Thanks for the hint!
>
> I tried but the issue prevails.  I am still getting the same error
> while trying for a pdf preview.
>
> The .cls file came along with the a pdf file that narrates how to use
> it and all the references are make to the 

Re: Inserting custom class file into lyx

2015-11-29 Thread Sajjad
It could have been great if I could have pull this through. I tried the
following preamble and it ended with the error :

///

\setupThesis{

author={Sajjadul Islam},

title={Laser Sintering},

type=msc,

department=itn

}

\usepackage{rtmsc-defs}


///

And The error I got is:


///

LaTeX Error: File `rtmsc.sty' not found.

//

Since you already got hold of the rtthesis class you will not find anything
inside the rtthesis folder named rtthesis.sty once you unzip the folder. I
am not sure where it is pointing to by rtmsc.sty.

But I do believe that we can pull this through together. Let me describe
how i managed to insert the LaTeX .cls file into the LyX interface and you
could both address the issue .


1. I believe that you already have the rtthesis.zip file. I unzipped it
into /usr/share/tex/latex/ , create a directory called rtthesis and copied
all the files inside the newly created directory.

2. Then I ran texhash command with the root priviledge.

3. I created a rtthesis.layout file inside ~/.lyx/ and ran from LyX
interface Tools->Reconfigure.

4. Restarted Lyx and I found the rtthesis showed up.


Since then I just got the class loading properly , but still stuck with the
issue of the inserting the options from the interface either through
preamble/TeX code. Before inserting as preamble , I also tried to insert
the above code directly into the LyX interface by inserting TeX code. But
it did not help .

Thanks

On Sun, Nov 29, 2015 at 4:10 AM, Sajjad  wrote:

> If you insert the following through LaTeX preamble how will it affect the
> environment combos at LyX interface where you can insert the
> title,author,section, etc.
>
> \setupThesis{author = {My name}, title = {My nice thesis}, city = {Important
> city}, year = 2015, type = phd}
>
> I hope that you understand my concern here. If you go to the upper left 
> corner of the LyX interface you will see the environment combo. You can 
> insert author,title,Abstract through
>
> the interface as well.
>
> Right now I am creating the title, author through the interface and the 
> preview does not show the front page, front matter, and the Abstract does not 
> show the roman
>
> numbering as shown in the pdf you mentioned. If I use setupThesis how can I 
> supress the title, author element that shows up in the interface ? Should the 
> interface
>
> not be adjusted accordingly to the document class that is currently loaded ?
>
>
>
> Thanks
>
>
>
> On Sat, Nov 28, 2015 at 10:54 PM, Sajjad  wrote:
>
>> Thanks
>>
>> In one of the previous posts the following LaTeX command :
>>
>>
>> \setupThesis{key1=value1,key2=value2}
>>
>>
>> I did not find it anywhere in the LaTeX book I am using. Is it something 
>> advanced that you can use custom command ?
>>
>>
>>
>> On Sat, Nov 28, 2015 at 7:02 PM, Sajjad  wrote:
>>
>>> Thanks !
>>>
>>> It worked out eventually. Now I still have many options to enter and you
>>> suggested to preamble . Is there any reference to it where I can started
>>> with ?
>>>
>>>
>>>
>>> On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:
>>>
 Thanks for the hint!

 I tried but the issue prevails.  I am still getting the same error
 while trying for a pdf preview.

 The .cls file came along with the a pdf file that narrates how to use
 it and all the references are make to the LaTeX commands/notation which I
 am not aware of. At the beginning of the document it, indeed mentions that

 "You must decide on an input encoding from start, and select the
 corresponding
 class option from tabell B.12 on sida 30. You must also tell rtthesis
 whether you
 intend to use part sectioning or not, see tabell B.1. There are many
 more class op-
 tions, but they will be mentioned below where there is room for a more
 detailed
 discussion for the corresponding features."

 How is it possible to insert all the options that are mentioned in the
 documentation through LyX instead of LaTeX ?


 Thanks
 Sajjadul

 On Fri, Nov 27, 2015 at 10:34 PM, Sajjad  wrote:

> Hello forum,
>
> I managed to insert a custom .cls file into the lyx interface as I can
> access it from the Documents->Settings.
>
> But I get the following error once i try to generate a preview pdf .
> The errors are as follows:
>
>
> ///
>
> 1. Class rtthesis Error: One of the options `latin1' and `utf8' must
> be given
>
> One of the options `latin1' and `utf8' must be given
>
> to select the character encoding of the loaded
>
> captions. Guessing your preference is just too
>
> 

Re: Inserting custom class file into lyx

2015-11-29 Thread Robert Susmilch
Why are you explicitly including the rtmsc-defs? A search on my system says 
that rtmsc.sty is part of the rtthesis example file, while rtmsc-defs.sty and 
rtmsc-defs-utf8.sty are part of the core rtthesis package. You might want to 
copy all the files from rtthesisex to your rtthesis installed directory, 
/usr/share/tex/latex/ and run texhash again.

What is inside your rtthesis.layout file?

-- 
Respectfully,

Robert Susmilch
===
The "gobbledygook" in this email is due to this email having been "signed" 
with PGP for security.

On Sunday, November 29, 2015 03:44:14 PM Sajjad wrote:
> It could have been great if I could have pull this through. I tried the
> following preamble and it ended with the error :
> 
> ///
> 
> \setupThesis{
> 
> author={Sajjadul Islam},
> 
> title={Laser Sintering},
> 
> type=msc,
> 
> department=itn
> 
> }
> 
> \usepackage{rtmsc-defs}
> 
> 
> ///
> 
> And The error I got is:
> 
> 
> ///
> 
> LaTeX Error: File `rtmsc.sty' not found.
> 
> //
> 
> Since you already got hold of the rtthesis class you will not find anything
> inside the rtthesis folder named rtthesis.sty once you unzip the folder. I
> am not sure where it is pointing to by rtmsc.sty.
> 
> But I do believe that we can pull this through together. Let me describe
> how i managed to insert the LaTeX .cls file into the LyX interface and you
> could both address the issue .
> 
> 
> 1. I believe that you already have the rtthesis.zip file. I unzipped it
> into /usr/share/tex/latex/ , create a directory called rtthesis and copied
> all the files inside the newly created directory.
> 
> 2. Then I ran texhash command with the root priviledge.
> 
> 3. I created a rtthesis.layout file inside ~/.lyx/ and ran from LyX
> interface Tools->Reconfigure.
> 
> 4. Restarted Lyx and I found the rtthesis showed up.
> 
> 
> Since then I just got the class loading properly , but still stuck with the
> issue of the inserting the options from the interface either through
> preamble/TeX code. Before inserting as preamble , I also tried to insert
> the above code directly into the LyX interface by inserting TeX code. But
> it did not help .
> 
> Thanks
> 
> On Sun, Nov 29, 2015 at 4:10 AM, Sajjad  wrote:
> > If you insert the following through LaTeX preamble how will it affect the
> > environment combos at LyX interface where you can insert the
> > title,author,section, etc.
> > 
> > \setupThesis{author = {My name}, title = {My nice thesis}, city =
> > {Important city}, year = 2015, type = phd}
> > 
> > I hope that you understand my concern here. If you go to the upper left
> > corner of the LyX interface you will see the environment combo. You can
> > insert author,title,Abstract through
> > 
> > the interface as well.
> > 
> > Right now I am creating the title, author through the interface and the
> > preview does not show the front page, front matter, and the Abstract does
> > not show the roman
> > 
> > numbering as shown in the pdf you mentioned. If I use setupThesis how can
> > I supress the title, author element that shows up in the interface ?
> > Should the interface
> > 
> > not be adjusted accordingly to the document class that is currently loaded
> > ?
> > 
> > 
> > 
> > Thanks
> > 
> > On Sat, Nov 28, 2015 at 10:54 PM, Sajjad  wrote:
> >> Thanks
> >> 
> >> In one of the previous posts the following LaTeX command :
> >> 
> >> 
> >> \setupThesis{key1=value1,key2=value2}
> >> 
> >> 
> >> I did not find it anywhere in the LaTeX book I am using. Is it something
> >> advanced that you can use custom command ?>> 
> >> On Sat, Nov 28, 2015 at 7:02 PM, Sajjad  wrote:
> >>> Thanks !
> >>> 
> >>> It worked out eventually. Now I still have many options to enter and you
> >>> suggested to preamble . Is there any reference to it where I can started
> >>> with ?
> >>> 
> >>> On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:
>  Thanks for the hint!
>  
>  I tried but the issue prevails.  I am still getting the same error
>  while trying for a pdf preview.
>  
>  The .cls file came along with the a pdf file that narrates how to use
>  it and all the references are make to the LaTeX commands/notation which
>  I
>  am not aware of. At the beginning of the document it, indeed mentions
>  that
>  
>  "You must decide on an input encoding from start, and select the
>  corresponding
>  class option from tabell B.12 on sida 30. You must also tell rtthesis
>  whether you
>  intend to use part sectioning or not, see tabell B.1. There are many
>  more class op-
>  tions, but they will be mentioned below where there is room for a more
>  detailed
>  discussion for the corresponding features."
>  
>  How is it possible to insert all the 

Re: Inserting custom class file into lyx

2015-11-28 Thread Robert Susmilch
Within LyX in the help menu, are some very nice tutorials. It is a good 
starting point. Otherwise, generic Latex books can be found that can help.

Useful ones include,

LaTeX Beginner’s Guide by Stefan Kottwitz
Simplified Introduction to LaTeX by Harvey Greenburg
The (Not So) Short Introduction to LaTeX by Tobias Oetiker

There is a LyX wiki as well. It is a steep learning curve though.

In all honesty, unless there is a lot of math in your thesis, it may be easier 
to learn something like Scribus. I’m not knocking LaTeX or LyX... in fact I 
love them. However, I am starting to learn Scribus and it can be much easier 
to do things, IMHO.

For example, I have to write a “business proposal” for one of my classes. I 
would like to place pull quotes into the margins, or wrap text around a quote. 
I googled long and hard, to find a lot of manual work may be involved. From 
what I can see with Scribus, I would place a text frame where I want the 
quote, and let the other column text wrap around it automatically. 

However, this is a shift from what LaTeX and LyX are, which is "What You See 
Is What You Mean" instead of "What You See Is What You Get." With Scribus, you 
have to setup styles and be concerned about formatting, while with LaTeX you 
specify a format and it will automatically be consistent. I believe the lines 
are blurring though. LaTeX is fundamentally a programming language, with 
further programming languages used within things such as biblatex. I cannot 
count the hours spent trying to fight something out with LyX and LaTeX, which 
should have been simple.

All that said, its issues and problems are also it’s strength. Since it is 
fundamentally a modular programming language, you can automate and get it to 
do anything you wish. The same could be said for Scribus, as it is an open 
source program, you can add and change whatever you wish as well.

I suppose it boils down to, is this a one off use of LaTeX, or something you 
wish to learn and utilize throughout life? If so, it may be worth while to 
learn LaTeX and Scribus, due to the strengths and weaknesses inherent to each 
program. That is my personal motivation for learning both programs.
-- 
Respectfully,

Robert Susmilch
===
The "gobbledygook" in this email is due to this email having been "signed" 
with PGP for security.

On Saturday, November 28, 2015 07:02:13 PM Sajjad wrote:
> Thanks !
> 
> It worked out eventually. Now I still have many options to enter and you
> suggested to preamble . Is there any reference to it where I can started
> with ?
> 
> On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:
> > Thanks for the hint!
> > 
> > I tried but the issue prevails.  I am still getting the same error while
> > trying for a pdf preview.
> > 
> > The .cls file came along with the a pdf file that narrates how to use it
> > and all the references are make to the LaTeX commands/notation which I am
> > not aware of. At the beginning of the document it, indeed mentions that
> > 
> > "You must decide on an input encoding from start, and select the
> > corresponding
> > class option from tabell B.12 on sida 30. You must also tell rtthesis
> > whether you
> > intend to use part sectioning or not, see tabell B.1. There are many more
> > class op-
> > tions, but they will be mentioned below where there is room for a more
> > detailed
> > discussion for the corresponding features."
> > 
> > How is it possible to insert all the options that are mentioned in the
> > documentation through LyX instead of LaTeX ?
> > 
> > 
> > Thanks
> > Sajjadul
> > 
> > On Fri, Nov 27, 2015 at 10:34 PM, Sajjad  wrote:
> >> Hello forum,
> >> 
> >> I managed to insert a custom .cls file into the lyx interface as I can
> >> access it from the Documents->Settings.
> >> 
> >> But I get the following error once i try to generate a preview pdf . The
> >> errors are as follows:
> >> 
> >> 
> >> /
> >> //
> >> 
> >> 1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
> >> given
> >> 
> >> One of the options `latin1' and `utf8' must be given
> >> 
> >> to select the character encoding of the loaded
> >> 
> >> captions. Guessing your preference is just too
> >> 
> >> dangerous
> >> 
> >> 
> >> 
> >> 2. Package rtthesis-captions Error: One of the options `latin1' and
> >> `utf8' must
> >> 
> >> 
> >> One of the options `latin1' and `utf8' must
> >> 
> >> be given to select the character encoding
> >> 
> >> of the loaded captions
> >> 
> >> 
> >> 
> >> 3. Package rtthesis-papers-captions Error: One of the options `latin1'
> >> and
> >> 
> >> 
> >> 
> >> One of the options `latin1' and
> >> 
> >> `utf8' must be given to select the
> >> 
> >> character encoding of the loaded
> >> 
> >> captions
> >> 
> >> 
> >> 
> >> 4. LaTeX Error: Option clash for package inputenc.
> >> 
> >> 
> >> \setcounter
> >> 
> >> {secnumdepth}{3}
> >> 
> 

Re: Inserting custom class file into lyx

2015-11-28 Thread Sajjad
Thanks !

It worked out eventually. Now I still have many options to enter and you
suggested to preamble . Is there any reference to it where I can started
with ?



On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:

> Thanks for the hint!
>
> I tried but the issue prevails.  I am still getting the same error while
> trying for a pdf preview.
>
> The .cls file came along with the a pdf file that narrates how to use it
> and all the references are make to the LaTeX commands/notation which I am
> not aware of. At the beginning of the document it, indeed mentions that
>
> "You must decide on an input encoding from start, and select the
> corresponding
> class option from tabell B.12 on sida 30. You must also tell rtthesis
> whether you
> intend to use part sectioning or not, see tabell B.1. There are many more
> class op-
> tions, but they will be mentioned below where there is room for a more
> detailed
> discussion for the corresponding features."
>
> How is it possible to insert all the options that are mentioned in the
> documentation through LyX instead of LaTeX ?
>
>
> Thanks
> Sajjadul
>
> On Fri, Nov 27, 2015 at 10:34 PM, Sajjad  wrote:
>
>> Hello forum,
>>
>> I managed to insert a custom .cls file into the lyx interface as I can
>> access it from the Documents->Settings.
>>
>> But I get the following error once i try to generate a preview pdf . The
>> errors are as follows:
>>
>>
>> ///
>>
>> 1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
>> given
>>
>> One of the options `latin1' and `utf8' must be given
>>
>> to select the character encoding of the loaded
>>
>> captions. Guessing your preference is just too
>>
>> dangerous
>>
>>
>>
>> 2. Package rtthesis-captions Error: One of the options `latin1' and
>> `utf8' must
>>
>>
>> One of the options `latin1' and `utf8' must
>>
>> be given to select the character encoding
>>
>> of the loaded captions
>>
>>
>>
>> 3. Package rtthesis-papers-captions Error: One of the options `latin1' and
>>
>>
>>
>> One of the options `latin1' and
>>
>> `utf8' must be given to select the
>>
>> character encoding of the loaded
>>
>> captions
>>
>>
>>
>> 4. LaTeX Error: Option clash for package inputenc.
>>
>>
>> \setcounter
>>
>> {secnumdepth}{3}
>>
>> The package inputenc has already been loaded with options:
>>
>> [latin1]
>>
>> There has now been an attempt to load it with options
>>
>> [latin9]
>>
>> Adding the global options:
>>
>> latin1,latin9
>>
>> to your \documentclass declaration may fix this.
>>
>> Try typing  to proceed.
>>
>>
>>
>>
>> ///
>>
>>
>>
>>
>> I am quite new to LaTex and I must use the custom class to write the
>> report.  Do I have to insert the required values as asked through the
>> .layout file or the .clas file.
>>
>>
>>
>> Some hints over this issue is earnestly requested.
>>
>>
>>
>>
>> Thanks
>>
>> Sajjadul
>>
>>
>


Re: Inserting custom class file into lyx

2015-11-28 Thread Sajjad
Thanks

In one of the previous posts the following LaTeX command :


\setupThesis{key1=value1,key2=value2}


I did not find it anywhere in the LaTeX book I am using. Is it
something advanced that you can use custom command ?



On Sat, Nov 28, 2015 at 7:02 PM, Sajjad  wrote:

> Thanks !
>
> It worked out eventually. Now I still have many options to enter and you
> suggested to preamble . Is there any reference to it where I can started
> with ?
>
>
>
> On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:
>
>> Thanks for the hint!
>>
>> I tried but the issue prevails.  I am still getting the same error while
>> trying for a pdf preview.
>>
>> The .cls file came along with the a pdf file that narrates how to use it
>> and all the references are make to the LaTeX commands/notation which I am
>> not aware of. At the beginning of the document it, indeed mentions that
>>
>> "You must decide on an input encoding from start, and select the
>> corresponding
>> class option from tabell B.12 on sida 30. You must also tell rtthesis
>> whether you
>> intend to use part sectioning or not, see tabell B.1. There are many more
>> class op-
>> tions, but they will be mentioned below where there is room for a more
>> detailed
>> discussion for the corresponding features."
>>
>> How is it possible to insert all the options that are mentioned in the
>> documentation through LyX instead of LaTeX ?
>>
>>
>> Thanks
>> Sajjadul
>>
>> On Fri, Nov 27, 2015 at 10:34 PM, Sajjad  wrote:
>>
>>> Hello forum,
>>>
>>> I managed to insert a custom .cls file into the lyx interface as I can
>>> access it from the Documents->Settings.
>>>
>>> But I get the following error once i try to generate a preview pdf . The
>>> errors are as follows:
>>>
>>>
>>> ///
>>>
>>> 1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
>>> given
>>>
>>> One of the options `latin1' and `utf8' must be given
>>>
>>> to select the character encoding of the loaded
>>>
>>> captions. Guessing your preference is just too
>>>
>>> dangerous
>>>
>>>
>>>
>>> 2. Package rtthesis-captions Error: One of the options `latin1' and
>>> `utf8' must
>>>
>>>
>>> One of the options `latin1' and `utf8' must
>>>
>>> be given to select the character encoding
>>>
>>> of the loaded captions
>>>
>>>
>>>
>>> 3. Package rtthesis-papers-captions Error: One of the options `latin1'
>>> and
>>>
>>>
>>>
>>> One of the options `latin1' and
>>>
>>> `utf8' must be given to select the
>>>
>>> character encoding of the loaded
>>>
>>> captions
>>>
>>>
>>>
>>> 4. LaTeX Error: Option clash for package inputenc.
>>>
>>>
>>> \setcounter
>>>
>>> {secnumdepth}{3}
>>>
>>> The package inputenc has already been loaded with options:
>>>
>>> [latin1]
>>>
>>> There has now been an attempt to load it with options
>>>
>>> [latin9]
>>>
>>> Adding the global options:
>>>
>>> latin1,latin9
>>>
>>> to your \documentclass declaration may fix this.
>>>
>>> Try typing  to proceed.
>>>
>>>
>>>
>>>
>>> ///
>>>
>>>
>>>
>>>
>>> I am quite new to LaTex and I must use the custom class to write the
>>> report.  Do I have to insert the required values as asked through the
>>> .layout file or the .clas file.
>>>
>>>
>>>
>>> Some hints over this issue is earnestly requested.
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>> Sajjadul
>>>
>>>
>>
>


Re: Inserting custom class file into lyx

2015-11-28 Thread Robert Susmilch
It is from the rtthesis example file, found here 
http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis.html

More specifically,
http://www.control.isy.liu.se/student/exjobb/liuthesis/rtthesisex-exjobb.zip

Within that zip file is a file called “main.pdf” and there is an appendix B. On 
page 13 they talk about the setupThesis command. They give examples of 
key=value pairs in Table B.2 (page 14)

For example, within the preamble you could set the following,
\setupThesis{author = {My name}, title = {My nice thesis}, city = {Important 
city}, year = 2015, type = phd}

The preamble can be found in Document -> Settings -> Latex Preamble

There are many more options that you can decide on further into the document. 
From a quick glance, I believe that most of them should be used in the 
preamble as they are global settings.
-- 
Respectfully,

Robert Susmilch
===
The "gobbledygook" in this email is due to this email having been "signed" 
with PGP for security.

On Saturday, November 28, 2015 10:54:28 PM Sajjad wrote:
> Thanks
> 
> In one of the previous posts the following LaTeX command :
> 
> 
> \setupThesis{key1=value1,key2=value2}
> 
> 
> I did not find it anywhere in the LaTeX book I am using. Is it
> something advanced that you can use custom command ?
> 
> On Sat, Nov 28, 2015 at 7:02 PM, Sajjad  wrote:
> > Thanks !
> > 
> > It worked out eventually. Now I still have many options to enter and you
> > suggested to preamble . Is there any reference to it where I can started
> > with ?
> > 
> > On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:
> >> Thanks for the hint!
> >> 
> >> I tried but the issue prevails.  I am still getting the same error while
> >> trying for a pdf preview.
> >> 
> >> The .cls file came along with the a pdf file that narrates how to use it
> >> and all the references are make to the LaTeX commands/notation which I am
> >> not aware of. At the beginning of the document it, indeed mentions that
> >> 
> >> "You must decide on an input encoding from start, and select the
> >> corresponding
> >> class option from tabell B.12 on sida 30. You must also tell rtthesis
> >> whether you
> >> intend to use part sectioning or not, see tabell B.1. There are many more
> >> class op-
> >> tions, but they will be mentioned below where there is room for a more
> >> detailed
> >> discussion for the corresponding features."
> >> 
> >> How is it possible to insert all the options that are mentioned in the
> >> documentation through LyX instead of LaTeX ?
> >> 
> >> 
> >> Thanks
> >> Sajjadul
> >> 
> >> On Fri, Nov 27, 2015 at 10:34 PM, Sajjad  wrote:
> >>> Hello forum,
> >>> 
> >>> I managed to insert a custom .cls file into the lyx interface as I can
> >>> access it from the Documents->Settings.
> >>> 
> >>> But I get the following error once i try to generate a preview pdf . The
> >>> errors are as follows:
> >>> 
> >>> 
> >>> 
> >>> ///
> >>> 
> >>> 1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
> >>> given
> >>> 
> >>> One of the options `latin1' and `utf8' must be given
> >>> 
> >>> to select the character encoding of the loaded
> >>> 
> >>> captions. Guessing your preference is just too
> >>> 
> >>> dangerous
> >>> 
> >>> 
> >>> 
> >>> 2. Package rtthesis-captions Error: One of the options `latin1' and
> >>> `utf8' must
> >>> 
> >>> 
> >>> One of the options `latin1' and `utf8' must
> >>> 
> >>> be given to select the character encoding
> >>> 
> >>> of the loaded captions
> >>> 
> >>> 
> >>> 
> >>> 3. Package rtthesis-papers-captions Error: One of the options `latin1'
> >>> and
> >>> 
> >>> 
> >>> 
> >>> One of the options `latin1' and
> >>> 
> >>> `utf8' must be given to select the
> >>> 
> >>> character encoding of the loaded
> >>> 
> >>> captions
> >>> 
> >>> 
> >>> 
> >>> 4. LaTeX Error: Option clash for package inputenc.
> >>> 
> >>> 
> >>> \setcounter
> >>> 
> >>> {secnumdepth}{3}
> >>> 
> >>> The package inputenc has already been loaded with options:
> >>> 
> >>> [latin1]
> >>> 
> >>> There has now been an attempt to load it with options
> >>> 
> >>> [latin9]
> >>> 
> >>> Adding the global options:
> >>> 
> >>> latin1,latin9
> >>> 
> >>> to your \documentclass declaration may fix this.
> >>> 
> >>> Try typing  to proceed.
> >>> 
> >>> 
> >>> 
> >>> 
> >>> 
> >>> ///
> >>> 
> >>> 
> >>> 
> >>> 
> >>> I am quite new to LaTex and I must use the custom class to write the
> >>> report.  Do I have to insert the required values as asked through the
> >>> .layout file or the .clas file.
> >>> 
> >>> 
> >>> 
> >>> Some hints over this issue is earnestly requested.
> >>> 
> >>> 
> >>> 
> >>> 
> >>> Thanks
> >>> 
> >>> Sajjadul


signature.asc
Description: This is a digitally signed message part.


Re: Inserting custom class file into lyx

2015-11-28 Thread Sajjad
If you insert the following through LaTeX preamble how will it affect the
environment combos at LyX interface where you can insert the
title,author,section, etc.

\setupThesis{author = {My name}, title = {My nice thesis}, city = {Important
city}, year = 2015, type = phd}

I hope that you understand my concern here. If you go to the upper
left corner of the LyX interface you will see the environment combo.
You can insert author,title,Abstract through

the interface as well.

Right now I am creating the title, author through the interface and
the preview does not show the front page, front matter, and the
Abstract does not show the roman

numbering as shown in the pdf you mentioned. If I use setupThesis how
can I supress the title, author element that shows up in the interface
? Should the interface

not be adjusted accordingly to the document class that is currently loaded ?



Thanks



On Sat, Nov 28, 2015 at 10:54 PM, Sajjad  wrote:

> Thanks
>
> In one of the previous posts the following LaTeX command :
>
>
> \setupThesis{key1=value1,key2=value2}
>
>
> I did not find it anywhere in the LaTeX book I am using. Is it something 
> advanced that you can use custom command ?
>
>
>
> On Sat, Nov 28, 2015 at 7:02 PM, Sajjad  wrote:
>
>> Thanks !
>>
>> It worked out eventually. Now I still have many options to enter and you
>> suggested to preamble . Is there any reference to it where I can started
>> with ?
>>
>>
>>
>> On Sat, Nov 28, 2015 at 1:44 AM, Sajjad  wrote:
>>
>>> Thanks for the hint!
>>>
>>> I tried but the issue prevails.  I am still getting the same error while
>>> trying for a pdf preview.
>>>
>>> The .cls file came along with the a pdf file that narrates how to use it
>>> and all the references are make to the LaTeX commands/notation which I am
>>> not aware of. At the beginning of the document it, indeed mentions that
>>>
>>> "You must decide on an input encoding from start, and select the
>>> corresponding
>>> class option from tabell B.12 on sida 30. You must also tell rtthesis
>>> whether you
>>> intend to use part sectioning or not, see tabell B.1. There are many
>>> more class op-
>>> tions, but they will be mentioned below where there is room for a more
>>> detailed
>>> discussion for the corresponding features."
>>>
>>> How is it possible to insert all the options that are mentioned in the
>>> documentation through LyX instead of LaTeX ?
>>>
>>>
>>> Thanks
>>> Sajjadul
>>>
>>> On Fri, Nov 27, 2015 at 10:34 PM, Sajjad  wrote:
>>>
 Hello forum,

 I managed to insert a custom .cls file into the lyx interface as I can
 access it from the Documents->Settings.

 But I get the following error once i try to generate a preview pdf .
 The errors are as follows:


 ///

 1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
 given

 One of the options `latin1' and `utf8' must be given

 to select the character encoding of the loaded

 captions. Guessing your preference is just too

 dangerous



 2. Package rtthesis-captions Error: One of the options `latin1' and
 `utf8' must


 One of the options `latin1' and `utf8' must

 be given to select the character encoding

 of the loaded captions



 3. Package rtthesis-papers-captions Error: One of the options `latin1'
 and



 One of the options `latin1' and

 `utf8' must be given to select the

 character encoding of the loaded

 captions



 4. LaTeX Error: Option clash for package inputenc.


 \setcounter

 {secnumdepth}{3}

 The package inputenc has already been loaded with options:

 [latin1]

 There has now been an attempt to load it with options

 [latin9]

 Adding the global options:

 latin1,latin9

 to your \documentclass declaration may fix this.

 Try typing  to proceed.




 ///




 I am quite new to LaTex and I must use the custom class to write the
 report.  Do I have to insert the required values as asked through the
 .layout file or the .clas file.



 Some hints over this issue is earnestly requested.




 Thanks

 Sajjadul


>>>
>>
>


Re: Inserting custom class file into lyx

2015-11-27 Thread Sajjad
Thanks for the hint!

I tried but the issue prevails.  I am still getting the same error while
trying for a pdf preview.

The .cls file came along with the a pdf file that narrates how to use it
and all the references are make to the LaTeX commands/notation which I am
not aware of. At the beginning of the document it, indeed mentions that

"You must decide on an input encoding from start, and select the
corresponding
class option from tabell B.12 on sida 30. You must also tell rtthesis
whether you
intend to use part sectioning or not, see tabell B.1. There are many more
class op-
tions, but they will be mentioned below where there is room for a more
detailed
discussion for the corresponding features."

How is it possible to insert all the options that are mentioned in the
documentation through LyX instead of LaTeX ?


Thanks
Sajjadul

On Fri, Nov 27, 2015 at 10:34 PM, Sajjad  wrote:

> Hello forum,
>
> I managed to insert a custom .cls file into the lyx interface as I can
> access it from the Documents->Settings.
>
> But I get the following error once i try to generate a preview pdf . The
> errors are as follows:
>
>
> ///
>
> 1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
> given
>
> One of the options `latin1' and `utf8' must be given
>
> to select the character encoding of the loaded
>
> captions. Guessing your preference is just too
>
> dangerous
>
>
>
> 2. Package rtthesis-captions Error: One of the options `latin1' and `utf8'
> must
>
>
> One of the options `latin1' and `utf8' must
>
> be given to select the character encoding
>
> of the loaded captions
>
>
>
> 3. Package rtthesis-papers-captions Error: One of the options `latin1' and
>
>
>
> One of the options `latin1' and
>
> `utf8' must be given to select the
>
> character encoding of the loaded
>
> captions
>
>
>
> 4. LaTeX Error: Option clash for package inputenc.
>
>
> \setcounter
>
> {secnumdepth}{3}
>
> The package inputenc has already been loaded with options:
>
> [latin1]
>
> There has now been an attempt to load it with options
>
> [latin9]
>
> Adding the global options:
>
> latin1,latin9
>
> to your \documentclass declaration may fix this.
>
> Try typing  to proceed.
>
>
>
>
> ///
>
>
>
>
> I am quite new to LaTex and I must use the custom class to write the
> report.  Do I have to insert the required values as asked through the
> .layout file or the .clas file.
>
>
>
> Some hints over this issue is earnestly requested.
>
>
>
>
> Thanks
>
> Sajjadul
>
>


Re: Inserting custom class file into lyx

2015-11-27 Thread Robert Susmilch
Did you go to Document Settings -> Document Class -> Class Options and under 
Custom enter either “utf8” or “latin1”?

As for the additional options, it looks like you need to pass them to 
\setupThesis{key1=value1,key2=value2} which you should be able to enter into 
the preamble. Otherwise you can enter latex commands within a document by 
entering “Tex Code” under the insert menu. 

I couldn’t get LyX to load the class, and have not played around with custom 
classes in LyX yet. However, creating a barebones latex file I get the same 
error you do if I do not pass the option of “utf” to the rtthesis class.

-- 
Respectfully,

Robert Susmilch
===
The "gobbledygook" in this email is due to this email having been "signed" 
with PGP for security.

On Saturday, November 28, 2015 01:44:52 AM Sajjad wrote:
> rtthesis


signature.asc
Description: This is a digitally signed message part.


Re: Inserting custom class file into lyx

2015-11-27 Thread Robert Susmilch
Sajjad,

Try going to Document Settings -> Language -> Encoding and choose Other. 
Within that list are UNICODE options. Otherwise, the list will request a 
minimal working example, which is the bare minimum lyx file that creates the 
error. I stress the word “minimum” as no one wants megabytes flying around to 
everyone on the list, unless it is necessary.

Also, you may manually load packages through the preamble. You can also load 
class options through the Document Settings dialog under Document Class -> 
Class Options.

-- 
Respectfully,

Robert Susmilch
===
The "gobbledygook" in this email is due to this email having been "signed" 
with PGP for security.

On Friday, November 27, 2015 10:34:54 PM Sajjad wrote:
> Hello forum,
> 
> I managed to insert a custom .cls file into the lyx interface as I can
> access it from the Documents->Settings.
> 
> But I get the following error once i try to generate a preview pdf . The
> errors are as follows:
> 
> 
> ///
> 
> 1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
> given
> 
> One of the options `latin1' and `utf8' must be given
> 
> to select the character encoding of the loaded
> 
> captions. Guessing your preference is just too
> 
> dangerous
> 
> 
> 
> 2. Package rtthesis-captions Error: One of the options `latin1' and `utf8'
> must
> 
> 
> One of the options `latin1' and `utf8' must
> 
> be given to select the character encoding
> 
> of the loaded captions
> 
> 
> 
> 3. Package rtthesis-papers-captions Error: One of the options `latin1' and
> 
> 
> 
> One of the options `latin1' and
> 
> `utf8' must be given to select the
> 
> character encoding of the loaded
> 
> captions
> 
> 
> 
> 4. LaTeX Error: Option clash for package inputenc.
> 
> 
> \setcounter
> 
> {secnumdepth}{3}
> 
> The package inputenc has already been loaded with options:
> 
> [latin1]
> 
> There has now been an attempt to load it with options
> 
> [latin9]
> 
> Adding the global options:
> 
> latin1,latin9
> 
> to your \documentclass declaration may fix this.
> 
> Try typing  to proceed.
> 
> 
> 
> 
> ///
> 
> 
> 
> 
> I am quite new to LaTex and I must use the custom class to write the
> report.  Do I have to insert the required values as asked through the
> .layout file or the .clas file.
> 
> 
> 
> Some hints over this issue is earnestly requested.
> 
> 
> 
> 
> Thanks
> 
> Sajjadul


signature.asc
Description: This is a digitally signed message part.


Inserting custom class file into lyx

2015-11-27 Thread Sajjad
Hello forum,

I managed to insert a custom .cls file into the lyx interface as I can
access it from the Documents->Settings.

But I get the following error once i try to generate a preview pdf . The
errors are as follows:

///

1. Class rtthesis Error: One of the options `latin1' and `utf8' must be
given

One of the options `latin1' and `utf8' must be given

to select the character encoding of the loaded

captions. Guessing your preference is just too

dangerous



2. Package rtthesis-captions Error: One of the options `latin1' and `utf8'
must


One of the options `latin1' and `utf8' must

be given to select the character encoding

of the loaded captions



3. Package rtthesis-papers-captions Error: One of the options `latin1' and



One of the options `latin1' and

`utf8' must be given to select the

character encoding of the loaded

captions



4. LaTeX Error: Option clash for package inputenc.


\setcounter

{secnumdepth}{3}

The package inputenc has already been loaded with options:

[latin1]

There has now been an attempt to load it with options

[latin9]

Adding the global options:

latin1,latin9

to your \documentclass declaration may fix this.

Try typing  to proceed.



///




I am quite new to LaTex and I must use the custom class to write the
report.  Do I have to insert the required values as asked through the
.layout file or the .clas file.



Some hints over this issue is earnestly requested.




Thanks

Sajjadul