Build poster as svg and include into Readme.md

Change-Id: Ib12305c0b56e6546f86da9fdc581621d80b1ece9
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1ef0245..8850e27 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,7 @@
 
     - start_section install_linux_packages "Installing missing Linux packages"
     - apt-get update
-    - apt-get install -y build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick ghostscript software-properties-common
+    - apt-get install -y build-essential libglpk40 libcurl4-gnutls-dev libxml2-dev libsodium-dev libsecret-1-dev libfontconfig1-dev libssl-dev libxt6 libpq-dev imagemagick ghostscript software-properties-common inkscape scour
     - add-apt-repository ppa:saiarcot895/chromium-beta
     - apt update
     - apt install -y chromium-browser
@@ -49,5 +49,8 @@
     - R_CACHE_ROOTPATH=./cache R -e "require(rmarkdown); render('R/report.Rmd', output_format='html_document', output_dir='target')"
     - R_CACHE_ROOTPATH=./cache R -e "require(rmarkdown); render('R/poster.Rmd', output_format='posterdown::posterdown_ids', output_dir='target')"
     - ./ci/html2pdf target/poster.html target/poster.pdf 1
+    - inkscape -b white --pdf-poppler -o target/poster.svg target/poster.pdf || true
+    - scour -i target/poster.svg -o target/poster_optimized.svg --enable-viewboxing --enable-id-stripping --shorten-ids --indent=none
+
     - end_section render
 
diff --git a/Readme.md b/Readme.md
index 8eb836c..b68d67d 100644
--- a/Readme.md
+++ b/Readme.md
@@ -15,6 +15,10 @@
 * [latest generated poster as PDF](https://gitlab.ids-mannheim.de/ICC/2023-07-20-ICC-ICLC10/-/jobs/artifacts/master/raw/target/poster.pdf?job=build-job)
 * [latest generated poster as HTML](https://gitlab.ids-mannheim.de/ICC/2023-07-20-ICC-ICLC10/-/jobs/artifacts/master/raw/target/poster.html?job=build-job)
 
+## Current poster (built by ci workflow)
+
+![current poster](https://gitlab.ids-mannheim.de/ICC/2023-07-20-ICC-ICLC10/-/jobs/artifacts/master/raw/target/poster_optimized.svg?job=build-job)
+
 ## Example charts (built by ci workflow)
 
 ### Tokens per ICC genre