Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted by hellyeah ( 17 years ago )
% IUL Title Package
% Author: Gerd Sebastiani
% URL: www.forum.fset.de
%
% Usage: \usepackage{udotitle}
% Modifies titlepage to imitate UDO-Cover with IUL-Logo.
% Load in addition to titlepage.
% Required Input:
%  Type of your thesis (Assigment, Master's, Ph.D. ... ) by \thesistype{yourtype}
%  Title of your thesis by \title{yourtitle}
%   CAUTION: Very long titles (4 lines) may result in a pagebreak.
%    Either use a shorter title or decrease the fontsize
%  Author of the thesis by \author{yourname}
%  Immatriculation number by \matno{yourno}
%  Date of submission by \date{\today}
%  Names of Supervisors by \tutor{1st Supervisor}{2nd Supervisor}
%
%  See comments in the stylesheet to adjust the template to your needs

\usepackage{graphicx}
%\geometry{lmargin=.4in, rmargin=1in}

\usepackage{fancyhdr}

\newcommand{\thesistype}[1]{
 \def\@thesistype{#1}
 }
\def\@thesistype{
 \@latex@warning@no@line{Package `udotitle': No \noexpand\thesistype given}} 

\newcommand{\institute}[1]{
 \def\@institute{#1}
 }
\def\@institute{
 \@latex@warning@no@line{Package `udotitle': No \noexpand\institute given}}
  
\newcommand{\tutor}[2]{
  \def\@tutorfirst{#1}
  \def\@tutorsecond{#2}
  }
\def\@tutorfirst{
  \@latex@warning@no@line{Package `udotitle': No \noexpand\tutor given}}

\newcommand{\matno}[1]{
 \def\@matno{#1}
 }
\def\@matno{
 \@latex@warning@no@line{Package `udotitle': No \noexpand\matno given}}

\renewcommand{\maketitle}{
 \begin{titlepage}
 \thispagestyle{fancy}
 \renewcommand{\headrulewidth}{0.0pt}

 \begin{flushright}
  \vspace*{-5.5cm}{
  \includegraphics[width=3in,height=5in]{controller.png}}
  \end{flushright}

  \begin{center}
    {\sc
    % Change this for different kinds of reports (assignments ect.)
  {\Large \bf \sc \@thesistype \\}
  \vspace{36pt}

  {\LARGE \bf  \@title \\}     %%% title
  \vspace{48pt}
  }
  
  % Change this to use other institute
 % \includegraphics{./options/iul.png}\\
    \vspace{12pt}
    {\large \textbf{\@institute} \\}
    \vspace{48pt}

    {\large
    \textbf{Author:}\\
  \@author  \\           %%% author
    \vspace{12pt}

    \textbf{Immatriculation No:}\\
  \@matno  \\            %%% Matriculation No.
  \vspace{12pt}
  
  \textbf{Supervisors:}\\
    \@tutorfirst \\             %%% first tutor
    \@tutorsecond \\               %%% second tutor
    \vspace{12pt}

    \textbf{Date of Submission:}\\   
  \@date    \\  %%% Submission
  }
  \end{center}
  % Add UDO-Logo in footer (rather cumbersome to achieve...)
  \cfoot{}
  \addtolength{\headwidth}{\marginparsep}
 \addtolength{\headwidth}{\marginparwidth}
  \rfoot{\includegraphics{cs-smalllogo.png}}
 \end{titlepage}
 \addtolength{\headwidth}{-\marginparsep}
 \addtolength{\headwidth}{-\marginparwidth}
}
% Use this for an additional blank page
%\newpage
%\thispagestyle{empty}
%\newpage


\documentclass[12pt, a4paper]{report}

\usepackage[top=1in,right=1in,left=1in,bottom=1in]{geometry}
\usepackage{setspace}%enables double or single spacing as needed.
\usepackage{chicago}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{upquote}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{psboxit}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{fancybox}
\usepackage[calcwidth]{titlesec}
\usepackage{url}
\usepackage{comment}
\usepackage{color}
\usepackage{udotitle}

 \newenvironment{mycomment}%
 {\begin{quote}\small\itshape\bfseries}%
 {\end{quote}}
  \titleformat{\section}[hang]{\sffamily\bfseries}
{\Large\thesection}{12pt}{\Large}[{\titlerule[0.5pt]}]
\usepackage{udotitle}
%% first reset the headers and footers
\fancyhead{}
\fancyfoot{}
%% make the odd pages have the section name on the top right
\fancyhead[RO]{\sffamily\bfseries \rightmark}
%% make the even pages have the chapter name on the top left
\fancyhead[LE]{\sffamily\bfseries \leftmark}
%% page nums on the bottom in a nice box
% even side pages
\fancyfoot[LE]{\psboxit{box 0.8 setgray fill}
{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}
%% odd side pages
\fancyfoot[RO]{\psboxit{box 1 setgray fill}
{\hspace{\textwidth}\psboxit{box 0.8 setgray fill}
{\framebox[10mm][c]{\rule{0cm}{4mm}\color{black}{\bfseries \thepage}}}}}
%% make the bottom line above the page number box
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\footruleskip}{0mm}

%% bring the style into effect
%% (must come after all the fancyhead and fancyfoot stuff)
\pagestyle{fancy}

%% now redefine the plain style pages (chapter pages, contents pages)
%% to have the same page number stuff on the bottom
\fancypagestyle{plain}
\fancyhf{}



%% this next section (till \makeatother) makes sure that blank pages

%% are actually completely blank, cause they're not usually
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
 \hbox{}
 \vspace*{\fill}
 \thispagestyle{empty}
 \newpage
  \if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother

\def\tagform@#1{\maketag@@@{\cornersize{0.8}\ovalbox{
\ignorespaces\sffamily{#1}\unskip\@@italiccorr}}}
\renewcommand\chapterheadstartvskip{\vspace*{-5\baselineskip}}



 \doublespacing

\addto\captionsenglish{\def\refname{Reference-List}}
\thesistype{undergraduate thesis}
\title{Mathematical Approaches for Control System}
\institute{Bilgi University Computer Science}
\author{Berat Emre Nebioglu}
\date{\today}
\tutor{Elif Pınar Hacıbeyoglu}{\}
\matno{\}

 \begin{document}

\renewcommand{\thesection}{\arabic{section}}

\maketitle
\section{Problem statement}

Elevators, airplanes, and so many others are part of our everyday lifes.
\end{document}

log file

LaTeX Info: Redefining \[ on input line 2666.
LaTeX Info: Redefining \] on input line 2667.
)
("C:\Program Files\MiKTeX 2.8\tex\latex\fancybox\fancybox.sty"
Package: fancybox 2000/09/19 1.3

Style option: `fancybox' v1.3 <2000/09/19> (tvz)
\@fancybox=\box29
\shadowsize=\dimen121
\@Sbox=\box30
\do@VerbBox=\toks26
\the@fancyput=\toks27
\this@fancyput=\toks28
\EndVerbatimTokens=\toks29
\Verbatim@Outfile=\write3
\Verbatim@Infile=\read1
) ("C:\Program Files\MiKTeX 2.8\tex\latex\titlesec\titlesec.sty"
Package: titlesec 2007/08/12 v2.8 Sectioning titles
\ttl@box=\box31
\beforetitleunit=\skip56
\aftertitleunit=\skip57
\ttl@plus=\dimen122
\ttl@minus=\dimen123
\ttl@toksa=\toks30
\titlewidth=\dimen124
\titlewidthlast=\dimen125
\titlewidthfirst=\dimen126
)
("C:\Program Files\MiKTeX 2.8\tex\latex\ltxmisc\url.sty"
\Urlmuskip=\muskip11
Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.
)
("C:\Program Files\MiKTeX 2.8\tex\latex\comment\comment.sty"
\CommentStream=\write4

Excluding comment 'comment')
("C:\Program Files\MiKTeX 2.8\tex\latex\graphics\color.sty"
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)

("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 130.
)
("C:\Documents and Settings\Administrator\Desktop\emre\452\udotitle.sty.tex")
Runaway argument?
{ \begin {titlepage} \thispagestyle {fancy} \renewcommand {\headrulewidth \ETC.
! File ended while scanning use of \@argdef.
<inserted text> 
                \par 
l.22 
     
? 

Package Fancyhdr Warning: \fancyhead's `E' option without twoside option is use
less on input line 35.


Package Fancyhdr Warning: \fancyfoot's `E' option without twoside option is use
less on input line 39.


! LaTeX Error: \chapterheadstartvskip undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.73 \renewcommand\chapterheadstartvskip
                                        {\vspace*{-5\baselineskip}}
? 
)
Runaway argument?
{\} \matno {\} \par \begin {document} \renewcommand {\thesection }{\arabic \ETC
.
! File ended while scanning use of \tutor.
<inserted text> 
                \par 
<*> ...strator/Desktop/emre/452/progressreport.tex
                                                  
? 

*
(Please type a command or say `\end')
*
(Please type a command or say `\end')
*
(Please type a command or say `\end')
*
! Emergency stop.
<*> 
    
End of file on the terminal!

 
Here is how much of TeX's memory you used:
 3574 strings out of 495285
 46900 string characters out of 3180315
 125933 words of memory out of 3000000
 6729 multiletter control sequences out of 15000+200000
 4702 words of font info for 16 fonts, out of 3000000 for 9000
 14 hyphenation exceptions out of 8191
 27i,0n,43p,405b,37s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

 

Revise this Paste

Parent: 13610
Children: 13613
Your Name: Code Language: