How to write Hotstrings that takes user input?
Posted: 26 Jul 2021, 12:05
Hi,
I don't know the name of what I'm looking for, so I haven't had any luck searching or reading different forum posts. I'll try to give a clear picture of what output I'm after and then maybe you can point me in the right direction.
I would like to be able to trigger a hotstring, have it take multiple input variables and then get an output.
One example would be writing fractions in latex. Today I have the hotstring "frac" which outputs "\frac{}{}{left 3}", which works fine for simple expressions, but becomes useless for more complex ones (useless in the sense that it is faster to just manually write every character instead).
Let's say I wanted to write the fraction a/b. Today i would write "frac+Space" to get \frac{}{}, then type "a" and then get over to the next parenthesis and type "b". What I would like is to write something like "fr.a''b.,." and get the output \frac{a}{b}.
This is just the tip of the iceberg of what I'd like it to do, but I'm guessing it's best to start small.
What do you suggest I do/read?
I don't know the name of what I'm looking for, so I haven't had any luck searching or reading different forum posts. I'll try to give a clear picture of what output I'm after and then maybe you can point me in the right direction.
I would like to be able to trigger a hotstring, have it take multiple input variables and then get an output.
One example would be writing fractions in latex. Today I have the hotstring "frac" which outputs "\frac{}{}{left 3}", which works fine for simple expressions, but becomes useless for more complex ones (useless in the sense that it is faster to just manually write every character instead).
Let's say I wanted to write the fraction a/b. Today i would write "frac+Space" to get \frac{}{}, then type "a" and then get over to the next parenthesis and type "b". What I would like is to write something like "fr.a''b.,." and get the output \frac{a}{b}.
This is just the tip of the iceberg of what I'd like it to do, but I'm guessing it's best to start small.
What do you suggest I do/read?