Skip to content

ioslides: two-columns layout and figure caption position #2611

Open

Description

@lodumont

Checklist

When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:

  • formatted your issue so it is easier for us to read?

  • included a minimal, self-contained, and reproducible example?

  • pasted the output from xfun::session_info('rmarkdown') in your issue?

  • upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?

  • installed and tested your bug with the development version of the rmarkdown package using remotes::install_github("rstudio/rmarkdown") ?

Issue

I would like to make a two-columns slide with an image and its caption at the bottom on the left, and a list on the right. Adding the .columns-2 attribute next to the slide title, the two columns are created, but the figure caption is always pushed to the second column, no matter the size of the image. Using fig.topcaption=TRUE, the caption and the image are both located on the first column, but with the caption on top.

Session info

R version 4.5.2 (2025-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.7.4, RStudio 2026.1.1.403

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
  base64enc_0.1.6   bslib_0.10.0      cachem_1.1.0      cli_3.6.5         compiler_4.5.2    digest_0.6.39    
  evaluate_1.0.5    fastmap_1.2.0     fontawesome_0.5.3 fs_1.6.7          graphics_4.5.2    grDevices_4.5.2  
  highr_0.12        htmltools_0.5.9   jquerylib_0.1.4   jsonlite_2.0.0    knitr_1.51        lifecycle_1.0.5  
  memoise_2.0.1     methods_4.5.2     mime_0.13         otel_0.2.0        R6_2.6.1          rappdirs_0.3.4   
  rlang_1.1.7       rmarkdown_2.30.3  rstudioapi_0.18.0 sass_0.4.10       stats_4.5.2       tinytex_0.58     
  tools_4.5.2       utils_4.5.2       xfun_0.56         yaml_2.3.12   

Example

---
title: "Presentation title"
subtitle: "Presentation subtitle"
author: "Authors"
date: "2026-03-11"
output: 
  ioslides_presentation
widescreen: true
---
  
```{r setup, include=FALSE}
library(knitr)
knitr::opts_chunk$set(echo = TRUE)
```

## Introduction {.columns-2}

```{r beny, out.height="450px", out.width="338px", fig.cap="Hoard from Bény-sur-Mer", echo=FALSE, fig.align='center', fig.topcaption=FALSE}
knitr::include_graphics("https://www.radiofrance.fr/s3/cruiser-production/2022/01/7b6a1889-4b0c-428e-9dd6-fe00f3abcdf6/860_etude-du-depot-de-beny-sur-mer-credit-c-marcigny-inrap.webp")
```

- item 1
- item 2
- item 3
- item 4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions