0

I have adjusted my text, so it's like an A4-paper. But my header and footer have not aligned. In my preamble I've got:

\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{float}
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}
\usepackage{epstopdf}
\usepackage{float}
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}
\usepackage[T1]{fontenc} 
\usepackage[table,xcdraw]{xcolor}
\usepackage{multicol}
\usepackage{adjustbox}
\usepackage{array}
\usepackage{wrapfig}
\usepackage{multirow}
\usepackage{tabu}
\usepackage{rotating}
\usepackage{amsmath}
%\usepackage[table,xcdraw]{xcolor}
\usepackage{fancyhdr}
\pagestyle{fancy}
\linespread{1.5}
\usepackage{times}
\usepackage[none]{hyphenat}
\sloppy
\usepackage{hyperref}

And in my main script I've got:

\documentclass{article}
\input{z.preamble/preamble.tex}
\usepackage[a4paper, total={6in, 9in}]{geometry}

It looks like this in the pdf: enter image description here

PS: don't mind the weird letters, it's just an example, so you can see it, thank you.

closed as off-topic by user36296, Phelype Oleinik, Stefan Pinnow, Zarko, Troy Jan 9 at 15:16

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Load the geometry package before the packages which modify your header, i.e. before fancyhdr – user36296 Jan 7 at 16:08
  • Unrelated to your problem: don't load the same packages multiple times and don't load the times package, it is obsolete – user36296 Jan 7 at 16:09
  • That helped, thank you. Do you know which package I should then use if I want the font Times New Roman? – Line Jan 8 at 7:36
  • See texdoc.net/texmf-dist/doc/latex/l2tabu-english/l2tabuen.pdf section 2.3.1 for different possible replacements – user36296 Jan 8 at 9:31
  • 3
    I'm voting to close this question as solved in comments – user36296 Jan 9 at 14:16
0

As samcarter wrote in comments: "Load the geometry package before the packages which modify your header, i.e. before fancyhdr"

Not the answer you're looking for? Browse other questions tagged or ask your own question.