Overlap between margin citations and page-wide figure

Aperta
#6,301 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
design

Direzione di ricerca

Start by rendering the supplied .qmd example with Quarto's PDF format and the shown citation-location and .column-page settings. Inspect the generated PDF and the rendering path responsible for placing margin citations and page-wide figures; done means the figure and citations no longer overlap and the expected positioning is coordinated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

article-layout bug
Bug description

A figure with layout .column-page may visually overlap with citations that are in the margin due to citation-location: margin.

I can work around the issue by placing the figure somewhere else in the text where there are just fewer citations in the margin.

image
Steps to reproduce
---
bibliography: [references.bib]
reference-location: margin
citation-location: margin
format:
  pdf:
    papersize: a4
---

## Data

__Police archives.__ The literature dismisses this source type as "biased", uninformative about the motives and organizers, uncomparable across regions, often unavailable or unobtainable, and because it is restricted to only registered demonstrations [@hutterProtestEventAnalysis2014; @wiedemannGeneralizedApproachProtest2022]. This criticism appears to me valid but overgeneralized, and there may well be regions where the advantages prevail over the problems. Especially for the goal of impact estimation, the avoidance of selection biases that are associated with newspaper articles [@hutterProtestEventAnalysis2014; @jamesozdenLiteratureReviewProtest2022] is a strong argument for using data from police and demonstration authorities.

![History of the number of protest events in Germany per week.](protest_history.png){.column-page}

references.bib:

@incollection{hutterProtestEventAnalysis2014,
  title     = {Protest {{Event Analysis}} and {{Its Offspring}}},
  booktitle = {Methodological {{Practices}} in {{Social Movement Research}}},
  author    = {Hutter, Swen},
  editor    = {family=Porta, given=Donatella, prefix=della, useprefix=true},
  date      = {2014-09-25},
  pages     = {335--367},
  publisher = {{Oxford University Press}},
  doi       = {10.1093/acprof:oso/9780198719571.003.0014},
  url       = {https://academic.oup.com/book/10558/chapter/158513194},
  urldate   = {2023-01-30},
  isbn      = {978-0-19-871957-1},
  langid    = {english}
}
@inproceedings{wiedemannGeneralizedApproachProtest2022,
  title     = {A {{Generalized Approach}} to {{Protest Event Detection}} in {{German Local News}}},
  booktitle = {Proceedings of the {{Thirteenth Language Resources}} and {{Evaluation Conference}}},
  author    = {Wiedemann, Gregor and Dollbaum, Jan Matti and Haunss, Sebastian and Daphi, Priska and Meier, Larissa Daria},
  date      = {2022-06},
  pages     = {3883--3891},
  publisher = {{European Language Resources Association}},
  location  = {{Marseille, France}},
  url       = {https://aclanthology.org/2022.lrec-1.413},
  urldate   = {2022-12-19}
}
@report{jamesozdenLiteratureReviewProtest2022,
  title       = {Literature {{Review}}: {{Protest Outcomes}}},
  author      = {{James Ozden} and {Sam Glover}},
  date        = {2022-04},
  institution = {{Social Change Lab}},
  url         = {https://www.socialchangelab.org/_files/ugd/503ba4_21103ca09bf247748a788c92c60371a0.pdf},
  urldate     = {2023-04-15}
}

protest_history.png:

protest_history

Expected behavior

The positions of the figure and the citations should be coordinated in some way.

For example, move the citation further down in the margin, such that it is below the figure.

Actual behavior

They are not coordinated and simply overlap, see screenshot above.

Your environment
  • IDE: latest VSCode
  • OS: MacOS Ventura 13.4.1 (c)
Quarto check output
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.361
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.10
      Path: /Users/david/Repositories/protest-impact/.venv/bin/python
      Jupyter: 5.3.1
      Kernels: ir, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library
      knitr: 1.39
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK
Lingua principale
JavaScript
Stelle
6k
Fork
458
Merge medio
1g 9h
PR unite (30g)
41

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/quarto-cli

Tutte le issue di quarto-dev/quarto-cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.