9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] latex problem
@ 2002-05-08 15:13 Russ Cox
  2002-05-10  9:29 ` paurea
  0 siblings, 1 reply; 4+ messages in thread
From: Russ Cox @ 2002-05-08 15:13 UTC (permalink / raw)
  To: 9fans

Doesn't directly address your problem, but

http://www.eecs.harvard.edu/~rsc/utftex.c

converts between normal tex and unicode tex.
If you ran this filter over the file before
running latex you'd avoid whatever bug you're
hitting.

Russ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] latex problem
  2002-05-08 15:13 [9fans] latex problem Russ Cox
@ 2002-05-10  9:29 ` paurea
  0 siblings, 0 replies; 4+ messages in thread
From: paurea @ 2002-05-10  9:29 UTC (permalink / raw)
  To: 9fans

Russ Cox writes:
 > From: "Russ Cox" <rsc@plan9.bell-labs.com>
 > Subject: Re: [9fans] latex problem
 > Date: Wed, 8 May 2002 11:13:48 -0400
 >
 > Doesn't directly address your problem, but
 >
 > http://www.eecs.harvard.edu/~rsc/utftex.c

It doesn't have support for acute accents and introduces a space after
accentuated letters, which it shouldn't :-(. I am fixing it and will send
a diff when I have some time. Anyway, it would be better to fix the generation
of the TOC in Latex. I would if I knew from where to start...

--
                 Saludos,
                         Gorka

"Curiosity sKilled the cat"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] latex problem
@ 2002-05-10 11:37 Russ Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2002-05-10 11:37 UTC (permalink / raw)
  To: 9fans

> It doesn't have support for acute accents and introduces a space after
> accentuated letters, which it shouldn't :-(. I am fixing it and will send
> a diff when I have some time. Anyway, it would be better to fix the generation
> of the TOC in Latex. I would if I knew from where to start...

both of those derive from the fact that
i wrote it so i could share math-heavy
tex files with non-plan 9 users.
extra spaces don't matter in math mode.

i have little idea how to start looking
at the toc generation.  perhaps you could
start by looking at the unicode support that
howard wrote, which appears to work its magic
by setting all the bytes that are valid first
bytes in a multibyte utf-8 sequence to be
escape codes of some form.  or so i gather.
i'm very foggy about it.  _the latex companion_
probably will tell you how the tocs are
generated.

i am always amazed by people who swear off
troff as too much black magic and turn instead
to latex.

russ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] latex problem
@ 2002-05-07 23:57 paurea
  0 siblings, 0 replies; 4+ messages in thread
From: paurea @ 2002-05-07 23:57 UTC (permalink / raw)
  To: 9fans

After adding support for spanish hyphenations and mk'ing the fmt's I
have been writing some latex documents and have found a problem.
I am using the package unicode and selecting spanish in babel.

Almost everything works well but when the tableofcontents is generated,
latex stops with:

! Missing number, treated as zero.

The problem seems to be the accents.
Things like ó appear as "80Án.

Is this a bug or am I missing something?.

example:

\documentclass[12pt,a4paper]{article}

\usepackage[spanish,activeacute]{babel}
\usepackage{unicode} 
\begin{document} 
\seccion{sección}
Sección que da problemas.

%here come the problems.
\tableofcontents
\end{document}



-- 
                 Saludos,
                         Gorka

"Curiosity sKilled the cat"


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-10 11:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-08 15:13 [9fans] latex problem Russ Cox
2002-05-10  9:29 ` paurea
  -- strict thread matches above, loose matches on Subject: below --
2002-05-10 11:37 Russ Cox
2002-05-07 23:57 paurea

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).