* Error using \starttextbackground.
@ 2003-04-08 21:52 John Culleton
2003-04-09 7:29 ` Hans Hagen
2003-04-09 7:39 ` Patrick Gundlach
0 siblings, 2 replies; 30+ messages in thread
From: John Culleton @ 2003-04-08 21:52 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-08 21:52 Error using \starttextbackground John Culleton
@ 2003-04-09 7:29 ` Hans Hagen
2003-04-09 19:35 ` John Culleton
[not found] ` <87el4ah7cn.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
2003-04-09 7:39 ` Patrick Gundlach
1 sibling, 2 replies; 30+ messages in thread
From: Hans Hagen @ 2003-04-09 7:29 UTC (permalink / raw)
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-08 21:52 Error using \starttextbackground John Culleton
2003-04-09 7:29 ` Hans Hagen
@ 2003-04-09 7:39 ` Patrick Gundlach
1 sibling, 0 replies; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-09 7:39 UTC (permalink / raw)
John Culleton <john@wexfordpress.com> writes:
Hello John,
> ...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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-09 7:29 ` Hans Hagen
@ 2003-04-09 19:35 ` John Culleton
2003-04-09 19:49 ` Patrick Gundlach
` (2 more replies)
[not found] ` <87el4ah7cn.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
1 sibling, 3 replies; 30+ messages in thread
From: John Culleton @ 2003-04-09 19:35 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-09 19:35 ` John Culleton
@ 2003-04-09 19:49 ` Patrick Gundlach
2003-04-09 20:30 ` John Culleton
` (2 more replies)
2003-04-10 12:20 ` Patrick Gundlach
2003-04-10 14:35 ` Re[2]: " Giuseppe Bilotta
2 siblings, 3 replies; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-09 19:49 UTC (permalink / raw)
John Culleton <john@wexfordpress.com> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground.
2003-04-09 19:49 ` Patrick Gundlach
@ 2003-04-09 20:30 ` John Culleton
2003-04-09 21:49 ` John Culleton
2003-04-10 9:56 ` Patrick Gundlach
2003-04-09 23:22 ` Re: Error using \starttextbackground John Culleton
[not found] ` <87llyiisk9.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
2 siblings, 2 replies; 30+ messages in thread
From: John Culleton @ 2003-04-09 20:30 UTC (permalink / raw)
On Wednesday 09 April 2003 03:49 pm, Patrick Gundlach wrote:
> John Culleton <john@wexfordpress.com> 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
<protectionstate 0>
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 <unprotect 3>
system (E-TEX) : [line 1815] \ifcsname
<unprotect 4> <protect 4> <protect 3>)
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)</usr/TeX/texmf/fonts/type1
/bluesky/cm/cmr12.pfb>
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.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground.
2003-04-09 20:30 ` John Culleton
@ 2003-04-09 21:49 ` John Culleton
2003-04-09 22:17 ` keep section head with following paragraphs Mark A. Lilly
2003-04-10 5:27 ` Error using \starttextbackground Guy Worthington
2003-04-10 9:56 ` Patrick Gundlach
1 sibling, 2 replies; 30+ messages in thread
From: John Culleton @ 2003-04-09 21:49 UTC (permalink / raw)
On Wednesday 09 April 2003 04:30 pm, John Culleton wrote:
> On Wednesday 09 April 2003 03:49 pm, Patrick Gundlach wrote:
> > John Culleton <john@wexfordpress.com> 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
> <protectionstate 0>
> 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 <unprotect 3>
> system (E-TEX) : [line 1815] \ifcsname
> <unprotect 4> <protect 4> <protect 3>)
> 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)</usr/TeX/texmf/fonts/type1
> /bluesky/cm/cmr12.pfb>
> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* keep section head with following paragraphs
2003-04-09 21:49 ` John Culleton
@ 2003-04-09 22:17 ` Mark A. Lilly
2003-04-10 6:13 ` narrowing text, but not heads? Mark A. Lilly
` (2 more replies)
2003-04-10 5:27 ` Error using \starttextbackground Guy Worthington
1 sibling, 3 replies; 30+ messages in thread
From: Mark A. Lilly @ 2003-04-09 22:17 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground.
2003-04-09 19:49 ` Patrick Gundlach
2003-04-09 20:30 ` John Culleton
@ 2003-04-09 23:22 ` John Culleton
2003-04-10 5:23 ` Guy Worthington
[not found] ` <87llyiisk9.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
2 siblings, 1 reply; 30+ messages in thread
From: John Culleton @ 2003-04-09 23:22 UTC (permalink / raw)
Ocn Wednesday 09 April 2003 03:49 pm, Patrick Gundlach wrote:
> John Culleton <john@wexfordpress.com> 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.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-09 23:22 ` Re: Error using \starttextbackground John Culleton
@ 2003-04-10 5:23 ` Guy Worthington
2003-04-10 16:07 ` John Culleton
0 siblings, 1 reply; 30+ messages in thread
From: Guy Worthington @ 2003-04-10 5:23 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-09 21:49 ` John Culleton
2003-04-09 22:17 ` keep section head with following paragraphs Mark A. Lilly
@ 2003-04-10 5:27 ` Guy Worthington
1 sibling, 0 replies; 30+ messages in thread
From: Guy Worthington @ 2003-04-10 5:27 UTC (permalink / raw)
John C. wrote:
> [log file snipped]
Purge the vestigial cruft in your working directory by running the
command
$ texutil --purge
^ permalink raw reply [flat|nested] 30+ messages in thread
* narrowing text, but not heads?
2003-04-09 22:17 ` keep section head with following paragraphs Mark A. Lilly
@ 2003-04-10 6:13 ` Mark A. Lilly
2003-04-10 11:33 ` Patrick Gundlach
2003-04-10 10:06 ` keep section head with following paragraphs Patrick Gundlach
2003-04-10 16:17 ` Hans Hagen
2 siblings, 1 reply; 30+ messages in thread
From: Mark A. Lilly @ 2003-04-10 6:13 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-09 20:30 ` John Culleton
2003-04-09 21:49 ` John Culleton
@ 2003-04-10 9:56 ` Patrick Gundlach
[not found] ` <87smspjuor.fsf_-_@gundla.ch>
1 sibling, 1 reply; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-10 9:56 UTC (permalink / raw)
John Culleton <john@wexfordpress.com> writes:
[...]
> 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.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: keep section head with following paragraphs
2003-04-09 22:17 ` keep section head with following paragraphs Mark A. Lilly
2003-04-10 6:13 ` narrowing text, but not heads? Mark A. Lilly
@ 2003-04-10 10:06 ` Patrick Gundlach
2003-04-10 16:17 ` Hans Hagen
2 siblings, 0 replies; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-10 10:06 UTC (permalink / raw)
"Mark A. Lilly" <misc@tinorb.com> writes:
Hello Mark,
> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: narrowing text, but not heads?
2003-04-10 6:13 ` narrowing text, but not heads? Mark A. Lilly
@ 2003-04-10 11:33 ` Patrick Gundlach
0 siblings, 0 replies; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-10 11:33 UTC (permalink / raw)
"Mark A. Lilly" <misc@tinorb.com> writes:
Hi,
> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-09 19:35 ` John Culleton
2003-04-09 19:49 ` Patrick Gundlach
@ 2003-04-10 12:20 ` Patrick Gundlach
2003-04-10 14:11 ` John Culleton
2003-04-10 14:35 ` Re[2]: " Giuseppe Bilotta
2 siblings, 1 reply; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-10 12:20 UTC (permalink / raw)
John Culleton <john@wexfordpress.com> writes:
Hi,
> OK downloaded cont-tmf.zip on Apr 5 and cont-mpd.zip today.
What is this cont-mpd.zip?
PAT
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground.
2003-04-10 12:20 ` Patrick Gundlach
@ 2003-04-10 14:11 ` John Culleton
2003-04-10 15:00 ` Patrick Gundlach
0 siblings, 1 reply; 30+ messages in thread
From: John Culleton @ 2003-04-10 14:11 UTC (permalink / raw)
On Thursday 10 April 2003 08:20 am, Patrick Gundlach wrote:
> John Culleton <john@wexfordpress.com> 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.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re[2]: Error using \starttextbackground.
2003-04-09 19:35 ` John Culleton
2003-04-09 19:49 ` Patrick Gundlach
2003-04-10 12:20 ` Patrick Gundlach
@ 2003-04-10 14:35 ` Giuseppe Bilotta
2003-04-10 15:46 ` Re[2]: Error using \starttextbackground. (LONG) John Culleton
2 siblings, 1 reply; 30+ messages in thread
From: Giuseppe Bilotta @ 2003-04-10 14:35 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground.
2003-04-10 14:11 ` John Culleton
@ 2003-04-10 15:00 ` Patrick Gundlach
0 siblings, 0 replies; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-10 15:00 UTC (permalink / raw)
John Culleton <john@wexfordpress.com> writes:
Hello John,
> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re[2]: Error using \starttextbackground. (LONG)
2003-04-10 14:35 ` Re[2]: " Giuseppe Bilotta
@ 2003-04-10 15:46 ` John Culleton
2003-04-10 15:57 ` Re[4]: " Giuseppe Bilotta
2003-04-10 16:02 ` Patrick Gundlach
0 siblings, 2 replies; 30+ messages in thread
From: John Culleton @ 2003-04-10 15:46 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re[4]: Error using \starttextbackground. (LONG)
2003-04-10 15:46 ` Re[2]: Error using \starttextbackground. (LONG) John Culleton
@ 2003-04-10 15:57 ` Giuseppe Bilotta
2003-04-10 16:02 ` Patrick Gundlach
1 sibling, 0 replies; 30+ messages in thread
From: Giuseppe Bilotta @ 2003-04-10 15:57 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground. (LONG)
2003-04-10 15:46 ` Re[2]: Error using \starttextbackground. (LONG) John Culleton
2003-04-10 15:57 ` Re[4]: " Giuseppe Bilotta
@ 2003-04-10 16:02 ` Patrick Gundlach
2003-04-10 16:33 ` John Culleton
1 sibling, 1 reply; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-10 16:02 UTC (permalink / raw)
John Culleton <john@wexfordpress.com> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground.
2003-04-10 5:23 ` Guy Worthington
@ 2003-04-10 16:07 ` John Culleton
0 siblings, 0 replies; 30+ messages in thread
From: John Culleton @ 2003-04-10 16:07 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: keep section head with following paragraphs
2003-04-09 22:17 ` keep section head with following paragraphs Mark A. Lilly
2003-04-10 6:13 ` narrowing text, but not heads? Mark A. Lilly
2003-04-10 10:06 ` keep section head with following paragraphs Patrick Gundlach
@ 2003-04-10 16:17 ` Hans Hagen
2 siblings, 0 replies; 30+ messages in thread
From: Hans Hagen @ 2003-04-10 16:17 UTC (permalink / raw)
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground. (LONG)
2003-04-10 16:02 ` Patrick Gundlach
@ 2003-04-10 16:33 ` John Culleton
2003-04-10 21:19 ` Patrick Gundlach
0 siblings, 1 reply; 30+ messages in thread
From: John Culleton @ 2003-04-10 16:33 UTC (permalink / raw)
On Thursday 10 April 2003 12:02 pm, Patrick Gundlach wrote:
> John Culleton <john@wexfordpress.com> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground.
[not found] ` <87el4ah7cn.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
@ 2003-04-10 17:27 ` Hans Hagen
0 siblings, 0 replies; 30+ messages in thread
From: Hans Hagen @ 2003-04-10 17:27 UTC (permalink / raw)
At 14:20 10/04/2003 +0200, you wrote:
>John Culleton <john@wexfordpress.com> writes:
>
>Hi,
>
> > OK downloaded cont-tmf.zip on Apr 5 and cont-mpd.zip today.
>
>What is this cont-mpd.zip?
it contains only the mp to pdf converter things; you don't need it since
its content is in cont-tmf.zip; context users only need the tmf and exa file
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground.
[not found] ` <87llyiisk9.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
@ 2003-04-10 18:29 ` Hans Hagen
0 siblings, 0 replies; 30+ messages in thread
From: Hans Hagen @ 2003-04-10 18:29 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
>
>It would be great if metapost could be verbose of format version and
>date created. Hans?
the metapost pool files has an 'everyjob" entry but i dunno how to use that
so i hooked it into end
Hans
[-- Attachment #2: metafun.mp --]
[-- Type: text/plain, Size: 1878 bytes --]
%D \module
%D [ file=metafun.mp,
%D version=2000.07.15,
%D title=\CONTEXT\ \METAPOST\ graphics,
%D subtitle=format generation file,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
%D When generating many graphics at runtime, it can save run
%D time to use a format file. We could have named this file
%D \type {context}, but this is error prone, because it forces
%D to use the progname \type {mpost} or \type {context}
%D explicitly, depending on the needs. When using the format,
%D a mismatch in the memory specification of \type {mpost} or
%D \type {context} (the \TEX\ one) could lead to lost strings
%D (and as a result in buggy boundingbox and special
%D handling). By using the name \type {metatex} we make sure
%D that we use (unless overloaded) the settings of \type
%D {mpost}.
if unknown ahangle :
input plain.mp ; % John Hobby's file
else :
let dump = relax ;
fi ;
input mp-tool.mp ;
input mp-spec.mp ;
input mp-core.mp ;
input mp-page.mp ;
input mp-text.mp ;
input mp-shap.mp ;
input mp-butt.mp ;
input mp-char.mp ;
input mp-step.mp ;
input mp-grph.mp ;
% mp-form.mp ;
input mp-grid.mp ;
input mp-func.mp ;
string metafunversion ;
metafunversion = "metafun" & " " &
decimal year & "-" &
decimal month & "-" &
decimal day & " " &
decimal (time div 60) & ":" &
decimal (time-(time div 60)*60) ;
let normalend = end ;
def end =
message "" ; message metafunversion ; message "" ; normalend ;
enddef ;
dump ; endinput .
\x1a
[-- Attachment #3: Type: text/plain, Size: 597 bytes --]
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Error using \starttextbackground. (LONG)
2003-04-10 16:33 ` John Culleton
@ 2003-04-10 21:19 ` Patrick Gundlach
2003-04-11 0:02 ` John Culleton
0 siblings, 1 reply; 30+ messages in thread
From: Patrick Gundlach @ 2003-04-10 21:19 UTC (permalink / raw)
John Culleton <john@wexfordpress.com> writes:
> 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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Re: Error using \starttextbackground. (LONG)
2003-04-10 21:19 ` Patrick Gundlach
@ 2003-04-11 0:02 ` John Culleton
0 siblings, 0 replies; 30+ messages in thread
From: John Culleton @ 2003-04-11 0:02 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: metafun id
[not found] ` <87smspjuor.fsf_-_@gundla.ch>
@ 2003-04-11 9:17 ` Hans Hagen
0 siblings, 0 replies; 30+ messages in thread
From: Hans Hagen @ 2003-04-11 9:17 UTC (permalink / raw)
Cc: ntg-context
At 10:37 11/04/2003 +0200, you wrote:
>Hans Hagen <pragma@wxs.nl> writes:
>
>Hello Hans,
>
> >>It would be great if metapost could be verbose of format version and
> >>date created. Hans?
> >
> > the metapost pool files has an 'everyjob" entry but i dunno how to use
> > that so i hooked it into end
>
>Your new metafun.mp just writes out the date where the format is
>created (or the job is run?); it would be much more helpful to
>identify the metafun version as in context:
>
>ConTeXt ver: 2003.3.17 fmt: 2003.3.18 int: english mes: english
>
>metafun ver: ..... fmt: ....
>
>So it would be much easier to solve problems like John had: up to
>date format but generated with old metafun-files.
that's for later, since i first need to patch some script for that
also, mp needs to be fixed for the date/time (not current today)
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 30+ messages in thread
end of thread, other threads:[~2003-04-11 9:17 UTC | newest]
Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-08 21:52 Error using \starttextbackground John Culleton
2003-04-09 7:29 ` Hans Hagen
2003-04-09 19:35 ` John Culleton
2003-04-09 19:49 ` Patrick Gundlach
2003-04-09 20:30 ` John Culleton
2003-04-09 21:49 ` John Culleton
2003-04-09 22:17 ` keep section head with following paragraphs Mark A. Lilly
2003-04-10 6:13 ` narrowing text, but not heads? Mark A. Lilly
2003-04-10 11:33 ` Patrick Gundlach
2003-04-10 10:06 ` keep section head with following paragraphs Patrick Gundlach
2003-04-10 16:17 ` Hans Hagen
2003-04-10 5:27 ` Error using \starttextbackground Guy Worthington
2003-04-10 9:56 ` Patrick Gundlach
[not found] ` <87smspjuor.fsf_-_@gundla.ch>
2003-04-11 9:17 ` metafun id Hans Hagen
2003-04-09 23:22 ` Re: Error using \starttextbackground John Culleton
2003-04-10 5:23 ` Guy Worthington
2003-04-10 16:07 ` John Culleton
[not found] ` <87llyiisk9.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
2003-04-10 18:29 ` Hans Hagen
2003-04-10 12:20 ` Patrick Gundlach
2003-04-10 14:11 ` John Culleton
2003-04-10 15:00 ` Patrick Gundlach
2003-04-10 14:35 ` Re[2]: " Giuseppe Bilotta
2003-04-10 15:46 ` Re[2]: Error using \starttextbackground. (LONG) John Culleton
2003-04-10 15:57 ` Re[4]: " Giuseppe Bilotta
2003-04-10 16:02 ` Patrick Gundlach
2003-04-10 16:33 ` John Culleton
2003-04-10 21:19 ` Patrick Gundlach
2003-04-11 0:02 ` John Culleton
[not found] ` <87el4ah7cn.fsf@levana.i-did-not-set--mail-host-address--so -tickle-me>
2003-04-10 17:27 ` Re: Error using \starttextbackground Hans Hagen
2003-04-09 7:39 ` Patrick Gundlach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).