Post
새소식
- Chirpy Theme 7.2.0 업데이트

Quarto Presentation에서 이미지 크기 조절하기

Quarto Presentation에서 이미지 크기 조절하기

Quarto Presentation에서 이미지 크기 조절하기

기본 설정

Quarto Presentation에서는 기본값으로 이미지 크기가 확장(streched)된다. Presentation layout size보다 작으면 이미지를 확대해서 해상도가 낮아지는 단점이 있다. 원본 크기를 유지하기 위해서는 아래와 가이드를 참고한다.

  • https://quarto.org/docs/presentations/revealjs/advanced.html#stretch

YAML에 옵션 추가

YAML header에 아래와 같이 옵션을 추가하다.

1
2
3
format:
  revealjs:
    auto-stretch: false

옵션 1

슬라이더 타이틀에 옵션 추가

1
## Slide Title {.nostretch}

옵션 2

이미지에 직접 옵션 추가

1
![](image.png){.nostretch fig-align="center" width="800px"}

옵션 3

참고자료

  1. How to resize image in Quarto revealjs presentation
  2. Guide > Presentations > Revealjs > Advanced Reveal > Layout Helpers > Stretch
This post is licensed under CC BY 4.0 by the author.