Skip to content
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

Abstract causes font size to shrink in paragraphs with margins and without footnotes #3

Closed
sebastian-c opened this issue Apr 3, 2023 · 1 comment

Comments

@sebastian-c
Copy link

Font size changes unexpectedly because this extensions causes paragraphs to not be wrapped in the right div.

Faulty behaviour

---
title: "Test"
format: 
  html:
    reference-location: margin
    self-contained: true
filters:
- abstract-section
---

# Abstract

This is an abstract

## A title

Here is some text without a footnote

Here is some text with a footnote^[Look, a footnote]

image

Desired behaviour

---
title: "Test"
format: 
  html:
    reference-location: margin
    self-contained: true
---

---
abstract: |
  This is an abstract
---

## A title

Here is some text without a footnote

Here is some text with a footnote^[Look, a footnote]

image

@tarleb
Copy link
Member

tarleb commented Apr 3, 2023

There is a slight misunderstanding in how the filter works: some abstracts do contain headings, so everything up to the next top-level heading is included in the abstract. The result of applying the filter is equivalent to

---
abstract: |
  # Abstract

  This is an abstract

  ## A title

  Here is some text without a footnote

  Here is some text with a footnote^[Look, a footnote]
---

Use a horizontal rule if you want the abstract to end before the next level 1 heading:

# Abstract

This is an abstract

* * * * *

## A title

Here is some text without a footnote

Here is some text with a footnote^[Look, a footnote]

The font/footnote issue is weird, but unrelated to this filter. I suggest to report it in quarto-cli.

@tarleb tarleb closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants