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 5730 times


After compile , I get a sample page output as follows:
sample page.png
sample page.png (114.77 KiB) Viewed 5730 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

Code, edit and compile here:
%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}}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
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

Code, edit and compile here:
\documentclass{report}
\usepackage{fancyhdr}
\usepackage{blindtext}
\usepackage{ths}
\begin{document}
\chapter{FIRST CHAPTER}
\section{First section}
\blindtext
\section{Second section}
\blindtext
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I got:
page.png
page.png (58.47 KiB) Viewed 5724 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

Code, edit and compile here:
% 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{}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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: 10345
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: 10345
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
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
or

Code: Select all

\setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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