From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100253 Path: news.gmane.org!.POSTED!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: Fourier and utopia Date: Sat, 3 Mar 2018 19:17:37 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4086235356383561592==" X-Trace: blaine.gmane.org 1520101015 22211 195.159.176.226 (3 Mar 2018 18:16:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Mar 2018 18:16:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 03 19:16:50 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esBiD-0005B1-4f for gctc-ntg-context-518@m.gmane.org; Sat, 03 Mar 2018 19:16:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 977AD4E6998; Sat, 3 Mar 2018 19:18:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nhYRvMoWzaJJ; Sat, 3 Mar 2018 19:18:21 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C61324E6A04; Sat, 3 Mar 2018 19:18:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E4A524E6A04 for ; Sat, 3 Mar 2018 19:18:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eDs-m-S40zsi for ; Sat, 3 Mar 2018 19:18:20 +0100 (CET) Original-Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id CE5064E6998 for ; Sat, 3 Mar 2018 19:18:09 +0100 (CET) Original-Received: by mail-io0-f171.google.com with SMTP id b34so13865527ioj.6 for ; Sat, 03 Mar 2018 10:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=lmAj1SBvBvTzPkvGHHK0Oh9aG/D9Rx/JZqm9PGjVwYc=; b=aEezYSeSc6Pgo8n1k9//9q4qug1eMf7Vh9li+TrzpWWJRTfzv5G+ZeJFK9Xf8JVDLh cWRzWDBei8p19CSPCkPxkpivo2Ci1G0rj3ag+RPBjfaurU2/I/sGGAwHAMpkm5SONmj+ lTxq8+0Apr51W6pnplgGRJDF9ZniM07ke4IWRlawovEP+EfYti77oufmsplxFYKjaIw+ dOvnqh5km0ToeL87F6f32vSwHdRhvJ2jlPgWo8Nld9WbMCYV0ddvITHERQouELMkK9t2 t+Py9kz4eh9QZAplYcMd5Kzf/2KibkJwANDC0D+PT9KlqwztnP/+qmSuytCp03F0reGu q4EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=lmAj1SBvBvTzPkvGHHK0Oh9aG/D9Rx/JZqm9PGjVwYc=; b=K8+KliQOy2qXTLLRC0+fAX6iInGFvrD/6lbSqgq9Qyy8hciZsA4dqjOsBfdZ8UVn83 TsG2vNnYzyPVAzvXOPOrif69WPl5E623r5oBqtqAFVpivD7NBVAo2vCOMYL2aBcMcrUY trZ2RER3Nh1+JbbmtabYPTPj8+XZSYLVek9vywbIEvHjSdbtiseLzr7BcNERy5fgf7lS Vp+hjh76RG7C0ys5i6mRoAeOGGkyaIDpMCAKAePSzzZRYxtE/CzEhRjQhmQWP1Vpwna2 d6GoIrKP7xzxYNHuIXFuzJq8nHVbSY79n01WPXIMtvJiF5fBFf0CCdtOkQJsslm9Vhad QzUg== X-Gm-Message-State: APf1xPB+V4HNj75ytSjBgjRqtGNanRNsleMQU8s77xCCS6/09h0MnDH5 MsBDHQMWjZb8SOdk/ep/T+Ry3QbKBV4oWZqUWJ0HVg== X-Google-Smtp-Source: AG47ELvaXiaRlZFNThCTAFy8B+uTmlmxRrQPLHfbMjVzVWvyyrMzvrhRbjGBQejGrbzpr+rPnFDPcxjPeKOzxOWg0Rw= X-Received: by 10.107.212.7 with SMTP id l7mr11166099iog.70.1520101087865; Sat, 03 Mar 2018 10:18:07 -0800 (PST) Original-Received: by 10.107.138.197 with HTTP; Sat, 3 Mar 2018 10:17:37 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100253 Archived-At: --===============4086235356383561592== Content-Type: multipart/alternative; boundary="f403043d0f885d70020566861d9e" --f403043d0f885d70020566861d9e Content-Type: text/plain; charset="UTF-8" On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist wrote: > Dear Hans and dear list, > > I try to use the fourier/utopia combination in mkiv (I used that > combination for my PhD thesis in mkii 10 years ago). > > First of all, I have downloaded the fourier fonts from ctan at > https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by > mtxrun. > > I have one folder containing type-fourier.mkiv, fourier-math.lfg and > testfile.tex. Everything seems to be found by the system, so the problem is > probably in my files somewhere. The resulting pdf after compiling > testfile.text is attached. > > Any ideas of what I am missing? > > Additionally, the fourier fonts come with fourier-bb.tfm (probably with > blackboard bold), fourier-mcl (probably so that one can use mathcal). Any > ideas on how to use them in the fourier-math.lfg file? > > If more information is needed, then please tell me. > > /Mikael > > %%% > type-fourier.mkiv: > %%% > \starttypescriptcollection[fourier] > \starttypescript [serif] [fourier] > \definefontsynonym [Utopia-Regular] [file:putr8a.afm] > \definefontsynonym [Utopia-Italic] [file:putri8a.afm] > \definefontsynonym [Utopia-Bold] [file:putb8a.afm] > \definefontsynonym [Utopia-BoldItalic] [file:putbi8a.afm] > \stoptypescript > > \starttypescript [serif] [fourier] [name] > \setups[font:fallback:serif] > \definefontsynonym [Serif] [Utopia-Regular] > \definefontsynonym [SerifItalic] [Utopia-Italic] > \definefontsynonym [SerifBold] [Utopia-Bold] > \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic] > \stoptypescript > > \starttypescript [math] [fourier] [all] > \loadfontgoodies[fourier-math] > \definefontsynonym [MathRoman] [fourierrm@fourier-rm] > \stoptypescript > > \starttypescript [fourier] > \definetypeface [\typescriptone] [rm] [serif] [fourier] [default] > \definetypeface [\typescriptone] [ss] [sans] [modern] [default] > \definetypeface [\typescriptone] [tt] [mono] [modern] [default] > \definetypeface [\typescriptone] [mm] [math] [fourier] [default] > \quittypescriptscanning > \stoptypescript > \stoptypescriptcollection > > > %%% > fourier-math.lfg: > %%% > return { > name = "fourier-math", > version = "1.00", > comment = "Math font Fourier for Utopia.", > mathematics = { > mapfiles = { > "fourier.map", > "mkiv-base.map", > }, > virtuals = { > ["fourier-rm"] = { > { name = "putr8a", features = "virtualmath", main = true }, > { name = "fourier-ml.tfm", vector = "tex-mr", > skewchar=0x7F }, > { name = "fourier-mlit.tfm", vector = "tex-mi", > skewchar=0x7F }, > { name = "fourier-mlit.tfm", vector = "tex-it", > skewchar=0x7F }, > { name = "fourier-mlb.tfm", vector = "tex-bf", > skewchar=0x7F }, > { name = "fourier-mlitb.tfm", vector = "tex-bi", > skewchar=0x7F }, > { name = "fourier-ms.tfm", vector = "tex-sy", > skewchar=0x30, parameters = true }, > { name = "fourier-mex.tfm", vector = "tex-ex", extension > = true }, > msam, > msbm, > }, > } > } > } > > %%% > testfile.tex: > %%% > \loadtypescriptfile[type-fourier] > \setupbodyfont[fourier,12pt] > > \starttext > \startTEXpage[offset=3bp] > Some math: $y''=(y')'$. > A displayed formula: > \startformula > f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt. > \stopformula > \stopTEXpage > \stoptext > > A small step in the right direction: Blackboard letters and calligraphic (script) letters seem to work when I add { name = "fourier-bb.tfm", vector = "tex-mb", skewchar=0x7F }, { name = "fourier-mcl.tfm", vector = "tex-sy", skewchar=0x7F }, to fourier-math.lfg. /Mikael --f403043d0f885d70020566861d9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On S= at, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist <mickep@gmail.com> wrote:
Dear Hans and dear list,

I try to use the fouri= er/utopia combination in mkiv (I used that combination for my PhD thesis in= mkii 10 years ago).=C2=A0

First of all, I have do= wnloaded the fourier fonts from ctan at https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by mtxrun.

I have one folder containing type-fourier.mkiv, fourier-math.lfg and = testfile.tex. Everything seems to be found by the system, so the problem is= probably in my files somewhere. The resulting pdf after compiling testfile= .text is attached.

Any ideas of what I am missing?=

Additionally, the fourier fonts come with fourier= -bb.tfm (probably with blackboard bold), fourier-mcl (probably so that one = can use mathcal). Any ideas on how to use them in the fourier-math.lfg file= ?

If more information is needed, then please tell = me.

/Mikael

%%%
type-fourier.mkiv:
%%%
\starttypescriptcollection= [fourier]
=C2=A0 =C2=A0 \starttypescript [serif] [fourier]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \definefontsynonym [Utopia-Regular]=C2= =A0 =C2=A0 =C2=A0[file:putr8a.afm]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \d= efinefontsynonym [Utopia-Italic]=C2=A0 =C2=A0 =C2=A0 [file:putri8a.afm]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \definefontsynonym [Utopia-Bold]=C2=A0 = =C2=A0 =C2=A0 =C2=A0 [file:putb8a.afm]
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 \definefontsynonym [Utopia-BoldItalic]=C2=A0 [file:putbi8a.afm]
=C2=A0 =C2=A0 \stoptypescript

=C2=A0 =C2=A0 \st= arttypescript [serif] [fourier] [name]
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \setups[font:fallback:serif]
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 \definefontsynonym [Serif]=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 [Utopia-Regular]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \d= efinefontsynonym [SerifItalic]=C2=A0 =C2=A0 =C2=A0 [Utopia-Italic]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \definefontsynonym [SerifBold]=C2=A0 =C2=A0 = =C2=A0 =C2=A0 [Utopia-Bold]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \definefo= ntsynonym [SerifBoldItalic]=C2=A0 [Utopia-BoldItalic]
=C2=A0 =C2= =A0 \stoptypescript

=C2=A0 =C2=A0 \starttypescript= [math] [fourier] [all]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \loadfontgood= ies[fourier-math]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \definefontsynonym = [MathRoman]=C2=A0 =C2=A0 =C2=A0[fourierrm@fourier-rm]
=C2=A0 =C2= =A0 \stoptypescript

=C2=A0 =C2=A0 \starttypescript= [fourier]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \definetypeface [\typescri= ptone] [rm] [serif] [fourier] [default]
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 \definetypeface [\typescriptone] [ss] [sans]=C2=A0 [modern]=C2=A0 [defa= ult]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \definetypeface [\typescriptone]= [tt] [mono]=C2=A0 [modern]=C2=A0 [default]
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 \definetypeface [\typescriptone] [mm] [math]=C2=A0 [fourier] [defaul= t]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \quittypescriptscanning
= =C2=A0 =C2=A0 \stoptypescript
\stoptypescriptcollection


%%%
fourier-math.lfg:
<= div>%%%
return {
=C2=A0 =C2=A0 name =3D "four= ier-math",
=C2=A0 =C2=A0 version =3D "1.00",
=
=C2=A0 =C2=A0 comment =3D "Math font Fourier for Utopia.",
=C2=A0 =C2=A0 mathematics =3D {
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 mapfiles =3D {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &quo= t;fourier.map",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &q= uot;mkiv-base.map",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 virtuals =3D {
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ["fourier-rm"] =3D {
=C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { name =3D "putr8a", f= eatures =3D "virtualmath", main =3D true },
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { name =3D "fourier-ml.t= fm",=C2=A0 vector =3D "tex-mr", skewchar=3D0x7F },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { name =3D "f= ourier-mlit.tfm", vector =3D "tex-mi", skewchar=3D0x7F },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { name =3D = "fourier-mlit.tfm", vector =3D "tex-it", skewchar=3D0x7= F },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { na= me =3D "fourier-mlb.tfm",=C2=A0 vector =3D "tex-bf", sk= ewchar=3D0x7F },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 { name =3D "fourier-mlitb.tfm", vector =3D "tex-bi&q= uot;, skewchar=3D0x7F },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 { name =3D "fourier-ms.tfm",=C2=A0 vector =3D &= quot;tex-sy", skewchar=3D0x30, parameters =3D true },
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { name =3D "fourier-= mex.tfm",=C2=A0 vector =3D "tex-ex", extension =3D true },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 msam,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 msbm,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 },
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 }
=C2=A0 =C2=A0 }
}

%%%
testfile.tex:
%%%
\loadtypesc= riptfile[type-fourier]
\setupbodyfont[fourier,12pt]

\starttext
\startTEXpage[offset=3D3bp]
Some math: $y''=3D(y')'$.
A displayed formula:
\startformula
f(x) =3D f(0)+\int_0^x \bigl(f'(t)\big= r)\,dt.
\stopformula
\stopTEXpage
\stoptext


A small step in the= right direction: Blackboard letters and calligraphic (script) letters seem= to work when I add

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 { name =3D "fourier-bb.tfm",=C2=A0 vector = =3D "tex-mb", skewchar=3D0x7F },
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 { name =3D "fo= urier-mcl.tfm",=C2=A0 vector =3D "tex-sy", skewchar=3D0x7F }= ,

to f= ourier-math.lfg.

/Mikael
--f403043d0f885d70020566861d9e-- --===============4086235356383561592== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4086235356383561592==--