如何在第一页上创建没有页眉的页脚

如何在第一页上创建没有页眉的页脚

我只需要写一份小报告。所以我不需要标题页,我只需要从标题、姓名、摘要开始写。但我希望页脚在第一页,没有页眉。页眉和页脚都应该在后续页面上。如何实现?

这是我的一个简单示例。谨致问候!在此先行致谢。

\documentclass[12pt,a4paper,oneside, twocolumn]{memoir}
\usepackage{lastpage}
\usepackage[utf8]{inputenc}
\usepackage[danish]{babel}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\thispagestyle{empty}
\usepackage{lipsum}


%Header/footer
\nouppercaseheads
\makepagestyle{mystyle}
\makeevenhead{mystyle}{\underline{Name Name}}{}{\underline{\today}}
\makeoddhead{mystyle}{\underline{Name Name}}{}{\underline{\today}}
\makeevenfoot{mystyle}{}{Page \thepage\ of \pageref{LastPage}}{}
\makeoddfoot{mystyle}{}{Page \thepage\ of \pageref{LastPage}}{}
\makepsmarks{mystyle}{%
  \createmark{chapter}{left}{nonumber}{}{}}  
\pagestyle{mystyle}

\begin{document}

\twocolumn[
  \begin{@twocolumnfalse}
   \begin{center}
{\fontsize{40}{48} \bfseries \textsc{Hirshfeld surfaces}}\linebreak

\vspace{5pt}

Name\\
Name

\vspace{5pt}

\end{center}



\begin{abstract}
...
\end{abstract}


\leavevmode
\vspace{20pt}
  \end{@twocolumnfalse}
]

\section{something something}
\lipsum[1-20]

\end{document}

答案1

由于您使用自定义页眉和页脚(mystyle),您可以定义一个类似的仅页脚样式mytitlestyle,然后告诉第一页使用命令使用该样式\thispagestyle{mytitlestyle}

在此处输入图片描述

代码:

\documentclass[12pt,a4paper,oneside, twocolumn]{memoir}
\usepackage{lastpage}
\usepackage[utf8]{inputenc}
\usepackage[danish]{babel}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{lipsum}

%Header/footer
\nouppercaseheads
\makepagestyle{mystyle}
\makeevenhead{mystyle}{\underline{Name Name}}{}{\underline{\today}}
\makeoddhead{mystyle}{\underline{Name Name}}{}{\underline{\today}}
\makeevenfoot{mystyle}{}{Page \thepage\ of \pageref{LastPage}}{}
\makeoddfoot{mystyle}{}{Page \thepage\ of \pageref{LastPage}}{}
\makepsmarks{mystyle}{%
  \createmark{chapter}{left}{nonumber}{}{}}  

\makepagestyle{mytitlestyle}
\makeevenfoot{mytitlestyle}{}{Page \thepage\ of \pageref{LastPage}}{}
\makeoddfoot{mytitlestyle}{}{Page \thepage\ of \pageref{LastPage}}{}

\pagestyle{mystyle}

\begin{document}
\thispagestyle{mytitlestyle}

\twocolumn[
  \begin{@twocolumnfalse}
   \begin{center}
{\fontsize{40}{48} \bfseries \textsc{Hirshfeld surfaces}}\linebreak
\vspace{5pt}

Name\\
Name

\vspace{5pt}
\end{center}

\begin{abstract}
...
\end{abstract}

\leavevmode
\vspace{20pt}
  \end{@twocolumnfalse}
]
\section{something something}
\lipsum[1-20]
\end{document}

注意:您可以使用 获取默认页码\thispagestyle{plain}

相关内容