wjschne / apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats
https://wjschne.github.io/apaquarto/
Creative Commons Zero v1.0 Universal
166 stars 14 forks source link

Adding information to top-left of first page of "JOU" #38

Closed drfurtado closed 7 months ago

drfurtado commented 8 months ago

I was wondering if you could guide me on how to add some information (see attached image) on the top-left of the first page I render it as JOU?

Any help would be greatly appreciated.

Capture-2024-03-07-141450

wjschne commented 8 months ago

In the volume field, just add a \\newline to separate the lines. You can also put LaTeX formatting in the fields to achieve the effect you are looking for. For example:

format:
  apaquarto-pdf:
    journal: "\\bfseries \\scriptsize Journal of Kinesiology and Wellness"
    volume: "\\vskip 1mm A Publication of the Western Society for Kinesiology and Wellness\\newline Volume 12, Number 1, Pages 1--9, 2023\\newline ISSN# 2323-4505"
    documentmode: jou
drfurtado commented 8 months ago

In the volume field, just add a \\newline to separate the lines. You can also put LaTeX formatting in the fields to achieve the effect you are looking for. For example:

format:
  apaquarto-pdf:
    journal: "\\bfseries \\scriptsize Journal of Kinesiology and Wellness"
    volume: "\\vskip 1mm A Publication of the Western Society for Kinesiology and Wellness\\newline Volume 12, Number 1, Pages 1--9, 2023\\newline ISSN# 2323-4505"
    documentmode: jou

Excellent! Is there a way to control the font size? The results is bit small compared to rest of the info on that page. Also, how do I increase the space between the title and the added info on the top? image

wjschne commented 8 months ago

Use \vskip 2cm to move the title down by 2cm. For example,

title: "\\vskip 2cm \\bfseries Acute Beetroot Supplementation May Improve Blood Pressure \\\\ But Not Exercise Economy in Female Masters Swimmers"

The LaTeX commands for font size: \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge

In yaml, you will need to use double backslashes for all LaTeX commands, For example,

title: "\\vskip 2cm \\bfseries Acute Beetroot Supplementation May Improve Blood Pressure \\\\ But Not Exercise Economy in Female Masters Swimmers"
format:
  apaquarto-pdf:
    journal: "\\bfseries \\Large Journal of Kinesiology and Wellness"
    volume: "\\vskip 1mm \\large A Publication of the Western Society for Kinesiology and Wellness \\newline Volume 12, Number 1, Pages 1--9, 2023\\newline ISSN# 2323-4505"
drfurtado commented 8 months ago

Thank you so much for your help. Please allow me to ask another question. The text is being pushed all to the end of the first page. Is there a way to control for it?

image

wjschne commented 8 months ago

The fig-import1 chunk was producing an image that was too large to fit in the column when in jou mode. Setting out-width to 50% fixed the problem. I just uploaded a new version with several other fixes.