Re: [NTG-context] Re: How to use PostScript font
----- Original Message -----
From: Patrick Gundlach
Please post an error message on the things that we have written. (But I doubt you will get any.)
The following works at live.contextgarden.net, but not on my Fedora Core 2 installation.
\usetypescript[adobekb][ec]
\setupbodyfont[ppl,11pt]
\starttext
The quick brown fox jumps over the lazy dog.
\stoptext
Please advise on how to fix this issue.
[khilji@localhost PalatinoTest]$ texexec --pdf test
TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002
executable : pdfetex
format : cont-en
inputfile : test
output : pdftex
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
entering extended mode
(./test.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.1.31 fmt: 2004.5.28 int: english mes: english
language : language en is active
[...]
The following works at live.contextgarden.net, but not on my Fedora Core 2 installation.
Oh damned. The adobekb file does not exist on your system and ConTeXt doesn't feel like giving an error message :-( install http://levana.de/context/font/adobekb.tex into your homedir/TeX system. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net
Patrick Gundlach wrote:
[...]
The following works at live.contextgarden.net, but not on my Fedora Core 2 installation.
Oh damned. The adobekb file does not exist on your system and ConTeXt doesn't feel like giving an error message :-(
install http://levana.de/context/font/adobekb.tex into your homedir/TeX system.
but type-akb.tex should be there ... \usetypescriptfile[type-akb] 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 -----------------------------------------------------------------
Hello Hans, [...]
but type-akb.tex should be there ...
\usetypescriptfile[type-akb]
Hmm, shouldn't \usetypescript[adobekb][..] be enough to load the file? I have just deleted my tetex 2 installation, so I can't verify. type-akb.tex didn't get loaded with fedora linux that the person (whatever his name is) used so it is either not available or one has to use the right magic to load. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net
Patrick Gundlach wrote:
Hello Hans,
[...]
but type-akb.tex should be there ...
\usetypescriptfile[type-akb]
Hmm, shouldn't \usetypescript[adobekb][..] be enough to load the file? I have just deleted my tetex 2 installation, so I can't verify. type-akb.tex didn't get loaded with fedora linux that the person (whatever his name is) used so it is either not available or one has to use the right magic to load.
just to make sure: type-akb is on your system isn't it? (or did i mess up the distribution ?) 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 -----------------------------------------------------------------
Hello Hans,
Hmm, shouldn't \usetypescript[adobekb][..] be enough to load the file?
I have just deleted my tetex 2 installation, so I can't verify. type-akb.tex didn't get loaded with fedora linux that the person (whatever his name is) used so it is either not available or one has to use the right magic to load.
just to make sure: type-akb is on your system isn't it? (or did i mess up the distribution ?) Hans
Sure! We have a problem with something archaeological: ConTeXt ver: 2003.1.31 fmt: 2004.5.28 int: english mes: english So "skhilji@tampabay.rr.com" should report again. P. -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net
On Friday 20 August 2004 09:40 am, Patrick Gundlach wrote:
So "skhilji@tampabay.rr.com" should report again.
Still no luck!!! :-(
Okay, so I got really upset with teTeX so I decided to get rid of it. Earlier
I said that I was using Fedora Core 2. Now I am sitting on a SuSE 8.0 Pro
machine. I did the following:
1) Uninstalled whatever TeX came with SuSE
2) Downloaded and installed from texlive2003-inst-20030928.iso
3) I chose not to install latex. Just context and pdftex alongwith whatever
texlive said about anything being "essential files"
4) Next I wiped off whatever ConTeXt came with texlive and followed
instructions on this page:
http://home.salamander.com/~wmcclain/context-help.html
to install the latest ConTeXt from pragma website.
5) Then I found that adobekb.tex was still NOT installed on my system---yes
the latest ConTeXt from pragma-ade still does not have adobekb.tex. But as
Hans suggested, I do have the file type-akb.tex. As Patrick suggested, I
downloaded and installed adobekb.tex in the TeX tree.
6) So after all this, I try both type-akb and adobekb and the palatino font
still refuses to cooperate.
Here are the errors that I am getting:
With this:
\usetypescript[berry][ec] % or [8r]
\usetypescript[palatino][ec] %
\setupbodyfont[palatino]
\starttext
The quick brown fox jumps over the lazy dog.
\stoptext
gives me the following:
salman@linux:~/Softdev> texexec --pdf paltest
TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003
executable : pdfetex
format : cont-en
inputfile : paltest
output : pdftex
interface : en
current mode : none
TeX run : 1
This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
\write18 enabled.
%&-line parsing enabled.
(/usr/TeX/texmf/web2c/natural.tcx)
entering extended mode
(./paltest.tex{/usr/TeX/texmf-var/pdftex/config/pdftex.cfg}
ConTeXt ver: 2004.8.15 fmt: 2004.8.21 int: english mes: english
language : language en is active
I found out that while trying to install the latest ConTeXt over whatever came
with texlive2003-inst-20030928.iso, I screwed up somewhere and ConTeXt would
not even generate me a pdf file with cmr fonts.
So here is what I did.
1) I deleted everything about TeX from my system
2) Installed TeXLive from the iso with default options. I did not change
anything. Just accepted the defaults.
3) I did not install the latest ConTeXt. I think I will be fine with whatever
comes with TeXLive as of Sept, 2003.
4) Now I can generate a hello world pdf file with cmr fonts just fine.
5) Yes, I do have the type-akb.tex on my system.
6) On the following:
\usetypescriptfile[type-akb]
\usetypescript[palatino][\defaultencoding]
\setupbodyfont[palatino,12pt]
\starttext
The quick brown fox jumps over the lazy dog.
\stoptext
I get the following errors:
salman@linux:~/Softdev> texexec --pdf paltest
TeXExec 4.0 - ConTeXt / PRAGMA ADE 1997-2003
executable : pdfetex
format : cont-en
inputfile : paltest
output : pdftex
interface : en
current mode : none
TeX run : 1
This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
%&-line parsing enabled.
(/usr/TeX/texmf/web2c/cp8bit.tcx)
entering extended mode
(./paltest.tex{/usr/TeX/texmf-var/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.9.25 fmt: 2004.8.21 int: english mes: english
language : language en is active
Salman Khilji
Hi,
Here is the essence of your problem:
> kpathsea: Running mktexmf ec-uplr8a ! I can't find file > `ec-uplr8a'. <*> ...jfour; mag:=1; nonstopmode; input ec-uplr8a
You don't have the proper font files in place to use the postscript typescripts as they come in the default ConText. For what it is worth, neither did the Slackware 9.1 distribution that I have.
If this is a recent TeX, then it has all necessary files for using postscript fonts out of the box. Just install psnfss and use the magic I have written elsewhere in this thread. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net
Okay. Problem solved. The thing is that I did not ask the texlive distribution to install the extra fonts package. The palatino fonts were part of the extra fonts. Now I have another question. It seems like \setupbodyfont[palatino] produces different results than \setupbodyfont[ppl]. The former tries to use palatino in all the variations in the following example. The palatino fonts seems to be missing the serif variant, so the \ss and the normal lines look the same---i.e ConTeXt decided to use the same roman variant for both the \rm and the \ss line. Even the equation uses some sort of postscript font that I am not familiar with. The latter---\setupbodyfont[ppl]---is not very forceful---it uses palatino in the \rm, \em, and \sl lines. Everywhere else the CMR font is used. What causes this behavior? \usetypescript[berry][ec] % or [8r] \usetypescript[palatino][ec] % \setupbodyfont[palatino] %\setupbodyfont[ppl] \starttext {\rm The quick brown fox jumps over the lazy dog. 1234567890} {\em The quick brown fox jumps over the lazy dog. 1234567890} {\sl The quick brown fox jumps over the lazy dog. 1234567890} {\ss The quick brown fox jumps over the lazy dog. 1234567890} {\bf The quick brown fox jumps over the lazy dog. 1234567890} {\tt The quick brown fox jumps over the lazy dog. 1234567890} $$1+\sqrt{x^2}+\sum dx$$ \stoptext
Hello,
Okay. Problem solved. The thing is that I did not ask the texlive distribution to install the extra fonts package. The palatino fonts were part of the extra fonts.
Right, I did aks you if you have psnfss installed? Hmm, perhaps I forgot, because I think that everybody has it installed...
The former tries to use palatino in all the variations in the following example. The palatino fonts seems to be missing the serif variant,
I guess you mean sans serif? Yes, there is no such thing as Palatino sans serif.
Even the equation uses some sort of postscript font that I am not familiar with.
px I'd guess.
the \rm, \em, and \sl lines. Everywhere else the CMR font is used.
Well, not really cmr, but cmss, cmtt and math.
What causes this behavior?
see type-pre.tex type-exa.tex and type-enc.tex for definitions on those typescripts. They are just different typescripts. Patrick -- ConTeXt wiki: http://contextgarden.net texshow-web: http://texshow.contextgarden.net List archive: http://archive.contextgarden.net
Salman Khilji wrote:
I found out that while trying to install the latest ConTeXt over whatever came with texlive2003-inst-20030928.iso, I screwed up somewhere and ConTeXt would not even generate me a pdf file with cmr fonts.
So here is what I did.
1) I deleted everything about TeX from my system 2) Installed TeXLive from the iso with default options. I did not change anything. Just accepted the defaults. 3) I did not install the latest ConTeXt. I think I will be fine with whatever comes with TeXLive as of Sept, 2003. 4) Now I can generate a hello world pdf file with cmr fonts just fine.
an alternative is: mkdir /usr/local/mytex cd /usr/local/mytex wget http://www.pragma-ade.com/contextt/linuxtex.zip.bz2 bunzip2 linuxtex.zip.bz2 unzip linuxtex chmod -R 755 . setuptex /usr/local/mytex mktexlsr texexec --make --alone --all every time after that . /usr/local/setuptex /usr/local/setuptex should give you a minimal context tree (i develop on a windows machine, so that is the tree we use on the linux application servers) (take a look at cont-sys.tex to see how we set up our context) (there is also mswintex.zip.bz2 and macosxtex.zip.bz2) 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 -----------------------------------------------------------------
participants (6)
-
Hans Hagen
-
Hans Hagen Outside
-
Larry Stamm
-
Patrick Gundlach
-
Salman Khilji
-
skhilji@tampabay.rr.com