Page LayoutWhy is my footer text going to second line even though I have more than enough space

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ajinkya99
Posts: 2
Joined: Sun Jul 10, 2022 6:19 pm

Why is my footer text going to second line even though I have more than enough space

Post by ajinkya99 »

Hi, first of all, I am a complete beginner to any code-based editing, I am using Jake's Resume Template on one's suggestion and making some modifications as I see fit, recently I wanted to make a change and add some to my footer, however, there's some issue with the text, as you can see in the attachment, the last word "you" goes to the second text despite my margins being set to 1.5in and being common everywhere. How do I fix this?
Attachments
latex issue.PNG
latex issue.PNG (27.67 KiB) Viewed 2602 times

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

Why is my footer text going to second line even though I have more than enough space

Post by Stefan Kottwitz »

Hi ajinkya,

welcome to the forum!

Perhaps post your code, because we cannot really see what you are doing in the code. You can remove non-relevant things in the copy you would post here.

Stefan
LaTeX.org admin
ajinkya99
Posts: 2
Joined: Sun Jul 10, 2022 6:19 pm

Why is my footer text going to second line even though I have more than enough space

Post by ajinkya99 »

Hi Stefan,

Thanks for the warm welcome! I am sorry I thought I pasted the relevant code. Here it is, this is the code i edited to get the footer lines:

Code: Select all

\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{Contact me at 12345566, \href{mailto:xxx@xxx.com}{\underline{xxxx@xxx.com}}, looking forward to working with you }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{.1pt}
\renewcommand\footrule{\hrule width\textwidth }
% Adjust margins
\addtolength{\oddsidemargin}{-0.5in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.8in}
\addtolength{\textheight}{1.0in}
User avatar
MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

Why is my footer text going to second line even though I have more than enough space

Post by MjK »

With fancyhdr you should change the margins, text width etc. before loading fancyhdr. Otherwise you also have to adjust the width of the header and footer (see the manual fancyhdr, section 2 and 18 for more information).
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
Post Reply