Right now, I'm trying to finalize the layout of my diploma thesis - unfortunately I cannot figure out how to achieve the heading I want.
I'm using the amsart document class and try to achieve the following by using the fancyhdr package:
- On even pages I want for the header: on the left, pagenumber on the right
- On odd pages: pagenumber on the left, on the right
Here is the relevant LaTeX code:
\documentclass[twoside,12pt]{amsart}
\usepackage{amssymb,amsthm,array,arydshln}
\usepackage[toc,page]{appendix}
\usepackage{multicol}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{geometry}
\geometry{a4paper}
\begin{document}
\pagestyle{fancyplain}
\fancyhf{}
\lhead[\thepage]{\leftmark}
\rhead[\leftmark]{\thepage}
\title{test}
\maketitle
\end{document}
I achieved two different outputs, depending on what I put in
\lhead[\thepage]{\leftmark}
\rhead[\leftmark]{\thepage}
\leftmark as well as \rightmark will display the title instead of the title of the (sub)section; and so far, using anything else results in the display of nothing
I read quite a few articles, but I am still totally lost, because none of them was written for my usage case, i.e. the amsart document class
I appreciate any help and will provide further information if needed
