Generalized \installcompoundcharacter
With the advent of UTF-8, there comes a great possibility to improve readability of the TeX code. For example: instead of \int_a^b, you could write S_a^b, where S is the character for integral. Or greek letters and any other math symbol imaginable. I tried using \installcompoundcharacter S {\int} and similar commands and all the characters show up nicely, but the spacing is all wrong, because they are interpreted as variables instead of operations, relations, ... I think this replacement would be easy to implement (if it isn't already implemented), because with math symbols, you don't have to worry about hyphenation. You could simply replace the characters with corresponding command before sending it to TeX. I already made some kind of python script that does that, but for each file separately. And with many files, you have to preprocess each one individually, which sums up to another shell script and many temporary files. Cheers, Matija
Maybe I gave a bad example. Try this one. http://www.pretnar.info/compare.pdf On 15. apr 2004, at 16:38, Gary Pajer wrote:
With the advent of UTF-8, there comes a great possibility to improve readability of the TeX code. For example: instead of \int_a^b, you could write S_a^b, where S is the character for integral.
IMHO, this is less readable. _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Aha. Now I get it. I withdraw my comment, and wait for more expert
opinion.
-Gary
----- Original Message -----
From: "Matija Pretnar" Maybe I gave a bad example.
Try this one.
http://www.pretnar.info/compare.pdf On 15. apr 2004, at 16:38, Gary Pajer wrote: With the advent of UTF-8, there comes a great possibility to improve
readability of the TeX code.
For example: instead of \int_a^b, you could write S_a^b, where S is
the
character for integral. IMHO, this is less readable.
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context _______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
participants (2)
-
Gary Pajer
-
Matija Pretnar