I do not know about all the environments in LyX since I could not get the
class to play nice with my LyX installation. However, unless there are
environments in that drop down box covering things like author, title, year,
month, day, department, supervisor, keywords, isrn, department, etc... I would
just set them in the preamble. It is not pretty that way, but it works. I have
had to do similar things for other classes.

Alternatively, you should be able to insert a Tex code box at the beginning of
the Lyx document with the setupThesis code, at least you would be able to
easily view the information.

Here is a minimal example attached, in latex (not lyx), but the class
overwrites some things in Swedish when compiled. I do not know where you got
your class, but apparently it is Swedish?

As for the parts, chapters, sections, subsections, and other things besides
those listed in the \setupThesis command, they should work like normal within
Lyx. For example, looking at the example file given by the previously mentioned
website, “main.tex” they include the file “introduktion.tex” which simply
starts a chapter called “Introduktion” through the normal \chapter command

\chapter{Introduktion}\label{cha:intro}

This can be compared to Lyx by creating a chapter environment and using View -
> Source Pane and ensuring that Format is set to latex. If I insert a chapter
and type in “Introduction” Lyx shows in the source pane

\chapter{Introduction}

I could also insert a label at the end of the introduction text I typed called
“chap:Introduction” and refer to it later in the text, which would get me here

\chapter{Introduction\label{chap:Introduction}}

Close, and same effect as the example latex.
--
Respectfully,

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

On Sunday, November 29, 2015 04:10:14 AM Sajjad wrote:
> If you insert the following through LaTeX preamble how will it affect the
> environment combos at LyX interface where you can insert the
> title,author,section, etc.
>
> \setupThesis{author = {My name}, title = {My nice thesis}, city = {Important
> city}, year = 2015, type = phd}
>
> I hope that you understand my concern here. If you go to the upper
> left corner of the LyX interface you will see the environment combo.
> You can insert author,title,Abstract through
>
> the interface as well.
>
> Right now I am creating the title, author through the interface and
> the preview does not show the front page, front matter, and the
> Abstract does not show the roman
>
> numbering as shown in the pdf you mentioned. If I use setupThesis how
> can I supress the title, author element that shows up in the interface
> ? Should the interface
>
> not be adjusted accordingly to the document class that is currently loaded ?
>
>
>
> Thanks
>
> On Sat, Nov 28, 2015 at 10:54 PM, Sajjad <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 <return> 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
\documentclass[
  utf8,%     More capable input encoding than latin-1.
  % parskip,%  For vertical whitespace between paragraphs.  This comes down to more than just using parskip.sty, so it's better to use this class option.
  % S5MP % If you intend to really use margin paragraphs (not recommended!).
%  crop,%     Produce output with crop marks and paper size A4.  Liu-Tryck should like this.  Automatically adds information, including the physical page number, at the top of each page.
       %     Add option 'noInfo' to suppress the info at the top of each page when using option 'crop'.
  % Font options: 'kp' (default), 'times', 'lm'.  The KpFonts (loaded using 'kp'), is the most complete font among the provided options.  Among other, it supports slanted small caps.  See rtthesis.cls for more details regarding the font options.
  largesmallcaps,intlimits,widermath,% Good options to KpFonts.
  sharecounter,nobreak,definition=marks,%  See comments in the results chapter of this document for more information on these options!
  %numbers, % If you want to cite references by numbers, use this option.
  noparts% Use option 'noparts' if you do not make use of part divisions.
]{rtthesis}
\setupThesis{
  author={Robert},
  title={Investigations of a problem},
  subtitle={},
  year 20,
  month=4,
  day=9,
  type=msc,
  subject={Physics},
  division={Some division},
  department=isy,
  examiner={Some examiner},
  supervisor={My supervisor},
  keywords={problem, keyword},
  isrn=LiTH-ISY-EX-{}-YY/NNNN-{}-SE,
  url={http://urn.kb.se/resolve?urn=urn:nbn:se:liu:diva-XXXXX},
  dedication={To my greatest insperation}
}
%%% Tell \includegraphics where to search for files.
\graphicspath{{fig/}}

\begin{document}
\frontmatter
\maketitle
\begin{abstract}
  This is a small abstract
\end{abstract}
\mainmatter

And some stuff
\end{document}

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

Reply via email to