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 <[email protected]> wrote:

> On 04/08/2010 03:29 PM, Sajjad wrote:
>
>> On Thu, Apr 8, 2010 at 4:24 AM, Julien Rioux<[email protected]
>> >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}{\relax}%
\newcommand...@ll}{\relax}\newcommand*{\@lr}{\relax}%
\newcommand...@info}{\relax}%
\DeclareOption{crop}{% To get crop marks
  \renewcommand...@ul}{\begin{picture}(0,0)%
      \unitlength1mm%
      \thinlines%
      \put(0,0){\line(-5,0){2}}%
      \put(0,0){\line(0,5){2}}%
    \end{picture}}%
  \renewcommand...@ur}{\begin{picture}(0,0)%
      \unitlength1mm%
      \thinlines%
      \put(0,0){\line(5,0){2}}%
      \put(0,0){\line(0,5){2}}%
    \end{picture}}%
  \renewcommand...@ll}{\begin{picture}(0,0)%
      \unitlength1mm%
      \thinlines%
      \put(0,0){\line(-5,0){2}}%
      \put(0,0){\line(0,-5){2}}%
    \end{picture}}%
  \renewcommand...@lr}{\begin{picture}(0,0)%
    \unitlength1mm%
    \thinlines%
    \put(0,0){\line(5,0){2}}%
    \put(0,0){\line(0,-5){2}}%
  \end{picture}}%
\PassOptionsToPackage{axes}{crop}}

\DeclareOption{info}{%
  \renewcommand...@info}{{%
    \global\advance\c...@index\@ne%
    \def\x{\discretionary{}{}{\hbox{\kern.5em---\kern.5em}}}%
    \advance\paperwidth-2...@%
    \di...@5mm%
    \ifx\c...@pagecolor\@empty%
    \else%
      \advance\di...@\crop@overlap%
    \fi%
    \...@xt@\...@{%
      \hss%
      \vbox t...@{%
        \centering%
        \hsize\paperwidth%
        \vss%
        \normalfont%
        \small%
        \c...@font{%
          \texttt{\jobname}:~\the\year-\...@digits{\the\month}%
          -\...@digits{\the\day}\:\:%
          \c...@time\x\thepage(\the\c...@index)\strut%
        }%
        \vskip\di...@%
      }%
      \hss
    }%
  }}%
}

\DeclareOption{noCrop}{%
  \renewcommand...@ul}{\relax}\renewcommand*{\@ur}{\relax}%
  \renewcommand...@ll}{\relax}\renewcommand*{\@lr}{\relax}%
  \renewcommand...@info}{\relax}%
}

%%%%%%%%%%%%%%%%%%%%%
%%%  PAGE LAYOUT  %%%
%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\useHyperRef}{%
  \liuthe...@hyperreftrue%
  \let\pdfbookmark=\undefined%
  \usepackage[hyperindex, bookmarks,%
              plainpages=false, naturalnames=true]{hyperref}[2000/09/29]}
\PassOptionsToPackage{off, a4, center}{crop} % S5 centered on A4 with crops
\DeclareOption{print}{% S5 format
  \PassOptionsToPackage{off, noaxes, width=165mm, height=240mm}{crop}%
  \ExecuteOptions{noCrop}%
}

\DeclareOption{pdfRelease}{% Release in pdf format without copyright notice
  \PassOptionsToPackage{off, noaxes, a4, center}{crop}%
  \ExecuteOptions{noCrop}%
  \renewcommand*{\useHyperRef}{%
    \liuthe...@hyperreftrue%
    \let\pdfbookmark=\undefined%
    \usepackage[hyperindex, bookmarks,%
                plainpages=false, naturalnames=true]{hyperref}[2000/09/29]}
}

\DeclareOption{ePress}{% S5 centered on A4
  \AtEndDocument{\clearemptydoublepage\makeCopyright}%
  \ExecuteOptions{pdfRelease}%
}

\DeclareOption{draft}{% S5 centered on A4 DRAFT
  \PassOptionsToPackage{off, a4, center}{crop} % S5 centered on A4 with crops
  \ClassInfo{liuthesis}{This is a DRAFT mode and should hence NOT be
    used for other purposes. Pictures are blank and overful hboxes
    stand out.}
}
\AtEndOfClass{%
  \setlength{\marginparwidth}{\oddsidemargin}%
  \addtolength{\marginparwidth}{-\marginparsep}%
  \addtolength{\marginparwidth}{...@}%
}
\DeclareOption*{\InputIfFileExists{\CurrentOption.ltd}%
  {}{\PassOptionsToClass{\CurrentOption}{book}\OptionNotUsed}}%
\ProcessOptions\relax

\ifx\the...@divtag\relax
  \ClassError{liuthesis}{No division definition found.}
\else
  \ClassInfo{liuthesis}{Loading division definition \the...@divtag.}
\fi

\LoadClass[twoside]{book}
\newcommand*\clearemptydoublepage{\clearpage...@twoside \ifod...@page\else
  \thispagestyle{empty}\hbox{}\newpage...@twocolumn\hbox{}\newpage\fi\fi\fi}
\DeclareRobustCommand\em%
        {...@nomath\em \ifdim \fontdim...@ne\font >\z@
                       \upshape \else \slshape \fi}
\RequirePackage{graphicx}
\RequirePackage[dvips=false, pdftex=false, vtex=false,%
  twoside, papersize={165mm,240mm}, body={125mm,195mm},%
  bindingoffset=4mm, marginparsep=3mm, portrait,%
  twocolumn=false, vmarginratio={4:5}]{geometry}[2002/07/08]

\RequirePackage{crop}[2001/11/16]
\RequirePackage[intlimits]{amsmath}
\RequirePackage{amsfonts, amssymb}
\cropde...@info]{\@ul...@ur}{\@ll...@lr}{liuthesiscrop}
\crop[liuthesiscrop,font=\mdseries\upshape\scriptsize]
\newcommand*{\ifLanguageInUse}[1]{%
  \expandafter\ifx\csname l...@#1\endcsname\relax
  \expandaft...@secondoftwo
  \else
  \...@afterfi{\ifnum\csname l...@#1\endcsname=\language
    \expandaft...@firstoftwo
    \else
    \expandaft...@secondoftwo
    \fi}%
  \fi}

%%%%%%%%%%%%%%%%%%%%%%%%
%%        Info        %%
%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand*{\author}[1]{\renewcommand...@author}{#1}%
  \ifliuthe...@hyperref\hypersetup{pdfauthor={#1}}\fi}%
\newcommand*{\the...@day}{%
  \...@latex@warn...@no@line{No \noexpand\thesisDate given}}%
\newcommand*{\thesisDate}[3]{%
  \newcommand*{\the...@month}{#1}%
  \renewcommand*{\the...@day}{#2}%
  \newcommand*{\the...@year}{#3}%
}
\newcommand*{\the...@division}{%
  \...@latex@warn...@no@line{No \noexpand\thesisDivision given}}%
\newcommand*{\thesisdivision}[1]{\renewcommand*{\the...@division}{#1}}%
\newcommand*{\the...@subject}{%
  \...@latex@warn...@no@line{No \noexpand\subject given}}%
\newcommand*{\subject}[1]{\renewcommand*{\the...@subject}{#1}%
  \ifliuthe...@hyperref\hypersetup{pdfsubject={#1}}\fi}%
\newcommand*{\the...@no}{%
  \...@latex@warn...@no@line{No \noexpand\thesisNo given}}%
\newcommand*{\thesisno}[1]{\renewcommand*{\the...@no}{#1}}%
\renewcommand*{\title}[2]{\newcommand*{\...@title}{#1}%
  \renewcommand...@title}{#2}%
  \ifliuthe...@hyperref%
  \ifLanguageInUse{english}{\hypersetup{pdftitle={#2}}}%
  {\hypersetup{pdftitle={#1}}}\fi}%
\newcommand*{\...@b}{\@la...@warning@n...@line{no \noexpand\URL given}}%
\newcommand*{\...@a}{}%
\newcommand*{\URL}[2][]{%
  \renewcommand*{\...@a}{#1}\renewcommand*{\url@b}{#2}}%
\newcommand*{\keywords}[1]{\newcommand...@keywords}{#1}%
  \ifliuthe...@hyperref\hypersetup{pdfkeywords={#1}}\fi}%
\newcomman...@abstract}{%
  \...@latex@warn...@no@line{No \noexpand\abstract given}}%
\newcommand{\abstract}[2][]{%
  \renewcomman...@abstract}{\ignorespacesafterend\noindent #2\unskip}%
  \newcommand{\...@abstract}{\ignorespacesafterend\noindent #1\unskip}}%
\newcomman...@acknowledgements}{%
  \...@latex@warn...@no@line{No \noexpand\acknowledgements given}}%
\newcommand{\acknowledgements}[1]{%
  \renewcomman...@acknowledgements}{%
    \ignorespacesafterend\noindent#1\unskip}}%
\newcommand...@supervisor}{%
  \...@latex@warn...@no@line{No \noexpand\supervisor given}}%
\newcommand*{\supervisor}[1]{%
  \renewcomman...@supervisor}{\ignorespaces#1\ignorespaces}}%
\newcommand...@examiner}{%
  \...@latex@warn...@no@line{No \noexpand\examiner given}}%
\newcommand*{\examiner}[1]{%
  \renewcomman...@examiner}{\ignorespaces#1\ignorespaces}}
\newcommand*{\AND}{\\\>\bfseries\ignorespaces}%
\newcommand*{\AT}{\\\>\>\small\ignorespaces}%

%%%%%%%%%%%%%%%%%%%%%%%%
%%    Library page    %%
%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\makeLibraryPage}{%
  \cleardoublepage \thispagestyle{empty}%
  \pdfbookmark[1]{Library Page}{LibraryPage}%
  \enlargethispage*{27mm} {\centering%
  \vspace*{-11mm}
  \hspace*{3mm}%
  \makebox...@][l]{%
    \begin{minipage}[t][212mm]{126mm}%
      \scriptsize \setlength{\unitlength}{1mm}%
      \fontsize{7}{...@} \selectfont%
      \begin{picture}(126,212)(0,0)%
        %% Department and division
        \put(0,190){\makebox...@][l]{\framebox(92,22){}}}%
        \put(1,191){\includegraphics[width=20mm]{LiTH_sigill_sv}}%
        \put(25,209){\parbox[t]{5cm}{\textbf{Avdelning, Institution}\\%
            Division, Department}}%
        \put(28,197){\parbox[c]{64mm}{\the...@division\\\@address}}%
        %% Date
        \put(93,190){\makebox...@][l]{\framebox(33,22){}}}%
        \put(94,209){\parbox[t]{5cm}{\textbf{Datum}\\%
            Date}}%      % Must be Swedish style
        \put(95,197){\the...@year-%
          \ifnum\the...@month<10 0\fi\the...@month-%
          \ifnum\the...@day<10 0\fi\the...@day}%
        %% Language
        \put(0,157){\makebox...@][t]{\framebox(30,32){}}}%
        \put(1,186){\parbox[t]{3cm}{\textbf{Sprk}\\Language}}%
        \put(1,178){$\Box$ Svenska/Swedish}%
        \put(1,174){$\Box$ Engelska/English}%
        \put(1,162){$\Box$} \put(5,162){\line(1,0){20}}%
        \ifLanguageInUse{english}{\put(1,174){$\boxtimes$}}{%
          \ifLanguageInUse{swedish}{\put(1,178){$\boxtimes$}}{}}%
        %% Report category
        \put(31,157){\makebox...@][t]{\framebox(30,32){}}}%
        \put(32,186){\parbox[t]{5cm}{\textbf{Rapporttyp}\\Report category}}%
        \put(32,178){$\Box$ Licentiatavhandling}%
        \put(32,174){$\Box$ Examensarbete}%
        \put(32,170){$\Box$ C-uppsats}%
        \put(32,166){$\Box$ D-uppsats}%
        \put(32,162){$\Box$ vrig rapport}%
        \put(32,158){$\Box$} \put(35,158){\line(1,0){20}}%
        \put(32,174){$\boxtimes$}  % set kind of report
        %% URL
        \put(0,143){\makebox...@][t]{\framebox(61,13){}}}%
        \put(1,153){\textbf{URL fr elektronisk version}}%
        \put(3,148){\begingroup%
          \sbo...@tempboxa}{\mbox{\url@a}}%
          \fontsize{5}{...@} \selectfont%
          \ifdim\...@tempboxa > \...@%
            \parbox[c]{58mm}{\href{\...@a}{\texttt{\url@a}}\\%
              \href{\...@b}{\texttt{\url@b}}}%
          \else%
            \parbox[c]{58mm}{\href{\...@b}{\texttt{\url@b}}}%
          \fi\endgroup}%
        %% ISBN etc
        \put(62,143){\makebox...@][t]{\framebox(64,46){}}}%
        \put(63,186){\textbf{ISBN}}%
        \put(63,181){\line(1,0){62}}\put(69,182){---}%
        \put(63,178){\textbf{ISRN}}%
        \put(63,171){\line(1,0){62}} \put(70,174){\the...@no}%
        \put(63,168){\parbox[t]{5cm}{\textbf{Serietitel och serienummer}\\%
            Title of series, numbering}}%
        \put(102,168){\textbf{ISSN}}%
        \put(102,163){\line(1,0){23}} \put(102,164){---}%
        %% Title
        \put(0,108){\makebox...@][t]{\framebox(126,34){}}}%
        \put(1,138){\parbox[t]{5cm}{\textbf{Titel}\\Title}}%
        \put(17,138){\parbox[t]{100mm}{\...@title\par\smallskip\@title}}%
        \put(1,117){\parbox[t]{5cm}{\textbf{Frfattare}\\Author}}%
        \put(17,117){...@author}%
        %% Abstract
        \put(0,12){\makebox...@][t]{\framebox(126,95){}}}%
        \put(1,104){\parbox[t]{5cm}{\textbf{Sammanfattning}\\Abstract}}%
        \put(17,96){\parbox[t]{100mm}{%
            \setlength{\parindent}{1.5e...@abstract}}%
        %% Keywords
        \put(0,0){\makebox...@][t]{\framebox(126,11){}}}%
        \put(1,8){\parbox[t]{5cm}{\textbf{Nyckelord}\\Keywords}}%
        \put(17,5){\parbox[t]{100mm...@keywords}}
      \end{picture}%
    \end{minipage}%
  }}%
  \clearemptydoublepage%
}

%%%%%%%%%%%%%%%%%%%%%%%%
%%  Acknowledgements  %%
%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand*{\makeAcknowledgements}{%
  \clearemptydoublepage%
  \pdfbookmark[1]{Acknowledgments}{Acknowledgments}%
  \chapter*{\acknowledgementsname}%
  \...@acknowledgements%
  \clearemptydoublepage%
}

%%%%%%%%%%%%%%%%%%%%%%%%
%%      Abstract      %%
%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{...@twoabstractpages}{}
\newcommand{\twoAbstractPage}{%
  \renewcommand{...@twoabstractpages}{\clearemptydoublepage}}
\newcommand*{\makeAbstract}{%
  \clearemptydoublepage \thispagestyle{plain}%
  \pdfbookmark[1]{Abstract}{Abstract}%
  \begingroup
    \selectlanguage{english}
    \vspace*{-3\baselineskip}%
    \...@makeschapterhead{\abstractname}  % MIGHT CHANGE!!!
    \vspace*{-1.5\baselineskip}%
    \...@abstract%
  \endgroup
  \vfill \sbo...@tempboxa}{\mbox{\swe@abstract}}%
  \ifdim\...@tempboxa > \...@%
    \...@twoabstractpages
    \begingroup
      \selectlanguage{swedish}
      \thispagestyle{plain}
      \vspace*{-3\baselineskip}%
      \...@makeschapterhead{\abstractname} %MIGHT CHANGE!!!
      \vspace*{-1.5\baselineskip}%
      \...@abstract%
    \endgroup
  \fi%
  \vfill \clearemptydoublepage%
}

%%%%%%%%%%%%%%%%%%%%%%%%
%%  Copyright notice  %%
%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand*{\makeCopyright}{\begingroup%
  \cleardoublepage \thispagestyle{empty}%
    \pdfbookmark[-1]{Copyright}{Copyright}%%
  \selectlanguage{swedish}%
  \vspace*{-22mm}%
  \setlength\parskip{0\p@ \...@plus \...@} \setlength{\parindent}{1...@}%
  \hfill%
  \includegraphics[height=18mm]{LinkUniv_staende_pms}%
  %
  \vspace{3\baselineskip} \selectlanguage{swedish}%
  \par\noindent{\fontsize{12pt}{14pt}\selectfont%
    \normalfont\large\bfseries Upphovsrtt}\\[1.5ex]
  \fontsize{10pt}{12pt}\selectfont
  Detta dokument hlls tillgngligt p Internet --- eller dess
  framtida ersttare --- under 25 r frn publiceringsdatum under
  frutsttning att inga extraordinra omstndigheter uppstr.
  \par
  Tillgng till dokumentet innebr tillstnd fr var och en att lsa,
  ladda ner, skriva ut enstaka kopior fr enskilt bruk och att anvnda
  det ofrndrat fr icke\-kommersiell forskning och fr undervisning.
  verfring av upphovsrtten vid en senare tidpunkt kan inte
  upphva detta tillstnd. All annan anvndning av dokumentet krver
  upphovsmannens medgivande. Fr att garantera ktheten, skerheten
  och tillgngligheten finns det lsningar av teknisk och
  administrativ art.
  \par
  Upphovsmannens ideella rtt innefattar rtt att bli nmnd som
  upphovsman i den omfattning som god sed krver vid anvndning av
  dokumentet p ovan be\-skrivna stt samt skydd mot att dokumentet
  ndras eller presenteras i sdan form eller i sdant sammanhang som
  r krnkande fr upphovsmannens litterra eller konstnrliga
  anseende eller egenart.
  \par
  Fr ytterligare information om Linkping University Electronic Press
  se frlagets hemsida
  \href{http://www.ep.liu.se/}{\texttt{http://www.ep.liu.se/}}
  %
  \vspace*{4\baselineskip}%
  \selectlanguage{english}%
  \par\noindent{\fontsize{12pt}{14pt}\selectfont%
    \normalfont\large\bfseries Copyright}\\[1.5ex]
  \fontsize{10pt}{12pt}\selectfont
  The publishers will keep this document online on the Internet --- or
  its possible replacement --- for a period of 25 years from the date
  of publication barring exceptional circumstances.
  \par
  The online availability of the document implies a permanent permission
  for anyone to read, to download, to print out single copies for his/her
  own use and to use it unchanged for any non-commercial research and
  educational purpose. Subsequent transfers of copyright cannot revoke
  this permission. All other uses of the document are conditional on the
  consent of the copyright owner. The publisher has taken technical and
  administrative measures to assure authenticity, security and
  accessibility.
  \par
  According to intellectual property law the author has the right to
  be mentioned when his/her work is accessed as described above and to
  be protected against infringement.
  \par
  For additional information about the Linkping University Electronic
  Press and its procedures for publication and for assurance of
  document integrity, please refer to its www home page:
  \href{http://www.ep.liu.se/}{\texttt{http://www.ep.liu.se/}} \par
       {\vspace*{\baselineskip} \flushright \textcopyright\ \...@author
  \clearpage} \endgroup
}

%%%%%%%%%%%%%%%%%%%%%%%%
%%    Environments    %%
%%%%%%%%%%%%%%%%%%%%%%%%

\RequirePackage{theorem}
\theorembodyfont{\normalfont\slshape}
\newtheorem{theorem}{\theoremname}[chapter]
\newtheorem{lemma}{\lemmaname}[chapter]
\newtheorem{definition}{\definitionname}[chapter]
\newtheorem{corollary}{\corollaryname}[chapter]

%%% Proof%%%
\newenvironment{proof}[1][]{
    \sbo...@tempboxa}{\mbox{#1}}%
    \par\noindent%
    \ifdim\...@tempboxa > \...@%
      \textbf{\proofname~(#1)}%
    \else%
      \textbf{\proofname}%
    \fi%
    \begingroup\small%
  }%
  {%
    \endgroup%
    \hspace*{\stretch{ 1}}$\Box$\par\bigskip%
    \ignorespacesafterend%
}

%%% Example %%%
\DeclareRobustCommand*{\listofexamples}{%
  \section*{\listexamplename}%
  \...@starttoc{xmp}%
}
\newcommand*...@example}{\l@figure}%
\newcounter{Example}[chapter]%
\renewcommand*{\theExample}{\thechapter.\arabic{Example}}%
\newlength{\examplelinewidth}
\setlength{\examplelinewidth}{.8pt}
\newenvironment{example}[1][]{%
  \refstepcounter{Example}%
  \sbo...@tempboxa}{\ignorespaces#1\unskip}%
  \ifdim \...@tempboxa>\...@%
    \sbo...@tempboxa}{\textbf{%
        \thinspace\ignorespaces%
        \examplename\unskip~\theExample:~#1\thinspace}}%
  \else%
    \sbo...@tempboxa}{\textbf{\thinspace\examplename~\theexample\thinspace}}%
  \fi%
  \addcontentsline{xmp}{example}{\protect\numberline{\theExample}#1}%
  \...@example%
}%
{...@endexample}

\newenvironment{example*}[1][]{%
  \sbo...@tempboxa}{\ignorespaces#1\unskip}%
  \ifdim \...@tempboxa>\...@%
    \sbo...@tempboxa}{\textbf{%
        \thinspace\ignorespaces\examplename:~#1\thinspace}}%
  \else%
    \sbo...@tempboxa}{\textbf{\thinspace\examplename\thinspace}}%
  \fi%
  \...@example%
}%
{...@endexample}

\newcomman...@example{%
  \setlengt...@tempskipa}{\linewidth}%
  \addtolengt...@tempskipa}{-\wd\@tempboxa}%
  \addtolengt...@tempskipa}{-1em}%
  \pagebreak[2]%
  \strut\\[.5\baselineskip]%
  \hspace*{-\examplelinewidth}\hspace*{-.5em}%
  \rule[\examplelinewidth]{\examplelinewidth}{1ex}%
  \rule[1ex]{2em}{\examplelinewidth}%
  \raisebox{.6ex}{\b...@tempboxa}%
  \rule[1ex...@tempskipa}{\examplelinewidth}%
  \rule[\examplelinewidth]{\examplelinewidth}{1ex}%
  \nopagebreak[4]\hspace*{-\examplelinewidth}\hspace*{-.5em}%
  \vspace*{-1.5ex}%
  \begin{trivlist}\nopagebreak[4]\it...@afterindentfalse%
}

\newcomman...@endexample{%
  \nopagebreak[4]\unskip\end{trivlist}\unskip%
  \nopagebreak[4]\vspace*{-1ex}%
  \hspace*{-\examplelinewidth}\hspace*{-.5em}%
  \rule{\examplelinewidth}{1ex}\rule{\linewidth}{\examplelinewidth}%
  \rule{1em}{\examplelinewidth}\rule{\examplelinewidth}{1ex}%
  \hspace*{-\examplelinewidth}\hspace*{-.5em}\\[.5\baselineskip]%
  \pagebreak[2]%
  \ignorespacesafterend%
}

%%%%%%%%%%%%%%%%%%%%%%%%
%%      Headings      %%
%%%%%%%%%%%%%%%%%%%%%%%%

\DeclareRobustCommand*{\chaptermark}[1]{\markboth{#1}{}}
\DeclareRobustCommand*{\sectionmark}[1]{\markright{\thesection~#1}{}}
\renewcommand*{...@headings}{%
  \renewcommand...@oddfoot}{}%
  \renewcommand...@evenfoot}{}%
  \renewcommand...@evenhead}{%
    \setlengt...@tempskipa}{\textwidth}%
    \addtolengt...@tempskipa}{-.25em}%
    \parbo...@tempskipa}{\bfseries \thepage\hfill\ \ \leftmark%
      \vspace*{...@}\hrule}}%
  \renewcommand...@oddhead}{%
    \setlengt...@tempskipa}{\textwidth}%
    \addtolengt...@tempskipa}{-.25em}%
    \parbo...@tempskipa}{\bfseries\rightmark\hfill\ \ \thepage
      \vspace*{...@}\hrule}%
}}

%%%%%%%%%%%%%%%%%%%%%%%%
%%    Bibliography    %%
%%%%%%%%%%%%%%%%%%%%%%%%

\renewenvironment{thebibliography}[1]{%
  \chapter*{\bibname}%
  \phantomsection\addcontentsline{toc}{chapter}{\bibname}%
  \markboth{\bibname}{\bibname}%
  \lis...@biblabel{\@arabi...@enumiv}}%
  {\settowidth{\labelwidth...@biblabel{#1}}%
            \setlength{\leftmargin}{\labelwidth}%
            \addtolength{\leftmargin}{\labelsep}%
            \...@openbib@code%
            \usecounter{enumiv}%
            \le...@enumiv\@empty%
            \renewcommand\theenumi...@arabic\c@enumiv}}%
      \sloppy%
      \clubpenalty4000%
      \...@clubpenalty \clubpenalty%
      \widowpenalty4000%
      \sfcode`...@m}%
{\d...@noitemerr%
  {...@latex@warning{Empty `thebibliography' environment}}%
  \endlist}%

%%%%%%%%%%%%%%%%%%%%%%%%
%%       Index        %%
%%%%%%%%%%%%%%%%%%%%%%%%

\renewenvironment{theindex}
               {...@twocolumn
                  \...@restonecolfalse
                \else
                  \...@restonecoltrue
                \fi
                \columnseprule \z@
                \columnsep 35\p@
                \twocolum...@makeschapterhead{\indexname}]%
                \phantomsection\addcontentsline{toc}{chapter}{\indexname}%
                \markboth{\indexname}{\indexname}%
                \thispagestyle{plain}\setlength{\parindent}...@}%
                \setlength{\parskip}{\z@ \...@plus ....@}%
                \let\it...@idxitem}%
               {...@restonecol\onecolumn\else\clearpage\fi}

%%%%%%%%%%%%%%%%%%%%%%%%
%%     Sectioning     %%
%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\frontmatter}{%
  \thispagestyle{empty}%
  \cleardoublepage%
  \...@mainmatterfalse%
  \pagenumbering{roman}}
\renewcommand{\mainmatter}{%
  \thispagestyle{empty}%
  \cleardoublepage%
  \pagestyle{headings}
  \...@mainmattertrue%
  \pagenumbering{arabic}}
\renewcommand*{\backmatter}{%
  \...@openright%
    \clearemptydoublepage%
  \else%
    \clearpage%
  \fi%
  \...@openrightfalse}
\newcommand{\makeFrontMatter}[1][]{%
  \makeFrontPage\thispagestyle{empty}\clearemptydoublepage%
  \frontmatter\makeTitlePage \thispagestyle{empty}\clearemptydoublepage%
  \makeLibraryPage\thispagestyle{empty}\clearemptydoublepage%
  \pagestyle{headings}\makeAbstract%
  \thispagestyle{empty}\clearemptydoublepage%
  \makeAcknowledgements\thispagestyle{empty}\clearemptydoublepage%
  \tableofcontents%
  #1%
  \clearemptydoublepage\mainmatter%
}

%%%%%%%%%%%%%%%%%%%%%%%%
%%       Other        %%
%%%%%%%%%%%%%%%%%%%%%%%%

\DeclareRobustCommand*{\tableofcontents}{%
  \chapter*{\contentsname\markboth{\contentsname}{\contentsname}}%
  \...@starttoc{toc}%
}
\DeclareRobustCommand*{\listoffigures}{%
  \section*{\listfigurename}%
  \...@starttoc{lof}%
}
\DeclareRobustCommand*{\listoftables}{%
  \section*{\listtablename}%
  \...@starttoc{lot}%
}


\renewcommand\chapter{...@openright\clearemptydoublepage\else\clearpage\fi
  \thispagestyle{plain}%
  \glob...@topnum\z@
  \...@afterindentfalse
  \secd...@chapter\@schapter}

\renewcomman...@makecaption}[2]{%
  \vspace{\abovecaptionskip}
  \begin{small}
    \sbo...@tempboxa}{\textbf{#1.} #2}
    \ifdim \...@tempboxa > \hsize
      \textbf{#1.} #2\par
    \else
      \global \...@minipagefalse
      \parbox{\hsize}{\centering \usebo...@tempboxa}\hfil}
    \fi
  \end{small}
  \vspace{\belowcaptionskip}
}

\renewcommand{\footnoterule}{\vspace*{-...@}
  \noindent\rule{.5\textwidth}{....@}\vspace*{2.6\p@}
}
\AtBeginDocument{\pdfbookmark[0]{Preface}{Preface}}
\newcommand*\makeFrontPage{%
  \setcounter{page}{-1}%
  \begingroup\normalfont%
  \cleardoublepage%
  \pdfbookmark[1]{Front Page}{FrontPage}%
  \thispagestyle{empty}%
  \vspace*{-17mm}\hspace*{-13mm}%
  \raisebox...@}[\z@]...@]{%
    \begin{minipage}[t][230mm]{145mm}%
      \...@makefrontpage
    \end{minipage}}%
  \endgroup\clearemptydoublepage%
}
\newcommand*\makeTitlePage{%
  \cleardoublepage \thispagestyle{empty} \normalfont%
  \pdfbookmark[1]{Title Page}{TitlePage}%
  \vspace*{-17mm}\hspace*{-13mm}%
  \raisebox...@}[\z@]...@]{%
    \begin{minipage}[t][220mm]{145mm}%
      \...@maketitlepage%
    \end{minipage}}%
  \clearemptydoublepage%
}






%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
\endinput
%%
%% End of file `liuthesis.cls'.

Attachment: liuthesis.layout
Description: Binary data

Reply via email to