Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!freja.diku.dk!rimfaxe.diku.dk!kris From: kris@rimfaxe.diku.dk (Kristoffer H. Holm) Newsgroups: comp.text.tex Subject: Re: 8 bit in TeX3.0, how to do it with (gnu)emacs8? Message-ID: <1990Nov19.145439.6989@diku.dk> Date: 19 Nov 90 14:54:39 GMT References: <1990Nov18.202942.1175@uni-paderborn.de> Sender: news@diku.dk (The Netnews System) Organization: Department Of Computer Science, University Of Copenhagen Lines: 46 massa@uni-paderborn.de (Michael Janich) writes: >Hi TeX-freaks, >We have an 8 bit emacs and we want to run TeX3.0 to use German specific >codes. I tried the following, but it don't runs. Can anybody help me? >%%------cut-here----------------------------------------------- >%% LAST EDIT: Tue Nov 13 16:46:19 1990 by Michael Janich (massa) >\def'228{\"a} >\def'246{\"o} >\def'252{\"u} >\def'223{{\ss}} >\def'196{\"A} >\def'214{\"O} >\def'202{\"U} >\catcode228\active >\catcode246\active >\catcode252\active >\catcode223\active >\catcode196\active >\catcode214\active >\catcode202\active It does not work because 1) The character ' introduces an OCTAL constant to TeX. So you should give the constants in octal. 2) You need to tell that these constants should be interpreted as characters. Here is what I use to get various "accented" characters; the undersores (_) denote the actual 8-bit characters given as octal to the right: \catcode`\_=\active \def_{\`a} % \340 \catcode`\_=\active \def_{\c C} % \277 \catcode`\_=\active \def_{\c c} % \347 \catcode`\_=\active \def_{\'e} % \351 \catcode`\_=\active \def_{\"\i} % \357 Regards, Kristoffer H{\o}gsbro Holm Computer Science Dept. (TOPPS group), University of Copenhagen Work: Universitetsparken 1, DK-2100 Copenhagen {\O} +45 31396466 Home: c/o Hornstrup, Reventlowsgade 30 5th, DK-1651 V +45 31233331