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 LaTeX commands/notation which I
> am not aware of. At the beginning of the document it, indeed mentions that
>

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 options that are mentioned in the
>  documentation through LyX instead of LaTeX ?
>  
> 

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
>
> dangerous
>
>
>
> 2. Package rtthesis-captions Error: One of the options `latin1' and
> `utf8' must
>>

Re: no KBiBteX available for openSUSE Leap 42.1

2015-11-29 Thread Michael Berger

On 11/28/2015 10:32 PM, Cor Blom wrote:

Hi Michael,

In Leap 42.1 the number of "community repositories" that could be 
added in Yast > Repositories (or however that is translated) is 
limited to discourage adding additional repositories that can mess the 
system. Before the KDE:Extra repository could easily be added that 
way. Now you have to do this manually.


In Yast > Repositories add a new repository. Choose whatever name you 
like for it and add the following url:


http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_42.1/

Then kbibtex is available and updates of it will automatically be 
installed.


Hope this helps. And maybe I or someone else will push this package 
into the distribution itself one day.


Hope this helps you and maybe others.

Regards,

Cor


Hi Cor,
thanks for your very informative reply and provision of the repository 
for kbibtex

http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_42.1/
Indeed, the number of repositories presented is very limited. It would 
be useful if you or somebody else could add it some day. I used it in 
the past with other versions of openSUSE as a rich source for other 
useful applications.


Herbert too found a working kbibtex for Leap 42.1 here
https://build.opensuse.org/package/show?project=KDE%3AExtra&package=kbibtex

And I myself found one here the day before yesterday
https://build.opensuse.org/package/binaries/home:wolfi323:branches:KDE:Frameworks5/kbibtex5?repository=openSUSE_Leap_42.1
This one leads to what can be seen in the screen-shot attached.
But only now, after you and Herbert confirmed it _working_ on their 
machines, I find the courage to load it.


I repeat the three links here for all those who may be facing similar 
difficulties.


PS: my installation of openSUSE Leap 42.1 is still far from being 
"rock-solid" :-D


Many thanks again and cheers!
Michael Berger