Page LayoutPage number is cropped; almost invisible!

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
feryee
Posts: 20
Joined: Sun Aug 09, 2015 12:57 pm

Page number is cropped; almost invisible!

Post by feryee »

|Hi,
I am now writing my thesis in latex and have very strange problem that maybe you can help me to resolve it. In the process of creating Pdf output (first i get ps due to my figures and then ps to pdf as it would end up giving error when i go directly from dvipdf). The problem is with page number. As i applied the margin guidlines In the style file (available at the bottom)
margin.png
margin.png (32.6 KiB) Viewed 5321 times


After compile , I get a sample page output as follows:
sample page.png
sample page.png (114.77 KiB) Viewed 5321 times



As you may see, the page number is cropped and almost invisible. Even when i try take print and set the paper size to to 21cm by 29.7cm (A4), i still unable to see the page number. I would be appreciated if you can possibly help me with that.

Best


Code: Select all

%style file
===============================================================
%%
%%
%%
%% Copying of part or all of any file in the fbe_tez.sty package
%% is allowed under the following conditions only:
%% (1) You may freely distribute unchanged copies of the files.
%% Please include the documentation when you do so.
%% (2) You may modify a renamed copy of this file, but only for
%% personal use.
%% (3) You may copy fragments from the files, for personal use
%% or for use in a macro package for distribution, as long
%% as credit is given where credit is due.
%%
%% You are NOT ALLOWED to take money for the distribution or
%% use of these and associated files or modified versions or
%% fragments thereof.
%%
%% Please report any bugs or suggestions to
%%
%%
%%
\typeout{Thesis style for IGSR, Eastern University, Version 1.0}
%
% Definitions for title and approval pages
%
\def\degree#1{\gdef\@degree{#1}}
%\def\program#1{\gdef\@program{#1}}
\def\Dept#1{\gdef\@Dept{#1}}
\def\subyear#1{\gdef\@subyear{#1}}
\def\InstituteDirector#1{\gdef\@InstituteDirector{#1}}
\def\DeptChair#1{\gdef\@DeptChair{#1}}
\def\cosuperi#1{\gdef\@cosuperi{#1}}
\def\cosuperii#1{\gdef\@cosuperii{#1}}
\def\examineri#1{\gdef\@examineri{#1}}
\def\examinerii#1{\gdef\@examinerii{#1}}
\def\supervisor#1{\gdef\@supervisor{#1}}
\def\examineriii#1{\gdef\@examineriii{#1}}
\def\examineriv#1{\gdef\@examineriv{#1}}
\def\examinerv#1{\gdef\@examinerv{#1}}
\def\dateofapproval#1{\gdef\@dateofapproval{#1}}
%
\global\let\@degree\empty
%\global\let\@program\empty
\global\let\@Dept\empty
\global\let\@InstituteDirector\empty
\global\let\@DeptChair\empty
\global\let\@cosuperi\empty
\global\let\@cosuperii\empty
\global\let\@examineri\empty
\global\let\@examinerii\empty
\global\let\@supervisor\empty
\global\let\@examineriii\empty
\global\let\@examineriv\empty
\global\let\@examinerv\empty
\global\let\@examinervi\empty
\global\let\@dateofapproval\empty
\def\nyear{\number\year}
\def\nmonth{\number\month}
\global\let\@subyear\nyear
\global\let\@submonth\nmonth
%
% Other definitions
%
\xdef\@singlespaced{1}
\xdef\@onehalfspaced{1.5}
%
\newlength{\insd}
\newlength{\dc}
\newlength{\dpt}
\newlength{\spv}
\newlength{\ei}
\newlength{\csi}
\newlength{\csii}
\newlength{\eii}
\newlength{\eiii}
\newlength{\eiv}
\newlength{\ev}
\let\@app\empty
\newcounter{thsfootcnt}
%
% Title page
%
\newcommand\uptitle{
\ifx\@degree\empty \@@warning{No \string\degree\space given} \fi
\null
\vspace*{-45pt}
\let\baselinestretch\@singlespaced{\fontsize{18}{1}{\textbf{\@title}} \\%
\vskip 160pt
\fontsize{16}{1}{\textbf{\@author}} \\
\vskip 110pt
\large{Submitted to the\\Institute of Graduate Studies and Research\\
in partial fulfillment of the requirements for the degree of} \\[120pt]}}
%\vskip 200pt
\newcommand\downtitle{
\vskip 120pt
%\vskip 2\baselineskip
\let\baselinestretch\@singlespaced{
\vskip 00pt
\large{} \\ \large{June 2017}}\\[1pt] \large{}
\null}
%
\newcommand\relaxtitlestuff{
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax}
%
\newcommand\makemstitle{\begin{titlepage}
\let\baselinestretch\@singlespaced{
\begin{center}
\uptitle
\vskip 56pt
\large{Master of Science \\ in \\ \@Dept}
\downtitle
\end{center}}
\end{titlepage}
\relaxtitlestuff}
%

\newcommand\makephdtitle{\begin{titlepage}
\begin{center}
\uptitle
\large{Doctor of Philosophy} \\% \vspace{-0.5cm}
\large{in}\\ %\vspace{-0.5cm}
\large{\@Dept}
\downtitle
\end{center}
\end{titlepage}
\relaxtitlestuff}
%
% Approval page
%
\newcommand\makeapprovalpage{%
\addtocounter{page}{-1}
\settowidth{\insd}{\@InstituteDirector}
\settowidth{\dc}{\@DeptChair}
\settowidth{\dpt}{\@Dept}
\settowidth{\ei}{\@examineri}
\settowidth{\csi}{\@cosuperi}
\settowidth{\csii}{\@cosuperii}
\settowidth{\eii}{\@examinerii}
\settowidth{\spv}{\@supervisor}
\settowidth{\eiii}{\@examineriii}
\settowidth{\eiv}{\@examineriv}
\settowidth{\ev}{\@examinerv}
\ifdim\ei>\spv \spv\ei \fi
\ifdim\csii>\spv \spv\ei \fi
\ifdim\eii>\spv \spv\eii \fi
\ifdim\csi>\spv \spv\ei \fi
\ifdim\eiii>\spv \spv\eiii \fi
\ifdim\eiv>\spv \spv\eiv \fi
\ifdim\ev>\spv \spv\ev \fi
\vspace*{-1.6cm}
\hspace{-0.5cm}Approval of the Institute of Graduate Studies and Research
\vspace*{1cm}
\begin{tabbing}
\hspace*{3.0cm} \= \hspace*{\spv}\hspace*{1em} \= \kill
\ifx\@InstituteDirector\empty \ifx\@cosuperi\empty \ifx\@cosuperi\empty
\@@warning{No \string\InstituteDirector\space given} \fi \fi
\else \hspace*{8.cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{8.5cm}\@InstituteDirector \> \\[-16pt]
\>\hspace*{7.2cm} Director \\\\ \> \fi
\hspace{-3.1cm}\vspace*{6cm}I certify that this thesis satisfies the requirements as a
thesis for the degree of\\[-12pt]
Doctor of Philosophy in \@Dept\\[1cm]
\vspace*{-0.5cm}
\ifx\@supervisor\empty \ifx\@cosuperi\empty \ifx\@cosuperi\empty
\@@warning{No \string\supervisor\space given} \fi \fi
\else \hspace*{7.9cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{7.5cm}\@DeptChair\> \\[-16pt]
\>\hspace*{7cm} Chair of\>\\[-16pt]
\>\hspace*{4.6cm} \@Dept\\[1cm]\> \fi
\hspace{-3.1cm}We certify that we have read this thesis and that in our opinion it is fully adequate,\\[-12pt]
in scope and quality as a thesis of the degree of Doctor of Philosophy in \\[-12pt]
\@Dept\\[1cm]

\ifx\@supervisor\empty \else \hspace*{8.1cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{8.4cm}\@supervisor \> \\[-16pt]
\>\hspace*{7cm} Supervisor \> \\[-1.9cm]

\hspace*{-0.0cm}\makebox[60mm]\hrulefill\> \\[-16pt]\hspace*{0.90cm}\@cosuperi \>
\\[-16pt]
\>\hspace*{-1.2cm} Cosupervisor \\ \>\\\\\fi
\hspace*{9cm}Examining Committee\\*[-24pt]
\makebox[14cm]\hrulefill\\

\ifx\@examineri\empty \else 1. \@examineri \> \hspace*{5cm}\makebox[60mm]\hrulefill \\ \fi
\ifx\@examinerii\empty \else 2. \@examinerii \> \hspace*{5cm}\makebox[60mm]\hrulefill\\ \fi
\ifx\@examineriii\empty \else 3. \@examineriii \> \hspace*{5cm}\makebox[60mm]\hrulefill\\ \fi
4. \@supervisor \> \hspace*{5cm}\makebox[60mm]\hrulefill \\
\ifx\@examineriv\empty \else 5. \@examineriv \> \hspace*{5cm}\makebox[60mm]\hrulefill\\ \fi
\end{tabbing}
\vfill
%\vspace*{2cm}
%\global\let\@title\@empty
%\global\let\title\relax
\global\let\@dateofapproval\@empty
\global\let\dateofapproval\relax
\global\let\@supervisor\@empty
\global\let\supervisor\relax
\global\let\@cosuperi\@empty
\global\let\cosuperi\relax
\global\let\@cosuperii\@empty
\global\let\cosuperii\relax
\global\let\@examineri\@empty
\global\let\examineri\relax
\global\let\@examinerii\@empty
\global\let\examinerii\relax
\global\let\@examineriii\@empty
\global\let\examinerii\relax
\global\let\@examinervi\@empty
\global\let\examinervi\relax
\global\let\@examinerv\@empty
\global\let\examinerv\relax
}
%
% Abstract, Acknowledgements, Oz, etc.
%

\newenvironment{preface}{\chapter*{\prefacename}}
{\par\vfil\null}
%
\newenvironment{foreword}{\chapter*{\forewordname}}
{\par\vfil\null}

%************************* ABSTRACT TITLE ***********************

\renewenvironment{abstract}{\chapter*{\abstractname }
\vspace{-0.5cm}
\begin{center}{\large \textbf{}}\end{center}}
{\par\vfil\null}

\newenvironment{acknowledgements}{\chapter*{\ackname}}
{\par\vfil\null}
%
\newenvironment{ozet}{\chapter*{\ozetname }
\vspace{-0.cm}
\begin{center}{\large \textbf{}}\end{center}}
{\par\vfil\null}
%
\newenvironment{symbols}{%
\clearpage
\chapter*{\listsymbolname}
\beginsymlist}
{\closesymlist}
%
\newcommand{\beginsymlist}{%
\begin{tabbing}
\hspace*{\symtabi}\=\hspace*{\symtabii}\=\kill}
%
\newcommand{\closesymlist}{\end{tabbing}}
%
\newcommand{\sym}[2]{\>#1 \>#2 \\}
\newlength{\symtabi}
\newlength{\symtabii}
\setlength{\symtabi}{1em}
\setlength{\symtabii}{10em}
%
\newcommand\prefacename{\vskip-1.3cm \hskip -0.65cm PREFACE}
\newcommand\forewordname{\vskip-1.3cm \hskip -0.65cm FOREWORD}
\newcommand\ackname{\vskip-1.3cm \hskip -0.65cm ACKNOWLEDGMENTS}
\newcommand\ozetname{\vskip-1.3cm \hskip -0.65cm \"OZ}
\newcommand{\listsymbolname}{\vskip-1.3cm \hskip -0.65cm LIST OF SYMBOLS}
\renewcommand\indexname{\vskip-1.3cm \hskip -0.65cm INDEX}
\renewcommand\partname{\vskip-1.3cm \hskip -0.65cm PART}
\renewcommand\appendixname{\vskip-1.3cm \hskip -0.65cm APPENDIX}
\renewcommand\abstractname{\vskip-1.3cm \hskip -0.65cm ABSTRACT}
%
% Sectional Units
%
\renewcommand\chapter{\clearpage
\global\@topnum\z@
\@afterindenttrue
\secdef\@chapter\@schapter}
%
\renewcommand\@makechapterhead[1]{\begin{center}
{\fontsize{16}{1}
\ifnum \c@secnumdepth >\m@ne
\ifx\@app\empty
\vspace*{-2.1cm} \Large\bfseries Chapter \hspace{0.5ex}\arabic{chapter} \\[1cm]
%\large\bfseries \hspace{1ex}
\else
\vspace*{-2cm}\large\bfseries \appendixname\ \thechapter.\hspace{1ex}
\fi
\fi
\interlinepenalty\@M
\large \bfseries #1\par\nobreak
\vskip\baselineskip
}\end{center}}
%
\renewcommand\@makeschapterhead[1]{\begin{center}
{ \normalfont
\interlinepenalty\@M
\vspace*{-0.5cm}\large \bfseries #1\par\nobreak
\vskip\baselineskip
}\end{center}}
%
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\ifx\@app\empty
\addcontentsline{toc}{chapter}%
{\protect\numberline{\chaptocapp}#1}%
\else
\addtocontents{toc}{%
\noindent
\appendixname\ \thechapter.\hspace{1.6ex}#1
\nobreak\leaders
\hbox{$\m@th \mkern \@dotsep mu.\mkern
\@dotsep mu$}
\hfill \nobreak
\hb@xt@\@pnumwidth{\hss \thepage}\par}
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\@makechapterhead{#2}%
\@afterheading
}
%
\renewcommand\@schapter[1]{\addcontentsline{toc}{chapter}{#1}%
\@makeschapterhead{#1} \@afterheading}
%
\def\chaptocapp{\thechapter.}
%
\renewcommand\section{\@startsection {section}{1}{\z@}%
{7pt} %{-3.5ex \@plus -1ex \@minus -.2ex}
{7pt} %{2.3ex \@plus.2ex}%
{\fontsize{14}{1}\raggedright\bfseries\textbf\large}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{7pt}%{-3.25ex\@plus -1ex \@minus -.2ex}%
{7pt}%{1.5ex \@plus .2ex}%
{\raggedright\bfseries\textbf\normalsize}}
\renewcommand\subsubsection[1]{\@startsection{subsubsection}{3}{\z@}%
{7pt}%{-3.25ex\@plus -1ex \@minus -.2ex}%
{-0.5em}%
%{-3.25ex\@plus -1ex \@minus -.2ex}%
%{-1em}%
{\normalsize}[#1]{\underbar{#1.}}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%]
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\itshape}}
%
% There should be a period after the section number.
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
\let\@svsec\@empty\else
\refstepcounter{#1}
\ifnum#2=3
\edef\@svsec{\underbar{\csname the#1\endcsname.\hskip 0.5em}}
\else
\edef\@svsec{\csname the#1\endcsname.\hskip 0.5em}\fi
\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup #6\relax
\@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}%
\endgroup
\csname #1mark\endcsname{#7}
\addcontentsline{toc}{#1}
{\ifnum #2>\c@secnumdepth
\else \protect\numberline{\csname the#1\endcsname.}
\fi
#7}
\else
\def\@svsechd{#6\hskip #3\relax %% \relax added 2 May 90
\@svsec #8\ifnum #2>\c@secnumdepth.\fi
\csname #1mark\endcsname{#7}
\addcontentsline{toc}{#1}
{\ifnum #2>\c@secnumdepth
\else \protect\numberline{\csname the#1\endcsname.}
\fi
#7}}
\fi
\@xsect{#5}}
%
% First paragraf of a section should be indented
%\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
% \par \@tempskipa #4\relax
% \@afterindenttrue
% \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \fi
% \if@nobreak \everypar{}\else
% \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
% {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
%
\addtocounter{secnumdepth}{1}
\addtocounter{tocdepth}{1}
%
% Figures and Tables
%
\renewcommand\listfigurename{\vskip-1.0cm \hskip -0.65cm LIST OF FIGURES}
\renewcommand\listtablename{\vskip-1.0cm \hskip -0.65cm LIST OF TABLES}
\renewcommand\figurename{Figure}
\renewcommand\tablename{Table}
%
\renewcommand\listoffigures{% \ev is used for temporary storage of \parskip
\setlength{\baselineskip}{\baselineskip} % This is where the linespacing is changed in the list of tables. Aykut Hocanin
\setlength{\ev}{\parskip}
\parskip0pt
\chapter*{\listfigurename
\@mkboth{\listfigurename}%
{\listfigurename}}%
\@starttoc{lof}%
\parskip\ev}

\renewcommand\listoftables{% \ev is used for temporary storage of \parskip
\setlength{\baselineskip}{\baselineskip}
\setlength{\ev}{\parskip}
\parskip0pt
\chapter*{\listtablename
\@mkboth{%\vspace{-2cm}
\MakeUppercase\listtablename}{\listtablename}}%
\@starttoc{lot}%
\parskip\ev}
%
% The expressions 'FIGURE' and 'TABLE' also appear in the LOF and LOT.
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
ext@#1\endcsname}{#1}{\protect\numberline{
\csname #1name\endcsname \space
% This is where the linespacing is changed in the list of tables. Mohammad Ahmad
% \csname the#1\endcsname .}{\ignorespaces #2}\protect\vspace{\baselineskip}}\begingroup
\csname the#1\endcsname .}{\ignorespaces #2}\protect\vspace{0.3\baselineskip}}\begingroup

\@parboxrestore
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup}
%
% A period should appear after the caption number.
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1. #2}%
\ifdim \wd\@tempboxa >\hsize
\centering{#1. #2}\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
%

% The lines of LOF and LOT must not be dotted.
\renewcommand\l@figure{\@dottedtocline{1}{0em}{6em}}
\renewcommand\l@table{\@dottedtocline{1}{0em}{5.8em}}
\def\@undottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth \else
\vskip \z@ plus.2\p@
{\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3\relax \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
#4\nobreak\leaders\hbox{}\hfill \nobreak
\hbox to\@pnumwidth{\hfil\reset@font\rm #5}
% \\*[-2cm]
\par}\fi}


%
% Table of Contents
%


%\renewcommand\contentsname{TABLE OF CONTENTS}
%\renewcommand\tableofcontents{% \ev is used for temporary strage of \parskip
%\setlength{\ev}{\parskip}
%\parskip0pt
% A line as 'TABLE OF CONTENTS' must not appear in the
% Table of Contents. Hence we reproduce the \chapter* here except that
% no entry is put into the toc file
% \clearpage \global\@topnum\z@
% \@afterindenttrue
% \@makeschapterhead{\contentsname} \@afterheading
%\@starttoc{toc}%
%\parskip\ev}
%

\renewcommand\contentsname{\vspace{-1.1cm}TABLE OF CONTENTS\vspace{-1.7cm}}
\renewcommand\tableofcontents{% \ev is used for temporary storage of \parskip
\setlength{\ev}{\parskip}
\parskip0pt
% A line as 'TABLE OF CONTENTS' must not appear in the
% Table of Contents. Hence we reproduce the \chapter* here except that
% no entry is put into the toc file
\clearpage\global\@topnum\z@
\@afterindenttrue
\begin{center}
{ \normalfont
\interlinepenalty\@M
\vspace*{-0.2cm}\large \bfseries \contentsname\par\nobreak
\vskip\baselineskip \vskip\baselineskip % *********** bir vskip fazladan koyduk
}\end{center}
\@afterheading
\@starttoc{toc}%
\parskip\ev}


% EMU IGER style TOC does not have bold lines
\renewcommand\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
%EMU IGER style TOC does not have extra space between chapterlines
\vskip 0.5em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode % That is what we have to comment out: \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep
mu$}\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
%
% The spacing of the TOC lines has been redefined.
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{2.9em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{7em}{3.8em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{11.1em}{4.7em}}
\renewcommand*\l@subparagraph{\@dottedtocline{5}{16.1em}{5.7em}}
%
% Appendix
%
\renewcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\renewcommand\@chapapp{\appendixname}
\renewcommand\thechapter{\@Alph\c@chapter}%
\let\@app1
}
%
% References
%
%\def\@biblabel#1{#1.} % This removes the square brackets AH
%
\newenvironment{harvardbibliography}{\chapter*{\bibname}%
\begin{list}{}{\topsep0pt \leftmargin2em \rightmargin0pt
\item indent-2em \item sep\parskip \parsep0pt}}
{\def\@noitemerr
{\@latex@warning{Empty `harvardbibliography' environment}}
\end{list}}
%
\newenvironment{bibnotcited}[1]{\chapter*{\bibncname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `bibnotcited' environment}}%
\endlist}
%
\newenvironment{harvardbibnotcited}{\chapter*{\bibncname}%
\begin{list}{}{\topsep0pt \leftmargin2em \rightmargin0pt
\itemindent-2em \itemsep\parskip \parsep0pt}}
{\def\@noitemerr
{\@latex@warning{Empty `harvardbibnotcited' environment}}%
\end{list}}
\renewcommand{\bibname}{\vskip-1.3cm \hskip -0.65cm REFERENCES}
\newcommand{\bibncname}{\vskip-1.3cm \hskip -0.65cm REFERENCES NOT CITED}
%
% Footnotes are numbered consecutively throughout the
% whole thesis and single line-spacing is invoked
%
\def\footnote#1{%
\@ifnextchar[{\@xfootnote}{%
\setcounter{footnote}{\value{thsfootcnt}}%
\addtocounter{thsfootcnt}{1}%
\stepcounter{\@mpfn}%
\begingroup\let\protect\noexpand
\xdef\@thefnmark{\thempfn}\endgroup
\let\baselinestretch\@singlespaced
\@footnotemark\@footnotetext{#1}
\let\baselinestretch\@onehalfspaced}
}
%
% Single line spacing is required in in quotations
%
\renewenvironment{quotation}{%
\par
\list{}{%
\let\baselinestretch\@singlespaced
\listparindent 1.5em%
\itemindent \listparindent
\rightmargin \leftmargin
\parsep \z@ \@plus\p@}%
\item\relax}
{\par
\let\baselinestretch\@onehalfspaced
\endlist}
\renewenvironment{quote}{%
\par
\let\baselinestretch\@singlespaced
\list{}{%
\baselineskip0.67\baselineskip
\listparindent 1.5em%
\itemindent\listparindent
\rightmargin\leftmargin}%
\item\relax}
{\par
\let\baselinestretch\@onehalfspaced
\endlist}
%
% Spacing for displayed formulas (redefine the \normalsize command
% Note: In earlier implementations of LaTeX \@normalsize may need
% to be redefined instead of \normalsize
%
\renewcommand{\normalsize}{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
\abovedisplayskip 20pt %\p@ plus3\p@ minus7\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \abovedisplayskip %\z@ plus3\p@
\belowdisplayshortskip \abovedisplayskip %6.5\p@ plus3.5\p@ minus3\p@
\let\@listi\@listI}
%
% Page style
%
\oddsidemargin 1.8cm
\evensidemargin 2cm
\topmargin -1.3cm
%\headheight20pt
\textwidth 140mm
\textheight 246mm
%\pagestyle{myheadings}
%
% Invoke double spacing
\renewcommand{\baselinestretch}{2}
\setlength{\parskip}{\baselineskip}
%
% This is end of emu_tez.sty
Last edited by Stefan Kottwitz on Sat May 27, 2017 1:56 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Page number is cropped; almost invisible!

Post by Stefan Kottwitz »

Can you please post the preamble of your document?

When I test the code above, I don't get that issue. I created this small code for testing:

Code: Select all

\documentclass{report}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage{ths}
\begin{document}
\chapter{FIRST CHAPTER} 
\section{First section}
\blindtext
\section{Second section}
\blindtext
\end{document}
I got:
page.png
page.png (58.47 KiB) Viewed 5315 times
The page number is fine. Something is different in your code.

Stefan
LaTeX.org admin
feryee
Posts: 20
Joined: Sun Aug 09, 2015 12:57 pm

Page number is cropped; almost invisible!

Post by feryee »

Here is the main file:

Code: Select all

% This is a template for the fbe_tez.sty, v2.0 (and maybe later).
%
%
\documentclass[12pt,epsfig,times]{report}

\usepackage{EMU_Thesis_ikeV2}
\usepackage{graphicx,epsfig,times}
\usepackage{epstopdf}
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{booktabs,slashbox}

%
% LaTeX 2.09 users: Replace the above two lines with the following line
%\documentstyle[12pt,epsfig,EMU_Thesis,times]{report}
%\usepackage{graphicx}
%
% Declarations
%
\title{to be decided\vspace{-2cm}}


\author{i}


% Declare relevant examiners

\InstituteDirector{ }

\DeptChair{}

\Dept{Electrical and Electronic Engineering}

\examineri{}
\vspace{-1cm} \supervisor{}
\examinerii{}
%\examineriii{Prof. Dr. Runyi Yu}
\vspace{-1cm} \cosuperi{i}
%\examineriv{Assoc. Prof. Dr. Erhan \.{I}nce}
\dateofapproval{}


\begin{document}
\pagenumbering{roman}
% Choose the relevant one
%\makemstitle    % For M.S. theses
\makephdtitle  % For Ph.D. theses
\makeapprovalpage
\begin{center}
\newpage
\vspace*{10cm} \center{\textbf{}}
\end{center}

%\makephdtitle
\begin{abstract}
\vspace{-2cm}
\noindent

\par
\noindent In recent years, sparse signal estimation has become an important paradigm in the field of signal processing due to their vast amount of applications. Among the wide range of applications, system identification and echo cancelations problems are likely one of the most challenging signal estimation for many practical channels with sparse nature. For such channels, due to low convergence speed and sensitivity to highly correlated inputs, conventional adaptive filtering algorithms such as recursive least-mean-square (LMS) and its variants, recursive least-squares (RLS) and Kalman filters are incapable of exploiting the channel sparsity. To overcome with difficulties associated with sparse system identification and echo cancelation, $l_0$-norm constraint LMS ($l_0$-LMS) modifies the conventional LMS algorithm to capture the sparsity. The modification results in a zero-point attraction to all filter-taps. The $l_0$-norm addition, however, causes the optimization problem to be non-convex and hence not tractable.

\end{abstract}

\begin{ozet}
\end{ozet}


\begin{acknowledgements}
\vspace{-1cm}
\noindent
\end{acknowledgements}

\begin{center}
\newpage
\vspace*{9cm} \center{\textbf{Dedicated to my Family}}
\end{center}




\tableofcontents
\listoffigures
\listoftables

\begin{symbols}

\end{symbols}


\chapter{INTRODUCTION}\label{ch1}
\pagenumbering{arabic}
\input{chapter1}

\chapter{ADAPTIVE FILTERS}\label{ch2}
\input{chapter2}

\chapter{THE RECURSIVE INVERSE ADAPTIVE FILTERING ALGORITHM}\label{ch3}
\input{chapter3}

%\chapter{SIMULATION RESULTS}\label{ch4}
%\input{chapter4}

\chapter{CONCLUSIONS AND FUTURE WORK}\label{ch5}
\input{conclusion}

\newpage
\appendix \begin{centering} \large{{APPENDIX A}} \end{centering}
\input{Appendix}

\begin{thebibliography}{9}
\input{references}
\end{thebibliography}


\end{document}
Last edited by Stefan Kottwitz on Sat May 27, 2017 3:49 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Page number is cropped; almost invisible!

Post by Stefan Kottwitz »

Do you need the epsfig package? Probably not.
I think it will fixed after you removed the line

\usepackage{epsfig}

Stefan
LaTeX.org admin
feryee
Posts: 20
Joined: Sun Aug 09, 2015 12:57 pm

Page number is cropped; almost invisible!

Post by feryee »

I have many .eps figures. So, i suppose it is needed. I am not which line you refer that needs to be removed explicitly.(I removed epsfig but it cant compile due to my eps figures) Beside, if you compile the main file that i sent to , you see the same problem in abstract pages on. Whenever i try to directly get dvi2pdf the editor asks for installing ttfont.map as part of zhmetrics. However, when i prompt for installing it gives an error "dvi2pdf returned exit code........." as you may see below. so every time i need to first do dvit ps first and then convert it to pdf. Is this problem related?

--------------------------------------------------------------------------------------------------------------------


Command Line: dvipdfmx.exe "Full_Thesis_v1.dvi"
Startup Folder: C:My PHD Thesis-spars\PhD_Thesis

Trying to make PK font ptmb8r at 1080 DPI...
Running miktex-makemf.exe...


Sorry, but miktex-makemf did not succeed for the following reason:



The ptmb8r source file could not be found.



The log file hopefully contains the information to get MiKTeX going again:



C:/Users/F/AppData/Local/MiKTeX/2.9/miktex/log/miktex-makemf.log



You may want to visit the MiKTeX project page, if you need help.

Running ttf2pk.exe...


======================================================================

starting package maintenance...

installation directory: "C:\Program Files (x86)\MiKTeX 2.9"

package repository: http://ctan.mirror.ftn.uns.ac.rs/system ... /packages/

lightweight database digest: 81b597402c6b3f02ad51e949de21f31e

going to download 35746 bytes

going to install 4939 file(s) (1 package(s))

downloading http://ctan.mirror.ftn.uns.ac.rs/system ... s.tar.lzma...

35746 bytes, 18.21 KB/Sec

extracting files from zhmetrics.tar.lzma...



Unfortunately, the package zhmetrics could not be installed.Please check the log file:

C:/Users/Farhad/AppData/Local/MiKTeX/2.9/miktex/log/ttf2pk.log

======================================================================

The PK font file C:\Users\Farhad\AppData\Local\MiKTeX\2.9\fonts/pk/modeless/adobe/times/dpi1080\ptmb8r.pk already exists.
Full_Thesis_v1.dvi -> Full_Thesis_v1.pdf
[1
dvipdfmx:warning: Could not locate a virtual/physical font for TFM "ptmb8r".
dvipdfmx:warning: >> There are no valid font mapping entry for this font.
dvipdfmx:warning: >> Font file name "ptmb8r" was assumed but failed to locate that font.
dvipdfmx:fatal: Cannot proceed without .vf or "physical" font for PDF output...

Output file removed.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Page number is cropped; almost invisible!

Post by Stefan Kottwitz »

Quick shot: the pdf paper width and height may be different to the one set with LaTeX to DVI. You could try:

Code: Select all

\pdfpageheight=\paperheight
\pdfpagewidth=\paperwidth
or

Code: Select all

\setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight}
or using the geometry package.

Stefan
LaTeX.org admin
feryee
Posts: 20
Joined: Sun Aug 09, 2015 12:57 pm

Page number is cropped; almost invisible!

Post by feryee »

Thank you! resolved.
Regards
Post Reply