AmerMathSoc / texml

A repository for texml development
9 stars 2 forks source link

Implement generic metadata #84

Closed davidmjones closed 4 months ago

davidmjones commented 4 years ago

Most of the JATS/BITS <front> element comes from the AMS gentag files. We should implement a backup system that uses what little data is available in the LaTeX file.

pkra commented 4 years ago

Related downstream issue: https://github.com/AmerMathSoc/ams-xml-to-html/issues/254, https://github.com/AmerMathSoc/ams-xml-to-html/issues/220.

pkra commented 3 years ago

Alternatively, could texml pick up on an xml fragment containing JATS/BITS metadata? For now, I'm planning on doing so manually for the test files downstream.

pkra commented 3 years ago

Generally speaking, a special-like "rawxml" command would be nice.

davidmjones commented 3 years ago

Generally speaking, a special-like "rawxml" command would be nice.

There is an \importXMLfragment; see, e.g., mcl05.tex (or any of the other books that incorporate external HTML tables. I'm not sure how well that will work with metadata, though, since it might be hard to get it inserted into exactly the right place.

pkra commented 3 years ago

Thanks! \importXMLfragment seems like a useful macro for this but I could not get it to have any effect on my end.

davidmjones commented 2 years ago

@pkra Have a look at tests/maketitle.tex in the latest push.

pkra commented 2 years ago

Very nice!

pkra commented 2 years ago

Very nice!

Alas, maketitle.tex compiles fine but our "regular" test files don't. Maybe we can sort that out at our next F2F.

pkra commented 2 years ago

Alas, maketitle.tex compiles fine but our "regular" test files don't.

maybe that's not appropriate anyway since our test files should be closer to production.

Maybe we can sort that out at our next F2F.

But lot's of questions so it'd be great to find some time next week.

davidmjones commented 2 years ago

But lot's of questions so it'd be great to find some time next week.

@pkra Sure.

One problem I know about is that if the test file contains \maketitle, the XML file now gets an xml-last-modified date, which causes the regression test to fail. Is that what you ran into, or is there something else?

pkra commented 7 months ago

Texml now can do quite a bit (author, thanks, title etc) - but I think only for the noti classes?

Hopefully it'll be easy to expose this more generally (and the noti classes have a ton of useful stuff for section metadata, too).

pkra commented 4 months ago

I think this can be closed. We have some support. Specific features can be specific issues.