papaja icon indicating copy to clipboard operation
papaja copied to clipboard

A fix for when running author list falls outside margins for classoption: "jou"

Open pederisager opened this issue 4 years ago • 3 comments

I encountered the following bug/problem when listing multiple (12) co-authors and knitting the PDF using classoption "jou":

The automatically generated running author list trails off of the page, like so: image

I could not find an option for editing the running author list in the papaja documentation. However, I did find a working solution. Posting here in case of interest to anyone.

The fancyhdr package apparently lets you override the default running head and author list generated by "jou". To customize the header, add header-includes : to the end of the papaja rmarkdown header, and customize the \lhead and \rhead options:

header-includes   :
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \lhead{AUTHOR NUMBER ONE ET AL.}
- \rhead{A VERY IMPORTANT PAPER}

Which yields: image

This does add some extra formatting into the mix however. It would be nice if I could simply edit the running authorlist in the same way I can edit the shorttitle option in the header.

pederisager avatar Aug 31 '20 17:08 pederisager

Hi Peder, thanks for sharing your solution. This has come up before, and I think this should be a convenient solution. Is this what you had in mind?

crsh avatar Sep 01 '20 13:09 crsh

Yes thats it exactly! Is this included in papaja documentation somewhere? Did i just miss it?

pederisager avatar Sep 01 '20 18:09 pederisager

I think I forgot to document this. I've added the documentation label to this issue and will keep it open as a reminder to add this to the documentation. Thanks again for reaching out about this.

crsh avatar Sep 02 '20 08:09 crsh