INPE DISEP template for iA Writer.
  • CSS 57%
  • JavaScript 35.5%
  • HTML 7.5%
Find a file
2026-09-25 15:42:05 -03:00
INPE-DISEP-EN.iatemplate/Contents 🔧 Fix quotes rendering 2026-09-25 15:42:05 -03:00
INPE-DISEP.iatemplate/Contents 🔧 Fix quotes rendering 2026-09-25 15:42:05 -03:00
Example Report DISEP (EN).md 🎉 Initial version 2026-09-25 14:43:22 -03:00
Exemplo de Relatório DISEP.md 🎉 Initial version 2026-09-25 14:43:22 -03:00
LEIA-ME.md 🔧 Fix quotes rendering 2026-09-25 15:42:05 -03:00
README.md 🔧 Fix quotes rendering 2026-09-25 15:42:05 -03:00

iA Writer Template — INPE DISEP

A reproduction, in iA Writer, of the DISEP/INPE Typst template (INPE-DISEP-report/). It keeps the Typst cover, header and footer, the same fonts (the Typst IBM Plex Sans and IBM Plex Mono files, embedded in the bundle), the navy/blue/amber palette, and the Typst sizes and spacing, checked point by point against a Typst-generated PDF.

  • INPE-DISEP-EN.iatemplate — INPE-DISEP EN, in English.
  • INPE-DISEP.iatemplate — INPE DISEP, in Portuguese (full documentation in LEIA-ME.md).
  • Example Report DISEP (EN).md — sample report using every feature.

The two bundles are identical except for the fixed strings (l10n.css, title.html) and the hyphenation language. Both accept the metadata field names in English and in Portuguese.

Installation

  1. Double-click INPE-DISEP-EN.iatemplate; iA Writer offers to install it. When updating, first uninstall the previous version in iA Writer ▸ Settings ▸ Templates.
  2. In Settings ▸ Templates ▸ Print & PDF Export, turn on Title Page, Headers and Footers. The title page is the cover.
  3. Pick INPE-DISEP EN in the preview and export with File ▸ Export ▸ PDF on A4 paper.

Report structure

---
title: Attitude Control Performance Analysis in Nominal Mode
author: Author Name
---

# [%title]

| Field | Value |
|---|---|
| Subtitle | Verification of the pointing requirement in imaging |
| Short title | Attitude Control in Nominal Mode |
| Descriptor | Technical Report |
| Project | Amazonia 1B |
| Discipline | AOCS |
| Date | 15/09/2026 |
| Version | 1.0 |

## Introduction

...
  • Front matter: title is the report title. author is shown on the cover, in blue, below the subtitle (or in its place when there is no subtitle); without it, the author from Settings ▸ General is used. Only these two keys reach the template; everything else goes in the metadata table.

  • # [%title]: iA Writer replaces [%title] with the front-matter value. This # becomes the large cover title. It shows as a title in the preview and only on the cover in the PDF.

  • Metadata table ("Field | Value"): the first table before the first ##. The PDF consumes it for the cover, header and footer; the preview shows it as a discreet data card. Every field is optional, and missing ones are simply left out:

    Field Where it appears Default
    Subtitle blue line below the cover title — (line omitted)
    Short title header (right) the title
    Descriptor amber label above the cover title Technical Report
    Project cover band; header (left) — (cell omitted)
    Discipline cover band — (cell omitted)
    Date cover band export date
    Version cover band — (cell omitted)
    Division top-right corner of the cover Space Systems Division
    Unit footer ("INPE — Unit") DISEP
    Organization, Address, Rights "Published by" block on the cover INPE, São José dos Campos address, "© year INPE…"

    The cover band shows Project | Discipline | Date | Version. Empty cells are removed and the remaining ones share the width. In "Address", separate lines with /.

Writing conventions

  • Sections: ## → 1, ### → 1.1, #### → 1.1.1, with the number in blue and the title in navy. A heading is never left alone at the bottom of a page.
  • Applicable / reference documents: table headed Ref. | Title / Reference. The Ref. column is 60pt wide, in bold navy. Any AD1, RD2… cited in the text automatically becomes bold navy with a link to the table row.
  • Acronyms: table headed Acronym | Meaning, with a 110pt first column in bold navy.
  • Open points: TBD, TBC, TBD-01, TBC-02… automatically turn bold amber (except inside code).
  • Numbered tables: a caption in square brackets on the line right below the table ([Simulation parameters.]) becomes "Table N: …" above it. Tables without a caption are not numbered.
  • Row groups: a blank line in the table body separates the groups with a thin rule (the same one under the header).
  • Figures: ![Caption.](path/figure.svg) becomes "Figure N: Caption." below the image.
  • Quotes: > is set in gray (slate), with a thin bar on the left. Lists and numbered lists inside the quote work as usual.
  • Equations: $$…$$ for display and $…$ for inline math, with no space or line break right after the opening or before the closing delimiter (an iA Writer rule). Display equations are numbered "(1)", "(2)"… at the right margin; \notag skips the number. Inline equations are never numbered. A display equation may sit right against the text, with no blank line: the text stays justified and the spacing matches separate paragraphs.
  • Appendices: a <div class="appendices"></div> line before the first appendix. Each following ## becomes "Appendix A", "Appendix B"… on a new page, with subsections "A.1", "A.1.1" and equations "(A.1)", "(B.1)"…

Exported PDF

  • Cover (iA Writer title page): INPE logo, division, descriptor, title, subtitle, author, "Published by" block and the Project / Discipline / Date / Version band.
  • Header: project (bold navy) on the left, short title on the right, above a rule.
  • Footer: "INPE — DISEP" on the left and "page / total" on the right. The cover is not counted, so the first body page reads "1 / N", as in Typst.

Differences from Typst

  • There are no "Authors & Approval", "Document Control", Table of Contents or list pages; only the cover.
  • These documents are ad-hoc analyses without a configuration code. Where Typst shows the code, the cover and header use the project. The "Mission | Project" line became the subtitle, and the band gained the version.
  • Footnotes go to the end of the document, not to the page bottom.
  • There are no automatic cross-references: write "Table 1", "Figure 2" and "equation (3)" in the text.
  • Table column widths are automatic, since Markdown cannot set them. The exceptions are the AD/RD and acronym tables.
  • Some line breaks may differ: Typst can compress spaces when justifying, while browsers only stretch them.
  • Math is typeset by KaTeX, with Computer Modern fonts, close to Typst's New Computer Modern.
  • There is no watermark and no code syntax highlighting.

How it works (maintenance)

The files live in INPE-DISEP-EN.iatemplate/Contents/Resources/. Compared with the Portuguese bundle, only Info.plist, l10n.css (labels "Figure", "Table", "Appendix"), the title.html strings and the lang attribute of the HTML pages differ; keep every other file identical in both.

  • tokens.css: colors, fonts and rules (the lib.typ values), preview dark mode, and compensation for WebKit's print scaling (zoom: 0.9375).
  • style.css: document body. cover.css: cover. header-footer.css: header and footer.
  • inpe.js: reads the metadata table, numbers equations, and marks TBD/TBC, AD/RD and appendices. The architecture is described at the top of the file.

iA Writer only passes title, author, date, page-number and page-count to the pages. So the document page, which iA Writer renders first, publishes the metadata in localStorage, and the cover, header and footer read it from there.