12:37 AM
1:22 AM
@KasperPeulen I'm not the best person to ask about this, not being a mathematician. My impression, though, is that for people who have been using TeX for many years, it's almost as readable as the math itself, and they are very used to entering the markup. And I think that given the broad range of symbols and constructs needed, many find inputting the math directly to be more cumbersome. I encounter a similar issue when I type phonetic symbols.
On the one hand, entering the unicode symbols directly makes for readable code, but on the other hand, inputting them is much slower than typing markup for them. Since I don't use phonetics much in my work, I tend to type the characters, but if I was using it a lot, I don't know what I would do.
8
At the moment, I am using mathspec and some traditional math packages such as mathpazo to typeset my mathematics. The results are mostly satisfactory, but I would like to expand the repertoire of some of the math alphabets by replacing the traditional packages with fragments of Unicode math fonts...
7 hours later…
8:44 AM
@KasperPeulen Just barging in here ... I'm a mathematician and I've recently started using unicode. Partly as an experiment to see just how usable it is. I've been using unicode-math for a longer but until recently just using normal LaTeX mathematical macros, so
\alpha
for α and so forth.
The problem with using unicode directly is simply how to input all those symbols. My keyboard is fairly standard which means that it has far fewer keys than there are symbols in the unicode character set. So when writing α, I have to use more than one keypress to do so. There are a variety of methods I could use.
1. Drop down list from somewhere. Then I have to be continually switching between the keyboard and a mouse/trackpad. That interrupts the flow of typing (I touch-type).
2. Have "hot keys". But these are usually bound to meta keys (ctrl, meta, alt, and so forth). Actually typing a combination can involve quite convoluted key combinations, leading to RSI and similar complications (I have a severely modified keyboard to put the normal LaTeX symbols somewhere more sensible).
3. Have some input scheme whereby certain strings get automatically converted to unicode characters. So, for example, I could type
α
and it got changed to an α, or ᏾
and it got changed to whatever-that-was. But here to be useful it needs to be a system where I can easily find out what the correct input is for a particular character. I use a lot of different characters and remembering the right input for each would be difficult if they weren't mnemonic in some fashion.
This last is what I do, except that as I've years of experience of typing LaTeX macros and zilch of typing HTML entities, I use the LaTeX macro name as the code for the unicode character. So in my editor (which happens to be emacs), when I type
\alpha
then it gets converted to α.
6 hours later…
2:43 PM
@AndrewStacey I wouldn't go for continually switching between keyboard and mouse/trackpad as well, but why don't you go for shorter strings that get automatically converted to characters ? I've never really used the macros of Latex, so I just go for the things as short as possible. I use some of those hotstrings (autohotkey file):
3:41 PM
@KasperPeulen You've answered your own question: "I've never really used the macros of Latex", whereas I - on the other hand - have used them a lot so the LaTeX macro for a symbol is deeply ingrained in my head and learning any other system would be painful. Moreover, I hinted that my keyboard is set up for LaTeX, so let's take one of your hot-keys and count keystrokes.
Let's take the one for alpha. You have:
::a?
. To type that on my system, I need to do shift+; shift+; a shift+/
. With my adapted keyboard, I type: ; a l p h a
(the ;
is mapped to the backslash). So in yours, I do four keystrokes but three of them are shift+keystroke and I'd rate that worth at least two keystrokes if not more. In mine, six keystrokes.
and if want to write that, you can press downarrow before you press ? and the hotstring doesn't work
3:54 PM
Not sure I completely follow, but I don't think I need to know the intricacies of your system to know that it wouldn't suit me (which isn't to say that it isn't a good system, just that mine fits me better). What I like is: easy to remember and easy to type. So I prefer a system where it is the actual name that is used, thus
\alpha
instead of \a
, and where it is a name not a symbol, thus \to
not ->
.
Regardless, these are features of editors not of LaTeX itself! Thus a good editor (aka Emacs) will let you configure it how you like. I could set up Emacs to use your system with no difficulty and then I could type a LaTeX document using your hotkeys (were I so inclined) and LaTeX would be none the wiser how I'd actually typed all those weird unicode symbols.
@AndrewStacey Yeah agree, but I like to have my hotstrings editor independent. With autohotkeys I can use those hotkeys in chrome,word,texworks,notepad or whatever editor I want. And I can install those hotkeys on every pc (even public pc's) in an instant.
4:10 PM
4:53 PM
@KasperPeulen To be honest, I was exaggerating ever so slightly. It only works on single substitutions, so it does
\'e
but not Fr\'echet
- not that it wouldn't be hard to extend but I've never needed to do so. It's a simple PHP look-up. You can see it in action at math.ntnu.no/~stacey/code/latexToUTF/utf.php to get the code itself, go to math.ntnu.no/~stacey/code/latexToUTF
3 hours later…
8:05 PM
« first day (1 day earlier) next day → last day (16 days later) »