Closed paolobrasolin closed 3 years ago
@paolobrasolin thank you for this great news!
Could you help with:
For the handpicked LaTeXML, @CAMOBAP can you help release that version in Snap as "edge" for now? Thanks!
@ronaldtse @paolobrasolin we already did --edge release for snap for git://github.com/brucemiller/LaTeXML.git@9a0e7dc5
Please let me know if we should do the same for chocolatey
P.S. for OSX we don't control brew package, but it can be easily installed like this https://github.com/metanorma/metanorma-standoc/blob/master/.github/workflows/macos.yml#L30-L32
ping @ronaldtse @paolobrasolin
Thanks @CAMOBAP ! Yes, can you please do the same for chocolatey, and can you also write up some documentation on metanorma.com on how to install this special version of LaTeXML for Metanorma on different platforms?
@ronaldtse done https://github.com/metanorma/metanorma.com/pull/263
Done
I submitted the package to CTAN and set up a GHA action to release new tags on both GH and CTAN automatically.
In essence,
tex2mn
is composed ofmetanorma.cls
which is a LaTeX class to directly compile standard documents fromtex
topdf
. We don't strictly need it for MN, but it's nice for the user to have.metanorma.cls.ltxml
which is alatexml
script which allows transpilingtex
to an intermediatexml
representationmetanorma.xsl
which is alatexmlpost
stylesheet which allows transpiling the intermediatexml
representation to Metanorma'sadoc
Running
tex2mn
is a two step job:In case the workflow benefits from it, these commands also work piping
stdin
/stdout
:All the flags are needed as they are because of technical reasons (not delving into that here).
The exceptions are:
--preload=metanorma.cls
: iftex2mn
(i.e. themetanorma
CTAN package) is installed correctly, this flag can be omitted, aslatexml
can automatically solve the dependency--stylesheet=metanorma.xsl
: even iftex2mn
(i.e. themetanorma
CTAN package) is installed correctly, this flag cannot be omitted, but it can be simplified leveraging TeX's path resolver by writing--stylesheet=$(kpsewhich metanorma.xsl)
All that said, the piece of pipeline which is missing from MN
TEX -> ADOC
latexml
andlatexmlpost
(pretty common in LaTeX distributions)tex2mn
(i.e. themetanorma
CTAN package) either properly installed or put in a known folderCAVEAT: we need an unreleased feature of
latexml
, contained precisely ingit://github.com/brucemiller/LaTeXML.git@9a0e7dc5
Installation details for common OSs are available in the workflows: https://github.com/metanorma/tex2mn/tree/master/.github/workflows We'll have to wait for LaTeXML 0.8.5 to avoid handpicking a commit -- it's expected by July 2020: https://github.com/brucemiller/LaTeXML/issues/1234#issuecomment-591046589 Here is the progress status: https://github.com/brucemiller/LaTeXML/milestone/12