quarto-dev / quarto-gallery

MIT License
46 stars 25 forks source link

Setting papersize to A4 breaks Tufte margin #7

Open ramiromagno opened 5 months ago

ramiromagno commented 5 months ago

Setting:

format:
    pdf:
      keep-tex: true
      papersize: A4

Results in:

a4

ramiromagno commented 5 months ago

Seemingly, with letter this line is added to the tex file:

\usepackage[left=1in,marginparwidth=2.0666666666667in,textwidth=4.1333333333333in,marginparsep=0.3in]{geometry}

but not if:

format:
    pdf:
      keep-tex: true
      papersize: A4

I manually fixed the tex by adding geometry package and it rendered with a nice Tufte margin. :) So this seems like a bug.