On Thu, Aug 24, 2023 at 04:24:06PM -0400, Haines Brown wrote:
> I'm necessarily  working with a pdfLaTeX document.
> 
> I seem to recall from long ago that I could enter Unicode  
> in this way:
> 
>   ^^^^002B
> 
> Now it returns the error: "not set up for use with LaTeX." What does 
> this error imply?
> 
> This code works to produce an astrisk: 
> 
>       \char"002A
> 
> but \char"20AE fails although the character ₮ is accessible in my 
> font. The error I get is "Bad character code (8366)...  character 
> number must be between 0 and 255. Does "character number refer to 
> 002A? If so why does this sequence of characters not fall between 0 
> and 255?
> 
> My TexLive runs in emacs and automatically changes " to ``. This makes 
> it annoying to enter Unicode, for I have to paste it from the 
> terminal. Is there an easy way around this?

The short answer: use a Unicode capable TeX/LaTeX engine (LuaTex/LuaLaTeX
is said to be the currently most complete, perhaps also XeTeX). Enter
the characters as Unicode (most probably UTF-8 encoded).

Here [1] is a longer answer, which explains that the "classical" TeX input
engine (and PDFLaTeX is in that category) is not quite up to the task
of "doing" full Unicode. 

I'd go with LuaLaTex. And stop entering funny things like \char"XXXX
and use straight UTF-8 instead.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to