From 9a1400f229f5b5c14a1cd90fab13c28c216b5f44 Mon Sep 17 00:00:00 2001 From: XiangyunHuang Date: Mon, 18 Mar 2024 21:08:54 +0800 Subject: [PATCH] Polish layout --- index.qmd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.qmd b/index.qmd index 3d2990c..8b6516d 100644 --- a/index.qmd +++ b/index.qmd @@ -1,6 +1,6 @@ # 欢迎 {#welcome .unnumbered} -```{r, echo=FALSE} +```{r} source(file = "_common.R") ``` @@ -20,13 +20,14 @@ source(file = "_common.R") #| fig-subcap: #| - 'Base R 图形' #| - 'ggplot2 图形' -#| out-width: '50%' #| fig-width: 4.5 #| fig-height: 3.5 #| fig-alt: '汞蒸气的压力随温度的指数级变化' #| fig-showtext: true #| layout-ncol: 2 #| par: true +#| echo: !expr knitr::is_html_output() +#| code-fold: true # 准备 Noto 中英文字体 # sysfonts::font_add_google(name = "Noto Sans", family = "Noto Sans") @@ -74,6 +75,8 @@ ggplot(data = pressure, aes(x = temperature, y = pressure)) + #| fig-height: 3 #| echo: false #| fig-showtext: true +#| echo: !expr knitr::is_html_output() +#| code-fold: true # brew tap homebrew/cask-fonts # brew install --cask font-xkcd