Pupilla Multi-Language PDF Feature
How to Add Multiple Language PDFs
To add multiple language versions of a PDF, use the pdfs
field instead of the single pdf
field in your preprint’s front matter:
Example Configuration:
---
layout: preprint
title: "Your Paper Title"
authors:
- Author Name
pdfs:
- language: "English"
url: "/assets/pdfs/your-paper-en.pdf"
flag: "🇺🇸"
- language: "Italiano"
url: "/assets/pdfs/your-paper-it.pdf"
flag: "🇮🇹"
- language: "Français"
url: "/assets/pdfs/your-paper-fr.pdf"
flag: "🇫🇷"
---
Field Explanations:
language
: The display name for the language (can be in the native language)url
: Path to the PDF fileflag
: Emoji flag representing the language/country (optional - system will auto-detect common ones)
Supported Auto-Flags:
The system automatically detects flags for common languages:
- English → 🇺🇸
- Italiano/Italian → 🇮🇹
- Deutsch/German → 🇩🇪
- Español/Spanish → 🇪🇸
- Catalan → 🏴
- 日本語/Japanese → 🇯🇵
Migration from Single PDF:
Old format:
pdf: /assets/pdfs/paper.pdf
New format:
pdfs:
- language: "English"
url: "/assets/pdfs/paper.pdf"
flag: "🇺🇸"
Both formats are supported simultaneously.