### Bug description

If I added the following code
```
---
format:
  elsevier-pdf:
    fig-pos: 'H'
---
```
to position all the figures in document, in the output article.pdf file, only figure using format `![]()` is positioned as desired. Figure having subfigures using following code is not affected.
```
::: {#asdf layout-ncol=2}
![]()

![]()
:::
```

I tried to add `fig.pos='H'` like 
```
::: {#asdf fig.pos='H' layout-ncol=2}
![]()

![]()
:::
```
. Still didn't work.

I also checked the output article.tex file. It seems that single figure is converted to `\begin{figure}[H]` while the side-by-side figure is always `\begin{figure}`.

I'm on Windows 10. The output of `quarto check` is:
```
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.3.336
      Path: E:\quarto\anzhuang\bin
      CodePage: 936

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
      Version: 3.7.4
      Path: E:/python/anzhuang/python.exe
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with py -m pip install jupyter

[>] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

At current situation, I could directly add `[H]` in the output article.tex file as a workaround. But I have no idea on how to process the tex file. I tried 
```
quarto render article.tex --to elsevier-pdf
```
, but error occurs
```
ERROR: Unable to render article.tex
```
.

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [x] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-04-22T06:01:05Z
Serenade600
bug triaged-to figures
v1.4
open
fig-pos doesn't work for figure having subfigures
https://github.com/quarto-dev/quarto-cli/issues/5271