* Generalized \installcompoundcharacter @ 2004-04-15 14:17 Matija Pretnar 2004-04-15 14:38 ` Gary Pajer 0 siblings, 1 reply; 4+ messages in thread From: Matija Pretnar @ 2004-04-15 14:17 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Generalized \installcompoundcharacter 2004-04-15 14:17 Generalized \installcompoundcharacter Matija Pretnar @ 2004-04-15 14:38 ` Gary Pajer 2004-04-15 14:58 ` Matija Pretnar 0 siblings, 1 reply; 4+ messages in thread From: Gary Pajer @ 2004-04-15 14:38 UTC (permalink / raw) > 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Generalized \installcompoundcharacter 2004-04-15 14:38 ` Gary Pajer @ 2004-04-15 14:58 ` Matija Pretnar 2004-04-15 17:27 ` Gary Pajer 0 siblings, 1 reply; 4+ messages in thread From: Matija Pretnar @ 2004-04-15 14:58 UTC (permalink / raw) 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 > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Generalized \installcompoundcharacter 2004-04-15 14:58 ` Matija Pretnar @ 2004-04-15 17:27 ` Gary Pajer 0 siblings, 0 replies; 4+ messages in thread From: Gary Pajer @ 2004-04-15 17:27 UTC (permalink / raw) Aha. Now I get it. I withdraw my comment, and wait for more expert opinion. -Gary ----- Original Message ----- From: "Matija Pretnar" <matija@pretnar.info > 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-15 17:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-04-15 14:17 Generalized \installcompoundcharacter Matija Pretnar 2004-04-15 14:38 ` Gary Pajer 2004-04-15 14:58 ` Matija Pretnar 2004-04-15 17:27 ` Gary Pajer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).