Hi all,
I've installed the latest ConTeXt (+ pdfTeX 3.141592-1.40.0-beta-20061017-2.2 + MetaPost 0.99, the beta one) from scratch on a machine of mine... In order to test this brand new installation, I've processed my phd and experienced some problems: 1- the new enco-ffr contains \installactivecharacter : \installactivecharacter ; \installactivecharacter ? \installactivecharacter ! These \installactivecharacter yield to
! Extra tokens will be flushed. <to be read again> directdiscretionary l.54 } enddef \directdiscretionary {;
Ok, the problem is solved if I comment out these lines and the horizontal spacing seems to be correct...
2- I have now the following error:
! Missing \endcsname inserted. <to be read again> \edef \directdiscretionary #1->\edef \discretionarytoken {\detokenize {#1}}\let \t... <argument> tab: objXP \mainreference ...csname \r!cross \fileprefix #1#2 \endcsname \ifcase 0#4\els... l.67 ...s objections à l'expérimentation directe}}
due to "\in{tableau}[tab:objXP]"
An idea...
Renaud (too tired this night to investigate, but tomorrow is another day)
Renaud Aubin wrote:
An idea...
active chars ... always problematic
Renaud (too tired this night to investigate, but tomorrow is another day)
so i'll wait for the test file before i look 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 -----------------------------------------------------------------
Hans Hagen a écrit :
so i'll wait for the test file before i look into it
\useencoding[ffr] \mainlanguage[fr]
\starttext
\section{\type{enco-ffr.tex} related issue}
\startuseMPgraphic{mymptest} numeric u; u:=1cm; draw origin--(10u,10u); \stopuseMPgraphic
\placefigure[here]{none}{\useMPgraphic{mymptest}}
test:\blank test;\blank test!\blank test?\blank
\stoptext
leads to
! Illegal suffix of declared variable will be flushed. <to be read again> { l.148 numeric u\directdiscretionary { ;}
Renaud
Renaud Aubin wrote:
Hans Hagen a �crit :
so i'll wait for the test file before i look into it
\useencoding[ffr] \mainlanguage[fr]
\starttext
\section{\type{enco-ffr.tex} related issue}
\startuseMPgraphic{mymptest} numeric u; u:=1cm; draw origin--(10u,10u); \stopuseMPgraphic
\placefigure[here]{none}{\useMPgraphic{mymptest}}
test:\blank test;\blank test!\blank test?\blank
\stoptext
leads to
! Illegal suffix of declared variable will be flushed.
<to be read again> { l.148 numeric u\directdiscretionary { ;}
i'll add
\appendtoks \disablediscretionaries \disablecompoundcharacters \to\everyMPgraphic
(i must have had a reason for removing it but i forgot what)
Hans
Hi Hans,
This post deletes [NTG-context] \directdiscretionary & \mainlanguage[fr], since I've forgot to exec texutil --purgeallfiles...
I've just tested ConTeXt ver: 2006.11.29 09:55 and I have the same problem, i.e. even with ... (supp-mps.tex) \appendtoks \disablediscretionaries \to \everyMPgraphic ...
=>
TeXExec | processing graphic 'prd_phd-mpgraph' This is MetaPost, Version 0.99 (Web2C 7.5.5) (/home/renaud/texmf/web2c/natural.tcx) (prd_phd-mpgraph.mp (mp-gnuplot.mp) ! Extra tokens will be flushed. <to be read again> directdiscretionary l.74 enddef \directdiscretionary {;} ? x Transcript written on prd_phd-mpgraph.log. TeXExec | runtime: 1.627805 [MP prd_phd-mpgraph.1] section : 1.1 Introduction ! Missing \endcsname inserted. <to be read again> \edef \directdiscretionary #1->\edef \discretionarytoken {\detokenize {#1}}\let \t... <argument> tab: objXP \dodoexpandreferences ... \specialREFidentifier #1 \endcsname \edef \expanded...
\doexpandreferences ...ences #1REF(\relax )\relax @EAEAEA \doexpandreferenc...
\expandreferences ...count \doexpandreferences #1, ], ... l.44 \in{tableau}[tab:objXP] reprend les principales objections à de telles ? x {/usr/share/texmf-tetex/fonts/enc/dvips/psnfssx/texnansi.enc}</usr/local/share/ texmf/fonts/type1/bh/lucida/lbsl.pfb></usr/local/share/texmf/fonts/type1/bh/luc ida/lbrsc.pfb></usr/local/share/texmf/fonts/type1/bh/lucida/lbr.pfb></usr/local /share/texmf/fonts/type1/bh/lucida/lbd.pfb> Output written on prd_phd.pdf (14 pages, 62525 bytes). Transcript written on prd_phd.log. TeXExec | runtime: 9.140667
...
Renaud (I begin to doubt on my ability to properly install ConTeXt...)
Hans Hagen a écrit :
Renaud Aubin wrote:
Hans Hagen a �crit :
so i'll wait for the test file before i look into it
\useencoding[ffr] \mainlanguage[fr]
\starttext
\section{\type{enco-ffr.tex} related issue}
\startuseMPgraphic{mymptest} numeric u; u:=1cm; draw origin--(10u,10u); \stopuseMPgraphic
\placefigure[here]{none}{\useMPgraphic{mymptest}}
test:\blank test;\blank test!\blank test?\blank
\stoptext
leads to
! Illegal suffix of declared variable will be flushed.
<to be read again> { l.148 numeric u\directdiscretionary { ;}
i'll add
\appendtoks \disablediscretionaries \disablecompoundcharacters \to\everyMPgraphic
(i must have had a reason for removing it but i forgot what)
Hans
Renaud Aubin wrote:
Hi Hans,
This post deletes [NTG-context] \directdiscretionary & \mainlanguage[fr], since I've forgot to exec texutil --purgeallfiles...
i'm no sure what you mean 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 -----------------------------------------------------------------
Hi Hans,
Hans Hagen a écrit :
i'm no sure what you mean here
I just mean that the problem was not correctly described in the "[NTG-context] \directdiscretionary & \mainlanguage[fr]" post because I've not cleaned up with texutil --purgeallfiles before to process prd_phd with texexec.
Could you describe how \installactivecharacter and "discretionaries" work ? (this way, next time I'll maybe be able to debug myself)
Renaud
Hi Hans,
i'm no sure what you mean here
Hans
As a sample is better than words, the following code contains the problems induced by the use of \useencoding[ffr]. The first part is only here to ensure the correct horizontal spacing. The second part raises the problem related to the use of ":" within ref. The last part is dedicated to the well identified MP-related problem.
\useencoding[ffr] \mainlanguage[fr]
\starttext
text:\blank text;\blank text?\blank text!\blank
A sample table is given: \in{tableau}[tab:mytab].
\placetable[here][tab:mytab]{Test}{ \bTABLE \bTR \bTD test \eTD \bTD test \eTD \eTR \eTABLE } \stopmode
\startuseMPgraphic{test} numeric u; u:=1cm;
draw origin--(10u,10u); \stopuseMPgraphic
\useMPgraphic{test}
\stoptext
Renaud