[NTG-context] UNSUBSCRIBE
UNSUBSCRIBE ___ 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 ___
Re: [NTG-context] Two newbie questions about Texfont
I've been looking into luatex and got it running now. However, i'm not sure how to link a font that I want to use in my ConText documents to an actual font file on my disk. For example, I have tried: \definebodyfont[12pt][rm][ tf=c:\fonts\ITC Stone Serif\SR__.AFM ] It doesn't work, so I guess this approach is both naive and optimistic. I also read the manual Texfont explained for clues, but that didn't help either. Could someone show me how to use type1 font files with Luatex without having to go the TexFont route. Thanks, Harrie. On Tue, Jul 14, 2009 at 8:13 PM, Hans Hagen pra...@wxs.nl wrote: Harrie Frericks wrote: Now that I finally have Context running I'm trying to install a number of type1 fonts. I've read the Texfont manual, but I couldn't find answers to these questions: 1. Can Texfont recursively process a font tree? I have a directory font tree like this: c:\fonts\type1\font-family1 c:\fonts\type1\font-family2 c:\fonts\type1\font-family3 each font-family subdirectory has a number of .afm files. If I set --sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories of the font families and locate and process the .afm files? 2. Can Texfont handle .afm files with extensions in uppercase? Most of my type1 font files are in uppercase like: XYZ_.AFM I can only get Texfont to process these files if I first rename them to lowercase, like XYZ_.AFM since you're new to context you can consider skipping pdftex and moving on to either xetex or luatex (which uses context mkiv) for luatex/mkiv you don't need to mess around with fonts as this combo directly handles afm/pfb files so there is no need for creating tfm metrics Hans - 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two newbie questions about Texfont
Thanks, Wolfgang, that was another step in the right direction. Could you help me with the next step? This is what I did so far. (N.B. I'm not interested in TeX's standard fonts. I want to use my own type1 and otf fonts which are in c:\fonts). 1. I set OSFONTDIR to c:\fonts 2. I ran mtxrun --script font --reload That was succesfull. Mtxrun recursed the entire font directory tree. 3. I ran mtxrun --script fonts --list --pattern=*stone*. I got about twenty lines of output in three columns. Here is an example: stonesans StoneSans c:/fonts/ITC Stone Sans/SS__.AFM So far, so good. Now, I want to use this font and you included a link to a Wiki article. This article says I have to use a typescript. The example typescript from the Wiki uses the \definetypeface command. I searched everywhere for a good description of this command, but wasn't able to find one, unfortunately. Using the example from the Wiki: \definetypeface [Bonum] [rm] [serif] [bonum] [default] how would I use this command to be able to use my Stone Sans font from the mtxrun output? In the [Bonum] example I can't find a reference to a font file of the type c:\fonts\etc. Any help would be greatly appreciated. Thanks, Harrie. On Fri, Jul 17, 2009 at 11:53 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 17.07.2009 um 11:11 schrieb Harrie Frericks: Could someone show me how to use type1 font files with Luatex without having to go the TexFont route. When you placed your fonts in the TeX directory (afm plus pfb files) regenerate the file database with 'context --generate' to let ConTeXt know about the new files. To see what the real names of the fonts is you can show the complete list on the terminal with 'mtxrun --script fonts --list', you can narrow down the list with names when you use a search pattern what could e in your case something like 'mtxrun --script fonts --list --pattern=*stone*' When you're font is not listed in the output from mtxrun update also the font database with the command 'mtxrun --script font --regenrate'. To use the fonts in your document you can write a typescript for them by hand [1] or use the simplefonts module which offers a simpler method and does the hard work itself hidden for the user. [1] http://wiki.contextgarden.net/Fonts_in_LuaTex 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First time user trying to get Context to work
The problem has been solved. It turned out Ruby is installed twice on my computer. One is the regular download from www.ruby-lang.org, the other one came with cygwin (which I wasn't aware of). The cygwin path string was before the c:\ruby path string. When I moved the c:\ruby path before the cygwin path Context worked correctly. And this took me a full day of hacking. Sigh. Thanks for all your help. Harrie. On Mon, Jul 13, 2009 at 10:22 AM, Hans Hagen pra...@wxs.nl wrote: Harrie Frericks wrote: Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans Yes, I did. It makes no difference. the ./pdftex suggests that your env vars are not set up; on unix make sure that you run . setuptex (with period) Hans - 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Two newbie questions about Texfont
Now that I finally have Context running I'm trying to install a number of type1 fonts. I've read the Texfont manual, but I couldn't find answers to these questions: 1. Can Texfont recursively process a font tree? I have a directory font tree like this: c:\fonts\type1\font-family1 c:\fonts\type1\font-family2 c:\fonts\type1\font-family3 each font-family subdirectory has a number of .afm files. If I set --sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories of the font families and locate and process the .afm files? 2. Can Texfont handle .afm files with extensions in uppercase? Most of my type1 font files are in uppercase like: XYZ_.AFM I can only get Texfont to process these files if I first rename them to lowercase, like XYZ_.AFM Thanks, Harrie. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two newbie questions about Texfont
Thanks, Hans, I will look into that. Harrie On Tue, Jul 14, 2009 at 8:13 PM, Hans Hagen pra...@wxs.nl wrote: Harrie Frericks wrote: Now that I finally have Context running I'm trying to install a number of type1 fonts. I've read the Texfont manual, but I couldn't find answers to these questions: 1. Can Texfont recursively process a font tree? I have a directory font tree like this: c:\fonts\type1\font-family1 c:\fonts\type1\font-family2 c:\fonts\type1\font-family3 each font-family subdirectory has a number of .afm files. If I set --sourcepath to c:\fonts\type1 can Texfont recurse all the subdirectories of the font families and locate and process the .afm files? 2. Can Texfont handle .afm files with extensions in uppercase? Most of my type1 font files are in uppercase like: XYZ_.AFM I can only get Texfont to process these files if I first rename them to lowercase, like XYZ_.AFM since you're new to context you can consider skipping pdftex and moving on to either xetex or luatex (which uses context mkiv) for luatex/mkiv you don't need to mess around with fonts as this combo directly handles afm/pfb files so there is no need for creating tfm metrics Hans - 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] First time user trying to get Context to work
This is my first post to the list. I'm a first time user and I'm very eager to give Context a try. However, so far I've been unable to get Context to work properly. Maybe someone can help. I'm using a standard Windows PC running XP SP2. I'm using the minimals version. There are no other Tex related packages on my system. Problem 1 (solved): Ruby error: no such file to load ubygems Solution: this error is caused by the environment variable RUBYOPT. When it is set, it is usually set to -rubygems. Unsetting this variable solves the problem. Suggestion: when running first-setup.bat this error is produced on the very first line. However, since there is a lot of text scrolling down the screen this error is easily overlooked. It may be a good idea to unset the RUBYOPT variable in this .bat file. It may also be a good idea to unset (and probably reset) this variable in the texexec.bat file before texlua is called. Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: TexExec | using tex engine pdftex TexExec | using tex format path ./pdftex TexExec | unable to make format due to lack of permissions TexExec | using mp engine mpost TexExec | using mps format path . TexExec | generating mps format metafun I then did some debugging on the tex.rb file and found the error is generated in the following piece of code starting at line 646: if texformats texengine then report(using tex engine #{texengine}) texformatpath = if getvariable('local') then '.' else Kpse.formatpath(texengine,true) end # can be empty, to do report(using tex format path #{texformatpath}) Dir.chdir(texformatpath) rescue false if FileTest.writable?(texformatpath) then The last if fails and generates the error on line 679. I then checked for file permissions in the c:\context directory tree and found no problems there. My guess: the ./pdftex format path either doesn't exist or can't be found by tex.rb and this generates the error. The ruby scripts of Context are too large to do a full debug. I simply do not have the time for that. So, after several hours of hacking I hope someone can solve this problem, so I can finally give Context a try. Regards, Harrie Frericks The Netherlands ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First time user trying to get Context to work
Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans Yes, I did. It makes no difference. Thanks, Harrie. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First time user trying to get Context to work
I did some more debugging: In the file kpse.rb I entered an exception object after line 274, like this: unless done then formatpaths.each do |fp| fpp = fp.sub(/#{engine}\/*$/o,'') begin FileUtils.makedirs(fpp) rescue = excobj puts #{excobj.class}: #{excobj.message} # false # maybe we don't have an path yet end if FileTest.directory?(fpp) FileTest.writable?(fpp) then # use this path This generates the following output when running texexec --make --all TeXExex | using tex engine pdftex Errno::ENOENT: No such file or directory - c:/context/tex/texmf-mswin/web2c/pdftex:c: TeXExex | using tex format path ./pdftex TeXExex | unable to make format due to lack of permissions TeXExex | using mp engine mpost Errno::ENOENT: No such file or directory - c:/context/tex/texmf-mswin/web2c/:c: TeXExex | using mps format path Does this help in solving this problem? Thanks, Harrie On Mon, Jul 13, 2009 at 10:22 AM, Hans Hagen pra...@wxs.nl wrote: Harrie Frericks wrote: Problem 2 (not-solved) I'm getting the infamous error: I can't find the format file `cont-en.fmt'! I searched this list and tried texexec --make --all This doesn't solve the problem. The problem is located in this part of the output: did you run 'setuptex' in the tex path first? Hans Yes, I did. It makes no difference. the ./pdftex suggests that your env vars are not set up; on unix make sure that you run . setuptex (with period) Hans - 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___