[texhax] European quotation marks

Ulrike Fischer news3 at nililand.de
Fri Apr 10 17:39:06 CEST 2009


Am Fri, 10 Apr 2009 17:13:31 +0100 schrieb Rodolfo Medina:

>>> I wish to use the quotation marks « and ».

>> Something like this:
>>
>> \pdfmapfile{+lm-texnansi.map}
>>
>> \chardef\guillemotleft =171
>> \chardef\guillemotright=187
>>
>> \catcode`«=13 \def«{\guillemotleft }
>> \catcode`»=13 \def»{\guillemotright}
>>
>> \font\test=texnansi-lmr10\test

> ; if I process it with pdftex, I get:
> 
> $ pdftex test
> This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5)
> entering extended mode
> (./test.tex
> ! Missing number, treated as zero.
> <to be read again>
>> l.6 \catcode`«
>                =13 \def«{\guillemotleft }

You have saved the file as utf-8. This will not work, in utf-8 « is
encoded with more than 8 bits and so is not a char for pdftex. 

But you can use the ligatures << and >>:

\font\test=texnansi-lmr10\test

<< abc >> 
\bye 

-- 
Ulrike Fischer 



More information about the texhax mailing list