* Mathdesign and Fourier fonts (was What do you miss in ConTeXt?)
@ 2010-02-14 19:06 Mikael Persson
2010-02-14 19:16 ` Wolfgang Schuster
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: Mikael Persson @ 2010-02-14 19:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Feb 10, 2010 at 3:24 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> Am 10.02.10 09:00, schrieb Mikael Persson:
>
>> I would like support for more fonts out of the box (in the minimals).
>> For example it would be really nice to be able to use
>> utopia+fourier ( http://tug.ctan.org/tex-archive/fonts/fourier-GUT/ )
>> charter+mathdesign (
>> http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=mathdesign )
>
> MkIV has support for the Charter and the Mathdesign fonts.
>
> \definetypafec[charter][rm][serif][charter] [default]
> %\definetypafec[charter][mm][math] [mathdesignch][default]
> \definetypafec[charter][mm][math] [charter] [default]
>
> What's missing are the fonts but they are already on the server [1],
> Mojca should be able to tell you how you can install them.
>
> [1] http://minimals.contextgarden.net/current/fonts/extra/
>
> Wolfgang
Thanks for your reply Wolfgang. I use the minimals and have some
further questions:
1) Is there any way to use first-setup.sh to install these fonts?
2) The type1 dir is empty. Is that on purpose? Should one download the
pfb files from ctan?
3) Will there be any support of the Fourier fonts? I have asked this
before, sorry about that, but I'm kind of clueless about the present
situation.
Mikael
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-14 19:06 Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) Mikael Persson @ 2010-02-14 19:16 ` Wolfgang Schuster 2010-02-14 19:33 ` Aditya Mahajan 2010-02-14 22:24 ` Mojca Miklavec 2 siblings, 0 replies; 12+ messages in thread From: Wolfgang Schuster @ 2010-02-14 19:16 UTC (permalink / raw) To: Mojca Miklavec; +Cc: mailing list for ConTeXt users, Mikael Persson Am 14.02.10 20:06, schrieb Mikael Persson: > On Wed, Feb 10, 2010 at 3:24 PM, Wolfgang Schuster > <schuster.wolfgang@googlemail.com> wrote: > >> Am 10.02.10 09:00, schrieb Mikael Persson: >> >> >>> I would like support for more fonts out of the box (in the minimals). >>> For example it would be really nice to be able to use >>> utopia+fourier ( http://tug.ctan.org/tex-archive/fonts/fourier-GUT/ ) >>> charter+mathdesign ( >>> http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=mathdesign ) >>> >> MkIV has support for the Charter and the Mathdesign fonts. >> >> \definetypafec[charter][rm][serif][charter] [default] >> %\definetypafec[charter][mm][math] [mathdesignch][default] >> \definetypafec[charter][mm][math] [charter] [default] >> >> What's missing are the fonts but they are already on the server [1], >> Mojca should be able to tell you how you can install them. >> >> [1] http://minimals.contextgarden.net/current/fonts/extra/ >> >> Wolfgang >> > Thanks for your reply Wolfgang. I use the minimals and have some > further questions: > > 1) Is there any way to use first-setup.sh to install these fonts? > > 2) The type1 dir is empty. Is that on purpose? Should one download the > pfb files from ctan? > Only Mojca can answer this. > 3) Will there be any support of the Fourier fonts? I have asked this > before, sorry about that, but I'm kind of clueless about the present > situation. > As long as there is one who is willing to provide them. Wolfgang ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-14 19:06 Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) Mikael Persson 2010-02-14 19:16 ` Wolfgang Schuster @ 2010-02-14 19:33 ` Aditya Mahajan 2010-02-14 22:24 ` Mojca Miklavec 2 siblings, 0 replies; 12+ messages in thread From: Aditya Mahajan @ 2010-02-14 19:33 UTC (permalink / raw) To: mailing list for ConTeXt users On Sun, 14 Feb 2010, Mikael Persson wrote: > 1) Is there any way to use first-setup.sh to install these fonts? Not so far. But you can always ask Mojca to include them in the minimals. > 2) The type1 dir is empty. Is that on purpose? Should one download the > pfb files from ctan? > > 3) Will there be any support of the Fourier fonts? I have asked this > before, sorry about that, but I'm kind of clueless about the present > situation. I do not use Fourier. I will check what is do we need to get them to work with MkIV. Usually, it is just a matter of creating a virtual font mappings in math-vfu.lua. But it is a time consuming and boring process. Aditya ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-14 19:06 Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) Mikael Persson 2010-02-14 19:16 ` Wolfgang Schuster 2010-02-14 19:33 ` Aditya Mahajan @ 2010-02-14 22:24 ` Mojca Miklavec 2010-02-14 22:26 ` Mojca Miklavec 2010-02-15 4:43 ` Aditya Mahajan 2 siblings, 2 replies; 12+ messages in thread From: Mojca Miklavec @ 2010-02-14 22:24 UTC (permalink / raw) To: mailing list for ConTeXt users On Sun, Feb 14, 2010 at 20:06, Mikael Persson wrote: > On Wed, Feb 10, 2010 at 3:24 PM, Wolfgang Schuster wrote: >> Am 10.02.10 09:00, schrieb Mikael Persson: >> >> MkIV has support for the Charter and the Mathdesign fonts. >> >> \definetypafec[charter][rm][serif][charter] [default] >> %\definetypafec[charter][mm][math] [mathdesignch][default] >> \definetypafec[charter][mm][math] [charter] [default] >> >> What's missing are the fonts but they are already on the server [1], >> Mojca should be able to tell you how you can install them. >> >> [1] http://minimals.contextgarden.net/current/fonts/extra/ >> >> Wolfgang > > Thanks for your reply Wolfgang. I use the minimals and have some > further questions: > > 1) Is there any way to use first-setup.sh to install these fonts? At the moment there is a switch --extras=t-module1name,t-module2name the following quick-and dirty patch should enable you to use --extras=mathdesign But then you need to convince Hans to apply the patch (or maybe improve it before that): if extras and type(extras) == "table" then -- fetch the list of available modules from rsync server local available_modules = get_list_of_files_from_rsync({"modules/"}) local available_fonts = get_list_of_files_from_rsync({"fonts/extra/"}) -- hash of requested modules -- local h = table.tohash(extras:split(",")) for _, s in ipairs(available_modules) do -- if extras == "all" or h[s] then if extras.all or extras[s] then scripts.update.modules[#scripts.update.modules+1] = { format("modules/%s/",s), "texmf-context" } end end for _, s in ipairs(available_fonts) do if extras.all or extras[s] then scripts.update.modules[#scripts.update.modules+1] = { format("fonts/extra/%s/",s), "texmf" } end end -- TODO: check if every module from the list has been added and issue warning otherwise -- one idea to do it: remove every value from h once added and then check if anything is left in h end > 2) The type1 dir is empty. Is that on purpose? Should one download the > pfb files from ctan? No, it was a mistake. I had a "fonts/*/public/mathdesign" in pattern, but mathdesign is not under "public" in TeX Live. Either I didn't test it properly or TeX Live has changed their location, but the first option is way more probable. I have a feeling that some other font has been requested recently, but I don't recall which one/who wrote that (I don't find the mail any more). Mojca ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-14 22:24 ` Mojca Miklavec @ 2010-02-14 22:26 ` Mojca Miklavec 2010-02-16 10:38 ` Mikael Persson 2010-02-15 4:43 ` Aditya Mahajan 1 sibling, 1 reply; 12+ messages in thread From: Mojca Miklavec @ 2010-02-14 22:26 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 111 bytes --] (Since there are some problems with linebreaks, here's the whole file.) I didn't test the font itself. Mojca [-- Attachment #2: mtxupdate.zip --] [-- Type: application/zip, Size: 5557 bytes --] [-- Attachment #3: Type: text/plain, Size: 486 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-14 22:26 ` Mojca Miklavec @ 2010-02-16 10:38 ` Mikael Persson 2010-02-16 12:31 ` Hans Hagen 0 siblings, 1 reply; 12+ messages in thread From: Mikael Persson @ 2010-02-16 10:38 UTC (permalink / raw) To: mailing list for ConTeXt users Thank you Mojca and Aditya for your answers, I hope the mathdesign part of mtx-update.lua will end up in the orignal file. I do not know how to use it now. If I save this file and update with "sh firstsetup.sh --extras=all" (or --extras=mathdesign) it seems that the mtx-update.lua is overwritten with the version from the server. I do not know howto upgrade with mtx-update.lua without firstsetup.sh. About the fourier fonts. Is there a lot of work to do in math-vfu.lua to get it to work? I looked into that file, but it was a bit hard to understand what is needed... Maybe it is hard work to get the fonts working, but I really think that if we have several text+math fonts easily available in the minimals that will make (new) users very happy. Mikael On Sun, Feb 14, 2010 at 11:26 PM, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote: > (Since there are some problems with linebreaks, here's the whole file.) > > I didn't test the font itself. > > Mojca > > ___________________________________________________________________________________ > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > > ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-16 10:38 ` Mikael Persson @ 2010-02-16 12:31 ` Hans Hagen [not found] ` <d5fddde01002160442i3159ec2cn71c33eca85e137f4@mail.gmail.com> 0 siblings, 1 reply; 12+ messages in thread From: Hans Hagen @ 2010-02-16 12:31 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Mikael Persson On 16-2-2010 11:38, Mikael Persson wrote: > Thank you Mojca and Aditya for your answers, > > I hope the mathdesign part of mtx-update.lua will end up in the > orignal file. I do not know how to use it now. > > If I save this file and update with "sh firstsetup.sh --extras=all" > (or --extras=mathdesign) it seems that the mtx-update.lua is > overwritten with the version from the server. I do not know howto > upgrade with mtx-update.lua without firstsetup.sh. > > About the fourier fonts. Is there a lot of work to do in math-vfu.lua > to get it to work? I looked into that file, but it was a bit hard to > understand what is needed... > > Maybe it is hard work to get the fonts working, but I really think > that if we have several text+math fonts easily available in the > minimals that will make (new) users very happy. it depends ... if the font is in tex default encoding then it's only a matter of adding a small table ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <d5fddde01002160442i3159ec2cn71c33eca85e137f4@mail.gmail.com>]
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) [not found] ` <d5fddde01002160442i3159ec2cn71c33eca85e137f4@mail.gmail.com> @ 2010-02-17 21:10 ` Mikael Persson 2010-02-20 10:15 ` Mikael Persson 0 siblings, 1 reply; 12+ messages in thread From: Mikael Persson @ 2010-02-17 21:10 UTC (permalink / raw) To: mailing list for ConTeXt users On Tue, Feb 16, 2010 at 1:42 PM, Mikael Persson <mickep@gmail.com> wrote: > On Tue, Feb 16, 2010 at 1:31 PM, Hans Hagen <pragma@wxs.nl> wrote: >> On 16-2-2010 11:38, Mikael Persson wrote: >>> >>> Thank you Mojca and Aditya for your answers, >>> >>> I hope the mathdesign part of mtx-update.lua will end up in the >>> orignal file. I do not know how to use it now. >>> >>> If I save this file and update with "sh firstsetup.sh --extras=all" >>> (or --extras=mathdesign) it seems that the mtx-update.lua is >>> overwritten with the version from the server. I do not know howto >>> upgrade with mtx-update.lua without firstsetup.sh. >>> >>> About the fourier fonts. Is there a lot of work to do in math-vfu.lua >>> to get it to work? I looked into that file, but it was a bit hard to >>> understand what is needed... >>> >>> Maybe it is hard work to get the fonts working, but I really think >>> that if we have several text+math fonts easily available in the >>> minimals that will make (new) users very happy. >> >> it depends ... if the font is in tex default encoding then it's only a >> matter of adding a small table > > I'm not 100% sure how it works wth font encodings, but the fourier doc > (http://mirror.ctan.org/fonts/fourier-GUT/doc/latex/fourier/fourier-doc-en.pdf) > says that the fonts are _fully_ T1 encoded. > > Mikael > > PS: Hans, do you have any comments about the mathdesign patch > suggested by Mojca above? I have now manually downloaded the mathdesign fonts (and the charter fonts, not available on the server it seems) The fonts gets used, but I get upright math letters instead of italic ones. My test file is given by \definetypeface[charter][rm][serif][charter] [default] \definetypeface[charter][mm][math] [charter] [default] \setupbodyfont[charter,10pt] \starttext We define, for real $x$, the absolute value of $x$ as \startformula |x|= \startcases \NC \hphantom{-}x \MC x\geq 0,\NR \NC -x \MC x<0.\NR \stopcases \stopformula Also let $\alpha$, $\beta$ and $\Gamma$ be\dots \stoptext The output can be found at http://home.imf.au.dk/mickep/mdesign.pdf Typesetting a similar document with LaTeX I get italic math (note also that the \Gamma is upright, I guess that this is an option that is turned on by default by LaTeX) http://home.imf.au.dk/mickep/lmdesign.pdf I guess this has something to do with the following lines in math-vfu.lua mathematics.make_font ( "charter-math", { { name = "file:bchr8a", features = "virtualmath", main = true }, -- { name = "md-chr7m.tfm", vector = "tex-mr" }, { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = true }, { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, { name = "msam10.tfm", vector = "tex-ma" }, { name = "msbm10.tfm", vector = "tex-mb" }, } ) However, I am not able guess what to change (I tried different things available in mdbch.map). Any help is appreciated. Mikael ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-17 21:10 ` Mikael Persson @ 2010-02-20 10:15 ` Mikael Persson 2010-02-20 13:58 ` Mojca Miklavec 0 siblings, 1 reply; 12+ messages in thread From: Mikael Persson @ 2010-02-20 10:15 UTC (permalink / raw) To: mailing list for ConTeXt users On Wed, Feb 17, 2010 at 10:10 PM, Mikael Persson <mickep@gmail.com> wrote: > On Tue, Feb 16, 2010 at 1:42 PM, Mikael Persson <mickep@gmail.com> wrote: >> On Tue, Feb 16, 2010 at 1:31 PM, Hans Hagen <pragma@wxs.nl> wrote: >>> On 16-2-2010 11:38, Mikael Persson wrote: >>>> >>>> Thank you Mojca and Aditya for your answers, >>>> >>>> I hope the mathdesign part of mtx-update.lua will end up in the >>>> orignal file. I do not know how to use it now. >>>> >>>> If I save this file and update with "sh firstsetup.sh --extras=all" >>>> (or --extras=mathdesign) it seems that the mtx-update.lua is >>>> overwritten with the version from the server. I do not know howto >>>> upgrade with mtx-update.lua without firstsetup.sh. >>>> >>>> About the fourier fonts. Is there a lot of work to do in math-vfu.lua >>>> to get it to work? I looked into that file, but it was a bit hard to >>>> understand what is needed... >>>> >>>> Maybe it is hard work to get the fonts working, but I really think >>>> that if we have several text+math fonts easily available in the >>>> minimals that will make (new) users very happy. >>> >>> it depends ... if the font is in tex default encoding then it's only a >>> matter of adding a small table >> >> I'm not 100% sure how it works wth font encodings, but the fourier doc >> (http://mirror.ctan.org/fonts/fourier-GUT/doc/latex/fourier/fourier-doc-en.pdf) >> says that the fonts are _fully_ T1 encoded. >> >> Mikael >> >> PS: Hans, do you have any comments about the mathdesign patch >> suggested by Mojca above? > > I have now manually downloaded the mathdesign fonts (and the charter > fonts, not available on the server it seems) > > The fonts gets used, but I get upright math letters instead of italic > ones. My test file is given by > > \definetypeface[charter][rm][serif][charter] [default] > \definetypeface[charter][mm][math] [charter] [default] > > \setupbodyfont[charter,10pt] > > \starttext > We define, for real $x$, the absolute value of $x$ as > \startformula > |x|= > \startcases > \NC \hphantom{-}x \MC x\geq 0,\NR > \NC -x \MC x<0.\NR > \stopcases > \stopformula > Also let $\alpha$, $\beta$ and $\Gamma$ be\dots > \stoptext > > The output can be found at > > http://home.imf.au.dk/mickep/mdesign.pdf > > Typesetting a similar document with LaTeX I get italic math (note also > that the \Gamma is upright, I guess that this is an option that is > turned on by default by LaTeX) > > http://home.imf.au.dk/mickep/lmdesign.pdf > > I guess this has something to do with the following lines in math-vfu.lua > > mathematics.make_font ( "charter-math", { > { name = "file:bchr8a", features = "virtualmath", main = true }, > -- { name = "md-chr7m.tfm", vector = "tex-mr" }, > { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, > { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, > { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, > parameters = true }, > { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, > { name = "msam10.tfm", vector = "tex-ma" }, > { name = "msbm10.tfm", vector = "tex-mb" }, > } ) > > However, I am not able guess what to change (I tried different things > available in mdbch.map). > > Any help is appreciated. > > Mikael > Hans, Mojca, Aditya, Wolfgang and others 1) Can anyone confirm this problem in the previous mail or point out what might be wrong? 2) The problem Troy had with lucida, is it the same? 3) What is needed to get fourier fonts working? Is it enough adding to math-vfu.lua an entry like mathematics.make_font ( "fourier-math", { ... }) with the right names for fourier? I tried this, but no math fonts is showing up in the pdf file. In what other file should I add changes. I'm willing to do some trial and error to get it to work... Best regards, Mikael ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-20 10:15 ` Mikael Persson @ 2010-02-20 13:58 ` Mojca Miklavec 2010-02-20 14:02 ` Mojca Miklavec 0 siblings, 1 reply; 12+ messages in thread From: Mojca Miklavec @ 2010-02-20 13:58 UTC (permalink / raw) To: mailing list for ConTeXt users On Sat, Feb 20, 2010 at 11:15, Mikael Persson <mickep@gmail.com> wrote: > On Wed, Feb 17, 2010 at 10:10 PM, Mikael Persson <mickep@gmail.com> wrote: >> On Tue, Feb 16, 2010 at 1:42 PM, Mikael Persson <mickep@gmail.com> wrote: >>> On Tue, Feb 16, 2010 at 1:31 PM, Hans Hagen <pragma@wxs.nl> wrote: >>>> On 16-2-2010 11:38, Mikael Persson wrote: >>>>> >>>>> Thank you Mojca and Aditya for your answers, >>>>> >>>>> I hope the mathdesign part of mtx-update.lua will end up in the >>>>> orignal file. I do not know how to use it now. >>>>> >>>>> If I save this file and update with "sh firstsetup.sh --extras=all" >>>>> (or --extras=mathdesign) it seems that the mtx-update.lua is >>>>> overwritten with the version from the server. I do not know howto >>>>> upgrade with mtx-update.lua without firstsetup.sh. >>>>> >>>>> About the fourier fonts. Is there a lot of work to do in math-vfu.lua >>>>> to get it to work? I looked into that file, but it was a bit hard to >>>>> understand what is needed... >>>>> >>>>> Maybe it is hard work to get the fonts working, but I really think >>>>> that if we have several text+math fonts easily available in the >>>>> minimals that will make (new) users very happy. >>>> >>>> it depends ... if the font is in tex default encoding then it's only a >>>> matter of adding a small table >>> >>> I'm not 100% sure how it works wth font encodings, but the fourier doc >>> (http://mirror.ctan.org/fonts/fourier-GUT/doc/latex/fourier/fourier-doc-en.pdf) >>> says that the fonts are _fully_ T1 encoded. >>> >>> Mikael >>> >>> PS: Hans, do you have any comments about the mathdesign patch >>> suggested by Mojca above? >> >> I have now manually downloaded the mathdesign fonts (and the charter >> fonts, not available on the server it seems) >> >> The fonts gets used, but I get upright math letters instead of italic >> ones. My test file is given by >> >> \definetypeface[charter][rm][serif][charter] [default] >> \definetypeface[charter][mm][math] [charter] [default] >> >> \setupbodyfont[charter,10pt] >> >> \starttext >> We define, for real $x$, the absolute value of $x$ as >> \startformula >> |x|= >> \startcases >> \NC \hphantom{-}x \MC x\geq 0,\NR >> \NC -x \MC x<0.\NR >> \stopcases >> \stopformula >> Also let $\alpha$, $\beta$ and $\Gamma$ be\dots >> \stoptext >> >> The output can be found at >> >> http://home.imf.au.dk/mickep/mdesign.pdf >> >> Typesetting a similar document with LaTeX I get italic math (note also >> that the \Gamma is upright, I guess that this is an option that is >> turned on by default by LaTeX) >> >> http://home.imf.au.dk/mickep/lmdesign.pdf >> >> I guess this has something to do with the following lines in math-vfu.lua >> >> mathematics.make_font ( "charter-math", { >> { name = "file:bchr8a", features = "virtualmath", main = true }, >> -- { name = "md-chr7m.tfm", vector = "tex-mr" }, >> { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, >> { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, >> { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, >> parameters = true }, >> { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, >> { name = "msam10.tfm", vector = "tex-ma" }, >> { name = "msbm10.tfm", vector = "tex-mb" }, >> } ) >> >> However, I am not able guess what to change (I tried different things >> available in mdbch.map). >> >> Any help is appreciated. >> >> Mikael >> > > Hans, Mojca, Aditya, Wolfgang and others > > 1) Can anyone confirm this problem in the previous mail or point out > what might be wrong? I cannot confirm since I get Assertion failed: (l_fonts[1] != 0), function read_char_packets, file ../../../source/texk/web2c/luatexdir/font/luafont.c, line 881. MTXrun | fatal error: no return code, message: luatex: execution interrupted > 2) The problem Troy had with lucida, is it the same? Might be related, but solving one won't solve the other one. > 3) What is needed to get fourier fonts working? Is it enough adding to > math-vfu.lua an entry like > mathematics.make_font ( "fourier-math", { ... > }) > with the right names for fourier? If the font comes with some weird encoding, then you also need to write the whole slot-to-unicode mapping. See for example: fonts.enc.math["tex-sy"] = { [0x0002D] = 0x00, -- - [0x02212] = 0x00, -- - -- [0x02201] = 0x00, -- complement -- [0x02206] = 0x00, -- increment -- [0x02204] = 0x00, -- not exists --~ [0x000B7] = 0x01, -- cdot [0x022C5] = 0x01, -- cdot [0x000D7] = 0x02, -- times [0x0002A] = 0x03, -- * [0x02217] = 0x03, -- * [0x000F7] = 0x04, -- div [0x022C4] = 0x05, -- diamond [0x000B1] = 0x06, -- pm [0x02213] = 0x07, -- mp There is mathematics.make_font ( "charter-math", { { name = "file:bchr8a", features = "virtualmath", main = true }, -- { name = "md-chr7m.tfm", vector = "tex-mr" }, { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = true }, { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, { name = "msam10.tfm", vector = "tex-ma" }, { name = "msbm10.tfm", vector = "tex-mb" }, } ) But I'm not sure if all of the fonts are right (I need to figure out how to compile the example in the first place). A way to check is to run the following with MKII and compare both for example: \showfont[md-chr7m.tfm] \showfont[rm-lmr10] Mojca ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-20 13:58 ` Mojca Miklavec @ 2010-02-20 14:02 ` Mojca Miklavec 0 siblings, 0 replies; 12+ messages in thread From: Mojca Miklavec @ 2010-02-20 14:02 UTC (permalink / raw) To: mailing list for ConTeXt users But I realized that there's another problem anyway. At least for MKII ConTeXt wants to use ec-bchr8a.tfm and that file is not present in the package. This means that either: - one needs to provide new tfm files - one needs to fix the typescripts Mojca ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) 2010-02-14 22:24 ` Mojca Miklavec 2010-02-14 22:26 ` Mojca Miklavec @ 2010-02-15 4:43 ` Aditya Mahajan 1 sibling, 0 replies; 12+ messages in thread From: Aditya Mahajan @ 2010-02-15 4:43 UTC (permalink / raw) To: mailing list for ConTeXt users On Sun, 14 Feb 2010, Mojca Miklavec wrote: > I have a feeling that some other font has been requested recently, but > I don't recall which one/who wrote that (I don't find the mail any > more). doublestroke http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=doublestroke Aditya ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-02-20 14:02 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-02-14 19:06 Mathdesign and Fourier fonts (was What do you miss in ConTeXt?) Mikael Persson 2010-02-14 19:16 ` Wolfgang Schuster 2010-02-14 19:33 ` Aditya Mahajan 2010-02-14 22:24 ` Mojca Miklavec 2010-02-14 22:26 ` Mojca Miklavec 2010-02-16 10:38 ` Mikael Persson 2010-02-16 12:31 ` Hans Hagen [not found] ` <d5fddde01002160442i3159ec2cn71c33eca85e137f4@mail.gmail.com> 2010-02-17 21:10 ` Mikael Persson 2010-02-20 10:15 ` Mikael Persson 2010-02-20 13:58 ` Mojca Miklavec 2010-02-20 14:02 ` Mojca Miklavec 2010-02-15 4:43 ` Aditya Mahajan
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).