Problems recompiling LaTeX2ConTeXt.tex
![](https://secure.gravatar.com/avatar/9bf8d5799a519b33addbfd8c91b79f70.jpg?s=120&d=mm&r=g)
I wanted to recompile LaTeX2ConTeXt.tex mainly to get
a PDF file with bookmarks. However, I think I may have
smoked out some problems with my ConTeXt installation
in the process. I'm running Red Hat 8.0, with
teTeX-1.0.7.
The output from texexec is as follows:
TeXExec 2.6 - ConTeXt / PRAGMA ADE 1997-2001
executable : pdfetex
format : cont-en
inputfile : LaTeX2ConTeXt
output : pdftex
interface : en
current mode : all
TeX run : 1
This is pdfeTeX, Version
3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
entering extended mode
(./LaTeX2ConTeXt.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
ConTeXt ver: 2002.1.28 fmt: 2003.3.3 int: english
mes: english
language : language en is active
system : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from
cont-new.tex!
)
system : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system : cont-sys loaded
(/usr/share/texmf/tex/context/user/cont-sys.tex)
bodyfont : 12pt rm is loaded
language : patterns 2-en-2 2-uk-2 2-de-2 2-fr-2
2-nl-2 loaded
specials : tex,postscript,rokicki loaded
system : LaTeX2ConTeXt.top loaded
(./LaTeX2ConTeXt.top
specials : loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials : loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
At 08:45 AM 3/4/2003 -0800, you wrote:
I wanted to recompile LaTeX2ConTeXt.tex mainly to get a PDF file with bookmarks. However, I think I may have smoked out some problems with my ConTeXt installation in the process. I'm running Red Hat 8.0, with teTeX-1.0.7.
The output from texexec is as follows:
TeXExec 2.6 - ConTeXt / PRAGMA ADE 1997-2001
executable : pdfetex format : cont-en inputfile : LaTeX2ConTeXt output : pdftex interface : en current mode : all TeX run : 1
This is pdfeTeX, Version 3.14159-14h-released-20010417-2.1 (Web2C 7.3.3.1)
that's old
entering extended mode (./LaTeX2ConTeXt.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
maybe \usetypescript[berry][ec] helps Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/a2ee49f73607373bc054c9efc25691b1.jpg?s=120&d=mm&r=g)
On Tue, 4 Mar 2003 08:45:24 -0800 (PST)
"James J. Ramsey"
I wanted to recompile LaTeX2ConTeXt.tex mainly to get a PDF file with bookmarks. However, I think I may have smoked out some problems with my ConTeXt installation in the process. I'm running Red Hat 8.0, with teTeX-1.0.7.
i would prefer an update at least to TEXLive7 and the current ConTeXt
What is going on?
find the file cont-sys.tex and uncomment the lines \setupencoding [\s!default=ec] \usetypescript [berry] [\defaultencoding] if this still does not work since font utmr8r etc. is not found then you should install an up-to-date TeX distribution Jens
![](https://secure.gravatar.com/avatar/9bf8d5799a519b33addbfd8c91b79f70.jpg?s=120&d=mm&r=g)
--- Jens-Uwe Morawski
On Tue, 4 Mar 2003 08:45:24 -0800 (PST) "James J. Ramsey"
wrote: I think I may have smoked out some problems with my ConTeXt installation in the process. I'm running Red Hat 8.0, with teTeX-1.0.7.
i would prefer an update at least to TEXLive7 and the current ConTeXt
Easier said than done on most Linux distros. teTeX is "standard equipment" on many of them, and often a dependency.
What is going on?
find the file cont-sys.tex and uncomment the lines \setupencoding [\s!default=ec] \usetypescript [berry] [\defaultencoding]
That didn't work. I get this complaint: ! Undefined control sequence. <argument> \s !default=ec \xprocesscommaitem #1,#2->\if ,#1 ,\@EA \xprocesscommaitem \else \if ]#1\@EAE... \xdogetparameters #1]->\xprocesscommaitem #1,] ,\@relax@ \dosetupencoding [#1]->\getparameters [\??ec ][#1] \edef \defaultencoding {\i... l.1 \setupencoding [\s!default=ec]
if this still does not work since font utmr8r etc. is not found
Yeah, I do not have that font. Oddly enough, I do have the files utmr8a.pfb and utmr8a.afm, but no utmr8r.
then you should install an up-to-date TeX distribution
As I said, easier said than done. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
![](https://secure.gravatar.com/avatar/a2ee49f73607373bc054c9efc25691b1.jpg?s=120&d=mm&r=g)
On Wed, 5 Mar 2003 10:16:40 -0800 (PST)
"James J. Ramsey"
--- Jens-Uwe Morawski
wrote: On Tue, 4 Mar 2003 08:45:24 -0800 (PST) "James J. Ramsey"
wrote: I think I may have smoked out some problems with my ConTeXt installation in the process. I'm running Red Hat 8.0, with teTeX-1.0.7.
i would prefer an update at least to TEXLive7 and the current ConTeXt
Easier said than done on most Linux distros. teTeX is "standard equipment" on many of them, and often a dependency.
- install TeXLive in /opt/TeXlive/; don't let the installer create symbolic links for the binaries and don't install the ConTeXT from TEXLive - install ConTeXT in /opt/ConTeXT/texmf/ (don't forget to build a ls-R database there) - create a directory /opt/ConTeXt/bin, go there and run for PL in `ls ../texmf/context/perltk/*.pl`; do ln -s $PL `basename $PL .pl`; done - go to /opt/ConTeXt/texmf/context/perltk/ and check whether the *.pl files have mode 755 (rwxr-xr-x); if not run chmod 755 *.pl - find texmf.cnf in /opt/TeXLive (usually at /opt/TeXLive/texmf/web2c/texmf.cnf) make a copy (texmf.cnf.ori) and edit the texmf.cnf: (a) add: TEXMFCONTEXT=/opt/ConTeXt/texmf (b) change TEXMF={$HOMETEXMF,!!$VARTEXMF,$TEXMFLOCAL,!!$TEXMFMAIN} to TEXMF={$HOMETEXMF,$TEXMFCONTEXT,!!$VARTEXMF,$TEXMFLOCAL,!!$TEXMFMAIN} - create a file /etc/profile.d/texlive.sh with following content PATH=/opt/ConTeXt/bin:/opt/TeXLive/bin/i386-linux:$PATH TEXMFCNF="/opt/TeXLive/texmf/web2c/texmf.cnf" export TEXMFCNF - re-login or refresh your profile (source /etc/profile in bash or bash --login), so that profile changes take effect. done. No need to uninstall the distro's teTeX. It will simply not used anymore.
What is going on?
find the file cont-sys.tex and uncomment the lines \setupencoding [\s!default=ec] \usetypescript [berry] [\defaultencoding]
That didn't work. I get this complaint:
! Undefined control sequence. <argument> \s !default=ec
Hmm, it's working here. Maybe Hans knows... You can try \setupencoding[default=ec], but i believe the \s! has a meaning there so NO WARRANTY :) But easier, change \usetypescript [berry] [\defaultencoding] to \usetypescript [berry] [ec]
if this still does not work since font utmr8r etc. is not found
Yeah, I do not have that font. Oddly enough, I do have the files utmr8a.pfb and utmr8a.afm, but no utmr8r.
utmr8r is not a PostScript Type1 font, it's a TeX font. So, look for utmr8r.tfm (raw TeX font) or for utmr8t.tfm (T1 aka ec encoded TeX font).
then you should install an up-to-date TeX distribution
As I said, easier said than done.
see above Jens
![](https://secure.gravatar.com/avatar/a2ee49f73607373bc054c9efc25691b1.jpg?s=120&d=mm&r=g)
On Wed, 5 Mar 2003 22:55:11 +0100
Jens-Uwe Morawski
- create a file /etc/profile.d/texlive.sh with following content
PATH=/opt/ConTeXt/bin:/opt/TeXLive/bin/i386-linux:$PATH TEXMFCNF="/opt/TeXLive/texmf/web2c/texmf.cnf" export TEXMFCNF
Uups sorry, it should be: PATH=/opt/ConTeXt/bin:/opt/TeXLive/bin/i386-linux:$PATH MANPATH=/opt/TeXLive/man/:`manpath` TEXMFCNF=/opt/TeXLive/texmf/web2c export MANPATH TEXMFCNF and where i've said "done", not all is done. You still have to generate the ConTeXt format files. Thus, go in /opt/ConTeXt/texmf/context/config/ copy texexec.rme to texexec.ini and generate the formats texexec --make --language=en en texexec --make metafun texexec --make mptopdf or what else is needed. Jens
![](https://secure.gravatar.com/avatar/a2ee49f73607373bc054c9efc25691b1.jpg?s=120&d=mm&r=g)
On Wed, 5 Mar 2003 22:55:11 +0100
Jens-Uwe Morawski
On Wed, 5 Mar 2003 10:16:40 -0800 (PST) "James J. Ramsey"
wrote: Easier said than done on most Linux distros. teTeX is "standard equipment" on many of them, and often a dependency.
- install TeXLive in /opt/TeXlive/; don't let the installer create symbolic links for the binaries and don't install the ConTeXT from TEXLive
Uups again, the directory name should be /opt/TeXLive in order to match the following installation instructions. Jens
![](https://secure.gravatar.com/avatar/e06926c38fbaaea22f30ac680beafa3c.jpg?s=120&d=mm&r=g)
On Wednesday 05 March 2003 19:16, you wrote:
--- Jens-Uwe Morawski
wrote: On Tue, 4 Mar 2003 08:45:24 -0800 (PST) "James J. Ramsey"
I'm running Red Hat 8.0, with teTeX-1.0.7.
i would prefer an update at least to TEXLive7 and the current ConTeXt
Easier said than done on most Linux distros. teTeX is "standard equipment" on many of them, and often a dependency.
Oh no, it's easy, I replaced it on SuSE. Here are the steps: Forget about rpm, just pretend tht everything is there. Make sure you are a priviledged user. 1) remove /usr/share/texmf (or wherever RetHat puts it). 2) install TeXLive 7 (or wait till 8 comes out) in /usr/share/TeX 3) find out where the executable lives (which tex) 4) replace all symlinks in that directory with symlinks to the binaries of TeXLive. 5) add a symlink to you new main texmf tree in /usr/share/texmf The other packages should see no difference. A package manager is fine, but if you want to have an advanced tex (current tex), you should not rely on RedHat or SuSe. Both seem to downgrade tex more and more, and favour OpenOffice, since that is what point-and-click users expect. I get the same rash from either OpenOffice or MS Office, so I guess this doesn't really apply to the part of the demographics subscribed to this list. Cheers (sorry for the rant) Maarten
![](https://secure.gravatar.com/avatar/7698ca8517c6b0d840c3eb065bceca3d.jpg?s=120&d=mm&r=g)
On Tue, Mar 04, 2003 at 08:45:24AM -0800, James J. Ramsey wrote:
! I can't find file `Times-Roman'. <*> ...our; mag:=1; nonstopmode; input Times-Roman
Please type another input file name ! Emergency stop. <*> ...our; mag:=1; nonstopmode; input Times-Roman
Transcript written on mfput.log. mktextfm: `mf \mode:=ljfour; mag:=1; nonstopmode; input Times-Roman' failed. kpathsea: Appending font creation commands to missfont.log.
! Font \*12ptrmtf*=Times-Roman at 12.0pt not loadable: Metric (TFM) file not fo und. \lastfontname ->Times-Roman at \scaledfont
I think you need to add the following lines of code: \setupencoding[default=ec] \usetypescript [serif] [times] [\defaultencoding] \usetypescript [sans] [helvetica] [\defaultencoding] \usetypescript [mono] [courier] [\defaultencoding] \usetypescript [berry] [\defaultencoding] These map Times-Roman to utmr etc., which hopefully are on your installation. If they are not, you should have ptmr etc., but that would require a modified version of these typescripts. Alternatively, you can use the following lines of code, which achieve the same thing: \usetypescript[postscript] [ec] \usetypescript[berry][ec] \switchtotypeface [postscript][rm] I think running Red Hat 8.0, with teTeX-1.0.7 with ConTeXt ver: 2002.1.28 is a reasonable thing to do. Most of the software packages I run are older than that. One only runs the latest and greatest of software one is especially interested in. Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl
![](https://secure.gravatar.com/avatar/9bf8d5799a519b33addbfd8c91b79f70.jpg?s=120&d=mm&r=g)
--- Simon Pepping
On Tue, Mar 04, 2003 at 08:45:24AM -0800, James J. Ramsey wrote:
I think you need to add the following lines of code:
\setupencoding[default=ec] \usetypescript [serif] [times] [\defaultencoding] \usetypescript [sans] [helvetica] [\defaultencoding] \usetypescript [mono] [courier] [\defaultencoding] \usetypescript [berry] [\defaultencoding]
The above didn't quite work. LaTeX2ConTeXt compiled without errors, but the fonts were all Computer Modern. In addition, the sections of the document showing samples of LaTeX and ConTeXt markup had the characters '\', '{', and '}' replaced with '"', '-', and '', respectively.
Alternatively, you can use the following lines of code, which achieve the same thing:
\usetypescript[postscript] [ec] \usetypescript[berry][ec] \switchtotypeface [postscript][rm]
For some reason, the above works just fine. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
![](https://secure.gravatar.com/avatar/7698ca8517c6b0d840c3eb065bceca3d.jpg?s=120&d=mm&r=g)
On Wed, Mar 05, 2003 at 02:26:51PM -0800, James J. Ramsey wrote:
--- Simon Pepping
wrote: On Tue, Mar 04, 2003 at 08:45:24AM -0800, James J. Ramsey wrote:
I think you need to add the following lines of code:
\setupencoding[default=ec] \usetypescript [serif] [times] [\defaultencoding] \usetypescript [sans] [helvetica] [\defaultencoding] \usetypescript [mono] [courier] [\defaultencoding] \usetypescript [berry] [\defaultencoding]
The above didn't quite work. LaTeX2ConTeXt compiled without errors, but the fonts were all Computer Modern. In addition, the sections of the document showing samples of LaTeX and ConTeXt markup had the characters '\', '{', and '}' replaced with '"', '-', and '', respectively.
I think I forgot the command to activate the new fonts: \rm. Anyway, if the lines below work, it is OK.
Alternatively, you can use the following lines of code, which achieve the same thing:
\usetypescript[postscript] [ec] \usetypescript[berry][ec] \switchtotypeface [postscript][rm]
For some reason, the above works just fine.
You sound quite surprised. I believe context's font management is quite robust. The problem is in the typescripts. There are many of them, and they only work if they are used in the right combinations. And there is insufficient documentation of those combinations. The above postscript typescript and its relatives, with the typeface definitions in them, are a good step towards integration of the right combination of typescripts. Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl
![](https://secure.gravatar.com/avatar/9bf8d5799a519b33addbfd8c91b79f70.jpg?s=120&d=mm&r=g)
--- Simon Pepping
On Wed, Mar 05, 2003 at 02:26:51PM -0800, James J. Ramsey wrote:
\usetypescript[postscript] [ec] \usetypescript[berry][ec] \switchtotypeface [postscript][rm]
For some reason, the above works just fine.
You sound quite surprised.
Considering that I started this thread because a documented font command, \setupbodyfont[ber,pos], barfed on me, I think I have a right to be surprised. :-) __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
![](https://secure.gravatar.com/avatar/a2ee49f73607373bc054c9efc25691b1.jpg?s=120&d=mm&r=g)
On Wed, 5 Mar 2003 21:25:04 +0100
Simon Pepping
I think running Red Hat 8.0, with teTeX-1.0.7 with ConTeXt ver: 2002.1.28 is a reasonable thing to do. Most of the software packages I run are older than that. One only runs the latest and greatest of software one is especially interested in.
Hmm, aren't you interested in ConTeXt? ;-) The real question: would you like that people ask/bother you about bugs and missing features of DocBookInConTeXt that are already fixed or implemented. I'm sure your answer is: No. So, why use an old ConTeXt if Hans spends so much time to improve it. Why use an old and buggy pdftex that is shipped with RedHat's teTeX? Why use a TeX system that does not support real (no ae tricks) 8-bit (T1) ComputerModern fonts ? I see no reason. jm2c Jens
![](https://secure.gravatar.com/avatar/7698ca8517c6b0d840c3eb065bceca3d.jpg?s=120&d=mm&r=g)
On Thu, Mar 06, 2003 at 12:03:54AM +0100, Jens-Uwe Morawski wrote:
On Wed, 5 Mar 2003 21:25:04 +0100 Simon Pepping
wrote: I think running Red Hat 8.0, with teTeX-1.0.7 with ConTeXt ver: 2002.1.28 is a reasonable thing to do. Most of the software packages I run are older than that. One only runs the latest and greatest of software one is especially interested in.
Hmm, aren't you interested in ConTeXt? ;-)
I am still to install this week's version; does that make me fail? ;-)
The real question: would you like that people ask/bother you about bugs and missing features of DocBookInConTeXt that are already fixed or implemented. I'm sure your answer is: No. So, why use an old ConTeXt if Hans spends so much time to improve it. Why use an old and buggy pdftex that is shipped with RedHat's teTeX? Why use a TeX system that does not support real (no ae tricks) 8-bit (T1) ComputerModern fonts ? I see no reason.
I see very good reasons. For an average user a computer installation is a utility. He does not spend his time on learning lots about this or that piece of software, like we do. Perhaps he spends his time singing, or writing stories, or annoying his wife, or whatever. That is why Thomas Esscher, RedHat, Debian etc. do their useful work: package all that stuff into an integrated, configured distribution, so that an average user can use it without hesitation to write his songs or his hatemail or whatever he does with it. Did you notice that many developers run MS Windows because they are not interested in the setup problems that a Linux distribution presents (more so in the past)? Like all the other users, they want to do their own stuff, without having to spend a lot of time on the utilities. I believe that a community is bound to the software that has been released as stable, certainly if it has gone into widely used distributions. Of course, older versions do not support new features, and the more so with rapidly developing software. But apart from such new features, I do not think it is right to say to a user: Oh, but that version is a year old, you should upgrade now. An average user upgrades when he buys a new distro. I think the TeX world has had rather bad behaviour in this respect. Too many people have thought that if wizards could give you the right answer, then all was well. It is not. We should aim to develop and package software that installs well, runs well, is clear and understandable in its usage instructions. TeTeX, fptex, TeXLive and MikTeX have done tremendously good work. 10 years ago it required strong knowledge to set up a working TeX installation. These days most users can do it. Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl
participants (5)
-
Hans Hagen
-
James J. Ramsey
-
Jens-Uwe Morawski
-
Maarten Sneep
-
Simon Pepping