IACR / latex

Latex classes for IACR publications. We will start with the new journal proposal.
9 stars 2 forks source link

consider implementing regex in cls file #237

Closed kmccurley closed 5 months ago

kmccurley commented 6 months ago

We have some authors forgetting to put {} or commas in their \addauthor macros, and the errors don't show up until they upload their paper (and the error message isn't very good because pydantic is where the regex matching occurs). There is apparently a regex package for LaTeX but I haven't tested it. Should we try to apply this to orcid and ror and inst and email during compilation time? It might catch things sooner, but writing regex is a real pain particularly for urls and email addresses.

kmccurley commented 6 months ago

This is an example of what the error message looks like in publish.iacr.org when the author forgets a comma after their ror= image There are so many possible errors that can occur when parsing the main.meta file that it would be hard to catch just this one.

jwbos commented 6 months ago

I will investigate if we can use to catch some common mistakes early on.

jwbos commented 6 months ago

I had a closer look, the regexp package l3regex was merged into the LaTeX3 kernel: l3kernel. No need to load any additional packages. I made some basic tests for orcid, email and inst to catch basic mistakes. This should provide some more useful error messages when people forget a comma.

jwbos commented 6 months ago

See 16e27ea2668460f72f8b1b88aed87c99833f9172 for review + comments.

jwbos commented 5 months ago

Merged with #238: this also fixes the Workflow test runs.