LaTeX forum ⇒ Page LayoutText above Footer on every Page Topic is solved

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm
Location: portugal

Text above Footer on every Page  Topic is solved

Postby mayankmi » Sat Apr 20, 2013 8:14 pm

Hey LaTeX users,

I want something like this I know how to put header and footer using fancyhdr. But I am interested in putting some text over footer in every page. For this format I have attached an image as a sample.
Attachments
Screen Shot 2013-04-20 at 7.00.20 PM.png
Screen Shot 2013-04-20 at 7.00.20 PM.png (11.53 KiB) Viewed 5260 times

Tags:

User avatar
tommytex
Posts: 39
Joined: Wed Jan 23, 2013 10:04 pm

Postby tommytex » Sun Apr 21, 2013 11:12 am

hello mayankmi,

i think what you are looking for is the following:

  1. \documentclass{article}
  2. \usepackage[left=2.5cm,right=2.5cm]{geometry}
  3.  
  4. \usepackage{fancyhdr}
  5. \pagestyle{fancy}
  6.  
  7. \fancyhf{}
  8. \renewcommand{\headrulewidth}{0pt}
  9. \renewcommand{\footrulewidth}{1pt}
  10.  
  11. \lfoot{\thepage}
  12. \rfoot{\vspace{-.8cm}Erasmus Mundus Programme\\\vspace{.24cm}
  13. \footnotesize ADVANCED MASTERS IN STRUCTURAL ANALYSIS OF MONUMENTS AND HISTORICAL CONSTRUCTIONS}
  14.  
  15.  
  16. \begin{document}
  17. Tex of document
  18. \end{document}



...it was a pleasure to answer your question as i am a great fan of the ERASMUS Mundus Programme ;) ;)


tommytex
Attachments
fancyfooter.pdf
(25.41 KiB) Downloaded 317 times

mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm
Location: portugal

Postby mayankmi » Sun Apr 21, 2013 1:27 pm

you are very good .. thanks a lot.. it worked.. i use texpad editor for mac and in that everyhting works .. ya erasmus is very good..big fan of it..was in italy now in portugal. yay..

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

Postby localghost » Sun Apr 21, 2013 2:33 pm

An alternative with less guessed vertical spaces and better alignment for page number and last line of the footer text.
  1. \documentclass[11pt]{article}
  2. \usepackage[T1]{fontenc}
  3. \usepackage[margin=2cm]{geometry}
  4. \usepackage{fancyhdr}
  5.  
  6. \fancyhf{}
  7. \renewcommand{\headrulewidth}{0pt}
  8. \renewcommand{\footrulewidth}{0.5pt}
  9. \lfoot{\thepage}
  10. \rfoot{%
  11. \smash{% % hide vertical stretch of the following content
  12. \parbox[b]{\textwidth}{%
  13. \raggedleft
  14. Erasmus Mundus Programme\\[1.5ex]
  15. \footnotesize
  16. \MakeUppercase{Advanced Masters in structural Analysis of Monuments and historical Constructions}
  17. }%
  18. }%
  19. }
  20. \pagestyle{fancy}
  21.  
  22. \begin{document}
  23. Text of document
  24. \end{document}



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


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm
Location: portugal

Postby mayankmi » Sun Apr 21, 2013 11:49 pm

Thanks a lot. i like here everyone is so helpful..
:D


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 2 guests