Skip to content

Commit

Permalink
fix abstract indenting in .html and .docx
Browse files Browse the repository at this point in the history
  • Loading branch information
wjschne committed Apr 23, 2024
1 parent 5f9eee8 commit e3811ff
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
24 changes: 24 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: apaquarto
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: William Joel
family-names: Schneider
email: [email protected]
affiliation: Temple University
orcid: 'https://orcid.org/0000-0002-8393-5316'
repository-code: 'https://github.com/wjschne/apaquarto'
url: 'https://wjschne.github.io/apaquarto/'
abstract: >-
A quarto extension for creating APA7 documents in .docx,
.html, and .pdf formats
keywords:
- APA-Style
- Quarto Extension
license: CC0-1.0
2 changes: 1 addition & 1 deletion _extensions/apaquarto/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: My Document in APA Style, Seventh Edition
author: W. Joel Schneider
version: 3.5.2
version: 3.5.3
quarto-required: ">=1.4.549"
contributes:
formats:
Expand Down
Binary file modified _extensions/apaquarto/apaquarto.docx
Binary file not shown.
3 changes: 2 additions & 1 deletion _extensions/apaquarto/docxfrontmatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ return {
if pandoc.utils.type(meta.apaabstract) == "Inlines" then
abstract_paragraph.content:extend(meta.apaabstract or meta.abstract)
local abstractdiv = pandoc.Div(abstract_paragraph)
abstractdiv.classes:insert("Abstract")
abstractdiv.classes:insert("AbstractFirstParagraph")
body:extend({abstractdiv})
end

Expand All @@ -458,6 +458,7 @@ return {
local lbpara = pandoc.Para(el)

if abstractlinecounter == 1 then

abstractfirstparagraphdiv.content:extend({lbpara})
abstractfirstparagraphdiv.classes:insert("AbstractFirstParagraph")

Expand Down
4 changes: 4 additions & 0 deletions changelog.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ engine: knitr
- Tables in .pdf jou mode should fit automatically.
- Typst version that would allow for easy customization

# Version 3.5.3 (2024-04-23)

- Abstract in .docx and .html no longer indented

# Version 3.5.2 (2024-04-20)

- Added xpatch package to .pdf to fix appendix bug
Expand Down

0 comments on commit e3811ff

Please sign in to comment.