UA-eMath / eMath

new eMath system
2 stars 0 forks source link

Ordering of items in list of \newcommands #244

Closed bohungi closed 2 years ago

bohungi commented 2 years ago

Is it possible to let the author order the list of \newcommands? - This would allow the author to achieve a listing which matches the meaning of these commands.

xqiu1 commented 2 years ago

The current order of the newcommands are exactly same as the order of the uploaded newcommands file. So there is a way to order the newcommands by uploading a new file which has the correct order. Letting the author order the list of newcommands is a little bit complicated and have to deal with the backend side. Let me know if you still want it for version 1 :)

bohungi commented 2 years ago

Ouch! - The current newcommands have been edited in eMath so that the semantic tooltips work. Also, I have added a few new ones. So, I do not have an existing file of newcomands which is up to date etc.

If letting the author order newcommands is complicated, then let's postpone that to version 2. To guide authors though, we need to take two steps:

  1. Add information to the \newcommands page saying that edits should be done in a file to be uploaded.
  2. Global removal of existing newcommands must work if a new document is uploaded.

Is this doable?

On Mon, May 30, 2022 at 2:25 PM Estelle Qiu @.***> wrote:

The current order of the newcommands are exactly same as the order of the uploaded newcommands file. So there is a way to order the newcommands by uploading a new file which has the correct order. Letting the author order the list of newcommands is a little bit complicated and have to deal with the backend side. Let me know if you still want it for version 1 :)

— Reply to this email directly, view it on GitHub https://github.com/UA-eMath/eMath/issues/244#issuecomment-1141458675, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKWRF3HGHPWJQCYH4AKNDTVMUP4JANCNFSM5XLIZFYA . You are receiving this because you authored the thread.Message ID: @.***>

xqiu1 commented 2 years ago

For the second point, removal doesn't affect the order of \newcommands, why we need a new file for it? Do you mean author should delete them in their uploaded file?

bohungi commented 2 years ago

If I understand the situation correctly, then I manage newcommands in a text file which is then uploaded. Managing newcommands can involve:

  1. creating new newcommands
  2. deleting existing newcommands
  3. editing existing newcommands
  4. re-arranging the ordering of newcommands

So, I do all of this in a text-file on my computer. So, now comes the time when I want to deploy my edits to eMath. Since my file has all the information, what would be the best approach to deploying?

My thought was, wipe away the previous upload, and upload the newly edited file. - Perhaps there is a better approach? George

On Mon, May 30, 2022 at 3:03 PM Estelle Qiu @.***> wrote:

For the second point, removal doesn't affect the order of \newcommands, why we need a new file for it? Do you mean author should delete them in their uploaded file?

— Reply to this email directly, view it on GitHub https://github.com/UA-eMath/eMath/issues/244#issuecomment-1141475309, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKWRF6G4CV4Y24ZZE53FITVMUUKJANCNFSM5XLIZFYA . You are receiving this because you authored the thread.Message ID: @.***>

xqiu1 commented 2 years ago

Sounds good to me, I've added some hints to inform authors.

bohungi commented 2 years ago

Somehow the deletion of a tex-assist file does not take hold. I am working in "Introduction to Linear Algebra" right now, and you can freely experiment with what you find in Tex Author Assist.

There are two files right now. The first one is: eMath-TeXAssist.txt. It is redundant, and deleting it doesn't remove it. More precisely, initially, it is gone. But then it re-appears.

On Mon, May 30, 2022 at 4:44 PM Estelle Qiu @.***> wrote:

Sounds good to me, I've added some hints to inform authors.

— Reply to this email directly, view it on GitHub https://github.com/UA-eMath/eMath/issues/244#issuecomment-1141522379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKWRFZQEZL5IH5JXBPWGT3VMVAE5ANCNFSM5XLIZFYA . You are receiving this because you authored the thread.Message ID: @.***>