Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one typesetting comment ($t) is allowed per database #161

Open
MostAwesomeDude opened this issue Sep 12, 2023 · 2 comments
Open

Only one typesetting comment ($t) is allowed per database #161

MostAwesomeDude opened this issue Sep 12, 2023 · 2 comments

Comments

@MostAwesomeDude
Copy link

Quoting the PDF, p144:

In version 0.177 of the Metamath program, there may be only one $t comment in a database. This restriction may be lifted in the future to allow many $t comments in a database.

I would like to lift this restriction.

I am generating part of a database from structured data. I've arranged my generated data so that it can be appended to the end of an existing database. My generated data includes labels which are not in the main database, and I'd like to generate a typesetting comment ($t) so that those labels can be correctly formatted.

I'm planning on working around this for now, since my build step allows for aggressive sed incantations, but I'd prefer if I were able to merely have multiple $t which are monoidally aggregated.

@digama0
Copy link
Member

digama0 commented Sep 12, 2023

Agreed, this is a silly restriction which is not present for $j comments (which are otherwise identical parsing-wise) and necessitates some very inconvenient separation of typesetting info from constant declarations.

@tirix
Copy link

tirix commented Sep 13, 2023

Agreed - the code to change appears to be in mmwtex.c, in the readTexDefs function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants