-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running head "DISTORTED PD ESTIMATES IN SEQUENCE LEARNING" #561
Comments
Hi @LisaSpitzer, that's funny! A quick repository-wide search for the words "distorted" or "sequence" did not yield any results, so it seems to me that the running head has to be coming from somewhere else than the papaja sources. Given that the problem only arises with pdf output, I was wondering if you also use a preamble tex file that might contain a line of code that overwrites the short title? |
Hi @mariusbarth, thanks for your quick reply! :) I don't have such a tex file, but I also noticed that the error has been only in the last few outputs (before, with the same RDM, I had correct running heads in the word files). I'm not sure when this error arose. If it's only a problem for me, I can live with that (I'll just adjust the running head in the word file). :) I just wanted to let you know in case it's a bigger issue. |
Hi @LisaSpitzer, I think it is definitely worth trying to find out what is going on! It would be super helpful if you could upload a minimal reproducible example with an rmd file that produces the error! |
Hi @mariusbarth, okay! I was able to reproduce the error with a completely unedited papaja template (i.e., I just opened the APA6 template). The error is present only in Word, not in the PDF output. I have attached the RMD, Word, and PDF files below. RMD:
MethodsWe report how we determined our sample size, all data exclusions (if any), all manipulations, and all measures in the study. ParticipantsMaterialProcedureData analysisWe used ResultsDiscussion\newpage References::: {#refs custom-style="Bibliography"}
|
Ah, great! I think this is a systematic error. @crsh, do you have a first gut feeling why this is happening? Maybe something got mixed up in the docx template or the pre/post processors do not patch the template correctly? Could this be a downstream issue? |
Describe the bug
I am using papaja version 0.1.1.9001, and have followed the online description to use the settings for APA7. When I'm knitting to Word, the running head is correctly displayed on the first page (Running head: my running head), but on the following pages, it is "DISTORTED PD ESTIMATES IN SEQUENCE LEARNING", which I have not defined in any part of my RMD. A quick Google search indicated it might be based on one of your papers. :D
To Reproduce
This is my YAML header (I have removed personal info):
`---
title : "My title"
shorttitle : "My running head"
author:
affiliation : "1"
corresponding : yes # Define only one corresponding author
address : "Universitaetsring 15, 54296 Trier"
email : "my email"
role: # Contributorship roles (e.g., CRediT, https://credit.niso.org/)
affiliation:
institution : "Leibniz Institute for Psychology (ZPID)"
authornote: |
Lisa Spitzer, https://orcid.org/0000-0002-4925-7291
Enter author note here.
abstract: |
(removed)
keywords : "preregistration, open science, meta-research, reproducibility, replicability"
wordcount : "X"
bibliography : ["r-references_edited.bib", "rordof.bib"]
floatsintext : yes
tables : yes
linenumbers : yes
draft : no
mask : no
figurelist : no
tablelist : no
footnotelist : no
classoption : "man"
header-includes:
|
\makeatletter
\renewcommand{\paragraph}{@startsection{paragraph}{4}{\parindent}%
{0\baselineskip @plus 0.2ex @minus 0.2ex}%
{-1em}%
{\normalfont\normalsize\bfseries\typesectitle}}
\renewcommand{\subparagraph}[1]{@startsection{subparagraph}{5}{1em}%
{0\baselineskip @plus 0.2ex @minus 0.2ex}%
{-\z@\relax}%
{\normalfont\normalsize\bfseries\itshape\hspace{\parindent}{Replace output_format parameter in apa.table() #1}\textit{\addperi}}{\relax}}
\makeatother
csl : "
r system.file('rmd', 'apa7.csl', package = 'papaja')
"documentclass : "apa7"
output : papaja::apa6_docx
---`
Expected behavior
I expected the running head to be "my running head", but it's "DISTORTED PD ESTIMATES IN SEQUENCE LEARNING" starting on the second page when knitted to word.
Screenshots
Thanks for looking into it! :)
The text was updated successfully, but these errors were encountered: