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

new tool: symnamer #60

Open
kohlhase opened this issue Nov 21, 2024 · 0 comments
Open

new tool: symnamer #60

kohlhase opened this issue Nov 21, 2024 · 0 comments
Assignees

Comments

@kohlhase
Copy link
Collaborator

Currently \symdefs often do not have a good symbol name, and then -- e.g. in the learner model overview -- the macroname becomes visible to the students.

Therefore I would like to go over the corpus and supply good names. I suspect that it would be relatively easy to build a new tool symnamer that steps through all \symdef occurrences and allows me to supply better symbol names.

Concretely, if symnamer finds a \symdef{foo}[<keys>]{...}, where

  • <keys> do not have a name= attribute or
  • and there is no comment symamer: foo coment at the end of the file
    then symnamer asks the user for a symbol name. If the user answers
    *bar, then it changes the \symdef to \symdef{foo}[name=bar,<keys>]{...} (possibly adding the square brackets
  • the empty string then the entry is skipped
  • Control-D (or something easy that is not misinterpreted as a name) then a comment symnamer: foo is added at the end of the file.
    I think that is all we need.
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

2 participants