Skip to content

Commit

Permalink
setting up for multiformat....still
Browse files Browse the repository at this point in the history
  • Loading branch information
obrl-soil committed Feb 10, 2024
1 parent fd0ef1d commit cb992ae
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 6 deletions.
7 changes: 7 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ format:
theme: neutral
epub:
epub-cover-image: images/cover.png
toc-depth: 4
split-level: 2
pdf:
documentclass: scrbook
papersize: A4
links-as-notes: true
toc-depth: 4

editor: visual

Expand Down
42 changes: 36 additions & 6 deletions chapter-06.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ tbl_sixone_dat <- tribble(
'Umbrisol', 'UM',
'Vertisol', 'VR')
```

::: {#tbl-sixone}

::: {.content-visible unless-format="html"}
```{r}
tbl_sixone <- gt(tbl_sixone_dat) |>
tab_options(
column_labels.font.weight = 'bold',
Expand All @@ -61,20 +67,32 @@ tbl_sixone <- gt(tbl_sixone_dat) |>
tab_style(style = list(cell_text(weight = 'bold')),
locations = cells_body(columns = 2))
tbl_sixone
```
:::

::: {.content-visible when-format="html"}
```{r}
#| label: tbl-sixone
#| tbl-cap: Reference Soil Groups
#| classes: no-stripe
# using interactivity to manage table length
tbl_sixone <- gt(tbl_sixone_dat) |>
tab_options(
column_labels.font.weight = 'bold',
heading.title.font.weight = 'bold',
table.align = 'left'
) |>
tab_style(style = list(cell_text(weight = 'bold')),
locations = cells_body(columns = 2))
tbl_sixone |>
opt_interactive(
use_search = TRUE,
use_page_size_select = TRUE
)
```
:::

Reference Soil Groups
:::

## Qualifiers

Expand Down Expand Up @@ -381,9 +399,9 @@ tbl_sixtwo <- gt(tbl_sixtwo_dat) |>
```

::: {#tbl-sixtwo}
::: {.content-visible when-format="html"}
```{r}
#| label: tbl-sixtwo
#| tbl-cap: Qualifiers
#| classes: no-stripe
# using interactivity to manage table length
Expand All @@ -393,6 +411,18 @@ tbl_sixtwo |>
use_page_size_select = TRUE
)
```
:::

::: {.content-visible unless-format="html"}
```{r}
#| classes: no-stripe
tbl_sixtwo
```
:::

Qualifiers
:::

## Specifiers

Expand Down

0 comments on commit cb992ae

Please sign in to comment.