Error using \starttextbackground.
I want a gray background in a particular column. Here is some pertinent code (copied from details.pdf) \definetextbackground[bar] [backgroundcolor=textgray, backgroundoffset=.25cm, offset=.5cm, frame=off, location=paragraph, color=black] ...and here is where I want the background: \column \starttextbackground[bar] This is column three text with background and all kinds of other stuff. \stoptextbackground ...and here is the compile error: ----------------------------------------------- generating graphics : metaposting mpgraph.mp TeXExec 3.2 - ConTeXt / PRAGMA ADE 1997-2003 metapost : mpgraph format : metafun This is MetaPost, Version 0.641 (Web2C 7.3.7x) (mpgraph.mp
spotcolors true ! Equation cannot be performed (numeric=boolean). <to be read again> ; l.23 spotcolors := true ;
If I use \startbackground(etc) in the same spot I get no error but I don't like the quality. Hints? John Culleton
At 17:52 08/04/2003 -0400, you wrote:
This is MetaPost, Version 0.641 (Web2C 7.3.7x) (mpgraph.mp
spotcolors true ! Equation cannot be performed (numeric=boolean). <to be read again> ; l.23 spotcolors := true ;
If I use \startbackground(etc) in the same spot I get no error but I don't like the quality.
looks like soem mismatch between metafun and context; spot colors were added half a year ago 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 -------------------------------------------------------------------------
On Wednesday 09 April 2003 03:29 am, Hans Hagen wrote:
At 17:52 08/04/2003 -0400, you wrote:
This is MetaPost, Version 0.641 (Web2C 7.3.7x) (mpgraph.mp
spotcolors true
! Equation cannot be performed (numeric=boolean). <to be read again> ; l.23 spotcolors := true ; --------------------------------------------- If I use \startbackground(etc) in the same spot I get no error but I don't like the quality.
looks like soem mismatch between metafun and context; spot colors were added half a year ago
Hans
OK downloaded cont-tmf.zip on Apr 5 and cont-mpd.zip today. Unzipped them. Ran texhash. Ran fmtutil --all. ran texhash again. Same error. Here is the test file: ------------------------------ \setupoutput [pdftex] \setupurl [style=type] \definepapersize[fullw][width=11in,height=8.5in] % \definetextbackground[bar] [backgroundcolor=gray, backgroundoffset=.25cm, offset=.5cm, frame=off, location=paragraph, color=black] % \definecolumnset[thre][n=3] \setupcolumnset[thre][1][width=4.5in] \setupcolumnset[thre][2][width=3in] \setupcolumnset[thre][3][width=1.5in] % \setuppapersize[fullw][fullw] % \starttext \startcolumnset[thre] Column one (figure) \column Column 2 text. \column \starttextbackground[bar] column three text with background \stoptextbackground \page[new] \stoptext ------------------------------------ Do I need to upgrade Metapost also? Here's mine: This is MetaPost, Version 0.641 (Web2C 7.3.7x) Sorry to be such a bother. John C.
On Wednesday 09 April 2003 03:49 pm, Patrick Gundlach wrote:
John Culleton
writes: Hello John,
Do I need to upgrade Metapost also? Here's mine: This is MetaPost, Version 0.641 (Web2C 7.3.7x)
No, that is fine.
Please post the output of your texexec run.
Patrick
Thanks!
Here is my run, with only some repetitive duplicate font errors
excluded:
-----------------------------------------------------------------------
TeXExec 3.2 - ConTeXt / PRAGMA ADE 1997-2003
executable : pdfetex
format : cont-en
inputfile : testmaster
output : standard
interface : en
current mode : none
TeX run : 1
This is pdfeTeXk, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
%&-line parsing enabled.
entering extended mode
(./testmaster.tex{/usr/TeX/texmf-var/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.3.11 fmt: 2003.4.9 int: english mes: english
language : language en is active
spotcolors true ! Equation cannot be performed (numeric=boolean). <to be read again> ; l.23 spotcolors := true ;
? >> SaveTextAreas ! Isolated expression. <to be read again> ; l.94 SaveTextAreas ; ? ! Missing `)' has been inserted. <to be read again> : RegisterTextArea->...extAreas]=round(urcorner.p)): p:=ulcorner.TextAreas[NOfT... l.97 ...t,89.693pt,216.81pt,431.53403pt,4.05064pt) ; ? ! Missing `)' has been inserted. <to be read again> : RegisterTextArea->...extAreas]=round(urcorner.p)): p:=ulcorner.TextAreas[NOfT... l.97 ...t,89.693pt,216.81pt,431.53403pt,4.05064pt) ; ? OK, entering batchmode error in metapost run : mpgraph.mp:23 error in metapost run : mpgraph.mp:94 error in metapost run : mpgraph.mp:97 error in metapost run : mpgraph.mp:97 error in metapost run : mpgraph.mp:98 error in metapost run : mpgraph.mp:98 error in metapost run : mpgraph.mp:101 error in metapost run : mpgraph.mp:109 error in metapost run : mpgraph.mp:109 error in metapost run : mpgraph.mp:109 error in metapost run : mpgraph.mp:110 error in metapost run : mpgraph.mp:110 error in metapost run : mpgraph.mp:110 error in metapost run : mpgraph.mp:111 error in metapost run : mpgraph.mp:111 error in metapost run : mpgraph.mp:111 error in metapost run : mpgraph.mp:118 error in metapost run : mpgraph.mp:118 error in metapost run : mpgraph.mp:119 error in metapost run : mpgraph.mp:119 error in metapost run : mpgraph.mp:120 total run time : 8 seconds sorting and checking : running texutil TeXUtil 7.5 - ConTeXt / PRAGMA ADE 1992-2003 action : processing commands, lists and registers option : sorting IJ under Y option : converting high ASCII values input file : testmaster.tui output file : testmaster.tuo passed commands : 20 remapped keys : 0 register entries : 0 -> 0 entries 0 references synonym entries : 0 -> 0 entries embedded files : 1 total run time : 9 seconds ------------------------------------------- I hope I just made a stupid mistake and someone can spot it. John C.
On Wednesday 09 April 2003 04:30 pm, John Culleton wrote:
On Wednesday 09 April 2003 03:49 pm, Patrick Gundlach wrote:
John Culleton
writes: Hello John,
Do I need to upgrade Metapost also? Here's mine: This is MetaPost, Version 0.641 (Web2C 7.3.7x)
No, that is fine.
Please post the output of your texexec run.
Patrick
Thanks!
Here is my run, with only some repetitive duplicate font errors excluded: -----------------------------------------------------------------------
TeXExec 3.2 - ConTeXt / PRAGMA ADE 1997-2003
executable : pdfetex format : cont-en inputfile : testmaster output : standard interface : en current mode : none TeX run : 1
This is pdfeTeXk, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) %&-line parsing enabled. entering extended mode (./testmaster.tex{/usr/TeX/texmf-var/pdftex/config/pdftex.cfg}
ConTeXt ver: 2003.3.11 fmt: 2003.4.9 int: english mes: english
language : language en is active
system : cont-new loaded (/usr/TeX/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex! ) system : cont-old loaded (/usr/TeX/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/TeX/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) bodyfont : 12pt rm is loaded language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2 8:2-nl-2 loaded specials : tex,postscript,rokicki loaded system : testmaster.top loaded (./testmaster.top) pdftex : needs map file: original-context-symbol.map pdftex : needs map file: pl0-ams-cmr.map pdftex : needs map file: original-vogel-symbol.map specials : loading definition file tpd (/usr/TeX/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/TeX/texmf/tex/context/base/spec-fdf.tex system (E-TEX) : [line 1815] \ifcsname ) specials : fdf loaded ) specials : fdf,tpd loaded (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) (./testmaster.tuo) systems : begin file testmaster at line 20 Underfull \hbox (badness 10000) in paragraph at lines 22--24 [][][]/cmr12/Column one (fig-ure)
Underfull \hbox (badness 10000) in paragraph at lines 24--26 [][][]/cmr12/Column 2 text.
Overfull \hbox (6.15631pt too wide) in paragraph at lines 27--28 [][][]/cmr12/column three text with systems : randomizer starts with 1145905430 [MP to PDF] (./mpgraph.4000) layout : calculating backgrounds [1.1{/usr/TeX/texmf-var/dvips/config/pdftex.map Warning: pdfetex (file /usr/TeX/texmf-var/dvips/config/pdftex.map): entry for ` cob' already exists, duplicates ignored ... ### simple group (level 1) entered at line 22 ({) ### bottom level (see the transcript file for additional information) Output written on testmaster.pdf (1 page, 7938 bytes). Transcript written on testmaster.log.
run time : 1 seconds generating graphics : metaposting mpgraph.mp
TeXExec 3.2 - ConTeXt / PRAGMA ADE 1997-2003
metapost : mpgraph format : metafun This is MetaPost, Version 0.641 (Web2C 7.3.7x) (mpgraph.mp
spotcolors true
! Equation cannot be performed (numeric=boolean). <to be read again> ; l.23 spotcolors := true ;
? >> SaveTextAreas ! Isolated expression. <to be read again> ; l.94 SaveTextAreas ;
? ! Missing `)' has been inserted. <to be read again>
RegisterTextArea->...extAreas]=round(urcorner.p)):
p:=ulcorner.TextAreas[NOfT... l.97 ...t,89.693pt,216.81pt,431.53403pt,4.05064pt) ; ? ! Missing `)' has been inserted. <to be read again>
RegisterTextArea->...extAreas]=round(urcorner.p)):
p:=ulcorner.TextAreas[NOfT... l.97 ...t,89.693pt,216.81pt,431.53403pt,4.05064pt) ; ? OK, entering batchmode error in metapost run : mpgraph.mp:23 error in metapost run : mpgraph.mp:94 error in metapost run : mpgraph.mp:97 error in metapost run : mpgraph.mp:97 error in metapost run : mpgraph.mp:98 error in metapost run : mpgraph.mp:98 error in metapost run : mpgraph.mp:101 error in metapost run : mpgraph.mp:109 error in metapost run : mpgraph.mp:109 error in metapost run : mpgraph.mp:109 error in metapost run : mpgraph.mp:110 error in metapost run : mpgraph.mp:110 error in metapost run : mpgraph.mp:110 error in metapost run : mpgraph.mp:111 error in metapost run : mpgraph.mp:111 error in metapost run : mpgraph.mp:111 error in metapost run : mpgraph.mp:118 error in metapost run : mpgraph.mp:118 error in metapost run : mpgraph.mp:119 error in metapost run : mpgraph.mp:119 error in metapost run : mpgraph.mp:120
total run time : 8 seconds sorting and checking : running texutil
TeXUtil 7.5 - ConTeXt / PRAGMA ADE 1992-2003
action : processing commands, lists and registers option : sorting IJ under Y option : converting high ASCII values input file : testmaster.tui output file : testmaster.tuo passed commands : 20 remapped keys : 0 register entries : 0 -> 0 entries 0 references synonym entries : 0 -> 0 entries embedded files : 1
total run time : 9 seconds ------------------------------------------- I hope I just made a stupid mistake and someone can spot it.
John C.
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi Again, Thanks for taking the time with my questions. ConTeXt is letting me set up some very cool newsletter type documents. I have it rigged up with DocBook using XSL to transform XML to ConTeXt. much fun! my question: how do i make sure that section heads will not be alone at the bottom of the page, with the following paragraphs at the start of the next page? i want the section head to stay with the first paragraph (or at least the first two lines) of the paragraph immediately following the section head. thanks, mark
Hi, I have this here: \startnarrower[2*left,2*right] \input uc_text \stopnarrower this bit of code above narrows both the \par's and the \section heads. the file uc_text has \section and \par and some text, that's all. i want to narrow all the \par's but not the \section. i am trying to avoid having to put \startnarrower[2*left,2*right] and \stopnarrower around each individual paragraph. i tried putting \noindenting in the setuphead for the section, i even tried before=startnarrower[0*left, 0*right] in the setuphead and after=\stopnarrower, but it didn't work. any thoughts? it will turn out to be a bit of a hanging section head to the left of the text. i can post the tex if anyone wants; it's rather a lot to show this point, so i leave it at home. thanks! mark
"Mark A. Lilly"
the file uc_text has \section and \par and some text, that's all. i want to narrow all the \par's but not the \section. i am trying to
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\MyHead#1#2% {\vbox {\localheadsetup \begstrut % use one \strut here! \hbox {\hskip-\leftskip \ifheadnumbercontent{#1}\kern\numberheaddistance\fi #2\hskip\linkermargeafstand}}} \showframe \starttext \setuphead[section][command=\MyHead] \section{some quick fox jump over very lazy dogs} \input tufte \dorecurse{5}{% \startnarrower \section{some quick fox jump over very lazy dogs} \input tufte } \dorecurse{5}{\stopnarrower} \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Patrick
"Mark A. Lilly"
ConTeXt is letting me set up some very cool newsletter type documents. I have it rigged up with DocBook using XSL to transform XML to ConTeXt. much fun!
Do you know of the two projects "DocBook in ConTeXt" and "dbtocontext" (or was it db2context?)?
my question: how do i make sure that section heads will not be alone at the bottom of the page, with the following paragraphs at the start of the next page? i want the section head to stay with the first paragraph (or at least the first two lines) of the paragraph immediately following the section head.
This is the default bahaviour. !!!!!! PLEASE: (is this emphasized enough?) If you run across problems: post a minimal non-working, but complete example. It is hard to guess what you have set up. PAT
At 15:17 09/04/2003 -0700, you wrote:
my question: how do i make sure that section heads will not be alone at the bottom of the page, with the following paragraphs at the start of the next page? i want the section head to stay with the first paragraph (or at least the first two lines) of the paragraph immediately following the section head.
(1) use the sectioning commands, so \definehead[myhead][subsubsection] \setuphead[myhead][style=bold] instead of \def\myhead#1{{\bf#1}} since the sectioning commands will keep successive heads together as well discourage a pagebreak after a head; only lower level heads are kept together, while sam elevel heads may break (makes sense) (2) this game is spoiled when the head is followed by a command like \blank; a way out can be: \setuphead[myhead][after={\blank[big]\blank[inhibit]}] another option is: \setuphead[myhead][before={\testpage[4]}] which will break if there are less than 4 lines left 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 -------------------------------------------------------------------------
John Culleton
TeXExec 3.2 - ConTeXt / PRAGMA ADE 1997-2003
metapost : mpgraph format : metafun This is MetaPost, Version 0.641 (Web2C 7.3.7x)
It would be great if metapost could be verbose of format version and date created. Hans? Patrick ... your output looks OK so far.
Ocn Wednesday 09 April 2003 03:49 pm, Patrick Gundlach wrote:
John Culleton
writes: Hello John,
Do I need to upgrade Metapost also? Here's mine: This is MetaPost, Version 0.641 (Web2C 7.3.7x)
No, that is fine.
Please post the output of your texexec run.
I did that. I tried yet another approach and dug up yet another (possibly related problem. consider this code: \setupoutput [pdftex] \setupurl [style=type] \definepapersize[fullw][width=11in,height=8.5in] % \setupframedtexts[frame=off,background=screen, backgroundscreen=.97] \definecolumnset[thre][n=3] \setupcolumnset[thre][1][width=4.5in] \setupcolumnset[thre][2][width=3in] \setupcolumnset[thre][3][width=1.5in] % \setuppapersize[fullw][fullw] % \starttext \startcolumnset[thre] Column one (figure) \column Column 2 text. \column \startframedtext column three text with background And ended here with a flourish \stopframedtext \page[new] \stoptext --------------------------------------- This processes OK but the result is a black rectangle where the screen should be. I have tried values from .25 to .97 (and no parameter at all ) with no change. Is a puzzlement. John C.
On Thursday 10 April 2003 01:23 am, Guy Worthington wrote:
John C. wrote:
[example snipped]
This processes OK but the result is a black rectangle where the screen should be.
Put in the line
\setupcolors [state=start]
in your preamble.
That fixes the framedtext example. Thanks! I hadn't thought of grayscreen as a color :-( (I also ran the textutil --purge as suggested.) John C.
On Thursday 10 April 2003 08:20 am, Patrick Gundlach wrote:
John Culleton
writes: Hi,
OK downloaded cont-tmf.zip on Apr 5 and cont-mpd.zip today.
What is this cont-mpd.zip?
PAT
It contains the following: 7633 11-29-01 13:52 tex/context/base/syst-tex.tex 18407 09-27-02 04:59 tex/context/base/supp-mis.tex 60262 01-20-03 17:02 tex/context/base/supp-pdf.tex 39796 03-03-03 17:19 tex/context/base/supp-mpe.tex 4509 08-14-02 04:48 tex/generic/context/mptopdf.tex 3442 11-30-02 18:20 context/perltk/mptopdf.pl OK? John C.
John Culleton
It contains the following:
7633 11-29-01 13:52 tex/context/base/syst-tex.tex 18407 09-27-02 04:59 tex/context/base/supp-mis.tex 60262 01-20-03 17:02 tex/context/base/supp-pdf.tex 39796 03-03-03 17:19 tex/context/base/supp-mpe.tex 4509 08-14-02 04:48 tex/generic/context/mptopdf.tex 3442 11-30-02 18:20 context/perltk/mptopdf.pl
OK?
since you downloaded the complete cont-tmf.zip, there is no need to unzip this one; all files are also included in the former archive. But this should not result in the error messages you get. But still I am a bit clueless. Your log files look ok to me. Let us try the following: In the directory of your test document say "texexec --alone --make metafun". This will generate a new metafun format and leaves it in the current directory. Make sure that the files are taken from the newly installed ConTeXt archive (this is very important; I think the error comes from taking wrong or old mp-spec.mp and other files). This is what my output looks like: ================================================== pg@levana:/tmp/bla$ texexec --alone --make metafun TeXExec 3.2 - ConTeXt / PRAGMA ADE 1997-2003 This is MetaPost, Version 0.641 (Web2C 7.4.5) (INIMP) (/opt/context/2003.3.17/texmf/metapost/context/base/metafun.mp (/opt/tetex/2.0.2/texmf/metapost/base/plain.mp Preloading the plain mem file, version 0.64) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-tool.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-spec.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-core.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-page.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-text.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-shap.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-butt.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-char.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-step.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-grph.mp) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-grid.mp (/opt/context/2003.3.17/texmf/metapost/context/base/mp-form.mp (/opt/tetex/2.0.2/texmf/metapost/base/string.mp) (/opt/tetex/2.0.2/texmf/metapost/base/marith.mp (/opt/tetex/2.0.2/texmf/metapost/base/string.mp)))) (/opt/context/2003.3.17/texmf/metapost/context/base/mp-func.mp) ) Beginning to dump on file metafun.mem (mem=metafun 2003.4.10) at most 2785 strings of total length 36376 44620 memory locations dumped; current usage is 11669&32780 1646 symbolic tokens Transcript written on metafun.log. ================================================== Now you should have metafun.mem in the directory. Rerun texexec on your document. Same error? Your mpgraph.log will tell you if metapost uses the newly created logfile. This is MetaPost, Version 0.641 (Web2C 7.4.5) (mem=metafun 2003.4.10)10 APR 2003 16:50 ^^^^^^^^^^^ Patrick
Wednesday, April 9, 2003 John Culleton wrote: JC> OK downloaded cont-tmf.zip on Apr 5 and cont-mpd.zip today. JC> Unzipped them. Ran texhash. Ran fmtutil --all. ran texhash again. JC> Same error. Can you tell us what your /(local)texmf/metapost directory contains? Do you have a /context/ directory within the /metafun/ directory? Do you have files in both the /metafun/ directory and its /context/ subdirectory? -- Giuseppe "Oblomov" Bilotta
Oe Thursday 10 April 2003 10:35 am, Giuseppe Bilotta wrote:
Wednesday, April 9, 2003 John Culleton wrote:
JC> OK downloaded cont-tmf.zip on Apr 5 and cont-mpd.zip today. JC> Unzipped them. Ran texhash. Ran fmtutil --all. ran texhash again. JC> Same error.
Can you tell us what your /(local)texmf/metapost directory contains? Do you have a /context/ directory within the /metafun/ directory? Do you have files in both the /metafun/ directory and its /context/ subdirectory?
Here are the contents (long) .: total 52 drwxr-xr-x 2 root root 4096 Mar 22 13:17 base drwxr-xr-x 2 root root 4096 Mar 22 13:12 config drwxr-xr-x 3 root root 4096 Apr 5 13:28 context drwxr-xr-x 2 root root 4096 Mar 22 13:17 expressg drwxr-xr-x 2 root root 4096 Mar 22 13:17 feynmf drwxr-xr-x 2 root root 4096 Mar 22 13:17 metaobj drwxr-xr-x 2 root root 4096 Mar 22 13:17 mfpic drwxr-xr-x 2 root root 4096 Mar 22 13:17 misc drwxr-xr-x 2 root root 4096 Mar 22 13:17 mp3d drwxr-xr-x 2 root root 4096 Mar 22 13:17 mpattern drwxr-xr-x 2 root root 4096 Mar 22 13:17 piechartmp drwxr-xr-x 2 root root 4096 Mar 22 13:17 slideshow drwxr-xr-x 3 root root 4096 Mar 22 13:17 support ./base: total 116 -rw-r--r-- 1 root root 322 Apr 9 2002 TEX.mp -rw-r--r-- 1 root root 6848 Apr 9 2002 boxes.mp -rw-r--r-- 1 root root 6912 Apr 9 2002 format.mp -rw-r--r-- 1 root root 26823 Apr 9 2002 graph.mp -rw-r--r-- 1 root root 4124 Apr 9 2002 marith.mp -rw-r--r-- 1 root root 19169 Apr 9 2002 mfplain.mp -rw-r--r-- 1 root root 19 Apr 9 2002 mpost.mp -rw-r--r-- 1 root root 15458 Apr 9 2002 plain.mp -rw-r--r-- 1 root root 1060 Apr 9 2002 rboxes.mp -rw-r--r-- 1 root root 1419 Apr 9 2002 sarith.mp -rw-r--r-- 1 root root 763 Apr 9 2002 string.mp -rw-r--r-- 1 root root 407 Apr 9 2002 texnum.mp -rw-r--r-- 1 root root 230 Apr 9 2002 troffnum.mp ./config: total 8 -rw-r--r-- 1 root root 68 Apr 9 2002 mfmp.ini -rw-r--r-- 1 root root 66 Apr 9 2002 mpost.ini ./context: total 224 drwxr-xr-x 2 root root 4096 Apr 5 13:28 base -rw-r--r-- 1 root root 1407 Apr 9 2002 metafun.mp -rw-r--r-- 1 root root 7117 Apr 9 2002 mp-back.mp -rw-r--r-- 1 root root 2274 Apr 9 2002 mp-butt.mp -rw-r--r-- 1 root root 26030 Apr 9 2002 mp-char.mp -rw-r--r-- 1 root root 14317 May 14 2002 mp-core.mp -rw-r--r-- 1 root root 10184 Apr 9 2002 mp-form.mp -rw-r--r-- 1 root root 1752 Apr 9 2002 mp-func.mp -rw-r--r-- 1 root root 4193 Apr 9 2002 mp-grid.mp -rw-r--r-- 1 root root 8182 Apr 9 2002 mp-grph.mp -rw-r--r-- 1 root root 11937 May 24 2002 mp-page.mp -rw-r--r-- 1 root root 10949 Apr 9 2002 mp-shap.mp -rw-r--r-- 1 root root 14589 Apr 9 2002 mp-spec.mp -rw-r--r-- 1 root root 11480 Apr 9 2002 mp-step.mp -rw-r--r-- 1 root root 6575 Apr 9 2002 mp-symb.mp -rw-r--r-- 1 root root 7567 Apr 9 2002 mp-text.mp -rw-r--r-- 1 root root 55958 May 24 2002 mp-tool.mp ./context/base: total 256 -rw-r--r-- 1 root root 1407 Oct 30 03:41 metafun.mp -rw-r--r-- 1 root root 7117 Jun 2 2000 mp-back.mp -rw-r--r-- 1 root root 2274 Jul 27 2000 mp-butt.mp -rw-r--r-- 1 root root 28580 Dec 12 16:42 mp-char.mp -rw-r--r-- 1 root root 36447 Feb 18 07:07 mp-core.mp -rw-r--r-- 1 root root 10615 Oct 30 03:51 mp-form.mp -rw-r--r-- 1 root root 1752 Dec 30 2001 mp-func.mp -rw-r--r-- 1 root root 4576 Dec 24 16:53 mp-grid.mp -rw-r--r-- 1 root root 8344 Jan 14 17:59 mp-grph.mp -rw-r--r-- 1 root root 14440 Feb 9 06:36 mp-page.mp -rw-r--r-- 1 root root 10949 Sep 10 2001 mp-shap.mp -rw-r--r-- 1 root root 16828 Jan 15 06:05 mp-spec.mp -rw-r--r-- 1 root root 11480 Jun 7 2001 mp-step.mp -rw-r--r-- 1 root root 6574 Aug 4 2002 mp-symb.mp -rw-r--r-- 1 root root 7567 Jan 6 2002 mp-text.mp -rw-r--r-- 1 root root 59196 Jan 14 18:10 mp-tool.mp ./expressg: total 32 -rw-r--r-- 1 root root 30630 Apr 9 2002 expressg.mp ./feynmf: total 76 -rw-r--r-- 1 root root 58685 Apr 9 2002 feynmp.mp -rw-r--r-- 1 root root 11273 Apr 9 2002 manpics.mp ./metaobj: total 316 -rw-r--r-- 1 root root 10266 Apr 9 2002 connections.mp -rw-r--r-- 1 root root 249616 Apr 9 2002 metaobj.mp -rw-r--r-- 1 root root 19583 Apr 9 2002 mobjstandard.mp -rw-r--r-- 1 root root 5377 Apr 9 2002 proofex.mp -rw-r--r-- 1 root root 8982 Apr 9 2002 pstricksex1.mp -rw-r--r-- 1 root root 3929 Apr 9 2002 pstricksex2.mp -rw-r--r-- 1 root root 5020 Apr 9 2002 pstricksex3.mp -rw-r--r-- 1 root root 772 Apr 9 2002 pstricksex4.mp ./mfpic: total 80 -rw-r--r-- 1 root root 3792 Apr 9 2002 dvipsnam.mp -rw-r--r-- 1 root root 71507 Apr 9 2002 grafbase.mp ./misc: total 4 -rw-r--r-- 1 root root 221 Apr 9 2002 null.mp ./mp3d: total 52 -rw-r--r-- 1 root root 33657 May 13 2002 3d.mp -rw-r--r-- 1 root root 741 May 13 2002 animpoly.mp -rw-r--r-- 1 root root 9171 May 13 2002 poly.mp ./mpattern: total 8 -rw-r--r-- 1 root root 7191 Apr 9 2002 mpattern.mp ./piechartmp: total 28 -rw-r--r-- 1 root root 25985 May 14 2002 piechartmp.mp ./slideshow: total 40 -rw-r--r-- 1 root root 1284 Apr 9 2002 pathalong.mp -rw-r--r-- 1 root root 13544 Apr 9 2002 slideshow.mp -rw-r--r-- 1 root root 822 Apr 9 2002 sshowex.mp -rw-r--r-- 1 root root 1865 Apr 9 2002 sshowex2.mp -rw-r--r-- 1 root root 1563 Apr 9 2002 sshowex3.mp -rw-r--r-- 1 root root 6613 Apr 9 2002 sshowintro.mp ./support: total 12 drwxr-xr-x 2 root root 4096 Mar 22 13:17 charlib -rw-r--r-- 1 root root 185 Apr 9 2002 trchars.adj -rw-r--r-- 1 root root 1372 Apr 9 2002 trfonts.map ./support/charlib: total 84 -rw-r--r-- 1 root root 255 Apr 9 2002 12 -rw-r--r-- 1 root root 255 Apr 9 2002 14 -rw-r--r-- 1 root root 257 Apr 9 2002 34 -rw-r--r-- 1 root root 167 Apr 9 2002 Ao -rw-r--r-- 1 root root 162 Apr 9 2002 Fi -rw-r--r-- 1 root root 162 Apr 9 2002 Fl -rw-r--r-- 1 root root 2097 Apr 9 2002 L1 -rw-r--r-- 1 root root 8827 Apr 9 2002 LH -rw-r--r-- 1 root root 3142 Apr 9 2002 Lb -rw-r--r-- 1 root root 1145 Apr 9 2002 Sl -rw-r--r-- 1 root root 168 Apr 9 2002 ao.x -rw-r--r-- 1 root root 147 Apr 9 2002 bx -rw-r--r-- 1 root root 179 Apr 9 2002 ci -rw-r--r-- 1 root root 138 Apr 9 2002 ff -rw-r--r-- 1 root root 1837 Apr 9 2002 lh.x -rw-r--r-- 1 root root 180 Apr 9 2002 ob -rw-r--r-- 1 root root 1724 Apr 9 2002 rh -rw-r--r-- 1 root root 234 Apr 9 2002 sq -rw-r--r-- 1 root root 124 Apr 9 2002 twiddle ------------------------------------------------------------------ John Culleton
Thursday, April 10, 2003 John Culleton wrote: JC> ./context: JC> total 224 JC> drwxr-xr-x 2 root root 4096 Apr 5 13:28 base JC> -rw-r--r-- 1 root root 1407 Apr 9 2002 metafun.mp JC> -rw-r--r-- 1 root root 7117 Apr 9 2002 mp-back.mp JC> -rw-r--r-- 1 root root 2274 Apr 9 2002 mp-butt.mp JC> -rw-r--r-- 1 root root 26030 Apr 9 2002 mp-char.mp JC> -rw-r--r-- 1 root root 14317 May 14 2002 mp-core.mp JC> -rw-r--r-- 1 root root 10184 Apr 9 2002 mp-form.mp JC> -rw-r--r-- 1 root root 1752 Apr 9 2002 mp-func.mp JC> -rw-r--r-- 1 root root 4193 Apr 9 2002 mp-grid.mp JC> -rw-r--r-- 1 root root 8182 Apr 9 2002 mp-grph.mp JC> -rw-r--r-- 1 root root 11937 May 24 2002 mp-page.mp JC> -rw-r--r-- 1 root root 10949 Apr 9 2002 mp-shap.mp JC> -rw-r--r-- 1 root root 14589 Apr 9 2002 mp-spec.mp JC> -rw-r--r-- 1 root root 11480 Apr 9 2002 mp-step.mp JC> -rw-r--r-- 1 root root 6575 Apr 9 2002 mp-symb.mp JC> -rw-r--r-- 1 root root 7567 Apr 9 2002 mp-text.mp JC> -rw-r--r-- 1 root root 55958 May 24 2002 mp-tool.mp JC> ./context/base: JC> total 256 JC> -rw-r--r-- 1 root root 1407 Oct 30 03:41 metafun.mp JC> -rw-r--r-- 1 root root 7117 Jun 2 2000 mp-back.mp JC> -rw-r--r-- 1 root root 2274 Jul 27 2000 mp-butt.mp JC> -rw-r--r-- 1 root root 28580 Dec 12 16:42 mp-char.mp JC> -rw-r--r-- 1 root root 36447 Feb 18 07:07 mp-core.mp JC> -rw-r--r-- 1 root root 10615 Oct 30 03:51 mp-form.mp JC> -rw-r--r-- 1 root root 1752 Dec 30 2001 mp-func.mp JC> -rw-r--r-- 1 root root 4576 Dec 24 16:53 mp-grid.mp JC> -rw-r--r-- 1 root root 8344 Jan 14 17:59 mp-grph.mp JC> -rw-r--r-- 1 root root 14440 Feb 9 06:36 mp-page.mp JC> -rw-r--r-- 1 root root 10949 Sep 10 2001 mp-shap.mp JC> -rw-r--r-- 1 root root 16828 Jan 15 06:05 mp-spec.mp JC> -rw-r--r-- 1 root root 11480 Jun 7 2001 mp-step.mp JC> -rw-r--r-- 1 root root 6574 Aug 4 2002 mp-symb.mp JC> -rw-r--r-- 1 root root 7567 Jan 6 2002 mp-text.mp JC> -rw-r--r-- 1 root root 59196 Jan 14 18:10 mp-tool.mp This is the problem: you have to clean /context and leave /context/base intact: recently, Hans moved the MetaPost stuff from /context to /context/base; by upgrading, the old stuff remained in place and this is what is read; try removing the old stuff in /context, refreshing and redumping the metafun format. -- Giuseppe "Oblomov" Bilotta
John Culleton
Here are the contents (long)
OK, I think the problem is clear: old:
./context: -rw-r--r-- 1 root root 14589 Apr 9 2002 mp-spec.mp
new:
./context/base: total 256 -rw-r--r-- 1 root root 16828 Jan 15 06:05 mp-spec.mp
(lots of files omitted) I bet that when creating the metafun format the stuff from the first directory is taken. So, I have no good advice on how to clean up things. But you need to remove the old stuff and unzip the cont-tmf.zip again. Patrick
On Thursday 10 April 2003 12:02 pm, Patrick Gundlach wrote:
John Culleton
writes: Hello John,
Here are the contents (long)
OK, I think the problem is clear:
old:
./context: -rw-r--r-- 1 root root 14589 Apr 9 2002 mp-spec.mp
new:
./context/base: total 256 -rw-r--r-- 1 root root 16828 Jan 15 06:05 mp-spec.mp
(lots of files omitted)
I bet that when creating the metafun format the stuff from the first directory is taken.
So, I have no good advice on how to clean up things. But you need to remove the old stuff and unzip the cont-tmf.zip again.
Patrick
I feel we have rounded the bend and are galloping for finish line :-) I did as Giuseppe suggested, deleted the files from .../context, left the .../context/base directory intact. Now the error message goes away but the background does not appear. I also added the \setupcolors[state=start] as suggested for my \framedtext example. Here is some interesting stuff from the log file: --------------------------------- systems : end file testmaster at line 31 [flush and process mpgraph.mp afterwards] ) (\end occurred inside a group at level 1) ### simple group (level 1) entered at line 23 ({) ### bottom level ---------------------------------------------- ...and here is the source again: ------------------------------------------ \setupcolors[state=start] \setupoutput [pdftex] \setupurl [style=type] \definepapersize[fullw][width=11in,height=8.5in] % \definetextbackground[bar] [backgroundcolor=gray, backgroundoffset=.25cm, offset=.5cm, frame=off, location=paragraph, color=black] % \definecolumnset[thre][n=3] \setupcolumnset[thre][1][width=4.5in] \setupcolumnset[thre][2][width=3in] \setupcolumnset[thre][3][width=1.5in] % \setuppapersize[fullw][fullw] % \starttext \startcolumnset[thre] Column one (figure) \column Column 2 text. \column \starttextbackground[bar] column three text with background \stoptextbackground \page[new] \stoptext ------------------ Line 23 just contains the text Column one (figure) if i am counting correctly. All help appreciated! I will be away from my computer for three hours (family thing.) John Culleton
John Culleton
I feel we have rounded the bend and are galloping for finish line :-)
:)
I did as Giuseppe suggested, deleted the files from .../context, left the .../context/base directory intact. Now the error message goes away but the background does not appear. I also added the \setupcolors[state=start] as suggested for my \framedtext example.
Let us first try a simple background, then we go to columnsets: % output=pdf \mainlanguage[de] \setupcolors[state=start] \definetextbackground[wichtig] [backgroundcolor=lightgray, location=paragraph, frame=off, backgroundoffset=5pt, ] \starttext \starttextbackground[wichtig] \input tufte \stoptextbackground \stoptext Or a somewhat more complicated one: % output=pdf \mainlanguage[de] \setupcolors[state=start] \definetextbackground[wichtig][] \startuseMPgraphic{mpos:par:columnset} for i := 1 upto nofmultipars : linear_shade(multipars[i] enlarged 5pt cornered 20pt,1, \MPcolor{middlegreen},\MPcolor{lightgreen}); endfor ; \stopuseMPgraphic \starttext \starttextbackground[wichtig] \input tufte \stoptextbackground \stoptext Do they come out right?
### simple group (level 1) entered at line 23 ({) ### bottom level
[...]
\stoptextbackground \stopcolumnset
\page[new] \stoptext
Patrick
On Thursday 10 April 2003 05:19 pm, Patrick Gundlach wrote: .
Let us first try a simple background, then we go to columnsets:
(snip)
Yes they do. So now I just have to compare line by line and see what I am missing in my version. Thanks, you guys are the greatest! John Culleton
John Culleton
...and here is the compile error: ----------------------------------------------- generating graphics : metaposting mpgraph.mp
TeXExec 3.2 - ConTeXt / PRAGMA ADE 1997-2003
this looks new enough to me. And the following file works fine for me: %output=pdf \setupcolors[state=start] \definecolor[textgray][lightgray] \definetextbackground[bar] [backgroundcolor=textgray, backgroundoffset=.25cm, offset=.5cm, frame=off, location=paragraph, color=black] \starttext \definecolumnset[two][n=2] \startcolumnset[two] \setuptolerance[tolerant] \dorecurse{5}{\input tufte \par} \column \starttextbackground[bar] \input tufte \stoptextbackground \stopcolumnset \input knuth \stoptext Please make sure that you use a current metafun format. If it does not work, you might think about posting the complete output of the texexec run, since it may reveal some errors. And please: post complete (non) working examples, not some fragments. It helps to spot the errors. Patrick
participants (6)
-
Giuseppe Bilotta
-
Guy Worthington
-
Hans Hagen
-
John Culleton
-
Mark A. Lilly
-
Patrick Gundlach