quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.99k stars 328 forks source link

callout title has no space between it and top callout border (pdf/latex) #10119

Open m-clark opened 5 months ago

m-clark commented 5 months ago

Bug description

The title of a callout is not spaced appropriately for pdf output. The title basically has no padding.

Steps to reproduce

---
title: "Untitled"
format: pdf
---

:::{.callout title="Callout Title" type="info"}
blah
:::
image

Expected behavior

I would expect at least a little space/padding between the title and the top border.

Actual behavior

There is no space/padding between the title and the top border.

This may be an issue with only the 'simple appearance'. Here is a shot of the results from setting callout-appearance: default:

image

Your environment

IDE: VSCode OS: MacOS Ventura 13.4

Quarto check output

Quarto 1.5.6
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.6
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2024.06
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /Users/micl/Library/TinyTeX/bin/universal-darwin
      Version: 2024

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

[✓] Checking Python 3 installation....OK
      Version: 3.12.1 (Conda)
      Path: /Users/micl/anaconda3/envs/book-of-models/bin/python
      Jupyter: 5.7.1

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

(-) Checking R installation...........── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.4     ✔ readr     2.1.5
✔ forcats   1.0.0     ✔ stringr   1.5.1
✔ ggplot2   3.5.1     ✔ tibble    3.2.1
✔ lubridate 1.9.3     ✔ tidyr     1.3.1
✔ purrr     1.0.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ ::() masks 
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

Attaching package: ‘scales’

The following object is masked from ‘package:purrr’:

    discard

The following object is masked from ‘package:readr’:

    col_factor

[✓] Checking R installation...........OK
      Version: 4.3.3
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Users/micl/Rlib
        - /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
      knitr: 1.45
      rmarkdown: 2.27

[✓] Checking Knitr engine render......OK
mcanouil commented 5 months ago

You are running a very old pre-release version, please update Quarto and try again to confirm the issue. Thank you!

m-clark commented 5 months ago

Sure thing! I installed the latest release candidate and it looks like the issue persists. Thanks!

Brief quarto-check, latest results

Quarto 1.5.47
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.47
      Path: /Applications/quarto/bin
image image
cderv commented 5 months ago

This may be an issue with only the 'simple appearance'.

Yes i think it is. With simple and minimal which gives this results when no icon

When using a callout with icons

:::{.callout-note appearance="simple"}

## Callout Title

blah
:::

image

Removing the icon creates the problem

:::{.callout-note appearance="simple" icon=false}

## Callout Title

blah
:::

image

And minimal style is affected also as it has no icon by default.