feat: add funding metadata support and increase QR code caption max-width
bump version to 2.3.0
Change-Id: Ic58f2788d4412ffd6cde6bfc7835d57e04ae5945
diff --git a/DESCRIPTION b/DESCRIPTION
index 91e5c42..be926e9 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
Package: posterdown.ids
Title: Generate IDS CD compliant PDF Conference Posters Using R Markdown
-Version: 2.2.0
+Version: 2.3.0
Authors@R:
c(person(given = "Marc",
family = "Kupietz",
diff --git a/NEWS.md b/NEWS.md
index 65d0cbd..4bd8804 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,13 @@
+# posterdown.ids 2.3.0 (2026-08-06)
+
+## New features
+
+* Added `funding` YAML metadata support (`funding.logo`, `funding.text`, `funding.project`) for displaying funding agency logos, descriptions, and project identifiers in the poster margin.
+
+## Improvements and fixes
+
+* Increased QR code caption maximum width from 7.5cm to 12cm to prevent URL wrapping.
+
# posterdown.ids 2.2.0 (2026-08-05)
## New features
diff --git a/README.md b/README.md
index c90aa3b..dc4a9d2 100644
--- a/README.md
+++ b/README.md
@@ -38,6 +38,10 @@
second_logo:
url: https://raw.githubusercontent.com/brentthorne/posterdown/master/images/betterhexlogo.png
margin-left: 14.5cm
+funding:
+ logo: dfg-logo.svg
+ text: Deutsche Forschungsgemeinschaft (DFG)
+ project: "Project number: 531750631"
```
To switch to German language, add the following to the YAML options:
diff --git a/inst/rmarkdown/templates/posterdown_ids/resources/template.html b/inst/rmarkdown/templates/posterdown_ids/resources/template.html
index e7728b0..df51d74 100644
--- a/inst/rmarkdown/templates/posterdown_ids/resources/template.html
+++ b/inst/rmarkdown/templates/posterdown_ids/resources/template.html
@@ -327,6 +327,30 @@
word-wrap: break-word;
}
+#info-column .funding-container {
+ margin-top: 1.2em;
+ margin-bottom: 1.5em;
+ max-width: 12cm;
+}
+
+#info-column .funding-logo {
+ max-width: 8cm;
+ height: auto;
+ margin-top: 0.4em;
+ margin-bottom: 0.4em;
+ display: block;
+}
+
+#info-column .funding-text,
+#info-column .funding-project {
+ display: block;
+ font-family: "Fira Sans Condensed", "Fira Sans Condensed Light", sans-serif;
+ font-size: 14pt;
+ line-height: 1.25;
+ color: #444444;
+ word-wrap: break-word;
+}
+
@media print {
#info-column {
/* Physical unit, NOT vh: in headless Chrome vh resolves against the browser
@@ -810,6 +834,22 @@
<br/>
© $if(year)$$year$$else$2026$endif$ IDS Mannheim/$if(lang.de)$ÖA$else$PR$endif$<br/>
<br/>
+
+$if(funding)$
+<div class="funding-container">
+<b>$if(lang.de)$Gefördert durch$else$Funding$endif$:</b><br/>
+$if(funding.logo)$
+<img class="funding-logo" src="$funding.logo$"/>
+$endif$
+$if(funding.text)$
+<span class="funding-text">$funding.text$</span>
+$endif$
+$if(funding.project)$
+<span class="funding-project">$funding.project$</span>
+$endif$
+</div>
+<br/>
+$endif$
$if(lang.de)$
<svg
version="1.1"