Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the aastex package (v5.2), and trying to make a header appear using the \shorttitle and \shortauthors commands (which take the place of \leftheader \rightheader), but they aren't working for me. Here is my code:

\documentclass[12pt,preprint]{aastex}
\usepackage[left=1in,top=1in,right=1in,bottom=1in]{geometry}

\shorttitle{short title}
\shortauthors{short author}
\begin{document}
\title{Long Title}
\author{Long Author}
\bibliographystyle{plainnat}

\begin{abstract}
Test
\end{abstract}

\maketitle

\section{Introduction}
Text
\newpage
New page test
\end{document}  

Anybody have any ideas?

share|improve this question
1  
page 3 of the aastex manual: "This running head information will not appear on the LATEX-printed page but will be passed through to copy editing staff for inclusion in the published version." –  hpesoj626 Jan 17 '13 at 4:00
    
Wow, thanks, that's really weird... Any idea how to get headers running that I can see? –  zhermes Jan 17 '13 at 4:54
1  
Using aastex only without additional packages? Not really. That involves redefining some macros and, truth to tell, I've been trying just for the fun of it. But I can't make it work. Maybe some tex guru will take a look at it later. Try fancyhdr if that is an option. I have to ask, why do you want to see the headers? IMHO if you submit your paper to AAS, they might not want to see the headers already printed. :) –  hpesoj626 Jan 17 '13 at 5:47
    
Awesome, fancyhdr works fine! Its for a random proposal (with no specified stylefile), and I just like the aastex style. –  zhermes Jan 17 '13 at 6:20

2 Answers 2

hpesoj626 points out that the running headers from \shorttitle and \shortauthors don't actually appear on the document... for whatever reasons. As per his recommendation, I'm using the fancyhdr package --- which is working nicely.

share|improve this answer

You can modify the plaintop page style that's used with the preprint option:

\makeatletter
\def\ps@plaintop{%
 \let\@mkboth\@gobbletwo
 \def\@oddfoot{}%
 \def\@evenfoot{}%
 \def\@oddhead{%
   \rmfamily\hfil\@rectohead\ --\ \@versohead\hfil\llap{\thepage}}%
 \let\@evenhead\@oddhead
}
\makeatother
\pagestyle{plaintop}

Modify to suit

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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