我如何调整页脚和页眉边距以使其与文本对齐?
这是我的代码:
\documentclass[a4paper, 12 pt]{report}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage[shortlabels]{enumitem}
\usepackage {indentfirst}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\pagestyle{fancy}
\pagestyle{fancy}
\lfoot { Left }
\cfoot {Page: \thepage/2}
\rfoot { Right }
\setlength{\footskip}{30pt}
\geometry{a4paper, portrait, margin=0.7in}
\begin{document}
my Text
\end{document}
答案1
如果你必须改变几何形状
\geometry{a4paper, portrait, margin=0.7in}
在设置页面标题之前更改它