Is there a list of the standard fonts to use? I found: serif regular roman sans support sansserif mono type teletype handwritten cmr mm rm But none of them I find very pleasing. (And handwritten looks different as the name suggest.) How can I find out which fonts I can use? -- Cecil Westerhof M CLDWesterhof@gmail.com O< ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
Am 10.09.2010 um 10:11 schrieb Cecil Westerhof:
Is there a list of the standard fonts to use? I found:
[...]
But none of them I find very pleasing. (And handwritten looks different as the name suggest.) How can I find out which fonts I can use?
With your list you can only switch to a different style of a typeface but to get a different font you need e.g. \setupbodyfont[palatino]. This is a (uncomplete) list of the predefined typefaces in context, to switch to one of them you have to take the name after the bullet and load it with \setupbodyfont: Note: all names in the same line are synonyms for the same typeface Latin Modern ------------ • modern • modern-base • modernvariable, modern-variable • modernvariablelight, modern-variable-light • modern-mono • modern-base-mono TeX Gyre -------- • times, termes • palatino, pagella • schoolbook, schola • bookman, bonum • chancery, chorus • helvetica, heros • avantgarde, adventor • courier, cursor Antykwa Torunska ---------------- • antykwa-torunska • antykwa-torunska-light • antykwa-torunska-cond • antykwa-torunska-lightcond Antykwa Poltawskiego -------------------- • antykwa-poltawskiego • antykwa-poltawskiego-light Iwona ----- • iwona • iwona-light • iwona-heavy • iwona-medium Mathtimes (commercial) --------- • mathtimes Lucida (commercial) ------ • lucida Asana Math ---------- • asana Cambria (commercial) ------- • cambria • cambria-m • cambria-a • cambria-x,cambria-y Microsoft core fonts (Times + Arial + Courier) -------------------- • mscore Libaration ---------- • liberation Linux Libertine --------------- • libertine Postscript fonts (like mscore but with texgyre fonts) ---------------- • postscript Euler ----- • pagella-euler • euler Stix ---- • stix Xits (stix with opentype math) ---- • xits Punk ---- • punknova Helvetica Math (commercial) -------------- • hvmath DejaVu • dejavu Kind regards, Wolfgang
You can list all local availble fonts with: mtxrun --script fonts --list --all More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX Cecil Westerhof wrote:
Is there a list of the standard fonts to use? I found: serif regular roman sans support sansserif mono type teletype handwritten cmr mm rm
But none of them I find very pleasing. (And handwritten looks different as the name suggest.) How can I find out which fonts I can use?
On 10-9-2010 10:57, Andreas Harder wrote:
mtxrun --script fonts --list –all
what if you add --pattern=* ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
I have to agree to Andreas... i just updated to the actual beta (for the math examples). Now mtxrun answers with following statement: ...text/tex/texmf-context/tex/context/base/font-otp.lua:512: attempt to call field 'register' (a nil value)
On Friday 10 September 2010 15:54:00 Peter Schorsch wrote:
You can list all local availble fonts with:
mtxrun --script fonts --list --all
More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX
Tried all that on a fresh install of texlive 2010. Here are the results, or lack thereof: ------------------------------------------------------------------ bash-3.1$ mtxrun --script fonts --list --all MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' bash-3.1$ export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts" bash-3.1$ mtxrun --script fonts --list --all MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' bash-3.1$ mtxrun --script fonts --reload MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' bash-3.1$ context --generate MTXrun | unknown script 'context.lua' or 'mtx-context.lua' bash-3.1$ set ... OSFONTDIR='/usr/local/share/fonts;/home/safe/.fonts' ... ----------------------------------------------------------------------- Any hints? At the moment I am looking to use just plain Luatex. I can only handle one set of confusing things at a time :<) -- John Culleton Wexford Press "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html
On Tue, Sep 21, 2010 at 05:27:22PM -0400, John Culleton wrote:
On Friday 10 September 2010 15:54:00 Peter Schorsch wrote:
You can list all local availble fonts with:
mtxrun --script fonts --list --all
More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX
Tried all that on a fresh install of texlive 2010. Here are the results, or lack thereof: ------------------------------------------------------------------ bash-3.1$ mtxrun --script fonts --list --all MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' bash-3.1$ export OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts" bash-3.1$ mtxrun --script fonts --list --all MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' bash-3.1$ mtxrun --script fonts --reload MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua' bash-3.1$ context --generate MTXrun | unknown script 'context.lua' or 'mtx-context.lua' bash-3.1$ set ... OSFONTDIR='/usr/local/share/fonts;/home/safe/.fonts' ... ----------------------------------------------------------------------- Any hints? At the moment I am looking to use just plain Luatex. I can only handle one set of confusing things at a time :<)
Try to run luatools --generate first to generate/update file database. Also, if you are only interested in plain, you may try luatotfload and brothers. -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
Am 2010-09-21 um 23:27 schrieb John Culleton:
On Friday 10 September 2010 15:54:00 Peter Schorsch wrote:
You can list all local availble fonts with:
mtxrun --script fonts --list --all
More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX
Tried all that on a fresh install of texlive 2010. Here are the results, or lack thereof: ------------------------------------------------------------------ bash-3.1$ mtxrun --script fonts --list --all MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua'
It says clearly "unknown script" (i.e. "not found"), nothing to do with fonts. I guess you didn't set TEXMFOS and/or TEXROOT. Mine (with minimals' setuptex) are: TEXMFOS=/Users/hraban/Library/texmf/tex/texmf-osx-intel TEXROOT=/Users/hraban/Library/texmf/tex Don't know if these are necessary: OWNPATH=/Users/hraban/Library/texmf/tex ARGPATH=/Users/hraban/Library/texmf/tex SCRIPTPATH=/Users/hraban/Library/texmf/tex/setuptex I've also TEXMFOS in my PATH. (Since I don't use TeX Live I can't help you further.)
Any hints? At the moment I am looking to use just plain Luatex. I can only handle one set of confusing things at a time :<)
Then don't try to use PlainTeX ;-) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Tuesday 21 September 2010 17:43:15 Henning Hraban Ramm wrote:
Am 2010-09-21 um 23:27 schrieb John Culleton:
On Friday 10 September 2010 15:54:00 Peter Schorsch wrote:
You can list all local availble fonts with:
mtxrun --script fonts --list --all
More details under: http://wiki.contextgarden.net/Fonts_in_LuaTeX
Tried all that on a fresh install of texlive 2010. Here are the results, or lack thereof: ----------------------------------------------------------------- - bash-3.1$ mtxrun --script fonts --list --all MTXrun | unknown script 'fonts.lua' or 'mtx-fonts.lua'
It says clearly "unknown script" (i.e. "not found"), nothing to do with fonts.
I guess you didn't set TEXMFOS and/or TEXROOT. Mine (with minimals' setuptex) are:
TEXMFOS=/Users/hraban/Library/texmf/tex/texmf-osx-intel TEXROOT=/Users/hraban/Library/texmf/tex
Don't know if these are necessary:
OWNPATH=/Users/hraban/Library/texmf/tex ARGPATH=/Users/hraban/Library/texmf/tex SCRIPTPATH=/Users/hraban/Library/texmf/tex/setuptex
I've also TEXMFOS in my PATH.
(Since I don't use TeX Live I can't help you further.)
Any hints? At the moment I am looking to use just plain Luatex. I can only handle one set of confusing things at a time :<)
Then don't try to use PlainTeX ;-)
Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
___________________________________________________________________ ________________ 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 ___________________________________________________________________ ________________
Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp. Here is the base problem. All other publishing related programs on my system will a) look in /usr/share/fonts and b) list the fonts fond there in a window when selecting fonts. Laying aside b) for the moment it would be nice if some form of TeX (preferably not LaTeX) would join the party and find Type1, TTF and OTF fonts in the system standard location. Gimp does this, Scribus does this, Inkscape does this, Open Office Writer does this and so on. Luatex supposedly does this. But getting Luatex to work on a new standard distro , texlive 2010, seems to be a game of whackamole. I tried comp.text.tex but when no one there seemed to have the right answers and many of the names mentioned in the documentation were gurus here I thought I would ask how to get the luatex business set up. My goal is to use the stuff myself of course but also to describe how to do it in a book I am writing on Free Publishing Software. It does not appear that Luatex is suitable for a newbie to set up. Remember, the competition consists of programs where you download and install the program and font finding is automatic. I write for an impatient audience who want to have it all just work without a lot of experimentation and fuss and feathers. There does not yet seem to be a reliable single set of instructions for installing Luatex and setting it up properly. When there is I will revisit the program. Thanks for helping and sorry to have wasted your time. -- John Culleton Wexford Press "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html
Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files.
Not if you use plain TeX. Unlike XeTeX, LuaTeX cannot find or use any more fonts than pdfTeX does. You need additional macros, that are present in ConTeXt, but in neither LaTeX nor (obviously) plain TeX. You can, though, use the luaotfload package with LuaLaTeX as well as (I think) plain LuaTeX, but Khaled should be able to tell you more about that. Arthur
On Tue, Sep 21, 2010 at 06:17:41PM -0400, John Culleton wrote:
Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp.
If you all what you want is plain TeX, then why you are looking for ConTeXt solutions, I mean you don't need ConTeXt nor ConTeXt file locating system (which does not use kpathsea) to use plain format. The issue you have is because your ConTeXt MkIV is not properly setup yet (true for fresh TeXLive 2010 installs). You need to run `luatools -generate` to generate the file database (used to locating files, similar to running texhash and likes, but TeXLive scripts does not run it by default). Then you need to set your system font paths, by setting OSFONTDIR, and ConTeXt will then be able find system fonts. However, you don't need any of then to use system fonts with plain, there are already packages for this (based on dome of ConTeXt code, but adapted to be self contained and ConTeXt independent). A small test file would be: \input luaotfload.sty % works for plain despite the .sty \font\pagella={name:TeX Gyre Pagella:script=latn;+onum} at 10pt \font\termes={file:texgyretermes-regular.otf:script=latn} at 10pt \pagella some text 12345\par \termes other text \bye This should work out of box on texlive (at first run it will take some time building font database). If it does not work, it is a bug. For LaTeX, just check fontspec documentation, and there is a lualatex-dev list on CTAN, and luatex list for general, non-ConTeXt questions. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
On Tuesday 21 September 2010 18:37:48 Khaled Hosny wrote:
On Tue, Sep 21, 2010 at 06:17:41PM -0400, John Culleton wrote:
Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp.
If you all what you want is plain TeX, then why you are looking for ConTeXt solutions, I mean you don't need ConTeXt nor ConTeXt file locating system (which does not use kpathsea) to use plain format.
The issue you have is because your ConTeXt MkIV is not properly setup yet (true for fresh TeXLive 2010 installs). You need to run `luatools -generate` to generate the file database (used to locating files, similar to running texhash and likes, but TeXLive scripts does not run it by default). Then you need to set your system font paths, by setting OSFONTDIR, and ConTeXt will then be able find system fonts.
However, you don't need any of then to use system fonts with plain, there are already packages for this (based on dome of ConTeXt code, but adapted to be self contained and ConTeXt independent).
A small test file would be:
\input luaotfload.sty % works for plain despite the .sty \font\pagella={name:TeX Gyre Pagella:script=latn;+onum} at 10pt \font\termes={file:texgyretermes-regular.otf:script=latn} at 10pt \pagella some text 12345\par \termes other text \bye
This should work out of box on texlive (at first run it will take some time building font database). If it does not work, it is a bug.
For LaTeX, just check fontspec documentation, and there is a lualatex-dev list on CTAN, and luatex list for general, non-ConTeXt questions.
Regards, Khaled Now that works! I'll try it on my XP partition also to see how well I fare. And I need to fiddle with some non-Gyre fonts as well.
You mentioned building a database, and yes that took some time. Is there a way to have it scan fonts in /usr/share/fonts as well? -- John Culleton Wexford Press "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html
On Wednesday 22 September 2010 09:27:52 Alan BRASLAU wrote:
On Wednesday 22 September 2010 15:25:26 John Culleton wrote:
You mentioned building a database, and yes that took some time. Is there a way to have it scan fonts in /usr/share/fonts as well?
export OSFONTDIR=/usr/share/fonts
Alan We are getting close! Thanks for your help.
That works for OTF fonts in /usr/share/fonts/OTF and TTF in /usr/share/fonts/TTF but apparently not for Type1 fonts in /usr/share/fonts/Type1. The line below confuses the system: \font\barr={file:AGaramond-Regular.pfb} at 30bp Here is the error message: argument #2 to 'find_file' (invalid option 'pfb'). I tried it with afm and no suffix at all but they didn't work either. What is the magic formula for Type1? -- John Culleton Wexford Press "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html
On Wed, Sep 22, 2010 at 12:22:36PM -0400, John Culleton wrote:
On Wednesday 22 September 2010 09:27:52 Alan BRASLAU wrote:
On Wednesday 22 September 2010 15:25:26 John Culleton wrote:
You mentioned building a database, and yes that took some time. Is there a way to have it scan fonts in /usr/share/fonts as well?
export OSFONTDIR=/usr/share/fonts
Alan We are getting close! Thanks for your help.
That works for OTF fonts in /usr/share/fonts/OTF and TTF in /usr/share/fonts/TTF but apparently not for Type1 fonts in /usr/share/fonts/Type1. The line below confuses the system:
\font\barr={file:AGaramond-Regular.pfb} at 30bp
Right now, luaotfload does not support Type1 fonts, you have to load them through the old TFM mechanism (the same way as in PDFTeX, nothing changed in this area). But since this is the second request to support Type1 fonts, I might try to steal some more code from ConTeXt that deal with Type1 fonts, but I'm bit busy now with my fonts. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
Am 2010-09-22 um 18:34 schrieb Khaled Hosny:
That works for OTF fonts in /usr/share/fonts/OTF and TTF in /usr/share/fonts/TTF but apparently not for Type1 fonts in /usr/share/fonts/Type1. The line below confuses the system:
\font\barr={file:AGaramond-Regular.pfb} at 30bp
Right now, luaotfload does not support Type1 fonts, you have to load them through the old TFM mechanism (the same way as in PDFTeX, nothing changed in this area). But since this is the second request to support Type1 fonts, I might try to steal some more code from ConTeXt that deal with Type1 fonts, but I'm bit busy now with my fonts.
John: For ConTeXt you need AFM files to use Type1; I guess that will become the same for luaotfload. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On 22-9-2010 11:38, Henning Hraban Ramm wrote:
Am 2010-09-22 um 18:34 schrieb Khaled Hosny:
That works for OTF fonts in /usr/share/fonts/OTF and TTF in /usr/share/fonts/TTF but apparently not for Type1 fonts in /usr/share/fonts/Type1. The line below confuses the system:
\font\barr={file:AGaramond-Regular.pfb} at 30bp
Right now, luaotfload does not support Type1 fonts, you have to load them through the old TFM mechanism (the same way as in PDFTeX, nothing changed in this area). But since this is the second request to support Type1 fonts, I might try to steal some more code from ConTeXt that deal with Type1 fonts, but I'm bit busy now with my fonts.
John: For ConTeXt you need AFM files to use Type1; I guess that will become the same for luaotfload.
the main reason why afm loading is not in the generic code is that it's most likely to be incompatible; context always used the afm approach (via texfont) while latex has relied on the prebuilt tfm files, and they use different metrics geared at latex (things are different for the gyre fonts but one would use the otf files there). There is not that much to gain as most type one fonts are rather incomplete. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Wed, Sep 22, 2010 at 09:25:26AM -0400, John Culleton wrote:
On Tuesday 21 September 2010 18:37:48 Khaled Hosny wrote:
On Tue, Sep 21, 2010 at 06:17:41PM -0400, John Culleton wrote:
Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp.
If you all what you want is plain TeX, then why you are looking for ConTeXt solutions, I mean you don't need ConTeXt nor ConTeXt file locating system (which does not use kpathsea) to use plain format.
The issue you have is because your ConTeXt MkIV is not properly setup yet (true for fresh TeXLive 2010 installs). You need to run `luatools -generate` to generate the file database (used to locating files, similar to running texhash and likes, but TeXLive scripts does not run it by default). Then you need to set your system font paths, by setting OSFONTDIR, and ConTeXt will then be able find system fonts.
However, you don't need any of then to use system fonts with plain, there are already packages for this (based on dome of ConTeXt code, but adapted to be self contained and ConTeXt independent).
A small test file would be:
\input luaotfload.sty % works for plain despite the .sty \font\pagella={name:TeX Gyre Pagella:script=latn;+onum} at 10pt \font\termes={file:texgyretermes-regular.otf:script=latn} at 10pt \pagella some text 12345\par \termes other text \bye
This should work out of box on texlive (at first run it will take some time building font database). If it does not work, it is a bug.
For LaTeX, just check fontspec documentation, and there is a lualatex-dev list on CTAN, and luatex list for general, non-ConTeXt questions.
Regards, Khaled Now that works! I'll try it on my XP partition also to see how well I fare. And I need to fiddle with some non-Gyre fonts as well.
You mentioned building a database, and yes that took some time. Is there a way to have it scan fonts in /usr/share/fonts as well?
By default on Linux it will attempt to read /etc/fonts/fonts.conf and detect system font directories, so /usr/share/fonts (and ~/.fonts) should work, you can override this by explicitly setting OSFONTDIR, in this case it will only search the specified directories (it is a regular kpathsea variable). Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
On Wed, Sep 22, 2010 at 12:17 AM, John Culleton
Well I have been typesetting books in plain tex and pdftex for a decade or more. Supposedly luatex is a superset of pdftex that makes finding fonts easier and eliminates the generation of tmf files. But I seem to be sinking into a deeper swamp.
Here is the base problem. All other publishing related programs on my system will a) look in /usr/share/fonts and b) list the fonts fond there in a window when selecting fonts.
Laying aside b) for the moment it would be nice if some form of TeX (preferably not LaTeX) would join the party and find Type1, TTF and OTF fonts in the system standard location. Gimp does this, Scribus does this, Inkscape does this, Open Office Writer does this and so on. Luatex supposedly does this. But getting Luatex to work on a new standard distro , texlive 2010, seems to be a game of whackamole. I tried comp.text.tex but when no one there seemed to have the right answers and many of the names mentioned in the documentation were gurus here I thought I would ask how to get the luatex business set up.
My goal is to use the stuff myself of course but also to describe how to do it in a book I am writing on Free Publishing Software. It does not appear that Luatex is suitable for a newbie to set up. Remember, the competition consists of programs where you download and install the program and font finding is automatic. I write for an impatient audience who want to have it all just work without a lot of experimentation and fuss and feathers. There does not yet seem to be a reliable single set of instructions for installing Luatex and setting it up properly. When there is I will revisit the program.
Thanks for helping and sorry to have wasted your time.
A bit off topic: you can consider minimals & metatex.tex with mkiv (hence not texlive); it should build a (sort of) plain tex with luatex . See tex/context/base/metatex.tex but a bit of experience is required, I believe. -- luigi
participants (11)
-
Alan BRASLAU
-
Andreas Harder
-
Arthur Reutenauer
-
Cecil Westerhof
-
Hans Hagen
-
Henning Hraban Ramm
-
John Culleton
-
Khaled Hosny
-
luigi scarso
-
Peter Schorsch
-
Wolfgang Schuster