ERT is not working

2016-01-11 Thread Sajjad
Hello forum,

I have managed to import a custom .cls file into the lyx .layout file and
things have been working fine so far. I have been inserting the necessary
parameter through class options of the lyx interface and ERT code. Now I am
stuck with the following issue. I am trying to generate a page for notation
of abbreviation. The custom class has an example for this and if I directly
copy it into my structure it works file.  The example as follows:

//
\begin{notation}% Passing the option "old" to the notation environment will
redefine the notationtabular environment so that it produces an old style
LaTeX tabular instead of a ctable.sty style tabular.
  \centering

  \begin{notationtabular}{Förkortningar}{Förkortning}{Betydelse}
\abbrARMA\index{ARMA@\abbrARMA!abbreviation} & Auto-regressive moving
average \\
\abbrPID\index{PID@\abbrPID!abbreviation} & Proportional, integral,
differential (regulator) \\
  \end{notationtabular}
\end{notation}



//


In my case I made the changes as follows , but it does not work :

///
\begin{notation}% Passing the option "old" to the notation environment will
redefine the notationtabular environment so that it produces an old style
LaTeX tabular instead of a ctable.sty style tabular.
  \centering
  \begin{notationtabular}{Terminology}{Abbreviation}{Signifies}
\abbrAM\index{AM@\abbrAM!abbreviation} & Additive manufacturing \\
  \end{notationtabular}
\end{notation}

///


I could not find the mistake I am making here. The ERT code that is
inserted is:


//
\selectlanguage{english}
\makeFrontPage
\frontmatter
\maketitle
\makeLibraryPage{\input{engelsk-sammanfattning}}
\begin{abstract}[english]
\input{engelsk-sammanfattning}
\end{abstract}
\include{tack}
\tableofcontents{}
\include{notation}
\mainmatter
/


when i run pdflatex I get the following information at the console:

//
[7]) [8] (./notation.tex
(/usr/share/texlive/texmf-dist/tex/latex/kpfonts/t1jkp.fd)
! Undefined control sequence.
 \abbrAM

l.4 \abbrAM
   \index{AM@\abbrAM!abbreviation} & Additive manufacturing \\
///

The pdf is generated though, but the notation page does not show AM, only
the elaboration is shown.


Some hint is urgently needed.


Thanks


Re: Preamble not working

2016-01-06 Thread Sajjad
Here it goes. A Sample .lyx file with the new document class as mentioned
in previous conversation.



Thanks

On Wed, Jan 6, 2016 at 4:19 PM, Richard Heck <rgh...@lyx.org> wrote:

>
> Thanks for this. Please now attach an example file, as simple as possible,
> that illustrates the problem.
>
> Richard
>
>
>
>
> On 01/05/2016 01:33 PM, Sajjad wrote:
>
> Hi,
>
> The rtthesis class that I am using providied by the university is largely
> based on book class and here goes the content of the corresponding .layout
> file:
>
>
> /
> #% Do not delete the line below; configure depends on this
> #  \DeclareLaTeXClass[rtthesis]{rtthesis}
>
> Format 49
> # Input general definitions
> Input stdclass.inc
>
>
> Input numreport.inc
>
>
> Sides   2
> PageStyle   Headings
>
>
>
> Style Bibliography
> TopSep4
> LabelString   "Bibliography"
> LabelFont
>   Series  Bold
>   SizeHuge
> EndFont
> End
>
>
>
>
> /
>
>
> I can access the layout from the LyX interface and I can generate the pdf
> as well once I set some the class options through
> Documents->Settings->Document Class->Class Options->Custom:
>
>
> "utf8,largesmallcaps,intlimits,widermath,sharecounter,nobreak,definition=marks,noparts,S5"
>
>
> I tried to set the LaTex preamble to generate the front cover and this
> where I am not able to generate it. It generates no error, it just generate
> the same pdf output that I used to get without preamble:
>
> ///
>
> \setupThesis{
>
> author={Sajjadul},
>
> title={Fractal Scanning Path },
>
> city=Dhaka,
>
> year=2016,
>
> type=msc,
>
> department=itn
>
> }
>
>
>
>
>
> //
>
>
> Please let me know if you need any more information to address this issue.
>
>
> Thanks
>
> On Mon, Jan 4, 2016 at 11:56 PM, Richard Heck <rgh...@lyx.org> wrote:
>
>> On 01/04/2016 04:07 PM, Sajjad wrote:
>>
>> Hi Richard,
>>
>> I inserted the command(\setupThesis) just as you mentioned in your
>> question.
>>
>>
>> It'd definitely be best to post an example then, with the layout file you
>> made.
>>
>> Richard
>>
>>
>>
>>
>> Thanks
>>
>> On Mon, Jan 4, 2016 at 3:45 PM, Richard Heck < <rgh...@lyx.org>
>> rgh...@lyx.org> wrote:
>>
>>> On 01/04/2016 12:59 AM, Sajjad wrote:
>>> > Hello Forum,
>>> >
>>> > I have managed to insert a custom .cls file into the LyX. It does
>>> > reflect some of the characteristics new customized class that came
>>> > along as a template from the University I am writing my thesis with.
>>> >
>>> > http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis.html
>>> >
>>> >
>>> > I am trying to insert the title and some other parameter as LaTeX
>>> > preamble from the LyX interface as follows:
>>> >
>>> > \setupThesis{
>>> >
>>> > author={Tom & Jerry},
>>> >
>>> > title={H Hee  H},
>>> >
>>> > type=msc,
>>> >
>>> > department=itn
>>> >
>>> > }
>>> >
>>> >
>>> >
>>> > If I compile, the author, title, and other parameters are not shown,
>>> > but rest of the chapters are shown with the format of the customized
>>> > class which is imported into LyX by .layout file. Any hint to make it
>>> > work ?
>>> >
>>>
>>> It's hard to answer this sort of question without an example file, so
>>> you could posting one.
>>>
>>> As for \setupThesis, did you insert this under Document> Settings> LaTeX
>>> Preamble?
>>>
>>> Richard
>>>
>>>
>>
>>
>
>


TestForum.lyx
Description: application/lyx


Re: Preamble not working

2016-01-05 Thread Sajjad
Hi,

The rtthesis class that I am using providied by the university is largely
based on book class and here goes the content of the corresponding .layout
file:

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

Format 49
# Input general definitions
Input stdclass.inc


Input numreport.inc


Sides   2
PageStyle   Headings



Style Bibliography
TopSep4
LabelString   "Bibliography"
LabelFont
  Series  Bold
  SizeHuge
EndFont
End



/


I can access the layout from the LyX interface and I can generate the pdf
as well once I set some the class options through
Documents->Settings->Document Class->Class Options->Custom:

"utf8,largesmallcaps,intlimits,widermath,sharecounter,nobreak,definition=marks,noparts,S5"


I tried to set the LaTex preamble to generate the front cover and this
where I am not able to generate it. It generates no error, it just generate
the same pdf output that I used to get without preamble:

///

\setupThesis{

author={Sajjadul},

title={Fractal Scanning Path },

city=Dhaka,

year=2016,

type=msc,

department=itn

}





//


Please let me know if you need any more information to address this issue.


Thanks

On Mon, Jan 4, 2016 at 11:56 PM, Richard Heck <rgh...@lyx.org> wrote:

> On 01/04/2016 04:07 PM, Sajjad wrote:
>
> Hi Richard,
>
> I inserted the command(\setupThesis) just as you mentioned in your
> question.
>
>
> It'd definitely be best to post an example then, with the layout file you
> made.
>
> Richard
>
>
>
>
> Thanks
>
> On Mon, Jan 4, 2016 at 3:45 PM, Richard Heck <rgh...@lyx.org> wrote:
>
>> On 01/04/2016 12:59 AM, Sajjad wrote:
>> > Hello Forum,
>> >
>> > I have managed to insert a custom .cls file into the LyX. It does
>> > reflect some of the characteristics new customized class that came
>> > along as a template from the University I am writing my thesis with.
>> >
>> > http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis.html
>> >
>> >
>> > I am trying to insert the title and some other parameter as LaTeX
>> > preamble from the LyX interface as follows:
>> >
>> > \setupThesis{
>> >
>> > author={Tom & Jerry},
>> >
>> > title={H Hee  H},
>> >
>> > type=msc,
>> >
>> > department=itn
>> >
>> > }
>> >
>> >
>> >
>> > If I compile, the author, title, and other parameters are not shown,
>> > but rest of the chapters are shown with the format of the customized
>> > class which is imported into LyX by .layout file. Any hint to make it
>> > work ?
>> >
>>
>> It's hard to answer this sort of question without an example file, so
>> you could posting one.
>>
>> As for \setupThesis, did you insert this under Document> Settings> LaTeX
>> Preamble?
>>
>> Richard
>>
>>
>
>


Re: Preamble not working

2016-01-04 Thread Sajjad
Hi Richard,

I inserted the command(\setupThesis) just as you mentioned in your question.


Thanks

On Mon, Jan 4, 2016 at 3:45 PM, Richard Heck <rgh...@lyx.org> wrote:

> On 01/04/2016 12:59 AM, Sajjad wrote:
> > Hello Forum,
> >
> > I have managed to insert a custom .cls file into the LyX. It does
> > reflect some of the characteristics new customized class that came
> > along as a template from the University I am writing my thesis with.
> >
> > http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis.html
> >
> >
> > I am trying to insert the title and some other parameter as LaTeX
> > preamble from the LyX interface as follows:
> >
> > \setupThesis{
> >
> > author={Tom & Jerry},
> >
> > title={H Hee  H},
> >
> > type=msc,
> >
> > department=itn
> >
> > }
> >
> >
> >
> > If I compile, the author, title, and other parameters are not shown,
> > but rest of the chapters are shown with the format of the customized
> > class which is imported into LyX by .layout file. Any hint to make it
> > work ?
> >
>
> It's hard to answer this sort of question without an example file, so
> you could posting one.
>
> As for \setupThesis, did you insert this under Document> Settings> LaTeX
> Preamble?
>
> Richard
>
>


Preamble not working

2016-01-03 Thread Sajjad
Hello Forum,

I have managed to insert a custom .cls file into the LyX. It does reflect
some of the characteristics new customized class that came along as a
template from the University I am writing my thesis with.

http://www.control.isy.liu.se/student/exjobb/liuthesis/liuthesis.html


I am trying to insert the title and some other parameter as LaTeX preamble
from the LyX interface as follows:

\setupThesis{

author={Tom & Jerry},

title={H Hee  H},

type=msc,

department=itn

}



If I compile, the author, title, and other parameters are not shown, but
rest of the chapters are shown with the format of the customized class
which is imported into LyX by .layout file. Any hint to make it work ?



Thanks


float algorithm

2015-12-20 Thread Sajjad
Hello forum,

I am trying to insert float algorithm into the report I am writing. I did
the following:

1. Insert->Float->Algorithm
2. Inside Algorithm I inserted program listing
3. Wrote down the procedure.

When I generate the pdf , the algorithm is over-lapping the page number .
Is it possible to break the algorithm automatically once it cannot be fit
into one page and continue to the next page ? The issue can be seen in the
following link :


http://i.imgur.com/P02CjO8.png

As you can see page number 47 in the middle of the algorithm.


Any idea to get rid of this issue ?


Thanks


Re: float algorithm

2015-12-20 Thread Sajjad
Hello forum,

I think I found kind of a solution to the issue. Instead of having program
listing inside floating algorithm , I am having just the program listing
and now the code snippets are split automatically.

But I am encountering another issue. How do I enter some kind of caption to
the program listing I have just added, so that it gets listed into the list
of algorithms at the beginning of the report.

A better suggestion is expected than the one described.

Thanks

On Sun, Dec 20, 2015 at 4:36 PM, Sajjad <dosto.wa...@gmail.com> wrote:

> Hello forum,
>
> I am trying to insert float algorithm into the report I am writing. I did
> the following:
>
> 1. Insert->Float->Algorithm
> 2. Inside Algorithm I inserted program listing
> 3. Wrote down the procedure.
>
> When I generate the pdf , the algorithm is over-lapping the page number .
> Is it possible to break the algorithm automatically once it cannot be fit
> into one page and continue to the next page ? The issue can be seen in the
> following link :
>
>
> http://i.imgur.com/P02CjO8.png
>
> As you can see page number 47 in the middle of the algorithm.
>
>
> Any idea to get rid of this issue ?
>
>
> Thanks
>


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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> wrote:
>>>
>>>>

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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> wrote:
>

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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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
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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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 <dosto.wa...@gmail.com> 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
>
>


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


indenting the algorithm

2015-09-23 Thread Sajjad
Hello forum,

I am trying the write algorithm by using the insert->float->algorithm. But
I cannot insert indentation while writing down the algorithm.


Ant reference/hint to resolve this issue?


Thanks


Insert Tex Code

2015-09-18 Thread Sajjad
Hello forum,

I am trying to insert TeX code directly from the LyX interface Insert->Tex
Code . Then I see a box in the editor. Inside the box I entered the
following:

\sqrt A-B

When I go for preview I get the following error:

//
Errors:
Missing $ inserted

Description:

on \emph{L, }and any vector \sqrt A

-B

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.



//

Any hint on what is missing in the process ?


Thanks


Re: Figures side by side

2015-09-03 Thread Sajjad
How to solve the issue, then ? There must be some way to get around .


Thanks

On Wed, Sep 2, 2015 at 5:34 PM, Sajjad <dosto.wa...@gmail.com> wrote:

> Thanks for the hint. I tried again with your suggestion that I might have
> missed initially. Unfortunately, I am getting the same result  -  one image
> overlapping the other image. So I thought of pasting the source below for
> you so that it becomes more transparent of what I might have missed in the
> process.
>
>
>
> /
>
> % Preview source code for paragraph 17
>
>
> \begin{figure}
>
>
>
> \begin{minipage}[t]{0.45\textwidth}%
>
> \begin{center}
>
> \includegraphics[scale=0.1]{images/ReferenceSinteredModel}
>
> \par\end{center}
>
>
> \protect\caption{Reference Sintered Model}
>
> %
>
> \end{minipage}%
>
> \begin{minipage}[t]{0.45\textwidth}%
>
> \begin{center}
>
> \includegraphics[scale=0.1]{images/OriginalSinteredModel}
>
> \par\end{center}
>
>
> \protect\caption{Original Sintered Model}
>
> %
>
> \end{minipage}
>
>
> \end{figure}
>
>
> ///
>
>
>
> You may have noted that , horizontal fill is not visible in the source. Do
> they show up ? I am inserting the horizontal fill between the two
> minipages, but the insertion is not showing up in the source.
>
>
>
> Waiting for more feed-back over this issue.
>
>
>
> Thanks
>
>
> On Tue, Sep 1, 2015 at 3:52 PM, Scott Kostyshak <skost...@lyx.org> wrote:
>
>> On Mon, Aug 31, 2015 at 12:11 PM, Rich Shepard <rshep...@appl-ecosys.com>
>> wrote:
>> > On Mon, 31 Aug 2015, Sajjad wrote:
>> >
>> >> Any hint to get around this issue?
>> >
>> >
>> >   I bet you forgot to 1) put a horizontal fill space between the two
>> > minipages (frameless boxes) and 2) did not set the size of each figure
>> to
>> > 45% of the text width.
>>
>> Note that a related LyX question was just asked here:
>>
>> http://tex.stackexchange.com/questions/264161/lyx-side-by-side-figure-inside-two-column-layoutt
>>
>> Scott
>>
>
>


Re: Figures side by side

2015-09-02 Thread Sajjad
Thanks for the hint. I tried again with your suggestion that I might have
missed initially. Unfortunately, I am getting the same result  -  one image
overlapping the other image. So I thought of pasting the source below for
you so that it becomes more transparent of what I might have missed in the
process.


/

% Preview source code for paragraph 17


\begin{figure}



\begin{minipage}[t]{0.45\textwidth}%

\begin{center}

\includegraphics[scale=0.1]{images/ReferenceSinteredModel}

\par\end{center}


\protect\caption{Reference Sintered Model}

%

\end{minipage}%

\begin{minipage}[t]{0.45\textwidth}%

\begin{center}

\includegraphics[scale=0.1]{images/OriginalSinteredModel}

\par\end{center}


\protect\caption{Original Sintered Model}

%

\end{minipage}


\end{figure}

///



You may have noted that , horizontal fill is not visible in the source. Do
they show up ? I am inserting the horizontal fill between the two
minipages, but the insertion is not showing up in the source.



Waiting for more feed-back over this issue.



Thanks


On Tue, Sep 1, 2015 at 3:52 PM, Scott Kostyshak <skost...@lyx.org> wrote:

> On Mon, Aug 31, 2015 at 12:11 PM, Rich Shepard <rshep...@appl-ecosys.com>
> wrote:
> > On Mon, 31 Aug 2015, Sajjad wrote:
> >
> >> Any hint to get around this issue?
> >
> >
> >   I bet you forgot to 1) put a horizontal fill space between the two
> > minipages (frameless boxes) and 2) did not set the size of each figure to
> > 45% of the text width.
>
> Note that a related LyX question was just asked here:
>
> http://tex.stackexchange.com/questions/264161/lyx-side-by-side-figure-inside-two-column-layoutt
>
> Scott
>


disabled toc in the menu

2015-08-02 Thread Sajjad
Hello forum,

I am using lyx 2.1.3 at ubuntu linux and I cannot insert table contents in
the documents. I cannot even define the document class. The menu is
entirely disabled.


Any hint to enable them ?



Thanks


Re: disabled toc in the menu

2015-08-02 Thread Sajjad
I am using ubuntu 15.04

On Sun, Aug 2, 2015 at 10:54 PM, Scott Kostyshak skost...@lyx.org wrote:

 Please respond to the list.

 Scott

 On Sun, Aug 2, 2015 at 4:51 PM, Sajjad dosto.wa...@gmail.com wrote:
  I am using ubuntu 15.04
 
  On Sun, Aug 2, 2015 at 10:32 PM, Scott Kostyshak skost...@lyx.org
 wrote:
 
  Hi Sajjad, what version of Ubuntu?
 
  Please respond to the list,
 
  Scott
 
  On Sun, Aug 2, 2015 at 4:29 PM, Sajjad dosto.wa...@gmail.com wrote:
   Hello forum,
  
   I am using lyx 2.1.3 at ubuntu linux and I cannot insert table
 contents
   in
   the documents. I cannot even define the document class. The menu is
   entirely
   disabled.
  
  
   Any hint to enable them ?
  
  
  
   Thanks
 
 



disabled toc in the menu

2015-08-02 Thread Sajjad
Hello forum,

I am using lyx 2.1.3 at ubuntu linux and I cannot insert table contents in
the documents. I cannot even define the document class. The menu is
entirely disabled.


Any hint to enable them ?



Thanks


Re: disabled toc in the menu

2015-08-02 Thread Sajjad
I am using ubuntu 15.04

On Sun, Aug 2, 2015 at 10:54 PM, Scott Kostyshak <skost...@lyx.org> wrote:

> Please respond to the list.
>
> Scott
>
> On Sun, Aug 2, 2015 at 4:51 PM, Sajjad <dosto.wa...@gmail.com> wrote:
> > I am using ubuntu 15.04
> >
> > On Sun, Aug 2, 2015 at 10:32 PM, Scott Kostyshak <skost...@lyx.org>
> wrote:
> >>
> >> Hi Sajjad, what version of Ubuntu?
> >>
> >> Please respond to the list,
> >>
> >> Scott
> >>
> >> On Sun, Aug 2, 2015 at 4:29 PM, Sajjad <dosto.wa...@gmail.com> wrote:
> >> > Hello forum,
> >> >
> >> > I am using lyx 2.1.3 at ubuntu linux and I cannot insert table
> contents
> >> > in
> >> > the documents. I cannot even define the document class. The menu is
> >> > entirely
> >> > disabled.
> >> >
> >> >
> >> > Any hint to enable them ?
> >> >
> >> >
> >> >
> >> > Thanks
> >
> >
>


Re: shared library run problem

2012-02-26 Thread Sajjad
Wow!!

That was an hell of an example. Thanks a lot.

The path was already set by me inside the ld.so.conf. I had to add another
level(lib/) and now it is up and running


Thanks again folks

Sajjad

On Sun, Feb 26, 2012 at 1:31 PM, Stephan Witt st.w...@gmx.net wrote:

 Am 26.02.2012 um 00:19 schrieb Sajjad:

  Hi
 
  i ran the suggested diagnostics and found the following result:
 
 
 
  sajjad@sajjad:~$ ldd /usr/local/bin/lyx
  linux-vdso.so.1 = (0x7fff853ff000)
  libenchant.so.1 = /usr/lib/libenchant.so.1 (0x7fd3d926b000)
  libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0x7fd3d9067000)
  libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0x7fd3d8da2000)
  libz.so.1 = /usr/lib/libz.so.1 (0x7fd3d8b8a000)
  libQtGui.so.4 = not found
  libQtCore.so.4 = not found
  libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x7fd3d887d000)
  libm.so.6 = /lib/libm.so.6 (0x7fd3d85f8000)
  libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x7fd3d83e)
  libc.so.6 = /lib/libc.so.6 (0x7fd3d806e000)
  libpthread.so.0 = /lib/libpthread.so.0 (0x7fd3d7e52000)
  libdl.so.2 = /lib/libdl.so.2 (0x7fd3d7c4e000)
  libpcre.so.3 = /lib/libpcre.so.3 (0x7fd3d7a25000)
  /lib64/ld-linux-x86-64.so.2 (0x7fd3d9476000)
 
 
 
 
 
 
 
  It shows that the qt library is not found. As you have seen in the
 previous post, the output of the ./configure shows that the qt library is
 found. While configuring  i did mention the full qt path.

 Yes. That's exactly the situation: While configuring you told the compiler
 where to find your own Qt-Libraries.
 Your problem is now: you don't tell the runtime-linker where you've put
 the Qt-Libraries on your machine when running lyx.
 You have to decide how to solve that. You may
 1. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your system
 library path
   You have to become root and add the mentioned path to the file
 /etc/ld.so.conf and run the command ldconfig
 2. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your user
 library path
   You have to add the mentioned directory to the value of LD_LIBRARY_PATH
 on user login.
 3. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your lyx call.
   You have to create a shell script and set LD_LIBRARY_PATH there and run
 lyx from this script.
 --- example ---
 #!/bin/sh
 LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.8.0/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 exec /path/to/lyx $@
 --- end of example ---

 Check the man pages for details or google for the explanations for shared
 library runtime link operation.

 Stephan

  On Sat, Feb 25, 2012 at 9:49 PM, Richard Heck rgh...@comcast.net
 wrote:
  On 02/25/2012 08:48 AM, Sajjad wrote:
  Hello
 
  I am using an old machine and repository support went out. I recently
 updated the qt version to 4.8.0 from source.
 
  While configuring the lyx source i am providing wiith the qt path and
 it did not complain at all:
 
  This is just a matter of finding the headers. It doesn't have anything
 to do with which libraries the system is trying to load when LyX requests
 them. Try, as Stephan suggested:
   ldd /path/to/lyx
 
  Richard
 
 
 
 //
 
  sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
 --with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
  configuring LyX version 2.0.0
  checking for build type... release
  checking for version suffix...
  checking build system type... x86_64-unknown-linux-gnu
  checking host system type... x86_64-unknown-linux-gnu
  checking target system type... x86_64-unknown-linux-gnu
  checking what packaging should be used... posix
  checking whether to enable maintainer-specific portions of Makefiles...
 no
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking for a Python interpreter with version = 2.3.4... python
  checking for python... /usr/bin/python
  checking for python version... 2.5
  checking for python platform... linux2
  checking for python script directory...
 ${prefix}/lib/python2.5/site-packages
  checking for python extension module directory...
 ${exec_prefix}/lib/python2.5/site-packages
  checking for style of include used by make... GNU
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes

Re: shared library run problem

2012-02-26 Thread Sajjad
Wow!!

That was an hell of an example. Thanks a lot.

The path was already set by me inside the ld.so.conf. I had to add another
level(lib/) and now it is up and running


Thanks again folks

Sajjad

On Sun, Feb 26, 2012 at 1:31 PM, Stephan Witt st.w...@gmx.net wrote:

 Am 26.02.2012 um 00:19 schrieb Sajjad:

  Hi
 
  i ran the suggested diagnostics and found the following result:
 
 
 
  sajjad@sajjad:~$ ldd /usr/local/bin/lyx
  linux-vdso.so.1 = (0x7fff853ff000)
  libenchant.so.1 = /usr/lib/libenchant.so.1 (0x7fd3d926b000)
  libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0x7fd3d9067000)
  libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0x7fd3d8da2000)
  libz.so.1 = /usr/lib/libz.so.1 (0x7fd3d8b8a000)
  libQtGui.so.4 = not found
  libQtCore.so.4 = not found
  libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x7fd3d887d000)
  libm.so.6 = /lib/libm.so.6 (0x7fd3d85f8000)
  libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x7fd3d83e)
  libc.so.6 = /lib/libc.so.6 (0x7fd3d806e000)
  libpthread.so.0 = /lib/libpthread.so.0 (0x7fd3d7e52000)
  libdl.so.2 = /lib/libdl.so.2 (0x7fd3d7c4e000)
  libpcre.so.3 = /lib/libpcre.so.3 (0x7fd3d7a25000)
  /lib64/ld-linux-x86-64.so.2 (0x7fd3d9476000)
 
 
 
 
 
 
 
  It shows that the qt library is not found. As you have seen in the
 previous post, the output of the ./configure shows that the qt library is
 found. While configuring  i did mention the full qt path.

 Yes. That's exactly the situation: While configuring you told the compiler
 where to find your own Qt-Libraries.
 Your problem is now: you don't tell the runtime-linker where you've put
 the Qt-Libraries on your machine when running lyx.
 You have to decide how to solve that. You may
 1. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your system
 library path
   You have to become root and add the mentioned path to the file
 /etc/ld.so.conf and run the command ldconfig
 2. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your user
 library path
   You have to add the mentioned directory to the value of LD_LIBRARY_PATH
 on user login.
 3. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your lyx call.
   You have to create a shell script and set LD_LIBRARY_PATH there and run
 lyx from this script.
 --- example ---
 #!/bin/sh
 LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.8.0/lib:$LD_LIBRARY_PATH
 export LD_LIBRARY_PATH
 exec /path/to/lyx $@
 --- end of example ---

 Check the man pages for details or google for the explanations for shared
 library runtime link operation.

 Stephan

  On Sat, Feb 25, 2012 at 9:49 PM, Richard Heck rgh...@comcast.net
 wrote:
  On 02/25/2012 08:48 AM, Sajjad wrote:
  Hello
 
  I am using an old machine and repository support went out. I recently
 updated the qt version to 4.8.0 from source.
 
  While configuring the lyx source i am providing wiith the qt path and
 it did not complain at all:
 
  This is just a matter of finding the headers. It doesn't have anything
 to do with which libraries the system is trying to load when LyX requests
 them. Try, as Stephan suggested:
   ldd /path/to/lyx
 
  Richard
 
 
 
 //
 
  sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
 --with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
  configuring LyX version 2.0.0
  checking for build type... release
  checking for version suffix...
  checking build system type... x86_64-unknown-linux-gnu
  checking host system type... x86_64-unknown-linux-gnu
  checking target system type... x86_64-unknown-linux-gnu
  checking what packaging should be used... posix
  checking whether to enable maintainer-specific portions of Makefiles...
 no
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking for a Python interpreter with version = 2.3.4... python
  checking for python... /usr/bin/python
  checking for python version... 2.5
  checking for python platform... linux2
  checking for python script directory...
 ${prefix}/lib/python2.5/site-packages
  checking for python extension module directory...
 ${exec_prefix}/lib/python2.5/site-packages
  checking for style of include used by make... GNU
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes

Re: shared library run problem

2012-02-26 Thread Sajjad
Wow!!

That was an hell of an example. Thanks a lot.

The path was already set by me inside the ld.so.conf. I had to add another
level(lib/) and now it is up and running


Thanks again folks

Sajjad

On Sun, Feb 26, 2012 at 1:31 PM, Stephan Witt <st.w...@gmx.net> wrote:

> Am 26.02.2012 um 00:19 schrieb Sajjad:
>
> > Hi
> >
> > i ran the suggested diagnostics and found the following result:
> >
> >
> ////////
> > sajjad@sajjad:~$ ldd /usr/local/bin/lyx
> > linux-vdso.so.1 => (0x7fff853ff000)
> > libenchant.so.1 => /usr/lib/libenchant.so.1 (0x7fd3d926b000)
> > libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x7fd3d9067000)
> > libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x7fd3d8da2000)
> > libz.so.1 => /usr/lib/libz.so.1 (0x7fd3d8b8a000)
> > libQtGui.so.4 => not found
> > libQtCore.so.4 => not found
> > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fd3d887d000)
> > libm.so.6 => /lib/libm.so.6 (0x7fd3d85f8000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fd3d83e)
> > libc.so.6 => /lib/libc.so.6 (0x7fd3d806e000)
> > libpthread.so.0 => /lib/libpthread.so.0 (0x7fd3d7e52000)
> > libdl.so.2 => /lib/libdl.so.2 (0x7fd3d7c4e000)
> > libpcre.so.3 => /lib/libpcre.so.3 (0x7fd3d7a25000)
> > /lib64/ld-linux-x86-64.so.2 (0x7fd3d9476000)
> >
> >
> >
> >
> 
> >
> >
> > It shows that the qt library is not found. As you have seen in the
> previous post, the output of the ./configure shows that the qt library is
> found. While configuring  i did mention the full qt path.
>
> Yes. That's exactly the situation: While configuring you told the compiler
> where to find your own Qt-Libraries.
> Your problem is now: you don't tell the runtime-linker where you've put
> the Qt-Libraries on your machine when running lyx.
> You have to decide how to solve that. You may
> 1. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your system
> library path
>   You have to become root and add the mentioned path to the file
> /etc/ld.so.conf and run the command ldconfig
> 2. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your user
> library path
>   You have to add the mentioned directory to the value of LD_LIBRARY_PATH
> on user login.
> 3. add the directory /usr/local/Trolltech/Qt-4.8.0/lib to your lyx call.
>   You have to create a shell script and set LD_LIBRARY_PATH there and run
> lyx from this script.
> --- example ---
> #!/bin/sh
> LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.8.0/lib:$LD_LIBRARY_PATH
> export LD_LIBRARY_PATH
> exec /path/to/lyx "$@"
> --- end of example ---
>
> Check the man pages for details or google for the explanations for shared
> library runtime link operation.
>
> Stephan
>
> > On Sat, Feb 25, 2012 at 9:49 PM, Richard Heck <rgh...@comcast.net>
> wrote:
> > On 02/25/2012 08:48 AM, Sajjad wrote:
> >> Hello
> >>
> >> I am using an old machine and repository support went out. I recently
> updated the qt version to 4.8.0 from source.
> >>
> >> While configuring the lyx source i am providing wiith the qt path and
> it did not complain at all:
> >>
> > This is just a matter of finding the headers. It doesn't have anything
> to do with which libraries the system is trying to load when LyX requests
> them. Try, as Stephan suggested:
> > > ldd /path/to/lyx
> >
> > Richard
> >
> >
> >>
> //
> >>
> >> sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
> --with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
> >> configuring LyX version 2.0.0
> >> checking for build type... release
> >> checking for version suffix...
> >> checking build system type... x86_64-unknown-linux-gnu
> >> checking host system type... x86_64-unknown-linux-gnu
> >> checking target system type... x86_64-unknown-linux-gnu
> >> checking what packaging should be used... posix
> >> checking whether to enable maintainer-specific portions of Makefiles...
> no
> >> checking for a BSD-compatible install... /usr/bin/install -c
> >> checking whether build environment is sane... yes
> >> checking for a thread-safe mkdir -p... /bin/mkdir -p
> >> checking 

Re: shared library run problem

2012-02-25 Thread Sajjad
Hello


I am using an old machine and repository support went out. I recently
updated the qt version to 4.8.0 from source.

While configuring the lyx source i am providing wiith the qt path and it
did not complain at all:

//

sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
--with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
configuring LyX version 2.0.0
checking for build type... release
checking for version suffix...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking what packaging should be used... posix
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a Python interpreter with version = 2.3.4... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory...
${prefix}/lib/python2.5/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.5/site-packages
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking what frontend should be used for the GUI... qt4
checking for a good enough C++ compiler... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for extra library directory... NONE
checking for extra include directory... NONE
checking for extra lib+include directory... NONE
checking for main in -lshlwapi... no
checking for main in -lpsapi... no
checking for main in -lgdi32... no
checking whether to use included boost library... yes
checking whether to use included MyThes library... yes
checking size of wchar_t... 4
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t
cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t
*outbytesleft);
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for QT4_CORE... yes
checking for QT4_FRONTEND... yes
checking for moc-qt4... no
checking for moc... /usr/local/Trolltech/Qt-4.8.0///bin/moc
checking for uic-qt4... no
checking for uic... /usr/local/Trolltech/Qt-4.8.0///bin/uic
checking for rcc-qt4... no
checking for rcc... /usr/local/Trolltech/Qt-4.8.0///bin/rcc
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking whether we are using the GNU C Library 2 or newer... yes
checking for ranlib... ranlib
checking for simple visibility declarations... yes
checking for inline... inline
checking for size_t... yes
checking for stdint.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for unsigned

Re: shared library run problem

2012-02-25 Thread Sajjad
Hi

i ran the suggested diagnostics and found the following result:


sajjad@sajjad:~$ ldd /usr/local/bin/lyx
linux-vdso.so.1 = (0x7fff853ff000)
libenchant.so.1 = /usr/lib/libenchant.so.1 (0x7fd3d926b000)
libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0x7fd3d9067000)
libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0x7fd3d8da2000)
libz.so.1 = /usr/lib/libz.so.1 (0x7fd3d8b8a000)
libQtGui.so.4 = not found
libQtCore.so.4 = not found
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x7fd3d887d000)
libm.so.6 = /lib/libm.so.6 (0x7fd3d85f8000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x7fd3d83e)
libc.so.6 = /lib/libc.so.6 (0x7fd3d806e000)
libpthread.so.0 = /lib/libpthread.so.0 (0x7fd3d7e52000)
libdl.so.2 = /lib/libdl.so.2 (0x7fd3d7c4e000)
libpcre.so.3 = /lib/libpcre.so.3 (0x7fd3d7a25000)
/lib64/ld-linux-x86-64.so.2 (0x7fd3d9476000)






It shows that the qt library is not found. As you have seen in the previous
post, the output of the ./configure shows that the qt library is found.
While configuring  i did mention the full qt path.

What should i check now ?


Regards
Sajjad


On Sat, Feb 25, 2012 at 9:49 PM, Richard Heck rgh...@comcast.net wrote:

  On 02/25/2012 08:48 AM, Sajjad wrote:

 Hello


  I am using an old machine and repository support went out. I recently
 updated the qt version to 4.8.0 from source.

  While configuring the lyx source i am providing wiith the qt path and it
 did not complain at all:

  This is just a matter of finding the headers. It doesn't have anything
 to do with which libraries the system is trying to load when LyX requests
 them. Try, as Stephan suggested:
  ldd /path/to/lyx

 Richard



 //

  sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
 --with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
 configuring LyX version 2.0.0
 checking for build type... release
 checking for version suffix...
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking target system type... x86_64-unknown-linux-gnu
 checking what packaging should be used... posix
 checking whether to enable maintainer-specific portions of Makefiles... no
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /bin/mkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking for a Python interpreter with version = 2.3.4... python
 checking for python... /usr/bin/python
 checking for python version... 2.5
 checking for python platform... linux2
 checking for python script directory...
 ${prefix}/lib/python2.5/site-packages
 checking for python extension module directory...
 ${exec_prefix}/lib/python2.5/site-packages
 checking for style of include used by make... GNU
 checking for gcc... gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking dependency style of gcc... gcc3
 checking how to run the C preprocessor... gcc -E
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking whether byte ordering is bigendian... no
 checking what frontend should be used for the GUI... qt4
 checking for a good enough C++ compiler... g++
 checking whether we are using the GNU C++ compiler... yes
 checking whether g++ accepts -g... yes
 checking dependency style of g++... gcc3
 checking how to run the C++ preprocessor... g++ -E
 checking for gcc... gcc
 checking whether we are using the GNU Objective C compiler... no
 checking whether gcc accepts -g... no
 checking dependency style of gcc... gcc3
 checking dependency style of gcc... (cached) gcc3
 checking for extra library directory... NONE
 checking for extra include directory... NONE
 checking for extra lib+include directory... NONE
 checking for main in -lshlwapi... no
 checking for main in -lpsapi... no
 checking for main in -lgdi32... no
 checking whether to use included boost library

Re: shared library run problem

2012-02-25 Thread Sajjad
Hello


I am using an old machine and repository support went out. I recently
updated the qt version to 4.8.0 from source.

While configuring the lyx source i am providing wiith the qt path and it
did not complain at all:

//

sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
--with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
configuring LyX version 2.0.0
checking for build type... release
checking for version suffix...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking what packaging should be used... posix
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a Python interpreter with version = 2.3.4... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory...
${prefix}/lib/python2.5/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.5/site-packages
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking what frontend should be used for the GUI... qt4
checking for a good enough C++ compiler... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for extra library directory... NONE
checking for extra include directory... NONE
checking for extra lib+include directory... NONE
checking for main in -lshlwapi... no
checking for main in -lpsapi... no
checking for main in -lgdi32... no
checking whether to use included boost library... yes
checking whether to use included MyThes library... yes
checking size of wchar_t... 4
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t
cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t
*outbytesleft);
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for QT4_CORE... yes
checking for QT4_FRONTEND... yes
checking for moc-qt4... no
checking for moc... /usr/local/Trolltech/Qt-4.8.0///bin/moc
checking for uic-qt4... no
checking for uic... /usr/local/Trolltech/Qt-4.8.0///bin/uic
checking for rcc-qt4... no
checking for rcc... /usr/local/Trolltech/Qt-4.8.0///bin/rcc
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking whether we are using the GNU C Library 2 or newer... yes
checking for ranlib... ranlib
checking for simple visibility declarations... yes
checking for inline... inline
checking for size_t... yes
checking for stdint.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for unsigned

Re: shared library run problem

2012-02-25 Thread Sajjad
Hi

i ran the suggested diagnostics and found the following result:


sajjad@sajjad:~$ ldd /usr/local/bin/lyx
linux-vdso.so.1 = (0x7fff853ff000)
libenchant.so.1 = /usr/lib/libenchant.so.1 (0x7fd3d926b000)
libgmodule-2.0.so.0 = /usr/lib/libgmodule-2.0.so.0 (0x7fd3d9067000)
libglib-2.0.so.0 = /usr/lib/libglib-2.0.so.0 (0x7fd3d8da2000)
libz.so.1 = /usr/lib/libz.so.1 (0x7fd3d8b8a000)
libQtGui.so.4 = not found
libQtCore.so.4 = not found
libstdc++.so.6 = /usr/lib/libstdc++.so.6 (0x7fd3d887d000)
libm.so.6 = /lib/libm.so.6 (0x7fd3d85f8000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x7fd3d83e)
libc.so.6 = /lib/libc.so.6 (0x7fd3d806e000)
libpthread.so.0 = /lib/libpthread.so.0 (0x7fd3d7e52000)
libdl.so.2 = /lib/libdl.so.2 (0x7fd3d7c4e000)
libpcre.so.3 = /lib/libpcre.so.3 (0x7fd3d7a25000)
/lib64/ld-linux-x86-64.so.2 (0x7fd3d9476000)






It shows that the qt library is not found. As you have seen in the previous
post, the output of the ./configure shows that the qt library is found.
While configuring  i did mention the full qt path.

What should i check now ?


Regards
Sajjad


On Sat, Feb 25, 2012 at 9:49 PM, Richard Heck rgh...@comcast.net wrote:

  On 02/25/2012 08:48 AM, Sajjad wrote:

 Hello


  I am using an old machine and repository support went out. I recently
 updated the qt version to 4.8.0 from source.

  While configuring the lyx source i am providing wiith the qt path and it
 did not complain at all:

  This is just a matter of finding the headers. It doesn't have anything
 to do with which libraries the system is trying to load when LyX requests
 them. Try, as Stephan suggested:
  ldd /path/to/lyx

 Richard



 //

  sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
 --with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
 configuring LyX version 2.0.0
 checking for build type... release
 checking for version suffix...
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking target system type... x86_64-unknown-linux-gnu
 checking what packaging should be used... posix
 checking whether to enable maintainer-specific portions of Makefiles... no
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /bin/mkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking for a Python interpreter with version = 2.3.4... python
 checking for python... /usr/bin/python
 checking for python version... 2.5
 checking for python platform... linux2
 checking for python script directory...
 ${prefix}/lib/python2.5/site-packages
 checking for python extension module directory...
 ${exec_prefix}/lib/python2.5/site-packages
 checking for style of include used by make... GNU
 checking for gcc... gcc
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking for gcc option to accept ISO C89... none needed
 checking dependency style of gcc... gcc3
 checking how to run the C preprocessor... gcc -E
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
 checking for ANSI C header files... yes
 checking for sys/types.h... yes
 checking for sys/stat.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for memory.h... yes
 checking for strings.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for unistd.h... yes
 checking whether byte ordering is bigendian... no
 checking what frontend should be used for the GUI... qt4
 checking for a good enough C++ compiler... g++
 checking whether we are using the GNU C++ compiler... yes
 checking whether g++ accepts -g... yes
 checking dependency style of g++... gcc3
 checking how to run the C++ preprocessor... g++ -E
 checking for gcc... gcc
 checking whether we are using the GNU Objective C compiler... no
 checking whether gcc accepts -g... no
 checking dependency style of gcc... gcc3
 checking dependency style of gcc... (cached) gcc3
 checking for extra library directory... NONE
 checking for extra include directory... NONE
 checking for extra lib+include directory... NONE
 checking for main in -lshlwapi... no
 checking for main in -lpsapi... no
 checking for main in -lgdi32... no
 checking whether to use included boost library

Re: shared library run problem

2012-02-25 Thread Sajjad
Hello


I am using an old machine and repository support went out. I recently
updated the qt version to 4.8.0 from source.

While configuring the lyx source i am providing wiith the qt path and it
did not complain at all:

//

sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
--with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
configuring LyX version 2.0.0
checking for build type... release
checking for version suffix...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking what packaging should be used... posix
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for a Python interpreter with version >= 2.3.4... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory...
${prefix}/lib/python2.5/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.5/site-packages
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking what frontend should be used for the GUI... qt4
checking for a good enough C++ compiler... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking dependency style of gcc... (cached) gcc3
checking for extra library directory... NONE
checking for extra include directory... NONE
checking for extra lib+include directory... NONE
checking for main in -lshlwapi... no
checking for main in -lpsapi... no
checking for main in -lgdi32... no
checking whether to use included boost library... yes
checking whether to use included MyThes library... yes
checking size of wchar_t... 4
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t
cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t
*outbytesleft);
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for QT4_CORE... yes
checking for QT4_FRONTEND... yes
checking for moc-qt4... no
checking for moc... /usr/local/Trolltech/Qt-4.8.0///bin/moc
checking for uic-qt4... no
checking for uic... /usr/local/Trolltech/Qt-4.8.0///bin/uic
checking for rcc-qt4... no
checking for rcc... /usr/local/Trolltech/Qt-4.8.0///bin/rcc
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking whether we are using the GNU C Library 2 or newer... yes
checking for ranlib... ranlib
checking for simple visibility declarations... yes
checking for inline... inline
checking for size_t... yes
checking for stdint.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for unsig

Re: shared library run problem

2012-02-25 Thread Sajjad
Hi

i ran the suggested diagnostics and found the following result:


sajjad@sajjad:~$ ldd /usr/local/bin/lyx
linux-vdso.so.1 => (0x7fff853ff000)
libenchant.so.1 => /usr/lib/libenchant.so.1 (0x7fd3d926b000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x7fd3d9067000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x7fd3d8da2000)
libz.so.1 => /usr/lib/libz.so.1 (0x7fd3d8b8a000)
libQtGui.so.4 => not found
libQtCore.so.4 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fd3d887d000)
libm.so.6 => /lib/libm.so.6 (0x7fd3d85f8000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fd3d83e)
libc.so.6 => /lib/libc.so.6 (0x7fd3d806e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x7fd3d7e52000)
libdl.so.2 => /lib/libdl.so.2 (0x7fd3d7c4e000)
libpcre.so.3 => /lib/libpcre.so.3 (0x7fd3d7a25000)
/lib64/ld-linux-x86-64.so.2 (0x7fd3d9476000)






It shows that the qt library is not found. As you have seen in the previous
post, the output of the ./configure shows that the qt library is found.
While configuring  i did mention the full qt path.

What should i check now ?


Regards
Sajjad


On Sat, Feb 25, 2012 at 9:49 PM, Richard Heck <rgh...@comcast.net> wrote:

>  On 02/25/2012 08:48 AM, Sajjad wrote:
>
> Hello
>
>
>  I am using an old machine and repository support went out. I recently
> updated the qt version to 4.8.0 from source.
>
>  While configuring the lyx source i am providing wiith the qt path and it
> did not complain at all:
>
>  This is just a matter of finding the headers. It doesn't have anything
> to do with which libraries the system is trying to load when LyX requests
> them. Try, as Stephan suggested:
> > ldd /path/to/lyx
>
> Richard
>
>
>
> //////////
>
>  sajjad@sajjad:~/Downloads/LyX/lyx-2.0.0$ ./configure
> --with-qt4-dir='/usr/local/Trolltech/Qt-4.8.0/'
> configuring LyX version 2.0.0
> checking for build type... release
> checking for version suffix...
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... x86_64-unknown-linux-gnu
> checking what packaging should be used... posix
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for a Python interpreter with version >= 2.3.4... python
> checking for python... /usr/bin/python
> checking for python version... 2.5
> checking for python platform... linux2
> checking for python script directory...
> ${prefix}/lib/python2.5/site-packages
> checking for python extension module directory...
> ${exec_prefix}/lib/python2.5/site-packages
> checking for style of include used by make... GNU
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking dependency style of gcc... gcc3
> checking how to run the C preprocessor... gcc -E
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking whether byte ordering is bigendian... no
> checking what frontend should be used for the GUI... qt4
> checking for a good enough C++ compiler... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking dependency style of g++... gcc3
> checking how to run the C++ preprocessor... g++ -E
> checking for gcc... gcc
> checking whether we are using the GNU Objective C compiler... no
> checking whether gcc accepts -g... no
> ch

shared library run problem

2012-02-24 Thread Sajjad
hello forum,

I just managed to compile LyX from source and it compiled fine. The qt path
is mentioned while configuring and configuring.

Now when i try to run lyx or lyxclient i get the following error:

/
sajjad@sajjad:~$ lyxclient: error while loading shared libraries:
libQtGui.so.4: wrong ELF class: ELFCLASS32



Any hint to debug this problem.

I do not have much of an option other than compiling from source .

So i request some one in the forum to help me out to debug this problem.

Thanks
Sajjad


Re: shared library run problem

2012-02-24 Thread Sajjad
I compiled both qt and lyx from source. The installation instructions for
qt did not mention anything about this issue and it is working fine.

Is there any way to send the parameter while configuring lyx so that the
compilation is done against the 32 -bit instead ?

I am using the 64-bit ubuntu.



On Fri, Feb 24, 2012 at 6:34 PM, Richard Heck rgh...@comcast.net wrote:

 On 02/24/2012 09:51 AM, Sajjad wrote:
  hello forum,
 
  I just managed to compile LyX from source and it compiled fine. The qt
  path is mentioned while configuring and configuring.
 
  Now when i try to run lyx or lyxclient i get the following error:
 
  /
  sajjad@sajjad:~$ lyxclient: error while loading shared libraries:
  libQtGui.so.4: wrong ELF class: ELFCLASS32
  
 
 It looks like LyX has been compiled as a 64 bit app, but what's being
 found are 32 bit libraries. I'm afraid I don't know why this would be.
 But maybe that's a clue?

 Richard




shared library run problem

2012-02-24 Thread Sajjad
hello forum,

I just managed to compile LyX from source and it compiled fine. The qt path
is mentioned while configuring and configuring.

Now when i try to run lyx or lyxclient i get the following error:

/
sajjad@sajjad:~$ lyxclient: error while loading shared libraries:
libQtGui.so.4: wrong ELF class: ELFCLASS32



Any hint to debug this problem.

I do not have much of an option other than compiling from source .

So i request some one in the forum to help me out to debug this problem.

Thanks
Sajjad


Re: shared library run problem

2012-02-24 Thread Sajjad
I compiled both qt and lyx from source. The installation instructions for
qt did not mention anything about this issue and it is working fine.

Is there any way to send the parameter while configuring lyx so that the
compilation is done against the 32 -bit instead ?

I am using the 64-bit ubuntu.



On Fri, Feb 24, 2012 at 6:34 PM, Richard Heck rgh...@comcast.net wrote:

 On 02/24/2012 09:51 AM, Sajjad wrote:
  hello forum,
 
  I just managed to compile LyX from source and it compiled fine. The qt
  path is mentioned while configuring and configuring.
 
  Now when i try to run lyx or lyxclient i get the following error:
 
  /
  sajjad@sajjad:~$ lyxclient: error while loading shared libraries:
  libQtGui.so.4: wrong ELF class: ELFCLASS32
  
 
 It looks like LyX has been compiled as a 64 bit app, but what's being
 found are 32 bit libraries. I'm afraid I don't know why this would be.
 But maybe that's a clue?

 Richard




shared library run problem

2012-02-24 Thread Sajjad
hello forum,

I just managed to compile LyX from source and it compiled fine. The qt path
is mentioned while configuring and configuring.

Now when i try to run "lyx" or "lyxclient" i get the following error:

/////////
sajjad@sajjad:~$ lyxclient: error while loading shared libraries:
libQtGui.so.4: wrong ELF class: ELFCLASS32



Any hint to debug this problem.

I do not have much of an option other than compiling from source .

So i request some one in the forum to help me out to debug this problem.

Thanks
Sajjad


Re: shared library run problem

2012-02-24 Thread Sajjad
I compiled both qt and lyx from source. The installation instructions for
qt did not mention anything about this issue and it is working fine.

Is there any way to send the parameter while configuring lyx so that the
compilation is done against the 32 -bit instead ?

I am using the 64-bit ubuntu.



On Fri, Feb 24, 2012 at 6:34 PM, Richard Heck <rgh...@comcast.net> wrote:

> On 02/24/2012 09:51 AM, Sajjad wrote:
> > hello forum,
> >
> > I just managed to compile LyX from source and it compiled fine. The qt
> > path is mentioned while configuring and configuring.
> >
> > Now when i try to run "lyx" or "lyxclient" i get the following error:
> >
> > /
> > sajjad@sajjad:~$ lyxclient: error while loading shared libraries:
> > libQtGui.so.4: wrong ELF class: ELFCLASS32
> > 
> >
> It looks like LyX has been compiled as a 64 bit app, but what's being
> found are 32 bit libraries. I'm afraid I don't know why this would be.
> But maybe that's a clue?
>
> Richard
>
>


Figure Overlapping

2012-01-13 Thread Sajjad
Hello forum,

I am trying to put two figures side by side and i am following the hint
provided at

http://wiki.lyx.org/LyX/Figures


But i am having the figures cropped

Do i have to change the size of the images as well. They are all scaled to
100% now.



Regards
Sajjad


Re: Figure Overlapping

2012-01-13 Thread Sajjad
Hi again,


I have changed the figure size, scaled them down to 20% and also minipage
text width to 30%.

Still i have having one of the image cropped.

Any hint to resolve this issue will be very helpful.


 Regards
Sajjad

On Fri, Jan 13, 2012 at 12:25 PM, Sajjad dosto.wa...@gmail.com wrote:

 Hello forum,

 I am trying to put two figures side by side and i am following the hint
 provided at

 http://wiki.lyx.org/LyX/Figures


 But i am having the figures cropped

 Do i have to change the size of the images as well. They are all scaled to
 100% now.



 Regards
 Sajjad



Figure Overlapping

2012-01-13 Thread Sajjad
Hello forum,

I am trying to put two figures side by side and i am following the hint
provided at

http://wiki.lyx.org/LyX/Figures


But i am having the figures cropped

Do i have to change the size of the images as well. They are all scaled to
100% now.



Regards
Sajjad


Re: Figure Overlapping

2012-01-13 Thread Sajjad
Hi again,


I have changed the figure size, scaled them down to 20% and also minipage
text width to 30%.

Still i have having one of the image cropped.

Any hint to resolve this issue will be very helpful.


 Regards
Sajjad

On Fri, Jan 13, 2012 at 12:25 PM, Sajjad dosto.wa...@gmail.com wrote:

 Hello forum,

 I am trying to put two figures side by side and i am following the hint
 provided at

 http://wiki.lyx.org/LyX/Figures


 But i am having the figures cropped

 Do i have to change the size of the images as well. They are all scaled to
 100% now.



 Regards
 Sajjad



Figure Overlapping

2012-01-13 Thread Sajjad
Hello forum,

I am trying to put two figures side by side and i am following the hint
provided at

http://wiki.lyx.org/LyX/Figures


But i am having the figures cropped

Do i have to change the size of the images as well. They are all scaled to
100% now.



Regards
Sajjad


Re: Figure Overlapping

2012-01-13 Thread Sajjad
Hi again,


I have changed the figure size, scaled them down to 20% and also minipage
text width to 30%.

Still i have having one of the image cropped.

Any hint to resolve this issue will be very helpful.


 Regards
Sajjad

On Fri, Jan 13, 2012 at 12:25 PM, Sajjad <dosto.wa...@gmail.com> wrote:

> Hello forum,
>
> I am trying to put two figures side by side and i am following the hint
> provided at
>
> http://wiki.lyx.org/LyX/Figures
>
>
> But i am having the figures cropped
>
> Do i have to change the size of the images as well. They are all scaled to
> 100% now.
>
>
>
> Regards
> Sajjad
>


section numbering

2011-01-27 Thread Sajjad
Hello forum,

I am writing a small report and the document settings has been set to
Report.

When i change the environment to section the numbering style starts with
0.1.


I would like to have it started as 1 instead. How do i change this setting?


Thanks
Sajjad


section numbering

2011-01-27 Thread Sajjad
Hello forum,

I am writing a small report and the document settings has been set to
Report.

When i change the environment to section the numbering style starts with
0.1.


I would like to have it started as 1 instead. How do i change this setting?


Thanks
Sajjad


section numbering

2011-01-27 Thread Sajjad
Hello forum,

I am writing a small report and the document settings has been set to
Report.

When i change the environment to section the numbering style starts with
0.1.


I would like to have it started as 1 instead. How do i change this setting?


Thanks
Sajjad


Re: inserting custom layout

2010-07-19 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck rgh...@comcast.net 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 DocumentSettings.



  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-19 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck rgh...@comcast.net 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 DocumentSettings.



  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-19 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck <rgh...@comcast.net> 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 Sajjad
On Sat, Jul 17, 2010 at 4:02 PM, Richard Heck rgh...@comcast.net 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-18 Thread Sajjad
On Sat, Jul 17, 2010 at 4:02 PM, Richard Heck rgh...@comcast.net 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-18 Thread Sajjad
On Sat, Jul 17, 2010 at 4:02 PM, Richard Heck <rgh...@comcast.net> 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
>
>


inserting custom layout

2010-07-16 Thread Sajjad
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


Re: inserting custom layout

2010-07-16 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck rgh...@comcast.net 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 DocumentSettings.



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



inserting custom layout

2010-07-16 Thread Sajjad
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


Re: inserting custom layout

2010-07-16 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck rgh...@comcast.net 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 DocumentSettings.



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



inserting custom layout

2010-07-16 Thread Sajjad
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


Re: inserting custom layout

2010-07-16 Thread Sajjad
On Fri, Jul 16, 2010 at 4:56 PM, Richard Heck <rgh...@comcast.net> 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: insert custom layout

2010-04-14 Thread Sajjad
It seems very obvious that i have get down more on the basics of LaTeX.
 Even though i managed so far with LyX, without getting too much on LaTeX,
it will not take me any further.


Some of the options can be set by editing the from the LyX interface and
some of hem through inserting TEX code.

And i find that hard to decide which one is the better option to go with .


Regards
Sajjad

On Tue, Apr 13, 2010 at 4:25 PM, rgheck rgh...@bobjweil.com wrote:

 On 04/13/2010 06:12 AM, Guenter Milde wrote:


 The problem occured also in the dinbrief class. It's solved by
 defining two styles. From dinbrief.layout::

   # dinbrief's \phone has 2 args, area and number. We define an empty
   # command that can be set by the Area_Code style
   Preamble
\newcommand{\areacode}{}
   EndPreamble

 ...

   # dinbrief's \phone has 2 args, area and number,
   # define both as distinct styles

   Style Area code
CopyStyle   DinBrief
LabelString Vorwahl:
LatexName   renewcommand{\areacode}
   End

   Style Telephone
CopyStyle   DinBrief
LabelString Telefon:
LatexName   phone
LatexParam  {\areacode}
   End


 It should be possible to adapt this technique to liuthesis if the ERT
 hack is too hackish.



 That's impressive, but pretty hackish itself! Perhaps for 2.1 I'll try to
 get actual multi-argument commands working.

 rh




Re: insert custom layout

2010-04-14 Thread Sajjad
It seems very obvious that i have get down more on the basics of LaTeX.
 Even though i managed so far with LyX, without getting too much on LaTeX,
it will not take me any further.


Some of the options can be set by editing the from the LyX interface and
some of hem through inserting TEX code.

And i find that hard to decide which one is the better option to go with .


Regards
Sajjad

On Tue, Apr 13, 2010 at 4:25 PM, rgheck rgh...@bobjweil.com wrote:

 On 04/13/2010 06:12 AM, Guenter Milde wrote:


 The problem occured also in the dinbrief class. It's solved by
 defining two styles. From dinbrief.layout::

   # dinbrief's \phone has 2 args, area and number. We define an empty
   # command that can be set by the Area_Code style
   Preamble
\newcommand{\areacode}{}
   EndPreamble

 ...

   # dinbrief's \phone has 2 args, area and number,
   # define both as distinct styles

   Style Area code
CopyStyle   DinBrief
LabelString Vorwahl:
LatexName   renewcommand{\areacode}
   End

   Style Telephone
CopyStyle   DinBrief
LabelString Telefon:
LatexName   phone
LatexParam  {\areacode}
   End


 It should be possible to adapt this technique to liuthesis if the ERT
 hack is too hackish.



 That's impressive, but pretty hackish itself! Perhaps for 2.1 I'll try to
 get actual multi-argument commands working.

 rh




Re: insert custom layout

2010-04-14 Thread Sajjad
It seems very obvious that i have get down more on the basics of LaTeX.
 Even though i managed so far with LyX, without getting too much on LaTeX,
it will not take me any further.


Some of the options can be set by editing the from the LyX interface and
some of hem through inserting TEX code.

And i find that hard to decide which one is the better option to go with .


Regards
Sajjad

On Tue, Apr 13, 2010 at 4:25 PM, rgheck <rgh...@bobjweil.com> wrote:

> On 04/13/2010 06:12 AM, Guenter Milde wrote:
>
>>
>> The problem occured also in the dinbrief class. It's solved by
>> defining two styles. From dinbrief.layout::
>>
>>   # dinbrief's \phone has 2 args, area and number. We define an empty
>>   # command that can be set by the Area_Code style
>>   Preamble
>>\newcommand{\areacode}{}
>>   EndPreamble
>>
>> ...
>>
>>   # dinbrief's \phone has 2 args, area and number,
>>   # define both as distinct styles
>>
>>   Style "Area code"
>>CopyStyle   DinBrief
>>LabelString "Vorwahl:"
>>LatexName   "renewcommand{\areacode}"
>>   End
>>
>>   Style Telephone
>>CopyStyle   DinBrief
>>LabelString "Telefon:"
>>LatexName   phone
>>LatexParam  {\areacode}
>>   End
>>
>>
>> It should be possible to adapt this technique to liuthesis if the ERT
>> hack is too hackish.
>>
>>
>>
> That's impressive, but pretty hackish itself! Perhaps for 2.1 I'll try to
> get actual multi-argument commands working.
>
> rh
>
>


Re: insert custom layout

2010-04-10 Thread Sajjad
Hello all,

I have attached the liuthesis.layout and the liuhesis.cls for your
reference.

Now i can choose the liuthesis layout from the Documents-Settings-Document
class option.

then i choose the Title Environment and set the title of the thesis work and
then i select the author and put my name there.


When i try to see a preview it gives me several LaTeX error. They are :


Undefined Control sequence

.ding division definition \the...@divtag.}

 The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


AND


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 return to proceed.




Any hint on that ?


I have several LateX file inside that package folder. Do i have to edit any
one of them to get it functional?


Regards
Sajjad







On Fri, Apr 9, 2010 at 1:38 PM, rgheck rgh...@bobjweil.com wrote:

 On 04/08/2010 03:29 PM, Sajjad wrote:

 On Thu, Apr 8, 2010 at 4:24 AM, Julien Riouxjri...@physics.utoronto.ca
 wrote:




 On 07/04/2010 7:08 PM, Sajjad wrote:



 6. The liuthesis.layout file contain the following:

 #% Do not delete this line below; configure depends on this
 #  \DeclareLaTeXClass{liuthesis}




 If that's all you have in there, this is not sufficient. As suggested, a
 good starting point for you would be to copy the book.layout file.



 If it not then , i did copy the contents of book.layout and put it into
 the
 liuthesis.layout.

 What should i do now? Any reference ?



 Yes. Do this:


  If that is what you did, I don't know what the matter is. If you start LyX
 from a console you might get useful information for debugging.



 You probably have an error somewhere in the layout file.

 rh


%%
%% This is file `liuthesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% liuthesis.dtx  (with options: `class')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from liuthesis.cls.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file liuthesis.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesClass{liuthesis}[2007/01/13 liuthesis Class v. 1.3]
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{lmodern}
\RequirePackage[T1]{fontenc}
\RequirePackage[latin1]{inputenc}
\RequirePackage[swedish, english]{babel}
\newcommand*{\liuthesisDefinition}[2]{%
  \ClassInfo{liuthesis}{Loaded definition file '\CurrentOption.ltd'}%
  \newcommand*{\the...@divtag}{#1}%
  \newcommand...@address}{#2}}

\newif\ifliuthe...@hyperref \liuthe...@hyperreffalse
\newcommand*\phantomsection{\relax}
\newcommand*\href[2][]{#1}
\newcommand*\pdfbookmark[3][]{\relax}


%
%%%   Language%%%
%

\def\acknowledgementsname{Acknowledgments}%
\def\corollaryname{Corollary}
\def\definitionname{Definition}
\def\examplename{Example}
\def\lemmaname{Lemma}
\def\listexamplename{List of Examples}
\def\theoremname{Theorem}
\newcommand*{\monthName}[1]{\ifcase#1\or
  January\or February\or March\or
  April\or May\or June\or
  July\or August\or September\or
  October\or November\or December\else Unknown\fi}

\addto{\captionsenglish}{%
  \def\acknowledgementsname{Acknowledgments}%
  \def\corollaryname{Corollary}%
  \def\definitionname{Definition}%
  \def\examplename{Example}%
  \def\lemmaname{Lemma}%
  \def\listexamplename{List of Examples}%
  \def\theoremname{Theorem}%
  \renewcommand*{\monthName}[1]{\ifcase#1\or%
January\or February\or March\or%
April\or May\or June\or%
July\or August\or September\or%
October\or November\or December\else Unknown\fi}%
}
\addto{\captionsswedish}{%
  \def\acknowledgementsname{Tack}%
  \def\corollaryname{Korrolarium}%
  \def\definitionname{Definition}%
  \def\examplename{Exempel}%
  \def\lemmaname{Lemma}%
  \def\listexamplename{Exempellista}%
  \def\theoremname{Sats}%
  \renewcommand*{\monthName}[1]{\ifcase#1\or%
januari\or februari\or mars\or%
april\or maj\or juni\or%
juli\or augusti\or september\or%
oktober\or november\or december\else Unknown\fi}%
}
\DeclareOption{english}{%
  \AtBeginDocument{\selectlanguage{english}}%
}

\DeclareOption{swedish}{%
  \AtBeginDocument{\selectlanguage{swedish}}%
}

%
%%% CROP SETTINGS %%%
%

\newcommand...@ul}{\relax}\newcommand*{\@ur

Re: insert custom layout

2010-04-10 Thread Sajjad
Hello all,

I have attached the liuthesis.layout and the liuhesis.cls for your
reference.

Now i can choose the liuthesis layout from the Documents-Settings-Document
class option.

then i choose the Title Environment and set the title of the thesis work and
then i select the author and put my name there.


When i try to see a preview it gives me several LaTeX error. They are :


Undefined Control sequence

.ding division definition \the...@divtag.}

 The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


AND


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 return to proceed.




Any hint on that ?


I have several LateX file inside that package folder. Do i have to edit any
one of them to get it functional?


Regards
Sajjad







On Fri, Apr 9, 2010 at 1:38 PM, rgheck rgh...@bobjweil.com wrote:

 On 04/08/2010 03:29 PM, Sajjad wrote:

 On Thu, Apr 8, 2010 at 4:24 AM, Julien Riouxjri...@physics.utoronto.ca
 wrote:




 On 07/04/2010 7:08 PM, Sajjad wrote:



 6. The liuthesis.layout file contain the following:

 #% Do not delete this line below; configure depends on this
 #  \DeclareLaTeXClass{liuthesis}




 If that's all you have in there, this is not sufficient. As suggested, a
 good starting point for you would be to copy the book.layout file.



 If it not then , i did copy the contents of book.layout and put it into
 the
 liuthesis.layout.

 What should i do now? Any reference ?



 Yes. Do this:


  If that is what you did, I don't know what the matter is. If you start LyX
 from a console you might get useful information for debugging.



 You probably have an error somewhere in the layout file.

 rh


%%
%% This is file `liuthesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% liuthesis.dtx  (with options: `class')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from liuthesis.cls.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file liuthesis.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesClass{liuthesis}[2007/01/13 liuthesis Class v. 1.3]
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{lmodern}
\RequirePackage[T1]{fontenc}
\RequirePackage[latin1]{inputenc}
\RequirePackage[swedish, english]{babel}
\newcommand*{\liuthesisDefinition}[2]{%
  \ClassInfo{liuthesis}{Loaded definition file '\CurrentOption.ltd'}%
  \newcommand*{\the...@divtag}{#1}%
  \newcommand...@address}{#2}}

\newif\ifliuthe...@hyperref \liuthe...@hyperreffalse
\newcommand*\phantomsection{\relax}
\newcommand*\href[2][]{#1}
\newcommand*\pdfbookmark[3][]{\relax}


%
%%%   Language%%%
%

\def\acknowledgementsname{Acknowledgments}%
\def\corollaryname{Corollary}
\def\definitionname{Definition}
\def\examplename{Example}
\def\lemmaname{Lemma}
\def\listexamplename{List of Examples}
\def\theoremname{Theorem}
\newcommand*{\monthName}[1]{\ifcase#1\or
  January\or February\or March\or
  April\or May\or June\or
  July\or August\or September\or
  October\or November\or December\else Unknown\fi}

\addto{\captionsenglish}{%
  \def\acknowledgementsname{Acknowledgments}%
  \def\corollaryname{Corollary}%
  \def\definitionname{Definition}%
  \def\examplename{Example}%
  \def\lemmaname{Lemma}%
  \def\listexamplename{List of Examples}%
  \def\theoremname{Theorem}%
  \renewcommand*{\monthName}[1]{\ifcase#1\or%
January\or February\or March\or%
April\or May\or June\or%
July\or August\or September\or%
October\or November\or December\else Unknown\fi}%
}
\addto{\captionsswedish}{%
  \def\acknowledgementsname{Tack}%
  \def\corollaryname{Korrolarium}%
  \def\definitionname{Definition}%
  \def\examplename{Exempel}%
  \def\lemmaname{Lemma}%
  \def\listexamplename{Exempellista}%
  \def\theoremname{Sats}%
  \renewcommand*{\monthName}[1]{\ifcase#1\or%
januari\or februari\or mars\or%
april\or maj\or juni\or%
juli\or augusti\or september\or%
oktober\or november\or december\else Unknown\fi}%
}
\DeclareOption{english}{%
  \AtBeginDocument{\selectlanguage{english}}%
}

\DeclareOption{swedish}{%
  \AtBeginDocument{\selectlanguage{swedish}}%
}

%
%%% CROP SETTINGS %%%
%

\newcommand...@ul}{\relax}\newcommand*{\@ur

Re: insert custom layout

2010-04-10 Thread Sajjad
Hello all,

I have attached the liuthesis.layout and the liuhesis.cls for your
reference.

Now i can choose the liuthesis layout from the Documents->Settings->Document
class option.

then i choose the Title Environment and set the title of the thesis work and
then i select the author and put my name there.


When i try to see a preview it gives me several LaTeX error. They are :


Undefined Control sequence

".ding division definition \the...@divtag.}

 The control sequence at the end of the top line

of your error message was never \def'ed. If you have

misspelled it (e.g., `\hobx'), type `I' and the correct

spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined."


AND


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.

"


Any hint on that ?


I have several LateX file inside that package folder. Do i have to edit any
one of them to get it functional?


Regards
Sajjad







On Fri, Apr 9, 2010 at 1:38 PM, rgheck <rgh...@bobjweil.com> wrote:

> On 04/08/2010 03:29 PM, Sajjad wrote:
>
>> On Thu, Apr 8, 2010 at 4:24 AM, Julien Rioux<jri...@physics.utoronto.ca
>> >wrote:
>>
>>
>>
>>>
>>> On 07/04/2010 7:08 PM, Sajjad wrote:
>>>
>>>
>>>
>>>> 6. The liuthesis.layout file contain the following:
>>>>
>>>> #% Do not delete this line below; configure depends on this
>>>> #  \DeclareLaTeXClass{liuthesis}
>>>>
>>>>
>>>>
>>>>
>>> If that's all you have in there, this is not sufficient. As suggested, a
>>> good starting point for you would be to copy the book.layout file.
>>>
>>>
>>>
>> If it not then , i did copy the contents of book.layout and put it into
>> the
>> liuthesis.layout.
>>
>> What should i do now? Any reference ?
>>
>>
>>
> Yes. Do this:
>
>
>  If that is what you did, I don't know what the matter is. If you start LyX
>>> from a console you might get useful information for debugging.
>>>
>>>
>>>
>> You probably have an error somewhere in the layout file.
>
> rh
>
>
%%
%% This is file `liuthesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% liuthesis.dtx  (with options: `class')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from liuthesis.cls.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file liuthesis.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\ProvidesClass{liuthesis}[2007/01/13 liuthesis Class v. 1.3]
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{lmodern}
\RequirePackage[T1]{fontenc}
\RequirePackage[latin1]{inputenc}
\RequirePackage[swedish, english]{babel}
\newcommand*{\liuthesisDefinition}[2]{%
  \ClassInfo{liuthesis}{Loaded definition file '\CurrentOption.ltd'}%
  \newcommand*{\the...@divtag}{#1}%
  \newcommand...@address}{#2}}

\newif\ifliuthe...@hyperref \liuthe...@hyperreffalse
\newcommand*\phantomsection{\relax}
\newcommand*\href[2][]{#1}
\newcommand*\pdfbookmark[3][]{\relax}


%
%%%   Language%%%
%

\def\acknowledgementsname{Acknowledgments}%
\def\corollaryname{Corollary}
\def\definitionname{Definition}
\def\examplename{Example}
\def\lemmaname{Lemma}
\def\listexamplename{List of Examples}
\def\theoremname{Theorem}
\newcommand*{\monthName}[1]{\ifcase#1\or
  January\or February\or March\or
  April\or May\or June\or
  July\or August\or September\or
  October\or November\or December\else Unknown\fi}

\addto{\captionsenglish}{%
  \def\acknowledgementsname{Acknowledgments}%
  \def\corollaryname{Corollary}%
  \def\definitionname{Definition}%
  \def\examplename{Example}%
  \def\lemmaname{Lemma}%
  \def\listexamplename{List of Examples}%
  \def\theoremname{Theorem}%
  \renewcommand*{\monthName}[1]{\ifcase#1\or%
January\or February\or March\or%
April\or May\or June\or%
July\or August\or September\or%
October\or November\or December\else Unknown\fi}%
}
\addto{\captionsswedish}{%
  \def\acknowledgementsname{Tack}%
  \def\corollaryname{Korrolarium}%
  \def\definitionname{Definition}%
  \def\examplename{Exempel}%
  \def\lemmaname{Lemma}%
  \def\listexamplename{Exempellista}%

Re: insert custom layout

2010-04-08 Thread Sajjad
On Thu, Apr 8, 2010 at 4:24 AM, Julien Rioux jri...@physics.utoronto.cawrote:



 On 07/04/2010 7:08 PM, Sajjad wrote:

 6. The liuthesis.layout file contain the following:

 #% Do not delete this line below; configure depends on this
 #  \DeclareLaTeXClass{liuthesis}


 If that's all you have in there, this is not sufficient. As suggested, a
 good starting point for you would be to copy the book.layout file.


If it not then , i did copy the contents of book.layout and put it into the
liuthesis.layout.

What should i do now? Any reference ?


 If that is what you did, I don't know what the matter is. If you start LyX
 from a console you might get useful information for debugging.

 --
 Julien




Re: insert custom layout

2010-04-08 Thread Sajjad
On Thu, Apr 8, 2010 at 4:24 AM, Julien Rioux jri...@physics.utoronto.cawrote:



 On 07/04/2010 7:08 PM, Sajjad wrote:

 6. The liuthesis.layout file contain the following:

 #% Do not delete this line below; configure depends on this
 #  \DeclareLaTeXClass{liuthesis}


 If that's all you have in there, this is not sufficient. As suggested, a
 good starting point for you would be to copy the book.layout file.


If it not then , i did copy the contents of book.layout and put it into the
liuthesis.layout.

What should i do now? Any reference ?


 If that is what you did, I don't know what the matter is. If you start LyX
 from a console you might get useful information for debugging.

 --
 Julien




Re: insert custom layout

2010-04-08 Thread Sajjad
On Thu, Apr 8, 2010 at 4:24 AM, Julien Rioux <jri...@physics.utoronto.ca>wrote:

>
>
> On 07/04/2010 7:08 PM, Sajjad wrote:
>
>> 6. The liuthesis.layout file contain the following:
>>
>> #% Do not delete this line below; configure depends on this
>> #  \DeclareLaTeXClass{liuthesis}
>>
>>
> If that's all you have in there, this is not sufficient. As suggested, a
> good starting point for you would be to copy the book.layout file.
>

If it not then , i did copy the contents of book.layout and put it into the
liuthesis.layout.

What should i do now? Any reference ?

>
> If that is what you did, I don't know what the matter is. If you start LyX
> from a console you might get useful information for debugging.
>
> --
> Julien
>
>


Re: insert custom layout

2010-04-07 Thread Sajjad
Thanks rgcheck,


I have gone through  the manual of configuring Lyx and there they have
explained how to include custom .clas file.

I think  i followed the steps and i do see the 'liuthesis' in the Document
class option under Documents-Settings.
But When i check  liuthesis , the system hangs. So i think i need to
elaborate the steps that i have followed.


1. I created a directory called  /usr/local/texmf/latex/liuthesis and
unzipped the file under the liuthesis folder. Now the folder 'liuthesis'
contains more subdirectories.

2. Opened the texmf.cnf file and edited the TEXMFLOCAL with  the path
specified in step 1.

3. Executed texhash and it created a ls-R.

4. From LyX i executed the Reconfigure command.

5. created a liuthesis.layout file and put in the directory where the LyX
installation put all  the layout files, so  that LyX can find it.

6. The liuthesis.layout file contain the following:

#% Do not delete this line below; configure depends on this
#  \DeclareLaTeXClass{liuthesis}


7.  I ran Reconfigure again.

8 Restarted LyX and chose the liuthesis class from the layout option and the
program hangs.


Is there anything i missed? Where should i look into to fix this?


Regards
Sajjad


On Wed, Apr 7, 2010 at 1:49 PM, rgheck rgh...@bobjweil.com wrote:

 On 04/06/2010 04:27 PM, Sajjad wrote:

 Hello,

 In most of the report writing i used the report class. The university that
 i
 am studying in have own class and i want to import it into LyX's document
 class by importing custom layout. The custom layout accepts only one
 .layout file,
 where as the my university 'liuthesis' contains several .tex file.



 Since liuthesis is a document class, it is provided as a .cls file,
 liuthesis.cls. The .tex files that are provided with it are examples,
 documentation, and the like, and have nothing to do with layout.

 What you will need to be able to use liuthesis with LyX is a file
 liuthesis.layout. Since liuthesis is based upon book, you can get started
 simply by copying book.layout to liuthesis.layout and changing the second
 line to:
\DeclareLaTeXClass{liuthesis}
 This will not give you access in LyX to the special constructs of
 liuthesis, but it will get you started. You should then be able to import
 the .tex files provided as examples.

 Richard




Re: insert custom layout

2010-04-07 Thread Sajjad
Thanks rgcheck,


I have gone through  the manual of configuring Lyx and there they have
explained how to include custom .clas file.

I think  i followed the steps and i do see the 'liuthesis' in the Document
class option under Documents-Settings.
But When i check  liuthesis , the system hangs. So i think i need to
elaborate the steps that i have followed.


1. I created a directory called  /usr/local/texmf/latex/liuthesis and
unzipped the file under the liuthesis folder. Now the folder 'liuthesis'
contains more subdirectories.

2. Opened the texmf.cnf file and edited the TEXMFLOCAL with  the path
specified in step 1.

3. Executed texhash and it created a ls-R.

4. From LyX i executed the Reconfigure command.

5. created a liuthesis.layout file and put in the directory where the LyX
installation put all  the layout files, so  that LyX can find it.

6. The liuthesis.layout file contain the following:

#% Do not delete this line below; configure depends on this
#  \DeclareLaTeXClass{liuthesis}


7.  I ran Reconfigure again.

8 Restarted LyX and chose the liuthesis class from the layout option and the
program hangs.


Is there anything i missed? Where should i look into to fix this?


Regards
Sajjad


On Wed, Apr 7, 2010 at 1:49 PM, rgheck rgh...@bobjweil.com wrote:

 On 04/06/2010 04:27 PM, Sajjad wrote:

 Hello,

 In most of the report writing i used the report class. The university that
 i
 am studying in have own class and i want to import it into LyX's document
 class by importing custom layout. The custom layout accepts only one
 .layout file,
 where as the my university 'liuthesis' contains several .tex file.



 Since liuthesis is a document class, it is provided as a .cls file,
 liuthesis.cls. The .tex files that are provided with it are examples,
 documentation, and the like, and have nothing to do with layout.

 What you will need to be able to use liuthesis with LyX is a file
 liuthesis.layout. Since liuthesis is based upon book, you can get started
 simply by copying book.layout to liuthesis.layout and changing the second
 line to:
\DeclareLaTeXClass{liuthesis}
 This will not give you access in LyX to the special constructs of
 liuthesis, but it will get you started. You should then be able to import
 the .tex files provided as examples.

 Richard




Re: insert custom layout

2010-04-07 Thread Sajjad
Thanks rgcheck,


I have gone through  the manual of configuring Lyx and there they have
explained how to include custom .clas file.

I think  i followed the steps and i do see the 'liuthesis' in the Document
class option under Documents->Settings.
But When i check  "liuthesis" , the system hangs. So i think i need to
elaborate the steps that i have followed.


1. I created a directory called  /usr/local/texmf/latex/liuthesis and
unzipped the file under the liuthesis folder. Now the folder 'liuthesis'
contains more subdirectories.

2. Opened the texmf.cnf file and edited the TEXMFLOCAL with  the path
specified in step 1.

3. Executed texhash and it created a ls-R.

4. From LyX i executed the Reconfigure command.

5. created a liuthesis.layout file and put in the directory where the LyX
installation put all  the layout files, so  that LyX can find it.

6. The liuthesis.layout file contain the following:

#% Do not delete this line below; configure depends on this
#  \DeclareLaTeXClass{liuthesis}


7.  I ran Reconfigure again.

8 Restarted LyX and chose the liuthesis class from the layout option and the
program hangs.


Is there anything i missed? Where should i look into to fix this?


Regards
Sajjad


On Wed, Apr 7, 2010 at 1:49 PM, rgheck <rgh...@bobjweil.com> wrote:

> On 04/06/2010 04:27 PM, Sajjad wrote:
>
>> Hello,
>>
>> In most of the report writing i used the report class. The university that
>> i
>> am studying in have own class and i want to import it into LyX's document
>> class by importing custom layout. The custom layout accepts only one
>> .layout file,
>> where as the my university 'liuthesis' contains several .tex file.
>>
>>
>>
> Since liuthesis is a document class, it is provided as a .cls file,
> liuthesis.cls. The .tex files that are provided with it are examples,
> documentation, and the like, and have nothing to do with layout.
>
> What you will need to be able to use liuthesis with LyX is a file
> liuthesis.layout. Since liuthesis is based upon book, you can get started
> simply by copying book.layout to liuthesis.layout and changing the second
> line to:
>\DeclareLaTeXClass{liuthesis}
> This will not give you access in LyX to the special constructs of
> liuthesis, but it will get you started. You should then be able to import
> the .tex files provided as examples.
>
> Richard
>
>


insert custom layout

2010-04-06 Thread Sajjad
Hello,

In most of the report writing i used the report class. The university that i
am studying in have own class and i want to import it into LyX's document
class

by importing custom layout. The custom layout accepts only one .layout file,
where as the my university 'liuthesis' contains several .tex file.



Any hint?


Regards
Sajjad


insert custom layout

2010-04-06 Thread Sajjad
Hello,

In most of the report writing i used the report class. The university that i
am studying in have own class and i want to import it into LyX's document
class

by importing custom layout. The custom layout accepts only one .layout file,
where as the my university 'liuthesis' contains several .tex file.



Any hint?


Regards
Sajjad


insert custom layout

2010-04-06 Thread Sajjad
Hello,

In most of the report writing i used the report class. The university that i
am studying in have own class and i want to import it into LyX's document
class

by importing custom layout. The custom layout accepts only one .layout file,
where as the my university 'liuthesis' contains several .tex file.



Any hint?


Regards
Sajjad


Re: Include file

2010-03-31 Thread Sajjad
On Wed, Mar 31, 2010 at 7:34 AM, Sajjad dosto.wa...@gmail.com wrote:



 On Tue, Mar 30, 2010 at 11:04 PM, rgheck rgh...@bobjweil.com wrote:

 On 03/30/2010 02:59 PM, Sajjad wrote:


 I tried this by inserting MS Office y going to  the Insert-File

 But there is no option for MS Office file.

  The suggestion was: Use MS Word to create the title page and first page;
 print these, by themselves, as a PDF file; print your thesis as a PDF file,
 too, from inside LyX. Now get ahold of a PDF editor, such as pdftk or
 pdfedit, and use it to join the two files together.

 If you can't manage this last step, then send them to me and I'll do it.


 I have downloaded the PDFedit and merge the pages along with  the main
 report(using the command Insert pages from other document) but when i save
 it, it seems that the merge operation is never done.


 How to effect  the join operation ?


After save the new revision the changes were affected, but now  the margin
of the main report has changed. You can se the differences in the following
link. One with  the merged pages at front and the second is the main report.

http://www.student.itn.liu.se/~sajis997/snow.pdf

http://www.student.itn.liu.se/~sajis997/SnowRemoval.pdf

The difference will be visible if compare the two documents and will see
that in the first one the content moves a bit upwards and it looks odd now.

Please take a look and give me some hints how get it right.



 //Sajjad



 rh





Re: Include file

2010-03-31 Thread Sajjad
On Wed, Mar 31, 2010 at 7:34 AM, Sajjad dosto.wa...@gmail.com wrote:



 On Tue, Mar 30, 2010 at 11:04 PM, rgheck rgh...@bobjweil.com wrote:

 On 03/30/2010 02:59 PM, Sajjad wrote:


 I tried this by inserting MS Office y going to  the Insert-File

 But there is no option for MS Office file.

  The suggestion was: Use MS Word to create the title page and first page;
 print these, by themselves, as a PDF file; print your thesis as a PDF file,
 too, from inside LyX. Now get ahold of a PDF editor, such as pdftk or
 pdfedit, and use it to join the two files together.

 If you can't manage this last step, then send them to me and I'll do it.


 I have downloaded the PDFedit and merge the pages along with  the main
 report(using the command Insert pages from other document) but when i save
 it, it seems that the merge operation is never done.


 How to effect  the join operation ?


After save the new revision the changes were affected, but now  the margin
of the main report has changed. You can se the differences in the following
link. One with  the merged pages at front and the second is the main report.

http://www.student.itn.liu.se/~sajis997/snow.pdf

http://www.student.itn.liu.se/~sajis997/SnowRemoval.pdf

The difference will be visible if compare the two documents and will see
that in the first one the content moves a bit upwards and it looks odd now.

Please take a look and give me some hints how get it right.



 //Sajjad



 rh





Re: Include file

2010-03-31 Thread Sajjad
On Wed, Mar 31, 2010 at 7:34 AM, Sajjad <dosto.wa...@gmail.com> wrote:

>
>
> On Tue, Mar 30, 2010 at 11:04 PM, rgheck <rgh...@bobjweil.com> wrote:
>
>> On 03/30/2010 02:59 PM, Sajjad wrote:
>>
>>>
>>> I tried this by inserting MS Office y going to  the Insert->File
>>>
>>> But there is no option for MS Office file.
>>>
>>>  The suggestion was: Use MS Word to create the title page and first page;
>> print these, by themselves, as a PDF file; print your thesis as a PDF file,
>> too, from inside LyX. Now get ahold of a PDF editor, such as pdftk or
>> pdfedit, and use it to join the two files together.
>>
>> If you can't manage this last step, then send them to me and I'll do it.
>>
>
> I have downloaded the PDFedit and merge the pages along with  the main
> report(using the command "Insert pages from other document") but when i save
> it, it seems that the merge operation is never done.
>
>
> How to effect  the join operation ?
>

After save the new revision the changes were affected, but now  the margin
of the main report has changed. You can se the differences in the following
link. One with  the merged pages at front and the second is the main report.

http://www.student.itn.liu.se/~sajis997/snow.pdf

http://www.student.itn.liu.se/~sajis997/SnowRemoval.pdf

The difference will be visible if compare the two documents and will see
that in the first one the content moves a bit upwards and it looks odd now.

Please take a look and give me some hints how get it right.

>
>
> //Sajjad
>
>
>>
>> rh
>>
>>
>


Re: Include file

2010-03-30 Thread Sajjad
Hello,

It has to be merged as a single pdf file and front front pages are in the
Miicrosoft Office Word format.

So after merging all  the front and title pages to the main report , it must
be compiled as a single pdf file.

Regards
Sajjad

On Tue, Mar 30, 2010 at 6:50 PM, rgheck rgh...@bobjweil.com wrote:

 On 03/30/2010 11:53 AM, Sajjad wrote:

 Hello forum,

 I have written the thesis in a single .lyx file.


 Now to comply with  the university standard i have to include front page,
 the title page and then the main report that i have written.


 Any hint how to do  that from LyX interface ?



 What format do you have those pages in? Or is the question how to create
 them?

 One option is to create them in OpenOffice or something, as these often are
 supposed to have a very particular format. Then print them and put them on
 the front. If you have to adjust page numbers in the LyX file, that is
 fairly easy to do.

 rh




Re: Include file

2010-03-30 Thread Sajjad
On Tue, Mar 30, 2010 at 9:04 PM, Steve Litt sl...@troubleshooters.comwrote:

 The way I do this type of thing is to  construct the frontmatter, including
 the cover, in LyX using ERT and custom environments. That's a few hours of
 LaTeX ERT work to get it looking just how you want it to, but I think it's
 worth it.


Hello Steve,

Any link or reference so  that i can get started about ERT?


Sajjad


 A second way you can do it is to use pdftk to tack the Word-sourced front
 pages onto the LyX sourced rest of the document, and of course set page
 numbering in both so everything matches up.

 SteveT

 On Tuesday 30 March 2010 12:58:09 Sajjad wrote:
  Hello,
 
  It has to be merged as a single pdf file and front front pages are in the
  Miicrosoft Office Word format.
 
  So after merging all  the front and title pages to the main report , it
   must be compiled as a single pdf file.
 
  Regards
  Sajjad
 
  On Tue, Mar 30, 2010 at 6:50 PM, rgheck rgh...@bobjweil.com wrote:
   On 03/30/2010 11:53 AM, Sajjad wrote:
   Hello forum,
  
   I have written the thesis in a single .lyx file.
  
  
   Now to comply with  the university standard i have to include front
   page, the title page and then the main report that i have written.
  
  
   Any hint how to do  that from LyX interface ?
  
   What format do you have those pages in? Or is the question how to
 create
   them?
  
   One option is to create them in OpenOffice or something, as these often
   are supposed to have a very particular format. Then print them and put
   them on the front. If you have to adjust page numbers in the LyX file,
   that is fairly easy to do.
  
   rh
 




Re: Include file

2010-03-30 Thread Sajjad
Hello,

It has to be merged as a single pdf file and front front pages are in the
Miicrosoft Office Word format.

So after merging all  the front and title pages to the main report , it must
be compiled as a single pdf file.

Regards
Sajjad

On Tue, Mar 30, 2010 at 6:50 PM, rgheck rgh...@bobjweil.com wrote:

 On 03/30/2010 11:53 AM, Sajjad wrote:

 Hello forum,

 I have written the thesis in a single .lyx file.


 Now to comply with  the university standard i have to include front page,
 the title page and then the main report that i have written.


 Any hint how to do  that from LyX interface ?



 What format do you have those pages in? Or is the question how to create
 them?

 One option is to create them in OpenOffice or something, as these often are
 supposed to have a very particular format. Then print them and put them on
 the front. If you have to adjust page numbers in the LyX file, that is
 fairly easy to do.

 rh




Re: Include file

2010-03-30 Thread Sajjad
On Tue, Mar 30, 2010 at 9:04 PM, Steve Litt sl...@troubleshooters.comwrote:

 The way I do this type of thing is to  construct the frontmatter, including
 the cover, in LyX using ERT and custom environments. That's a few hours of
 LaTeX ERT work to get it looking just how you want it to, but I think it's
 worth it.


Hello Steve,

Any link or reference so  that i can get started about ERT?


Sajjad


 A second way you can do it is to use pdftk to tack the Word-sourced front
 pages onto the LyX sourced rest of the document, and of course set page
 numbering in both so everything matches up.

 SteveT

 On Tuesday 30 March 2010 12:58:09 Sajjad wrote:
  Hello,
 
  It has to be merged as a single pdf file and front front pages are in the
  Miicrosoft Office Word format.
 
  So after merging all  the front and title pages to the main report , it
   must be compiled as a single pdf file.
 
  Regards
  Sajjad
 
  On Tue, Mar 30, 2010 at 6:50 PM, rgheck rgh...@bobjweil.com wrote:
   On 03/30/2010 11:53 AM, Sajjad wrote:
   Hello forum,
  
   I have written the thesis in a single .lyx file.
  
  
   Now to comply with  the university standard i have to include front
   page, the title page and then the main report that i have written.
  
  
   Any hint how to do  that from LyX interface ?
  
   What format do you have those pages in? Or is the question how to
 create
   them?
  
   One option is to create them in OpenOffice or something, as these often
   are supposed to have a very particular format. Then print them and put
   them on the front. If you have to adjust page numbers in the LyX file,
   that is fairly easy to do.
  
   rh
 




Re: Include file

2010-03-30 Thread Sajjad
Hello,

It has to be merged as a single pdf file and front front pages are in the
Miicrosoft Office Word format.

So after merging all  the front and title pages to the main report , it must
be compiled as a single pdf file.

Regards
Sajjad

On Tue, Mar 30, 2010 at 6:50 PM, rgheck <rgh...@bobjweil.com> wrote:

> On 03/30/2010 11:53 AM, Sajjad wrote:
>
>> Hello forum,
>>
>> I have written the thesis in a single .lyx file.
>>
>>
>> Now to comply with  the university standard i have to include front page,
>> the title page and then the main report that i have written.
>>
>>
>> Any hint how to do  that from LyX interface ?
>>
>>
>>
> What format do you have those pages in? Or is the question how to create
> them?
>
> One option is to create them in OpenOffice or something, as these often are
> supposed to have a very particular format. Then print them and put them on
> the front. If you have to adjust page numbers in the LyX file, that is
> fairly easy to do.
>
> rh
>
>


Re: Include file

2010-03-30 Thread Sajjad
On Tue, Mar 30, 2010 at 9:04 PM, Steve Litt <sl...@troubleshooters.com>wrote:

> The way I do this type of thing is to  construct the frontmatter, including
> the cover, in LyX using ERT and custom environments. That's a few hours of
> LaTeX ERT work to get it looking just how you want it to, but I think it's
> worth it.
>

Hello Steve,

Any link or reference so  that i can get started about ERT?


Sajjad

>
> A second way you can do it is to use pdftk to tack the Word-sourced front
> pages onto the LyX sourced rest of the document, and of course set page
> numbering in both so everything matches up.
>
> SteveT
>
> On Tuesday 30 March 2010 12:58:09 Sajjad wrote:
> > Hello,
> >
> > It has to be merged as a single pdf file and front front pages are in the
> > Miicrosoft Office Word format.
> >
> > So after merging all  the front and title pages to the main report , it
> >  must be compiled as a single pdf file.
> >
> > Regards
> > Sajjad
> >
> > On Tue, Mar 30, 2010 at 6:50 PM, rgheck <rgh...@bobjweil.com> wrote:
> > > On 03/30/2010 11:53 AM, Sajjad wrote:
> > >> Hello forum,
> > >>
> > >> I have written the thesis in a single .lyx file.
> > >>
> > >>
> > >> Now to comply with  the university standard i have to include front
> > >> page, the title page and then the main report that i have written.
> > >>
> > >>
> > >> Any hint how to do  that from LyX interface ?
> > >
> > > What format do you have those pages in? Or is the question how to
> create
> > > them?
> > >
> > > One option is to create them in OpenOffice or something, as these often
> > > are supposed to have a very particular format. Then print them and put
> > > them on the front. If you have to adjust page numbers in the LyX file,
> > > that is fairly easy to do.
> > >
> > > rh
> >
>
>


even numbered title page getting numbered

2010-03-17 Thread Sajjad
Hello forum,

I am working with report class and managed to configured it so  that
Abstract, Acknowledgement and each chapter starts with odd numbering page.

I have inserted clear doublepage  before each of them.


Now the even page of the Title page is also getting numbered and i do not
want that.


Any hint to remove that?


Regards
Sajjad


Re: even numbered title page getting numbered

2010-03-17 Thread Sajjad
Thanks Liviu

It worked

On Wed, Mar 17, 2010 at 8:00 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Wed, Mar 17, 2010 at 6:49 PM, Sajjad dosto.wa...@gmail.com wrote:
  Hello forum,
 
  I am working with report class and managed to configured it so  that
  Abstract, Acknowledgement and each chapter starts with odd numbering
 page.
 
  I have inserted clear doublepage  before each of them.
 
 
  Now the even page of the Title page is also getting numbered and i do not
  want that.
 
 
  Any hint to remove that?
 
 Perhaps this?
 http://wiki.lyx.org/FAQ/Unsorted#toc3

 Liviu


 
  Regards
  Sajjad
 



 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



even numbered title page getting numbered

2010-03-17 Thread Sajjad
Hello forum,

I am working with report class and managed to configured it so  that
Abstract, Acknowledgement and each chapter starts with odd numbering page.

I have inserted clear doublepage  before each of them.


Now the even page of the Title page is also getting numbered and i do not
want that.


Any hint to remove that?


Regards
Sajjad


Re: even numbered title page getting numbered

2010-03-17 Thread Sajjad
Thanks Liviu

It worked

On Wed, Mar 17, 2010 at 8:00 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Wed, Mar 17, 2010 at 6:49 PM, Sajjad dosto.wa...@gmail.com wrote:
  Hello forum,
 
  I am working with report class and managed to configured it so  that
  Abstract, Acknowledgement and each chapter starts with odd numbering
 page.
 
  I have inserted clear doublepage  before each of them.
 
 
  Now the even page of the Title page is also getting numbered and i do not
  want that.
 
 
  Any hint to remove that?
 
 Perhaps this?
 http://wiki.lyx.org/FAQ/Unsorted#toc3

 Liviu


 
  Regards
  Sajjad
 



 --
 Do you know how to read?
 http://www.alienetworks.com/srtest.cfm
 http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
 Do you know how to write?
 http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



even numbered title page getting numbered

2010-03-17 Thread Sajjad
Hello forum,

I am working with report class and managed to configured it so  that
Abstract, Acknowledgement and each chapter starts with odd numbering page.

I have inserted "clear doublepage " before each of them.


Now the even page of the Title page is also getting numbered and i do not
want that.


Any hint to remove that?


Regards
Sajjad


Re: even numbered title page getting numbered

2010-03-17 Thread Sajjad
Thanks Liviu

It worked

On Wed, Mar 17, 2010 at 8:00 PM, Liviu Andronic <landronim...@gmail.com>wrote:

> On Wed, Mar 17, 2010 at 6:49 PM, Sajjad <dosto.wa...@gmail.com> wrote:
> > Hello forum,
> >
> > I am working with report class and managed to configured it so  that
> > Abstract, Acknowledgement and each chapter starts with odd numbering
> page.
> >
> > I have inserted "clear doublepage " before each of them.
> >
> >
> > Now the even page of the Title page is also getting numbered and i do not
> > want that.
> >
> >
> > Any hint to remove that?
> >
> Perhaps this?
> http://wiki.lyx.org/FAQ/Unsorted#toc3
>
> Liviu
>
>
> >
> > Regards
> > Sajjad
> >
>
>
>
> --
> Do you know how to read?
> http://www.alienetworks.com/srtest.cfm
> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
> Do you know how to write?
> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
>


Re: start Abstract,Acknowledgement, and each chapter with odd page number

2010-03-15 Thread Sajjad
Hello Julien,


I think i understood what you meant now. And i believe that you were right
in the way you explained.


Now i am dealing with the following issue.

I am inserting clear doublepage  before the Abstract (abstract is
started as Chapter*) so  that Abstract shall with  a odd numbered page and
it is happening.

But the Even number page of the Title paper is showing the number (like page
number 2) and i do not want to show that. Any idea how to remove it?


Regards
Sajjad


On Thu, Mar 11, 2010 at 4:31 PM, Julien Rioux julien.ri...@gmail.comwrote:

 Sajjad dosto.wa...@... writes:

 
  Hello Juilen,
 
  I have tried this, but i am getting blank pages with some chapters.
 
  Regards
  Sajjad
 

 Sorry, I must have misunderstood what you are trying to accomplish.  If you
 insert Clear Double Page in a two-sided document, what follows will start
 on a
 odd page.  That could require an entire blank even page to be inserted in
 the
 output, if necessary.  That's what I would expect in two-sided documents;
 books,
 for example.

 Cheers,
 Julien





Re: start Abstract,Acknowledgement, and each chapter with odd page number

2010-03-15 Thread Sajjad
Hello Julien,


I think i understood what you meant now. And i believe that you were right
in the way you explained.


Now i am dealing with the following issue.

I am inserting clear doublepage  before the Abstract (abstract is
started as Chapter*) so  that Abstract shall with  a odd numbered page and
it is happening.

But the Even number page of the Title paper is showing the number (like page
number 2) and i do not want to show that. Any idea how to remove it?


Regards
Sajjad


On Thu, Mar 11, 2010 at 4:31 PM, Julien Rioux julien.ri...@gmail.comwrote:

 Sajjad dosto.wa...@... writes:

 
  Hello Juilen,
 
  I have tried this, but i am getting blank pages with some chapters.
 
  Regards
  Sajjad
 

 Sorry, I must have misunderstood what you are trying to accomplish.  If you
 insert Clear Double Page in a two-sided document, what follows will start
 on a
 odd page.  That could require an entire blank even page to be inserted in
 the
 output, if necessary.  That's what I would expect in two-sided documents;
 books,
 for example.

 Cheers,
 Julien





Re: start Abstract,Acknowledgement, and each chapter with odd page number

2010-03-15 Thread Sajjad
Hello Julien,


I think i understood what you meant now. And i believe that you were right
in the way you explained.


Now i am dealing with the following issue.

I am inserting "clear doublepage " before the "Abstract" (abstract is
started as Chapter*) so  that Abstract shall with  a odd numbered page and
it is happening.

But the Even number page of the Title paper is showing the number (like page
number 2) and i do not want to show that. Any idea how to remove it?


Regards
Sajjad


On Thu, Mar 11, 2010 at 4:31 PM, Julien Rioux <julien.ri...@gmail.com>wrote:

> Sajjad <dosto.wa...@...> writes:
>
> >
> > Hello Juilen,
> >
> > I have tried this, but i am getting blank pages with some chapters.
> >
> > Regards
> > Sajjad
> >
>
> Sorry, I must have misunderstood what you are trying to accomplish.  If you
> insert Clear Double Page in a two-sided document, what follows will start
> on a
> odd page.  That could require an entire blank even page to be inserted in
> the
> output, if necessary.  That's what I would expect in two-sided documents;
> books,
> for example.
>
> Cheers,
> Julien
>
>
>


title page contains date

2010-03-09 Thread Sajjad
Hello forum,


I am using the report class and the title page contains the date which i do
not want to include.


Any suggestion to remove that?


Regards
Sajjad


Re: start Abstract,Acknowledgement, and each chapter with odd page number

2010-03-09 Thread Sajjad
Hello Juilen,


I have tried this, but i am getting blank pages with some chapters.


Regards
Sajjad

On Tue, Mar 2, 2010 at 10:19 PM, Julien Rioux julien.ri...@gmail.comwrote:

 It seems that

 Insert  Formatting  Clear Double Page

 inserted before each abstract, chapter, etc. will do what you want, in
 combination with setting Two-sided document in

 Document  Settings  Page Layout

 --
 Julien




title page contains date

2010-03-09 Thread Sajjad
Hello forum,


I am using the report class and the title page contains the date which i do
not want to include.


Any suggestion to remove that?


Regards
Sajjad


Re: start Abstract,Acknowledgement, and each chapter with odd page number

2010-03-09 Thread Sajjad
Hello Juilen,


I have tried this, but i am getting blank pages with some chapters.


Regards
Sajjad

On Tue, Mar 2, 2010 at 10:19 PM, Julien Rioux julien.ri...@gmail.comwrote:

 It seems that

 Insert  Formatting  Clear Double Page

 inserted before each abstract, chapter, etc. will do what you want, in
 combination with setting Two-sided document in

 Document  Settings  Page Layout

 --
 Julien




title page contains date

2010-03-09 Thread Sajjad
Hello forum,


I am using the report class and the title page contains the date which i do
not want to include.


Any suggestion to remove that?


Regards
Sajjad


Re: start Abstract,Acknowledgement, and each chapter with odd page number

2010-03-09 Thread Sajjad
Hello Juilen,


I have tried this, but i am getting blank pages with some chapters.


Regards
Sajjad

On Tue, Mar 2, 2010 at 10:19 PM, Julien Rioux <julien.ri...@gmail.com>wrote:

> It seems that
>
> Insert > Formatting > Clear Double Page
>
> inserted before each abstract, chapter, etc. will do what you want, in
> combination with setting "Two-sided document" in
>
> Document > Settings > Page Layout
>
> --
> Julien
>
>


sort the Bibliography list

2010-03-07 Thread Sajjad
Hello forum,

Please check the following link:


http://www.student.itn.liu.se/~sajis997/LyXIssue.jpg


We see that the bibliography has been listed with a label instead of
numerical order.


I want to sort them( the labels ) according to  the alphabetical order.


How can i do that ?


Regards
Sajjad


sort the Bibliography list

2010-03-07 Thread Sajjad
Hello forum,

Please check the following link:


http://www.student.itn.liu.se/~sajis997/LyXIssue.jpg


We see that the bibliography has been listed with a label instead of
numerical order.


I want to sort them( the labels ) according to  the alphabetical order.


How can i do that ?


Regards
Sajjad


sort the Bibliography list

2010-03-07 Thread Sajjad
Hello forum,

Please check the following link:


http://www.student.itn.liu.se/~sajis997/LyXIssue.jpg


We see that the bibliography has been listed with a label instead of
numerical order.


I want to sort them( the labels ) according to  the alphabetical order.


How can i do that ?


Regards
Sajjad


  1   2   >