ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \LaTeX
Date: Thu, 26 Feb 2009 01:04:33 +0100	[thread overview]
Message-ID: <49A5DC91.6000603@wxs.nl> (raw)
In-Reply-To: <115224fb0902250549o46fccf3aqf144d7ad8752ee6@mail.gmail.com>

Wolfgang Schuster wrote:
> Hi,
> 
> I need the LaTeX logo in a document set with 8.5pt but with the last beta
> the following message.
> 
> ! LuaTeX error (arithmetic): divided by zero.
> \actualshipout ... \box \postponedcontent \box 0}}
>                                                   \else \message {[\ifarrang...
> \myshipout ... \fi {\thisisrealpage \realfolio #1}
>                                                   \gotonextrealpage \aftersh...
> \dofinaloutput ...agebody #1#2\setpagecounters }}}
>                                                   \fi \the \everyaftershipou...
> \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2
>                                                   \resetselectiepagina \incr...
> \sidefloatoutput ...e \else \finalsidefloatoutput
>                                                   \global \sidefloatvsize \n...
> <argument> ...\fi \else \the \defaultstreamoutput
>                                                   \fi
> ....
> l.5 \stoptext
> 
> The example file is:

unrelated to the logo ... any \txx does it

patch font-ini.mkiv .. (i have no time now to se why the other code fails)

\def\dododefinebodyfontenvironment[#1][#2][#3]% size class settings
   {\@@beginfontdef % \s!text goes wrong in testing because the 12pt 
alternative will called when typesetting the test (or so)
    \ifcsname\??ft#2#1\c!em\endcsname
       % we test for em as we assume it to be set
    \else
      \def\docommand##1%
% fails: \def\checkbodyfontenvironment[#1]{! #1 ! 
\definebodyfontenvironment[\fontclass][#1][]} \setupbodyfont[8.5pt]
% 
{\normalizebodyfontsize\csname\??ft\s!default##1\endcsname\dimexpr#1\relax\to\tempbodyfontsize
%         \letvalue{\??ft#2#1##1}\tempbodyfontsize}%
         {\scratchdimen\csname\??ft\s!default##1\endcsname\dimexpr#1\relax
          \normalizebodyfontsize\scratchdimen\to\tempbodyfontsize
          \letvalue{\??ft#2#1##1}\tempbodyfontsize}%
      \processcommacommand[\fontsizelist]\docommand
      \copyparameters
        [\??ft#2#1][\??ft\s!default]
        [\c!interlinespace,\c!em]%
    \fi
    \getparameters[\??ft#2#1][#3]%
    \@@endfontdef
    % new code, see remark
    \ifloadingfonts
      % only runtime
    \else\ifcsname\@size@#1\endcsname
      % only once
    \else
      % prevent loop (hence \empty)
      \letvalue{\@size@#1}\empty
      \defineunknownfont{#1}%
    \fi\fi
    % so far
    \setvalue{\@size@#1}{\docompletefontswitch[#1]}}


___________________________________________________________________________________
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:[~2009-02-26  0:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 13:49 \LaTeX Wolfgang Schuster
2009-02-26  0:04 ` Hans Hagen [this message]

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=49A5DC91.6000603@wxs.nl \
    --to=pragma@wxs.nl \
    --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).