quarto-dev / quarto-dev/quarto-cli

Margin (footnote) URL space usage differs on what is linked.

Open
#8,184 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement latex
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

This may very well be a latex issue. If so, I'm sorry for reporting it here.

---
reference-location: margin
citation-location: document
tbl-cap-location: margin
cap-location: margin

format:
    pdf:
      documentclass: scrartcl
      papersize: a4 # must be small 'a'
      geometry:
        - showframe # Debugging purposes 
        - left=15.0mm
        - textwidth=102.0mm
        - marginparsep=7.7mm
        - marginparwidth=70.3mm
      number-sections: false
      mainfont: ETbb
      sansfont: ETbb
      monofont: SourceCodePro-Regular.otf
      monofontoptions:
        - Numbers=Lowercase
        - Numbers=Proportional
        - Numbers=OldStyle
        - Scale=0.70
      colorlinks: true
---

# URL layout trouble

  1. Fake link footnote^[[https://gist.github.com/nrc/7261e80068115a3ac76c]()]
  2. Real link footnote^[[https://gist.github.com/nrc/7261e80068115a3ac76c](https://gist.github.com/nrc/7261e80068115a3ac76c)]
  3. Link but bullshit^[[https://gist.github.com/nrc/7261e80068115a3ac76c](https://a.com)]
  4. More bullshit^[[https://gist.github.com/nrc/7261e80068115a3ac76c](X)]
  5. Pointy brackets^[<https://gist.github.com/nrc/7261e80068115a3ac76c>]
  6. Linking to something really long^[[https://gist.github.com/nrc/7261e80068115a3ac76c](http://chart.apis.google.com/chart?chs=500x500&chma=0,0,100,100&cht=p&chco=FF0000%2CFFFF00%7CFF8000%2C00FF00%7C00FF00%2C0000FF&chd=t%3A122%2C42%2C17%2C10%2C8%2C7%2C7%2C7%2C7%2C6%2C6%2C6%2C6%2C5%2C5&chl=122%7C42%7C17%7C10%7C8%7C7%7C7%7C7%7C7%7C6%7C6%7C6%7C6%7C5%7C5&chdl=android%7Cjava%7Cstack-trace%7Cbroadcastreceiver%7Candroid-ndk%7Cuser-agent%7Candroid-webview%7Cwebview%7Cbackground%7Cmultithreading%7Candroid-source%7Csms%7Cadb%7Csollections%7Cactivity|Chart)]
  7. For posterity, the actual long url^[<http://chart.apis.google.com/chart?chs=500x500&chma=0,0,100,100&cht=p&chco=FF0000%2CFFFF00%7CFF8000%2C00FF00%7C00FF00%2C0000FF&chd=t%3A122%2C42%2C17%2C10%2C8%2C7%2C7%2C7%2C7%2C6%2C6%2C6%2C6%2C5%2C5&chl=122%7C42%7C17%7C10%7C8%7C7%7C7%7C7%7C7%7C6%7C6%7C6%7C6%7C5%7C5&chdl=android%7Cjava%7Cstack-trace%7Cbroadcastreceiver%7Candroid-ndk%7Cuser-agent%7Candroid-webview%7Cwebview%7Cbackground%7Cmultithreading%7Candroid-source%7Csms%7Cadb%7Csollections%7Cactivity|Chart>]

quarto-link-space

main.pdf

This is on the latest version of quarto-cli on git (main).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue from the Markdown and YAML example in the report, using the attached main.pdf as the output reference. Compare the margin footnote spacing for the seven URL forms and determine the intended consistent behavior; the issue is done when the differing space usage is explained or corrected and the generated PDF matches that expectation.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, markdown
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.