-
Notifications
You must be signed in to change notification settings - Fork 38
feat: add toTex
support for Manual.keywordOf
#572
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
base: main
Are you sure you want to change the base?
Conversation
chore: adapt to updated argument and flag syntax (leanprover#570)
6716e45
to
a3cd727
Compare
@david-christiansen Thanks for your review comments. I have updated the PR. I have few doubts though.. The
These are probably very basic questions, but please bear with me as I am still very new to Lean, so it is taking me some time to understand the Verso framework. |
These are good questions!
That's fine - PDF links can be added later, as a nice extra, but they're not really necessary in a PDF the same way as on a web page.
Good question. Right now, you could do this by deleting all the text of the manual except for a use of I'd accept a Verso PR that added a flag to downgrade this error to a warning, and put some kind of placeholder text in the TeX (e.g. "
This is a matter for taste and judgment. How would you like to read this in a printed book? What about on an e-reader? You should think about what is being represented, and use the HTML output as a general guide, taking the different media's tradeoffs into account.
This work is only for the manual genre and TeX/PDF. There's no spec - writing a spec would be harder than just writing the code in this case. You can think of the HTML as being a good guideline for most of it, but not always.
Not a problem! Thanks for helping out! |
toTex
support for Manual.keywordOf
toTex
support for Manual.keywordOf
@david-christiansen I see that you already made a change in Verso to log error instead of panic when
Shall I take a shot at fixing the build issue and follow it up with putting placeholder text in the |
Hmm, it certainly builds with the results of #576 locally, and it would really surprise me if CI let us commit something to |
Preview for this PR is ready! 🎉 (also as a proofreading version). built with commit 8a65ca2. |
@david-christiansen I figured out why I was getting the error. I had done a |
Good news! The thing to do is not to put placeholder text in the |
@david-christiansen thanks for the suggestion, let me try that. |
@david-christiansen After the suggested verso changes, I am able to generate |
@david-christiansen After manually fixing the errors in the generated I'll raise the verso PR now. Next I'll try to identify the code level changes needed to fix TeX compilation errors. If you have any suggestions about where I should look, please let me know. Here's the generated main.pdf. I haven't gone through it yet. Initially we should make it work, i.e., no TeX errors, and then make it make it look good. |
@david-christiansen The related verso PR for inserting placeholder text for missing |
This PR adds TeX rendering support for
Manual.keywordOf
.Relates to #434