Skip to content

::: {.landscape} div overrides footer content in reference-doc #12628

@marktodisco

Description

@marktodisco

Bug description

I'm using Quarto to render a MS Word document (DOCX) and have modified the reference document to include page numbers in the footer (no other changes). When I use the {.landscape} class within a div (documented here), the newly added section overrides the footer content, and only displays in the very last section of the document. Below are screenshots for the actual and expected DOCX outputs.

Unfortunately, this behavior makes Quarto unusable for my requirements. I really hope I'm just doing something wrong or there is a simple fix, because I would love to use Quarto if possible.

Steps to reproduce

  1. Follow the instruction here to create a custom DOCX reference doc.

  2. Add page numbers to the reference doc, save, and close.

  3. Create a QMD file from the code below.

---
format: 
    docx: 
        reference-doc: custom-reference.docx
jupyter: python3
---

Portrait

::: { .landscape }

Landscape

:::
  1. Run the following command.
quarto render x.qmd

Actual behavior

Footer page number only appear in the last section.

Image

Expected behavior

Footer page numbers appear in all sections, not just the last one.

Image

Your environment

  • IDE: vscode 1.92.2
  • OS: WSL Ubuntu-22.04 (on Windows 11)

Quarto check output

quarto check
Quarto 1.7.29
[✓] Checking environment information...
      Quarto cache location: /home/todima01/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.85.1: OK
      Deno version 1.46.3: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.7.29
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Tex:  (not detected)

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.15
      Path: /home/todima01/projects/dsbsvc-governance-govdocs/main/.venv/bin/python3
      Jupyter: 5.7.2
      Kernels: python3

[✓] Checking Jupyter engine render....OK

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocxIssues with the docx format

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions