Skip to content

Releases

LaTeX for Omeka 0.1.2

Choose a tag to compare

@parthaped parthaped released this 16 Nov 18:35

Fixes for characters that transcribers type by habit inside a table. Text outside a LaTeX block was already left exactly as typed; these cases only arose in table cells.

Upgrading from 0.1.1

  1. Replace the LatexForOmeka folder in modules/ with the one in LatexForOmeka.zip below.
  2. In the admin, open Modules and click Upgrade next to LaTeX for Omeka.

Until step 2 is done, Omeka does not load the module, and transcriptions show their LaTeX as plain text.

Fixed

  • Company names keep their ampersand. In a row with more cells than the table has columns, the & in "Edison & Co.", "& Sons" and "& Bros.", an & glued to a word (&co, &c.) and initials such as AT&T and R&D now stay in their cell. Before, each one started a new column and pushed the amounts out of line. Scripto's & is handled the same way. When the other rows show that the column count is right, any remaining extra & joins the leftmost cell, where names usually are; a table whose column spec is simply too short still shows every cell.
  • Percentages are no longer comments. A % after a number (6%, 6 %) is a percent sign. Before, it started a LaTeX comment, which silently deleted the rest of the row and merged it into the next one. Any other % is still a comment, and in math every % still is, as in TeX.
  • Dollar amounts in a cell stay money. $ inside a block now follows the same rules as dollar math elsewhere, so "from $5 to $10" is no longer typeset as math. $x^2$ still is.
  • A stray brace stays a brace. A { or } with no partner is shown as typed. Before, a stray { swallowed the rest of the table into one cell, and a stray } disappeared.

Tables written with LaTeX's own escapes (\&, \%, \$) render as before.

Tested on Omeka S 4.2.1 (PHP 8.3, MariaDB 11.4) with Center Row 1.8.5, IIIF Server 3.6.25, Universal Viewer 3.6.10 and Metadata Browse 1.6.1.

LaTeX for Omeka 0.1.1

Choose a tag to compare

@parthaped parthaped released this 15 Nov 20:41

Fixes found by testing the module on a copy of a site that uses the Center Row theme, IIIF Server and Universal Viewer.

Upgrading from 0.1.0

  1. Replace the LatexForOmeka folder in modules/ with the one in LatexForOmeka.zip below.
  2. In the admin, open Modules and click Upgrade next to LaTeX for Omeka.

Until step 2 is done, Omeka does not load the module, and transcriptions show their LaTeX as plain text.

Fixed

  • IIIF manifests stay clean. The module now rewrites values only on site and admin pages. Before, IIIF Server manifests carried the module's page wrapper in the transcription's metadata: a div with a second copy of the text, which IIIF viewers do not accept. Manifests now get the transcription as plain text.
  • Ledger totals are no longer made into headers. In a booktabs table, the rows above the first \midrule became the header even when that rule was only separating a final "Total" from the entries above it, so every entry showed as a bold header. A rule before a final total, grand total or subtotal row, below rows of amounts, now leaves the table without a header. Real header rows are kept, including multi-row headers and tables with a single data row.
  • Tables keep their own width in Center Row. The theme's .property .value table { width: 100% } stretched transcribed tables across the page. The module's rule now takes precedence, centred tables included.

Tested on Omeka S 4.2.1 (PHP 8.3, MariaDB 11.4) with Center Row 1.8.5, IIIF Server 3.6.25, Universal Viewer 3.6.10 and Metadata Browse 1.6.1.

LaTeX for Omeka 0.1.0

Choose a tag to compare

@parthaped parthaped released this 15 Nov 05:25

First release of LaTeX for Omeka, an Omeka S module that renders LaTeX written in text values, such as transcriptions, on the site's pages.

Install

Download LatexForOmeka.zip below and unzip it into the modules/ folder of Omeka S. It unzips to a folder named LatexForOmeka, which is the name Omeka needs. Then install the module under Modules in the admin. Requires Omeka S 4.

What's in 0.1.0

  • Tables: tabular, tabularx, tabulary and longtable, with:
    • rules, including booktabs' \toprule, \midrule and \bottomrule;
    • merged cells (\multicolumn, \multirow);
    • @{.} decimal alignment, header and footer rows, and captions.
  • Math, typeset by KaTeX: \( … \), \[ … \], equation, align, gather and the matrix environments.
  • Lists and blocks: itemize, enumerate, description, center, quote, verbatim, and others.
  • Text outside LaTeX blocks is unchanged. $ in running text stays a dollar sign unless the site opts in.
  • Nothing is dropped. Commands and environments the module cannot draw are shown as written.
  • Scripto support:
    • LaTeX imported from Scripto's wiki renders correctly;
    • an optional setting shows the &amp; and &lt; codes Scripto leaves in imported text as & and <.
  • Settings: which properties to render, dollar math, entity cleanup, and where KaTeX loads from (a CDN, or a copy in the module).

See the README for usage, including how to write LaTeX in Scripto transcriptions.

Tested on Omeka S 4.2.1 with PHP 8.3 and MariaDB 11.4.