LaTeX forum ⇒ Page Layoutfancyhdr | Horizontal Line above the Footer Topic is solved

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
ajmal88
Posts: 9
Joined: Sun Sep 02, 2012 1:27 am

fancyhdr | Horizontal Line above the Footer  Topic is solved

Postby ajmal88 » Sun Sep 02, 2012 8:06 pm

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 :

  1. \documentclass[12pt,a4paper]{report}
  2. \usepackage[english]{babel}
  3. \usepackage{textcomp} %gives the copyright sign which is used in line 12
  4. \usepackage{mathptmx} %this package will give Times New Roman
  5. \usepackage{fancyhdr} % intented to make header and footer
  6. \usepackage{lastpage}
  7.  
  8. \fancyhf{}
  9. \lhead{Author: Ny name}
  10. \chead{Student ID: My student ID}
  11. \rhead{\thesection} % want to display the current section here, but doesn't work atm
  12. \lfoot{\textcopyright UWE Bristol}
  13. \cfoot{UAV Simulation Using Matlab/Simulink}
  14. \rfoot{Page \thepage\ of \pageref{LastPage}}
  15. \pagestyle{fancy}
  16.  
  17. \begin{document}
  18. \author{My name}
  19. \title{UAV Simulation Using Matlab/Simulink}
  20. \maketitle
  21. \begin{abstract}
  22. This report investigates the simulation of an UAV created in Matlab R2011a Student Version.
  23. \end{abstract}
  24. \tableofcontents
  25. \clearpage
  26. \listoffigures
  27. \clearpage
  28. \listoftables
  29. \clearpage
  30. \section{Introduction}
  31. \subsection{Objectives}
  32. \begin{itemize}
  33. \item Plot the trajectory of the UAV on a graph to see how the UAV "moved" in the air
  34. \item Interface the simulink model with the Flight Gear Simulator to visualize the UAV
  35. \item Build an Autopilot to control the UAV.
  36. \item Build a model in Simulink that will simulate the vehicle.
  37. \end{itemize}
  38. \subsection{Method}
  39. \subsection{Background Information}
  40. \subsection{How does UAV's Work}
  41. \section{Literature Review}
  42. \end{document}


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

Thank you for your help.

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sun Sep 02, 2012 8:41 pm

The fancyhdr manual (p. 6) suggests something like this.
  1. \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

Link:
BBcode:
HTML:
Hide post links
Show post links

ajmal88
Posts: 9
Joined: Sun Sep 02, 2012 1:27 am

Postby ajmal88 » Mon Sep 03, 2012 1:39 am

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?

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
Stefan Kottwitz
Site Admin
Posts: 7801
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Mon Sep 03, 2012 10:50 am

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 5349 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:

  1. \usepackage[charter]{mathdesign}


Stefan
Site admin

Link:
BBcode:
HTML:
Hide post links
Show post links

ajmal88
Posts: 9
Joined: Sun Sep 02, 2012 1:27 am

Postby ajmal88 » Mon Sep 03, 2012 6:28 pm

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

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
cgnieder
Site Moderator
Posts: 1948
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Mon Sep 03, 2012 6:57 pm

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


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


Regards
Clemens
------------------------------
New German Q&A site about TeX: http://texwelt.de/wissen

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Mon Sep 03, 2012 7:18 pm

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

Link:
BBcode:
HTML:
Hide post links
Show post links

ajmal88
Posts: 9
Joined: Sun Sep 02, 2012 1:27 am

Postby ajmal88 » Mon Sep 03, 2012 7:55 pm

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

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 1 guest