I'm attempting to make my own headers for a paper I'm writing. I want to alternate between two headings: "Left" and "Right"; i.e. Page 1 has 'Left' written in the left corner (along with the page number), page 2 has 'Right' written in the right corner. Page 3 again has 'Left' written in the left corner, page 4 Right in right corner... and so forth.
My problem is: I'm not getting the Left and Right printing out when I use "\markboth". Only Left. Can you help me figure out why? And when you do, get them to alternate pages?
Code: Select all
Code, edit and compile here:
\documentclass{article}%\usepackage{amsmath}%\usepackage{amsfonts}%\usepackage{amssymb}%\usepackage{graphicx}\usepackage{graphics,color}\usepackage[superscript]{cite}\begin{document}\pagestyle{myheadings}\markboth{Right}{Left}First page\newpageSecond page\newpageThird page\newpageFourth page\end{document}
lnsam