LaTeX forum ⇒ 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).
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

Postby ajinkya99 » Sun Jul 10, 2022 6:26 pm

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

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Stefan Kottwitz
Site Admin
Posts: 9880
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

Postby Stefan Kottwitz » Sun Jul 10, 2022 7:51 pm

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

Postby ajinkya99 » Sun Jul 10, 2022 7:54 pm

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:

\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: 47
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

Postby MjK » Sun Jul 10, 2022 8:16 pm

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.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 2 guests