Just the simplest way to get a phrase onto a numbered page.
The page size, font face, margins, and everything else should be the defaults. The only non-default addition to the minimal way to get text on a page is adding a folio in the simplest way possible. The position of the folio may vary depending on defaults, but if an explicit position is required use bottom center.
\begin{document}
Hello World
\end{document}
$ sile -o hello-world-sile.pdf hello-world-sile.sil
#set page(numbering: "1") Hello World
$ typst compile hello-world-typst.typ hello-world-typst.pdf
\documentclass{article}
\begin{document}
Hello World
\end{document}
$ lualatex --interaction=batchmode --halt-on-error --jobname=data/hello-world-lualatex hello-world-lualatex.tex
.ds CF % .LP Hello World
$ groff -ms -T pdf hello-world-groff.ms > hello-world-groff.pdf
@require: stdjareport
document(|
title = {};
author = {};
|) '<
+p{Hello World}
>
$ satysfi hello-world-satysfi.saty -o hello-world-satysfi.pdf
<html>
<head>
<style>
@page {
@bottom-center {
content: counter(page);
}
}
</style>
</head>
<body>
<p>Hello World</p>
</body>
</html>
$ pagedjs-cli -i hello-world-pagedjs.html -o hello-world-pagedjs.pdf
<html>
<head>
<style>
@page {
@bottom-center {
content: counter(page);
}
}
</style>
</head>
<body>
<p>Hello World</p>
</body>
</html>
$ weasyprint hello-world-weasyprint.html hello-world-weasyprint.pdf
<style>
@page { @bottom-center { content: counter(page); } }
</style>
Hello World
$ glu --css all-system-fonts.css -o hello-world-glu.pdf hello-world-glu.md
.docname {hello-world-quarkdown}
.doctype {paged}
.pagemargin {bottomcenter}
.currentpage
Hello World
$ quarkdown c --pdf hello-world-quarkdown.qd
<Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Pagetype name="page" test="true()">
<AtPageShipout>
<PlaceObject column="1" row="{sd:number-of-rows() - 1}">
<Table stretch="max">
<Tr>
<Td align="center">
<Paragraph>
<Value select="sd:current-page()"/>
</Paragraph>
</Td>
</Tr>
</Table>
</PlaceObject>
</AtPageShipout>
</Pagetype>
<Record element="data">
<PlaceObject>
<Textblock>
<Paragraph>
<Value>Hello World</Value>
</Paragraph>
</Textblock>
</PlaceObject>
</Record>
</Layout>
$ sp --dummy --layout hello-world-speedata.xml --jobname data/hello-world-speedata
{
"documentVersion": "1.1",
"layout": {
"pageSize": "A4",
"margins": { "top": 48, "right": 48, "bottom": 48, "left": 48 },
"fontFamily": "Arimo",
"fontSize": 12,
"lineHeight": 1.4
},
"fonts": {
"regular": "Arimo"
},
"styles": {
"folio": {
"textAlign": "center"
}
},
"elements": [
{
"type": "paragraph",
"content": "Hello World"
}
],
"footer": {
"default": {
"elements": [
{
"type": "strip",
"slots": [
{ "elements": [{ "type": "folio", "content": "{pageNumber}" }] }
]
}
]
}
}
}
$ vmprint --input hello-world-vmprint.json --output hello-world-vmprint.pdf