
Dear Mr. Hagen, I have a problem with using PPCHTEX with LaTeX (MikTeX 2.6). After reporting this problem at GoogleGroups I get a message to report the problem directly to you. The problem is, that only the including of \usepackage{m-pictex, m-ch-de} makes six errors (pdflatex). The minimal example: \documentclass{scrartcl} \usepackage{m-ch-de} \begin{document} Test \end{document} The errors: ! Missing { inserted. <to be read again> \def l.659 \unexpanded\def \complexstartchemical[#1]% ... ! Forbidden control sequence found while scanning text of \unexpanded. <inserted text> } l.840 ... ! Missing { inserted. <to be read again> \edef l.1768 \definecomplexorsimple\chemical ... \edef \chemical {\noexpand \docomplexorsimple \@EA \noexpand \csname \ETC. ! Forbidden control sequence found while scanning text of \unexpanded. <inserted text> } l.1867 ... ! Missing { inserted. <to be read again> \def l.1868 \unexpanded\def \chemicaloxidation#1#2#3% ... ! Forbidden control sequence found while scanning text of \unexpanded. <inserted text> } l.2026 I tried to use etex.sty, m-pictex and pstricks instead of pictex, but without success. The running with latex and pstricks makes even 19 errors. What can I do? I hope you can help me and send you many thanks in advance. Sincerely Erik PS: Sorry because of my English. I know, it's not the best. If you can understand german, you can have a look at http://groups.google.de/group/de.comp.text.tex/browse_thread/thread/8d675adc... where you can see the post at GoogleGroups.

Erik Stempel wrote:
Dear Mr. Hagen,
I have a problem with using PPCHTEX with LaTeX (MikTeX 2.6). After reporting this problem at GoogleGroups I get a message to report the problem directly to you.
The problem is, that only the including of \usepackage{m-pictex, m-ch-de} makes six errors (pdflatex). The minimal example:
\documentclass{scrartcl} \usepackage{m-ch-de} \begin{document} Test \end{document}
use the latest greatest context zips 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 -----------------------------------------------------------------

On Dec 20, 2007 11:31 AM, Hans Hagen wrote:
Erik Stempel wrote:
Dear Mr. Hagen,
I have a problem with using PPCHTEX with LaTeX (MikTeX 2.6). After reporting this problem at GoogleGroups I get a message to report the problem directly to you.
The problem is, that only the including of \usepackage{m-pictex, m-ch-de} makes six errors (pdflatex). The minimal example:
\documentclass{scrartcl} \usepackage{m-ch-de} \begin{document} Test \end{document}
use the latest greatest context zips
I do, but it does't help. I get exactly the same error: )) (/usr/local/gwTeX/texmf.pkgs/tex/latex/context/m-ch-de.sty (/usr/local/gwTeX/texmf.pkgs/tex/latex/context/m-pictex.sty (/usr/local/gwTeX/texmf.pkgs/tex/context/base/m-pictex.tex (/usr/local/gwTeX/texmf.texlive/tex/generic/pictex/prepictex.tex) (/usr/local/gwTeX/texmf.texlive/tex/generic/pictex/pictex.tex) (/usr/local/gwTeX/texmf.texlive/tex/generic/pictex/postpictex.tex))) (/usr/local/gwTeX/texmf.pkgs/tex/generic/context/m-ch-de.tex (/usr/local/gwTeX/texmf.pkgs/tex/generic/context/ppchtex.noc (/usr/local/gwTeX/texmf.pkgs/tex/context/base/supp-mis.tex loading : Context Support Macros / Miscellaneous (2004.10.26) ) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/syst-gen.tex loading : Context System Macros / General ) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/syst-fnt.tex) (/usr/local/gwTeX/texmf.pkgs/tex/context/base/ppchtex.tex loading : Context Chemical Macro's / 1996.3.1 ppchtex : using PiCTeX ! Missing { inserted. <to be read again> \def l.659 \unexpanded\def \complexstartchemical[#1]% ? Mojca

On Thu, 20 Dec 2007, Mojca Miklavec wrote:
On Dec 20, 2007 11:31 AM, Hans Hagen wrote:
Erik Stempel wrote:
Dear Mr. Hagen,
I have a problem with using PPCHTEX with LaTeX (MikTeX 2.6). After reporting this problem at GoogleGroups I get a message to report the problem directly to you.
The problem is, that only the including of \usepackage{m-pictex, m-ch-de} makes six errors (pdflatex). The minimal example:
\documentclass{scrartcl} \usepackage{m-ch-de} \begin{document} Test \end{document}
use the latest greatest context zips
I do, but it does't help. I get exactly the same error:
I am confused. Consider the following file: \unexpanded\def\test{Test} \test \bye Run it through ConTeXt, and it compiles fine. Run it through pdftex (plain format) and it gives: This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode (./plain.tex ! Missing { inserted. <to be read again> \def l.1 \unexpanded\def \test{Test} ? Runaway text? \def \test {Test} \test ! Forbidden control sequence found while scanning text of \unexpanded. Isn't \unexpanded a primitive in pdftex? Why does it behave differently in ConTeXt and plain pdftex? Aditya

Aditya Mahajan wrote:
On Thu, 20 Dec 2007, Mojca Miklavec wrote:
On Dec 20, 2007 11:31 AM, Hans Hagen wrote:
Erik Stempel wrote:
Dear Mr. Hagen,
I have a problem with using PPCHTEX with LaTeX (MikTeX 2.6). After reporting this problem at GoogleGroups I get a message to report the problem directly to you.
The problem is, that only the including of \usepackage{m-pictex, m-ch-de} makes six errors (pdflatex). The minimal example:
\documentclass{scrartcl} \usepackage{m-ch-de} \begin{document} Test \end{document} use the latest greatest context zips I do, but it does't help. I get exactly the same error:
I am confused. Consider the following file:
\unexpanded\def\test{Test} \test \bye
Run it through ConTeXt, and it compiles fine. Run it through pdftex (plain format) and it gives:
\unexpanded is a primitive in etex, introduced when context already had an \unexpanded macro; the same is true for \protected \normalunexpanded gives you the primitive when loaded in latex, ppchtex should restore the meaning of \unexpanded after loading but i cannot test that here 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 -----------------------------------------------------------------

On Thu, 20 Dec 2007, Hans Hagen wrote:
Aditya Mahajan wrote:
On Thu, 20 Dec 2007, Mojca Miklavec wrote:
On Dec 20, 2007 11:31 AM, Hans Hagen wrote:
Erik Stempel wrote:
Dear Mr. Hagen,
I have a problem with using PPCHTEX with LaTeX (MikTeX 2.6). After reporting this problem at GoogleGroups I get a message to report the problem directly to you.
The problem is, that only the including of \usepackage{m-pictex, m-ch-de} makes six errors (pdflatex). The minimal example:
\documentclass{scrartcl} \usepackage{m-ch-de} \begin{document} Test \end{document} use the latest greatest context zips I do, but it does't help. I get exactly the same error:
I am confused. Consider the following file:
\unexpanded\def\test{Test} \test \bye
Run it through ConTeXt, and it compiles fine. Run it through pdftex (plain format) and it gives:
\unexpanded is a primitive in etex, introduced when context already had an \unexpanded macro; the same is true for \protected
\normalunexpanded gives you the primitive
when loaded in latex, ppchtex should restore the meaning of \unexpanded after loading but i cannot test that here
There is a bug in ppchtex.noc. Line 39 says \let\unexpanded\normalunexpanded However, on line 181 you load ppchtex. ppchtex assumes that \unexpanded is the context macro, not the etex primitive. The easy work around is to move the \let\unexpanded\normalunexpanded line to the end of the ppchtex.noc. This works fine on my machine. To the OP: locate ppchtex.noc by kpsewhich ppchtex.noc and copy that file to your current directory. Cut line 39 (\let\unexpanded\normalunexpanded) and paste it after line 213 (just before the last line). After this change the minimal example that you posted works correctly. See if your actual tex file now compiles. Aditya

Aditya Mahajan wrote:
However, on line 181 you load ppchtex. ppchtex assumes that \unexpanded is the context macro, not the etex primitive. The easy work around is to move the \let\unexpanded\normalunexpanded line to the end of the ppchtex.noc. This works fine on my machine.
ok, patched (the problem with the original patch is that after adding it no one bothered to test it) .. thanks for looking into it 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 (4)
-
Aditya Mahajan
-
Erik Stempel
-
Hans Hagen
-
Mojca Miklavec