ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fourier and utopia
@ 2018-03-03 14:46 Mikael P. Sundqvist
  2018-03-03 18:17 ` Mikael P. Sundqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael P. Sundqvist @ 2018-03-03 14:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3449 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 5063 bytes --]

[-- Attachment #2: testfile.pdf --]
[-- Type: application/pdf, Size: 13989 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fourier and utopia
  2018-03-03 14:46 Fourier and utopia Mikael P. Sundqvist
@ 2018-03-03 18:17 ` Mikael P. Sundqvist
  2018-03-06 20:00   ` Mikael P. Sundqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael P. Sundqvist @ 2018-03-03 18:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 4042 bytes --]

On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist <mickep@gmail.com>
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

[-- Attachment #1.2: Type: text/html, Size: 6129 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Fourier and utopia
  2018-03-03 18:17 ` Mikael P. Sundqvist
@ 2018-03-06 20:00   ` Mikael P. Sundqvist
  0 siblings, 0 replies; 3+ messages in thread
From: Mikael P. Sundqvist @ 2018-03-06 20:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 4784 bytes --]

On Sat, Mar 3, 2018 at 7:17 PM, Mikael P. Sundqvist <mickep@gmail.com>
wrote:

> On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist <mickep@gmail.com>
> 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
>

I realize that maybe I'm the only one who cares for this font combination.
In any case. Anyways, I try again: I do not understand the way lfg files
work (I looked at all the examples). So, if it is too much to ask for
someone to actually download the font and try out themselves, I instead ask
if someone find something strange about the lfg file I suggested (there
must be something since it is not working)? I looked a bit at the LaTeX
package fourier.sty and it seems that they use the same skewchar at least.

/Mikael

[-- Attachment #1.2: Type: text/html, Size: 7277 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2018-03-06 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-03 14:46 Fourier and utopia Mikael P. Sundqvist
2018-03-03 18:17 ` Mikael P. Sundqvist
2018-03-06 20:00   ` Mikael P. Sundqvist

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