Re: [NTG-context] Using MTPro2 math Fonts with ConTeXt
Thanks Aditya. I will try to work with this and see where it leads me. Will report with results as soon as I can. 2017-03-28 3:10 GMT-05:00: > You are trying to follow the installation process of opentype/ttf fonts. > MTPro2 is a type1 font and to use them with luatex, you need to create a > virtual opentype font. See $TEMXF/tex/context/fonts/mkiv/mdpus-math.lfg > file for an example. > Andrés Conrado Montoya http://chiquitico.org ___ 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 ___
Re: [NTG-context] Using MTPro2 math Fonts with ConTeXt
On Mon, 27 Mar 2017, Andres Conrado Montoya wrote: Hello, List. I am using the MTPro2 complete fonts (provided by the publisher house) for typesetting some math books in LaTeX this year. I also want to use ConTeXt to typeset other math books, those that don't come originally in LaTeX. However, the publisher requires that I use the MTPro2 fonts for math, and I've tried using the clues presentend in https://mailman.ntg.nl/ pipermail/ntg-context/2013/075938.html to install, but with no avail. Fonts were placed in "context/tex/texmf-local", preserving folder structure; "mtxrun --generate && mtxrun --script fonts --reload" was called after. When that didn't work, tried placing the type1 and tfm folders in my fonts folder (that is called by OSFONTDIR), and again, reload the fonts, but they just don't figure in the list provided by "mtxrun --script fonts --list --all --name --pattern=*". I have not found a way of using this font in ConTeXt, and I really need it (or will be just LaTeX for now). You are trying to follow the installation process of opentype/ttf fonts. MTPro2 is a type1 font and to use them with luatex, you need to create a virtual opentype font. See $TEMXF/tex/context/fonts/mkiv/mdpus-math.lfg file for an example. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using MTPro2 math Fonts with ConTeXt
Thank you for your tips. I'm using Linux. } However, as I researched the matter, it seems to me is not a trivial task... these fonts were made with LaTeX/Plain TeX in mind. I don't even know how I would implement the font options (like mtpfrak, mtpcal, etc). The font comes with two versions: Type1 and TFM (no afm). I converted from Type1 to AFM using fontforge, and the fonts script detects the files but I have no idea how to use them. It seems it doesn't detect the fonts as part of a family... I don't even know where I could start to make this work. Maybe I will stick to LaTeX for the time being. Thank you for your time. Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ 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 ___
Re: [NTG-context] Using MTPro2 math Fonts with ConTeXt
Andres, 1) If you are using Microsoft Windows, you have to set up the font directory before using ConTeXt, where you have placed your Maths fonts (i.e. in c:/windows/fonts) : set OSFONTDIR=c:/windows/fonts then type the following in a console ( in this directory : ~/context/tex/texmf-win64/bin) : context --generate context --make and : mtxrun --script fonts --reload Then test a file. 2) Note that if your are using some Linux like OS, to set up fonts is quite different : export OSFONTDIR=~/home/user/.fonts//:/usr/share/fonts:/usr/share/texmf/fonts/opentype/:/usr/share/texmf/fonts/truetype/:/usr/share/fonts/type1/ As you see, it is better to place the different kind of fonts in a directory in /usr/share/fonts (and in /home/your-user-name/.fonts) Then : context --generate context --make and : mtxrun --script fonts --reload Then test a file. 3) You can delete the font's cache by the following command (it works on both Windows and Linux) : fc-cache -v -f Then try again a test file. JP - Mail original - De: "Andres Conrado Montoya" <andresconr...@gmail.com> À: ntg-context@ntg.nl Envoyé: Lundi 27 Mars 2017 10:34:09 Objet: [NTG-context] Using MTPro2 math Fonts with ConTeXt Hello, List. I am using the MTPro2 complete fonts (provided by the publisher house) for typesetting some math books in LaTeX this year. I also want to use ConTeXt to typeset other math books, those that don't come originally in LaTeX. However, the publisher requires that I use the MTPro2 fonts for math, and I've tried using the clues presentend in https://mailman.ntg.nl/pipermail/ntg-context/2013/075938.html to install, but with no avail. Fonts were placed in "context/tex/texmf-local", preserving folder structure; "mtxrun --generate && mtxrun --script fonts --reload" was called after. When that didn't work, tried placing the type1 and tfm folders in my fonts folder (that is called by OSFONTDIR), and again, reload the fonts, but they just don't figure in the list provided by "mtxrun --script fonts --list --all --name --pattern=*". I have not found a way of using this font in ConTeXt, and I really need it (or will be just LaTeX for now). Thanks in advance. Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ 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 ___ ___ 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 ___
[NTG-context] Using MTPro2 math Fonts with ConTeXt
Hello, List. I am using the MTPro2 complete fonts (provided by the publisher house) for typesetting some math books in LaTeX this year. I also want to use ConTeXt to typeset other math books, those that don't come originally in LaTeX. However, the publisher requires that I use the MTPro2 fonts for math, and I've tried using the clues presentend in https://mailman.ntg.nl/ pipermail/ntg-context/2013/075938.html to install, but with no avail. Fonts were placed in "context/tex/texmf-local", preserving folder structure; "mtxrun --generate && mtxrun --script fonts --reload" was called after. When that didn't work, tried placing the type1 and tfm folders in my fonts folder (that is called by OSFONTDIR), and again, reload the fonts, but they just don't figure in the list provided by "mtxrun --script fonts --list --all --name --pattern=*". I have not found a way of using this font in ConTeXt, and I really need it (or will be just LaTeX for now). Thanks in advance. Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ 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 ___