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

Add support for commas in subscripts #283

Open
balrobs opened this issue Oct 5, 2024 · 4 comments
Open

Add support for commas in subscripts #283

balrobs opened this issue Oct 5, 2024 · 4 comments

Comments

@balrobs
Copy link

balrobs commented Oct 5, 2024

While trying out this great software, I came across an important limitation for me .... I was unable to use commas in subscripts for variables.
grafik
I am convinced that this would greatly improve the readability of documents.

Best wishes and congratulations for the great work

@mgreminger
Copy link
Owner

Thanks for the suggestion. Unfortunately, this usage of commas is not possible since commas in subscripts are used to index vectors and matrices as shown below (or in this sheet):
image

@balrobs
Copy link
Author

balrobs commented Oct 6, 2024

Thanks for the clarification,
it's a pity that the software can't distinguish between a variable subscript and a matrix index.
Would it then be possible as a workaround to allow some other similar alphanumerical character instead of the comma to somehow separate texts in variables subscripts? Maybe a semicolon or a blank space ... I noticed that even greek letters throw errors in variables subscripts.
Cheers
grafik

@mgreminger
Copy link
Owner

Yes, the lack of support for Greek characters in subscripts is a known issue (#246) and will be addressed at some point.

Unfortunately, supporting symbols in variable names (in the main variable or subscript) is not possible since the variable names need to map one-to-one to Python variable names and Python only allows underscores in variable names. Underscores are not easily supported since the underscore character is the keyboard shortcut to create a subscript.

Eventually, I plan to add support international characters in variable names, as Python allows, but this may take a while to implement.

@balrobs
Copy link
Author

balrobs commented Oct 8, 2024

Eventually, I plan to add support international characters in variable names, as Python allows, but this may take a while to implement.

That would be great!! "Good things take time"

Unfortunately, supporting symbols in variable names (in the main variable or subscript) is not possible since the variable names need to map one-to-one to Python variable names and Python only allows underscores in variable names. Underscores are not easily supported since the underscore character is the keyboard shortcut to create a subscript.

Here I could imagine the following solution to be able to use the underscore character in the variables: change the keyboard shortcut to create subscripts from underscore to dot?

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