Featured Book

LaTeX Beginners Guide

Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 8 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

fancyhdr | Horizontal Line above the Footer Topic is solved

Add tags Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).

fancyhdr | Horizontal Line above the Footer  Topic is solved

Postby ajmal88 on Sun Sep 2nd, 2012

Hi!

I am new on this forum and new to LaTeX. I am trying to type my final year project in BEng (hons) in LaTeX. Could anyone tell me how I can get a borderline on top of my footer?

I am using fancyhdr to create the header and footer. I am getting a borderline on the header, but not on the footer.

This is what I have so far :

Code: Select all  •  Open in writeLaTeX
\documentclass[12pt,a4paper]{report}
\usepackage[english]{babel}
\usepackage{textcomp
} %gives the copyright sign which is used in line 12
\usepackage{mathptmx} %this package will give Times New Roman
\usepackage{fancyhdr} % intented to make header and footer
\usepackage{lastpage}

\fancyhf{}
\lhead{Author: Ny name}
\chead{Student ID: My student ID}
\rhead{\thesection
} % want to display the current section here, but doesn't work atm
\lfoot{\textcopyright UWE Bristol}
\cfoot{UAV Simulation Using Matlab/Simulink}
\rfoot{Page \thepage\ of \pageref{LastPage}}
\pagestyle{fancy}

\begin{document}
\author{My name}
\title{UAV Simulation Using Matlab/Simulink}
\maketitle
\begin{abstract}
This report investigates the simulation of an UAV created in Matlab R2011a Student Version.
\end{abstract}
\tableofcontents
\clearpage
\listoffigures
\clearpage
\listoftables
\clearpage
\section{Introduction}
\subsection{Objectives}
\begin{itemize}
\item Plot the trajectory of the UAV on a graph to see how the UAV "moved" in the air
\item Interface the simulink model with the Flight Gear Simulator to visualize the UAV
\item Build an Autopilot to control the UAV.
\item Build a model in Simulink that will simulate the vehicle.
\end{itemize}
\subsection{Method}
\subsection{Background Information}
\subsection{How does UAV's Work}
\section{Literature Review}
\end{document
}


Could someone also tell me what sort of font is the best suited for a bachelor project?

Thank you for your help.
ajmal88
 
Posts: 9
Joined: Sun Sep 2nd, 2012

Re: fancyhdr | Horizontal Line above the Footer

Postby localghost on Sun Sep 2nd, 2012

The fancyhdr manual (p. 6) suggests something like this.
Code: Select all  •  Open in writeLaTeX
\renewcommand{\footrulewidth}{0.4pt}



Best regards and welcome to the board
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: fancyhdr | Horizontal Line above the Footer

Postby ajmal88 on Mon Sep 3rd, 2012

Thank you Thorsten! It worked :)

Is there any partiular font you/someone else would recommend ? I am trying to figure out if there is any other that is better than Times New Roman. I have heard that Minion Pro is suppose to be good?
ajmal88
 
Posts: 9
Joined: Sun Sep 2nd, 2012

Re: fancyhdr | Horizontal Line above the Footer

Postby Stefan_K on Mon Sep 3rd, 2012

Hi,

welcome to the board!

ajmal88 wrote:Could someone also tell me what sort of font is the best suited for a bachelor project?


That's a good question. Besides improving reading comfort, if you choose a font wisely, a reader may trust your work more and the project can have a serious appearance.

A bit funny, but drastically explaining what I mean: here is a fact written in different fonts - which one would you believe and trust, if there would be even different facts?

font-comparison.jpg
font-comparison.jpg (20.21 KiB) Viewed 2712 times


It's from a blog post by Errol Morris.

I hope that you would choose the version in the middle. Serifs are serious. And a serif text is easier to read, compared to sans serif. Just for the headings, which are already heavy because they are big and bold, I would choose sans serif, which is a bit lighter, here serifs don't matter for me.

Times Roman is already good. You could test txfonts which is also a Times font, or newtx.

Another alternative is Charter with math support:

Code: Select all  •  Open in writeLaTeX
\usepackage[charter]{mathdesign}


Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6413
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: fancyhdr | Horizontal Line above the Footer

Postby ajmal88 on Mon Sep 3rd, 2012

Hi Stefan!

Thank you for your reply, really appreciate it. Even though my University has told me to use 12.pt Times New Roman I am sure I can use one which is better, if I can find one. The most important is that it looks good on paper and makes the document more comfortable to read. I will test out your suggestions.

Kind regards
ajmal88
 
Posts: 9
Joined: Sun Sep 2nd, 2012

Re: fancyhdr | Horizontal Line above the Footer

Postby cgnieder on Mon Sep 3rd, 2012

Stefan_K wrote:Times Roman is already good.


Robert Bringhurst would probably disagree ;) . Citing from his well-known “Elements of Typographic Style” v3.2 p 96:
If there is nothing for dinner but beans, one may hunt for an onion, some pepper, salt, cilantro and sour cream to enliven the dish, but it is generally no help to pretend that the beans are really prawns or chanterelles.
When the only font available is Cheltenham or Times Roman, the typographer must make the most of its virtues, limited though they may be.

That being said I'll add my own opinion: I quite like Linux Libertine and its sans serif companion Linux Biolinum. I also like Minion Pro a lot (that's the font Bringhurst set the “Elements” with, by the way).

Here's an example of Libertine & Biolinum:
libertine.png
libertine.png (32.17 KiB) Viewed 2703 times


This is Minion Pro together with Lucida Sans:
minionpro_lucidasans.png
minionpro_lucidasans.png (33.65 KiB) Viewed 2703 times


Regards
Clemens
------------------------------
New German Q&A site about TeX: http://texwelt.de/wissen
System: TeXlive 2013, OpenSUSE 12.3
User avatar
cgnieder
Site Moderator
 
Posts: 1696
Joined: Sat Apr 16th, 2011
Location: Germany

Re: fancyhdr | Horizontal Line above the Footer

Postby localghost on Mon Sep 3rd, 2012

ajmal88 wrote:[…] It worked […]

So if the primary problem is solved, please close the topic by accepting the answer that led you to the solution.
ajmal88 wrote:[…] Is there any partiular font you/someone else would recommend ? I am trying to figure out if there is any other that is better than Times New Roman. I have heard that Minion Pro is suppose to be good?

Actually this is not related to the primary problem and you should not mix up different topics in one thread. But now that the discussion has started, we'll keep it together here. But please keep that in mind for the future.

My suggestion would be to take a look at the »The LaTeX Font Catalogue« which lists fonts for (PDF)LaTeX. For access to the fonts of your operating system consider to use XeLaTeX (or LuaLaTeX). Note that this would need some significant modifications to your document(s).
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses
User avatar
localghost
Site Moderator
 
Posts: 9219
Joined: Fri Feb 2nd, 2007
Location: Braunschweig, Germany

Re: fancyhdr | Horizontal Line above the Footer

Postby ajmal88 on Mon Sep 3rd, 2012

hi!

Sorry for that, I just thought that it was just another small question so might as well ask here instead of starting a new topic. I will be more careful next time about this.

Kind regards
ajmal88
 
Posts: 9
Joined: Sun Sep 2nd, 2012


Return to Page Layout

Who is online

Users browsing this forum: No registered users and 8 guests