-
Notifications
You must be signed in to change notification settings - Fork 133
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
Add APA 7th edition template #342
Comments
For some reason, folks who use the TeX package
It would be very useful to add this to the YAML options in the template. |
Not sure how far this is, but the APA Publication Manual for the 7th edition is temporarily available for free during the Corona isolation period: https://apastyle.apa.org/blog/coronavirus-response?fbclid=IwAR2n0C1tz1xyG0420lMGFEvTmIT9Tz8lqoCRTJYY1v7ayldMg_ZxO-0AyK4 Maybe this is helpful to anyone currently contributing to this issue. |
It looks like that offer ended yesterday :(
…On Thu, Mar 26, 2020 at 11:35 AM C. J. van Lissa ***@***.***> wrote:
Not sure how far this is, but the APA Publication Manual for the 7th
edition is temporarily available for free during the Corona isolation
period:
https://apastyle.apa.org/blog/coronavirus-response?fbclid=IwAR2n0C1tz1xyG0420lMGFEvTmIT9Tz8lqoCRTJYY1v7ayldMg_ZxO-0AyK4
Maybe this is helpful to anyone currently contributing to this issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#342 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA67BZOMP56YEQ3CEKCHYLRJMVX5ANCNFSM4KHQSMBA>
.
|
I apologize. It just reached me now. |
Thanks for this package and the work already invested in APA7 version. In my case the titles of tables and figures are written in serif font. For figures, the title is also written below the figure, which is different in APA7 (sans serif and above the figure). As a user, can I somehow adapt this myself or are updates planned? |
how do I install the apa7 Latex document class? |
Are you looking to knit PDF or Word files? |
PDF. |
It's been a while since I found time to look at this more closely, but could you point me to where the new manual states that figure titles should be in a sans serif font? As far as I can tell it's set in the same font used for the text, no? Either way, you should be able to control the caption font using the As for the placement of the figure title: This should be controlled by the |
Thank you! In fact, it seems to me that the font is not explicitly defined. On page 225, the manual for the title states: "The figure title appears one double-spaced line below the figure number in italic title case". On page 232, the figure checklist says: "Is the font sans serif within the image portion of the figure [...]?", which does not necessarily exclude other font types for the headline. However, in all examples of the manual, the headlines are set without serifs and therefore in a different font than the text. Anyway, the solution suggested above works fine for me. Here a minimal reproducible example:
|
Regarding the placement of the figure caption below rather than above the figure I'm a little bit at a loss.
So this suggests that the figure caption should be displayed above the figure. This is the TeX example I used: \documentclass[man]{apa7}
\title{Figure caption test}
\showcaptionsetup{figure}
\begin{document}
\maketitle
\section{Method}
\subsection{Participants}
We had a lot of people in this study, show in Figure \ref{fig:Figure1}.
\begin{figure}[htbp]
\includegraphics[bb=0in 0in 2.5in 2.5in, height=1.4in, width=1.4in]{Figure1.pdf}
\caption{This is my figure caption.}
\label{fig:Figure1}
\end{figure}
\end{document} Maybe @dan-weiss can help? |
@crsh I struggled with the caption placement as well when developing the package. It turns out the caption LaTeX package describes this exact case:
|
Huh, thanks for that; that's news to me. It seems a different fix is needed. I just tried out \usepackage{floatrow}
\floatsetup[figure]{capposition=top} This get's the job done but seems to create some problems with the setup of |
@crsh See if this helps: For pure latex documents, the caption command need to be moved before the figure/table manually in the code. |
Unfortunately, |
@nikshl We got a nice answer at SO. This will require postprocessing of the TeX file, so it's a little inconvenient but can be done. You may need to do this by hand until I get around to it. |
Great! Many thanks to all who have contributed to the solution so far. |
- Semi-automates updating of CSL files - Ads options to not disambiguate author names and annotated references (e.g., meta-analysis) - Adds APA 7th edition #342
I found a very easy solution to adding the ORICD logo and link based on the APA rules. In the YAML header, add
and
If you have installed |
@jrennstich FYI, the apa7 class includes the \addORCIDlink{First M. Last}{0000-0000-0000-0000} |
Great! Thanks |
I cannot get the fix described in SO to work when manually postprocessing the TeX file. I am still getting conflicts with |
Sorry, not at this point. If you can share a minimal working example, this may help to develop a more robust solution. |
I think @sbw78 's point refers to what @dan-weiss mentioned previously:
This shows the caption below the figure:
When moving the
I think this is currently the easiest solution and it requires no postprocessing if you use the LaTeX code directly. |
Sure, but his is complicated by the fact that the figure code is generated automatically by |
Indeed. As a workaround you could export the generated figures to (for example) pdf and then load them back in with |
First of all, a huge thank you for developing and maintaining this package! A small error I caught when switching to APA 7th for my current manuscript was that the author list on the title page displays both "and" and "&" if I include more than two authors. I did not see this bug reported elsewhere. Here is a reproducible example:
|
Interesting. The automatic addition of "and" seems to be a new feature in the |
I am trying to get the I have installed the latest dev version of Ultimately, I'm interested in trying to build a RMarkdown version of the reference documents on the APA web site, so that people can see what papaja can do and what commands are required to generate the documents. |
@crsh Starting with version 2.00, the apa7 class now expects a comma separated list for authors to allow for flexible affiliation superscripting (per APA 7th edition style). It will localize the last author separator (e.g. 'and') into the supported languages:
There are examples on page 6 of the manual |
Another workaround for placing figure captions above the plot (and also including figure notes) that can be directly included in rmarkdown and doesn't require postprocessing of the TeX file: |
Hello @dan-weiss: I'm using the very helpful apa7 class as well as papaja, and I have run into the same issue with the redundant ' and & ' characters. I have tried to solve it by deleting the author in the YAML, and setting
Unfortunately, I get the following error:
Alternative errors precludedI have ascertained that the error is not caused by alternative reasons, such as the lack of the default Reproducing the errorThe error can be reproduced by opening an APA 6 template from the papaja package in RStudio, applying the apa7 class as described above, and adding the Thank you very much for your attention. I would be very grateful if you could provide some help. |
@pablobernabeu It sounds like both I am not personally a user of papaja/R. If this doesn't resolve the issue, you can send me a .tex file that demonstrates the issue and I would be happy to troubleshoot. |
UPDATED The phantom parameters can be disabled in advance (instead of manually editing the .tex file) by adding three lines to the PREVIOUSLY: @dan-weiss: Thanks a lot! Please find the .tex file below (this was automatically generated by the failed
|
I found that the apa7 is available as a package in the MikTex Console and installed it. However, following the 3 steps at the top of this page, I keep getting an error. This is a shortened version of my code which still produces the error. ---
title : "My Title"
author:
- name : "Author1"
- name : "Author2"
- name : "Author3"
- name : "Author4"
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}{#1}\textit{\addperi}}{\relax}}
\makeatother
csl : `r system.file("rmd", "apa7.csl", package = "papaja")`
documentclass : "apa7"
output : papaja::apa6_pdf`
--- And this is the error:
Does anybody have an idea what the problem is? The rmd folder in the papaja folder includes the apa7.csl and other apa7 files equivalent to the apa6 files in there if this is important. Also, does this this workaround only work for pdf's or also for word documents? I couldn't figure that out from the discussion. Thanks in advance! |
Ah, sorry, my bad. I just updated the instructions. If you use the following it should work: csl : "`r system.file('rmd', 'apa7.csl', package = 'papaja')`"
This will only work for PDF documents at this point. |
@padpet, sorry I somehow missed your comment. Have you tried this solution? |
@leahymr did you find a solution for this? |
No, I never found a solution, though I can’t remember how hard I tried after I posted the question (the paper was turned in, semester ended, yada yada).
—Michael
… On Apr 13, 2022, at 8:54 AM, Pablo ***@***.***> wrote:
I have installed the latest dev version of papaja and installed apa.csl from http://www.zotero.org/styles/apa.csl <http://www.zotero.org/styles/apa.csl>. I have added the csl, documentclass, classoption and output YAML tags from the previous post. With classoption : "stu" I can see the Course Title, Professor Name, and Due Date on the first page, but can't figure out how to modify them (I've tried LaTex commands and straightforward YAML tags). I'd also like to understand how to change the font and font size.
@leahymr <https://github.com/leahymr> did you find a solution for this?
—
Reply to this email directly, view it on GitHub <#342 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7L2BDFIKYPTTPK3ABBBQTVE27YFANCNFSM4KHQSMBA>.
You are receiving this because you were mentioned.
|
@help
help!!!! |
Sorry, just so I know I understand. You are using the document class |
It has been 18 months since my original message, so it is hard to remember clearly, but I think I was trying to customize the Professor’s name, the course title, and the due date, but couldn’t figure out how to provide those values (though the placeholders are on the rendered page).
I also had trouble figuring out how to change the font and font size for the document.
I have not checked since I was taking my class, but one of the things I longed for was an example document that had the various markup tags coupled with the generated output, so that I could more easily follow along. As a student, I didn’t need to use all the power of the system, but the options for students didn’t seem to be well documented.
—Michael
… On Oct 27, 2022, at 6:33 PM, Frederik Aust ***@***.***> wrote:
Sorry, just so I know I understand. You are using the document class apa7 and you want change font and font size?
—
Reply to this email directly, view it on GitHub <#342 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7L2BHUC2SIZS2KBWRCSR3WFL7JZANCNFSM4KHQSMBA>.
You are receiving this because you were mentioned.
|
I would love an answer to this same question! I'm using quarto instead of rmarkdown but the solution (plugging the proper yaml into the latex class template) should translate exactly between the two |
There currently is no proper |
To summarize the previous discussion, for those who urgently need APA 7th edition: With the current version of
papaja
you can get most of the way like this:papaja
(remotes::install_github("crsh/papaja@devel")
)apa7
LaTeX document class, unless your LaTeX distribution, liketinytex
is setup to do this on the fly.)Note, that you currently cannot include the ORCID in the author note, as suggested in the
apa7
-manual, those YAML fields are currently not parsed.Properly implementing support for APA 7th edition will require a little more work. I'll gather the required steps that I have identified, as of now, here. If I'm missing anything necessary adjustments, or if anyone has thoughts or suggestions about the implementation feel free to discuss. Also, this would be the time to rethink any design decisions regarding the R Markdown template (such as the setup of the font matter or naming of the options).
General
apa7_*()
, that generate thermarkdown
format. It may be worth considering, whether specialized functions for each edition are necessary. It seems easier and less confusing to just keepapa_*()
and specify the version via thedocumentclass
field in the front matter. Of course, the old functions would be kept for backward compatibility.PDF format
\addORCIDlink{}{}
) if I can makepandoc
parse the contents of theauthor_note
field.\subsubsection{}
and\paragraph{}
have changed and adjust the default header includes accordingly.&
to author name concatination on title page and use\authornames
and\authorsaffiliations
(Add APA 7th edition template #342 (comment))Word format
pandoc
word template for APA 7th edition.apa_table()
docx_fixes
-Lua-filter, i.e. create an version of the filter for APA 7th editionThe text was updated successfully, but these errors were encountered: