Subfigures are numbered as separate figures, and `layout-ncol` has no effect in HTML
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- html, markdown, rust
- Área
- cli, documentation
Línea de trabajo
Start with the figure and subfigure handling in the q2 Rust crates, then compare HTML output for layout-ncol against the docx writer, which already lays subfigures side by side. Run the render from the repro on a small two-image document and check whether the subfigure ids get (a) and (b) numbering. Done means the cross-references resolve as in Quarto 1 and the HTML output includes the layout panel and row markup.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Tested with q2 0.47.0 and pandoc 3.14 (via QUARTO_PANDOC) on Windows 11, compared with Quarto 1.11.9 and plain pandoc 3.14.
A figure div with subfigures (the example from the q2 Figures guide) gives each subfigure its own top-level number instead of "(a)" and "(b)". The parent figure gets the next number. In HTML, layout-ncol is only written out as a data-layout-ncol attribute: there's no layout panel or CSS, so the images stack. In docx, the subfigures sit side by side in a table, but each image keeps its full width (5.56 in), where Quarto 1 scales them to the column (3.25 in).
Repro
::: {#fig-pair layout-ncol=2}
{#fig-l}
{#fig-r}
Two figures
:::
See @fig-pair, @fig-l and @fig-r.
q2 render sub.qmd --to html (and --to docx)
Actual: captions "Figure 1: Left", "Figure 2: Right", "Figure 3: Two figures"; text "See Figure 3, Figure 1 and Figure 2". In HTML, no quarto-layout-panel or quarto-layout-row.
Expected (Quarto 1): subcaptions "(a) Left" and "(b) Right" under "Figure 1: Two figures"; text "See Figure 1, Figure 1 (a) and Figure 1 (b)"; a two-column layout.
A layout panel without subfigure ids (::: {layout-ncol=2} with two captioned images) has the same HTML problem.
- Lenguaje dominante
- Rust
- Estrellas
- 316
- Forks
- 23
- Merge medio
- 11 h 49 min
- PR fusionados (30 d)
- 245
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quarto-dev/q2
-
Heading anchor links have no icon: AnchorJS is initialised with an empty `icon`Posiblemente ocupada @cscheid la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
quarto-dev/q2#1419 ·
Los mantenedores suelen responder en 1 día
-
bug testing windows
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
quarto-dev/q2#1346 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
quarto-dev/q2#1095 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
quarto-dev/q2#1418 ·
Los mantenedores suelen responder en 1 día
-
bug readers-writers windows
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
quarto-dev/q2#1416 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de quarto-dev/q2
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
BurntSushi/jiff#755 ·
Los mantenedores suelen responder en 1 día
-
After the kernel is given up on, a new import leaves "Importing…" and its Cancel on the status lineAbiertobug help wanted priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sawhorse3d/sawhorse#163 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MartinPTielemans/ilo#4607 ·