Writing caron letters in TeX

BSc thesis - day 17 I consider writing writing your thesis on a technical faculty in anything but TeX to be an insult against the world itself. Yes, I do. Let the humanists keep their puny MS Word, real men (and women) use TeX. But there are some TeX techy issues that even I can not handle ... maybe it is the strict time limit I have on my BSc thesis or just being lazy. Well for now there was one such issue: writing caron letters. Slovenian language has three such letters: č, š, ž. The default way to write those letters in LaTeX (which is actually a kind of extended TeX) is to use this gibberish: v[c], v[s]. v[z]. Messy indeed. And surprisingly people (I have been talking to some people at the faculty about this) just do it. They write their articles and other documents using this slow notation. Well, not me. A bit of googling and I found the solution I am publishing below: Put those three lines after the documentclass instruction and replace "utf-8" with the charset name of the TeX source document:

usepackage[slovene][babel]
   usepackage[T1][fontenc]
   usepackage[utf-8][inputenc]

Well, the solution will only work on LaTeX versions from somewhere on, but the original solution is dating to the year 1997 so I think that should not me much of a problem.

Written on July 18, 2007 at 3:03 p.m.
blog comments powered by Disqus