Hello World!

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.

sile
hello-world-sile.sil
\begin{document}
Hello World
\end{document}
Command
$ sile -o hello-world-sile.pdf hello-world-sile.sil
Preview
typst
hello-world-typst.typ
#set page(numbering: "1")

Hello World
Command
$ typst compile hello-world-typst.typ hello-world-typst.pdf
Preview
lualatex
hello-world-lualatex.tex
\documentclass{article}
\begin{document}
Hello World
\end{document}
Command
$ lualatex --interaction=batchmode --halt-on-error --jobname=data/hello-world-lualatex hello-world-lualatex.tex
Preview
groff
hello-world-groff.ms
.ds CF %
.LP
Hello World
Command
$ groff -ms -T pdf hello-world-groff.ms > hello-world-groff.pdf
Preview
satysfi
hello-world-satysfi.saty
@require: stdjareport

document(|
  title = {};
  author = {};
|) '<
  +p{Hello World}
>
Command
$ satysfi hello-world-satysfi.saty -o hello-world-satysfi.pdf
Preview
pagedjs
hello-world-pagedjs.html
<html>
    <head>
        <style>
        @page {
          @bottom-center {
            content: counter(page);
          }
        }
        </style>
    </head>
    <body>
        <p>Hello World</p>
    </body>
</html>
Command
$ pagedjs-cli -i hello-world-pagedjs.html -o hello-world-pagedjs.pdf
Preview
weasyprint
hello-world-weasyprint.html
<html>
    <head>
        <style>
        @page {
          @bottom-center {
            content: counter(page);
          }
        }
        </style>
    </head>
    <body>
        <p>Hello World</p>
    </body>
</html>
Command
$ weasyprint hello-world-weasyprint.html hello-world-weasyprint.pdf
Preview
glu
hello-world-glu.md
<style>
@page { @bottom-center { content: counter(page); } }
</style>

Hello World
Command
$ glu --css all-system-fonts.css -o hello-world-glu.pdf hello-world-glu.md
Preview
quarkdown
hello-world-quarkdown.qd
.docname {hello-world-quarkdown}
.doctype {paged}

.pagemargin {bottomcenter}
  .currentpage

Hello World
Command
$ quarkdown c --pdf hello-world-quarkdown.qd
Preview
speedata
hello-world-speedata.xml
<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>
Command
$ sp --dummy --layout hello-world-speedata.xml --jobname data/hello-world-speedata
Preview
vmprint
hello-world-vmprint.json
{
  "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}" }] }
          ]
        }
      ]
    }
  }
}
Command
$ vmprint --input hello-world-vmprint.json --output hello-world-vmprint.pdf
Preview