`_brand.yml` for docx output

Offen
#15,381 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
javascript
Bereich
documentation

Rechercherichtung

Read the linked reference-doc.R example to understand how it maps _brand.yml values into a Pandoc reference document. Then trace Quarto’s brand handling and docx format configuration to find where generated or user-provided reference documents are prepared. Done means docx output applies the specified brand fonts and colours, includes the first-page logo, and preserves existing reference document styling; the issue names no Quarto files or tests.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

brand docx enhancement

_brand.yml applies to html, dashboard, revealjs and typst, but nothing of it reaches docx: a branded project renders to Word with Pandoc's default fonts, colours and no logo. Getting the same look in Word means writing a reference document by hand and keeping it in sync with the brand.

I hit this while making one bulletin render to HTML, Typst PDF and Word from the same source. I ended up generating the reference document from _brand.yml with a script, starting from Pandoc's default reference.docx:

  • typography.base and typography.headings families as the theme fonts and in the body and heading styles;
  • color.primary for headings, captions and hyperlinks, color.foreground for text;
  • the logo in the first-page header.

source

We could do the same in Quarto: when a project has a brand and the docx format sets no reference-doc, build one from the brand values, and when it sets one, apply the brand fonts and colours on top of it. This would give Word the same starting point as the other formats.

Vorherrschende Sprache
JavaScript
Sterne
6.2k
Forks
492
Ø Merge
15 Std. 15 Min.
Gemergte PRs (30 T.)
94

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus quarto-dev/quarto-cli

Alle Issues in quarto-dev/quarto-cli

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.