ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Cc: Jonathan Kew <jonathan_kew@sil.org>
Subject: Re: XeTeX after ctxtools
Date: Sat, 15 Sep 2007 19:51:43 +0200	[thread overview]
Message-ID: <6faad9f00709151051v58a3c7d3nd6c11e1f042bb375@mail.gmail.com> (raw)
In-Reply-To: <46EC0BB8.6080500@wxs.nl>

(I'm sorry for the delayed answer.)

On 9/15/07, Hans Hagen wrote:
> Andrea Valle wrote:
> > ** WARNING ** Invalid CMap
> > ** ERROR ** pdf_ref_obj(): passed invalid object.
>
> i wonder what that object is .. and who generates the ref, could be a
> special but you do nothing special in the example so i'm puzzled ... do
> others have this problem?

Yes. I don't remember whether I already complained about it or not,
but here's another (minimal) example to reproduce it:

\starttext
\startformula
a+b=\int_{i=0}^{\infty}\Gamma\,dx
\stopformula
\stoptext

The main problem (besides being quite slow for the default LM) is that
"font loading" in ConTeXt+XeTeX now does the following:

if ("FontName" is a valid font) then
     use "FontName"
else
    use "[FontName]"
end

And that one forgets the third possibility: about the old tfm fonts
which should be loaded without any quotes, for example rm-lmr12

\font\a="rm-lmr12" works, but \font\a="rm-lmr12" at 12pt doesn't, and
ConTeXt tries to use that one. Normally TeX would stop: generate and
report the error at that point, but ConTeXt currently skips those
errors on purpose and tries to use an unexisting font, so it results
in a broken PDF.

What about
    \definefontsynonym [...] [rm-lmr12] [type=tfm]
    \definefontsynonym [...] [lmodern12-regular] [type=otf]
or, use the already existing mechanism:
    \definefontsynonym [...] [tfm:rm-lmr12] [...]
    \definefontsynonym [...] [file:lmodern12-regular] [...]

I know it's ugly, but I guess that one either needs:
a) being more precise in font specifications inside ConTeXt and tell
XeTeX exactly what kind of font needs to be loaded (an installed one,
otf file inside texmf tree, or the old tfm)
b) a harmless way to ask XeTeX if some font exists (instead of the
current ugly hack)
c) a new "extremely permissive" mode in XeTeX, which would accept the
same synax for al the three kinds of fonts

The fastest way to fix this is to create the third possibility in the
if-else statement (I forgot where that one was, but I can take a
look), but as an intermediate solution (until XeTeX gets more
functionality in that respect, if ever), I guess that a) would be a
must, although the definitions might look slightly less elegant/clean
than they're now.

Mojca

PS: to be honest, I'm still using the XeTeX version from TeXLive 2007
which is a bit old. I remember that Jonathan has promissed to look
into the problem described above some time ago (\font\a="rm-lmr12" vs.
\font\a="rm-lmr12" at 12pt), but I have no idea about what has
happened later with it. But in any case: this problem should be fixed
inside ConTeXt first.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-09-15 17:51 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 17:05 xetex and external pdf stretching Andrea Valle
2007-09-13 11:00 ` Mojca Miklavec
2007-09-13 11:17   ` Andrea Valle
     [not found]   ` <699048FE-7F2D-411A-A874-81C70C181E78@di.unito.it>
     [not found]     ` <6faad9f00709130451o3a0eb75am6ac8a63f8fc4bd21@mail.gmail.com>
     [not found]       ` <6041E5AB-A41B-4685-BA98-04AAAA05EC38@di.unito.it>
     [not found]         ` <6faad9f00709130547m60b27de5y3e3977c6c0144e00@mail.gmail.com>
2007-09-14  8:22           ` XeTeX after ctxtools in MacTeX was: " Andrea Valle
2007-09-14  8:31             ` Taco Hoekwater
2007-09-14 11:23               ` Andrea Valle
2007-09-14  8:46             ` Wolfgang Schuster
2007-09-14  8:59               ` Andrea Valle
2007-09-14  9:45                 ` Mojca Miklavec
2007-09-14 10:01                   ` XeTeX after ctxtools Andrea Valle
2007-09-14  9:51               ` Andrea Valle
2007-09-14 13:36                 ` Jean Magnan de Bornier
2007-09-14 13:46                   ` Andrea Valle
2007-09-14 13:59                     ` Hans Hagen
2007-09-14 14:02                       ` Andrea Valle
2007-09-14 14:17                         ` Hans Hagen
2007-09-14 15:54                           ` Andrea Valle
2007-09-14 18:27                             ` Hans Hagen
2007-09-14 16:41                           ` Andrea Valle
2007-09-14 18:28                             ` Hans Hagen
2007-09-14 19:02                               ` Andrea Valle
2007-09-15 11:25                                 ` Hans Hagen
2007-09-15 14:10                                   ` Andrea Valle
2007-09-15 16:43                                     ` Hans Hagen
2007-09-15 17:51                                       ` Mojca Miklavec [this message]
2007-09-15 19:16                                         ` Hans Hagen
2007-09-15 19:41                                         ` Hans Hagen
2007-09-16  7:53                                           ` Andrea Valle
2007-09-16  9:38                                             ` Mojca Miklavec
2007-09-16 21:53                                               ` Hans Hagen
2007-09-16  7:50                                       ` Andrea Valle
2007-09-16  9:21                                         ` Mojca Miklavec
2007-09-16 21:49                                         ` Hans Hagen
2007-09-17  6:54                                           ` Andrea Valle
2007-09-14 16:00                     ` Jean Magnan de Bornier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6faad9f00709151051v58a3c7d3nd6c11e1f042bb375@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=jonathan_kew@sil.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).