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] two suggestions for \setuphead
On 3/27/2017 9:49 PM, Pablo Rodriguez wrote: On 03/27/2017 09:29 PM, Hans Hagen wrote: On 3/27/2017 8:00 PM, Pablo Rodriguez wrote: Sorry, I was trying to understand why width has no default value in margin data. because there was no need, as it anchors at the side of the text Sorry again, but I must be missing something extremely basic. One of the results of no value for width in margin data is a tricky approach to its alignment. But since I seem to be the only one interested in aligning margin data, I guess this is perfectly fine. Margindata is a general thing, it can be any margin or edge when you define an instance so you don't know what width is meant. Of course you can have a parent with some width. Also, margindata can be stacked next to another one which again can mean a different width. Having no width set is better than having the wrong one set. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] two suggestions for \setuphead
On 03/27/2017 09:29 PM, Hans Hagen wrote: > On 3/27/2017 8:00 PM, Pablo Rodriguez wrote: >> Sorry, I was trying to understand why width has no default value in >> margin data. > > because there was no need, as it anchors at the side of the text Sorry again, but I must be missing something extremely basic. One of the results of no value for width in margin data is a tricky approach to its alignment. But since I seem to be the only one interested in aligning margin data, I guess this is perfectly fine. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] two suggestions for \setuphead
On 3/27/2017 8:00 PM, Pablo Rodriguez wrote: On 03/27/2017 05:22 PM, Hans Hagen wrote: On 3/27/2017 3:57 PM, Pablo Rodriguez wrote: [...] On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen location value for the same \setupmargindata. Is there any reason not to have this default value? it has always been the case and won't change Sorry, I was trying to understand why width has no default value in margin data. because there was no need, as it anchors at the side of the text - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] two suggestions for \setuphead
On 03/27/2017 05:22 PM, Hans Hagen wrote: > On 3/27/2017 3:57 PM, Pablo Rodriguez wrote: >> [...] >> On a second thought, I wonder why width in \setupmargindata hasn’t its >> default value to \leftmarginwidth or \rightmarginwidth depending on the >> chosen location value for the same \setupmargindata. >> >> Is there any reason not to have this default value? > > it has always been the case and won't change Sorry, I was trying to understand why width has no default value in margin data. Pablo -- http://www.ousia.tk ___ 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] Altering footnotes via \setupfootnotes
On 2017-03-27 09:16, Procházka Lukáš Ing. wrote: Hello Henri, that's it - thank you for the solution! BTW - Your code seems to work even without \blank[-line]: \setupnote [footnote] [after={\switchtobodyfont[\noteparameter{bodyfont}]}] \setupnotation [footnote] [ after={\blank[line]}, indenting={yes,medium}, ] \starttext \input knuth\footnote{\input knuth } \input ward\footnote{\input ward } \stoptext Thank you anyway. Best regards, Lukas On Sat, 25 Mar 2017 03:43:54 +0100, Henri Menke wrote: Indenting is easy. For space in between I haven’t found anything useful. You can hack something with after. \setupnote [footnote] [after={\switchtobodyfont[\noteparameter{bodyfont}]\blank[-line]}] \setupnotation [footnote] [ after={\blank[line]}, indenting={yes,medium}, ] \starttext \input knuth\footnote{\input knuth } \input ward\footnote{\input ward } \stoptext The \blank[-line] in \setupnote is necessary. It acts to remove the final \blank[line] via \setupnotation. To see, process the file with and without an addeed \showframe. -- Rik ___ 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] two suggestions for \setuphead
On 3/27/2017 3:57 PM, Pablo Rodriguez wrote: On 03/26/2017 10:20 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 26. März 2017 um 22:09: [...] I’m afraid that I found an issue. Alignment in margindata doesn’t work: \showframe \definemargindata[outerhead][outer] \setupmargindata[outerhead][align=center] \setupmargindata[outerhead][align=center,width=\rightmarginwidth] On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen location value for the same \setupmargindata. Is there any reason not to have this default value? it has always been the case and won't change - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] two suggestions for \setuphead
On 03/26/2017 10:20 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez schrieb am 26. März 2017 um 22:09: >> [...] >> I’m afraid that I found an issue. Alignment in margindata doesn’t work: >> >> \showframe >> >> \definemargindata[outerhead][outer] >> \setupmargindata[outerhead][align=center] > > \setupmargindata[outerhead][align=center,width=\rightmarginwidth] On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen location value for the same \setupmargindata. Is there any reason not to have this default value? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] Altering footnotes via \setupfootnotes
Hello Henri, that's it - thank you for the solution! BTW - Your code seems to work even without \blank[-line]: \setupnote [footnote] [after={\switchtobodyfont[\noteparameter{bodyfont}]}] \setupnotation [footnote] [ after={\blank[line]}, indenting={yes,medium}, ] \starttext \input knuth\footnote{\input knuth } \input ward\footnote{\input ward } \stoptext Thank you anyway. Best regards, Lukas On Sat, 25 Mar 2017 03:43:54 +0100, Henri Menke wrote: Indenting is easy. For space in between I haven’t found anything useful. You can hack something with after. \setupnote [footnote] [after={\switchtobodyfont[\noteparameter{bodyfont}]\blank[-line]}] \setupnotation [footnote] [ after={\blank[line]}, indenting={yes,medium}, ] \starttext \input knuth\footnote{\input knuth } \input ward\footnote{\input ward } \stoptext On 03/25/2017 12:06 PM, Lukas Prochazka wrote: Hello, are there keys to \setupfootnotes to: - increase vertical space between two footnotes, - enable indenting paragraphs in the scope of footnotes? I tried some keys following wiki but with no success... Is there a way? Thank you in advance. Best regards, Lukas ___ 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 ___ -- Ing. Lukáš Procházka | mailto:l...@pontex.cz Pontex s. r. o. | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 (+420 720 951 172) Fax: +420 244 461 038 ___ 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" À: 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 ___