Page MenuHomeFreeBSD

textproc/R-cran-tth: New port: Convert TeX/LaTeX to HTML/MathML
ClosedPublic

Authored by uzsolt on Apr 9 2024, 2:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 2, 1:51 PM
Unknown Object (File)
May 26 2024, 1:00 PM
Unknown Object (File)
May 26 2024, 6:12 AM
Unknown Object (File)
May 25 2024, 8:06 PM
Unknown Object (File)
May 21 2024, 6:07 AM
Unknown Object (File)
May 17 2024, 8:35 PM
Unknown Object (File)
Apr 28 2024, 11:44 AM
Unknown Object (File)
Apr 26 2024, 2:43 PM
Subscribers
None

Details

Summary

C source code and R wrappers for the tth/ttm TeX-to-HTML/MathML translators.

The R package tth ships the C sources for convenient compilation and
installation on all platforms.
It also provides wrappers in R to process R character vectors with the command
line tools directly from the R prompt.

The textproc/tth port ships `tth' binary but the two sources differ.
The `ttm' binary isn't available in the ports tree.

Approved by: bofh (mentor) OR diizzy (mentor)
(Differential Revision: https://reviews.freebsd.org/D###)

Test Plan

Portlint, portclippy, portfmt passed.
Poudriere testport passed (13.2, 13.3, 14.0).
The example in pdf documentation (https://cran.r-project.org/web/packages/tth/tth.pdf)
passed.

This package is suggested by R-cran-exams (plan to add to ports tree, https://www.r-exams.org/),
and the ttm converter is better than pandoc for mathematical formulas:
ttm generates MathML which is supported all major browsers (Chrome too!), the
pandoc generates a small image.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

uzsolt requested review of this revision.Apr 9 2024, 2:11 PM
uzsolt created this revision.

See note about for loop in post-install section

textproc/R-cran-tth/Makefile
16

A style preference but try to avoid loops if possible unless it makes sense.
In this case you're adding more lines (3 vs 2) than without so I'd say skip it.

This revision is now accepted and ready to land.May 25 2024, 8:11 PM