[NTG-context] texmfstart problem

2006-05-19 Thread Richard Gabriel




Hello Hans and others,I've got the following problem...I used to use such a command to compile my documents:texexec --format=cont-cz --mode=print file.texAfter upgrade to latest ConTeXt (2006-05-17), I got a warning "Use 'texmfstart texexec' instead!".So I've changed my batch to call:texmfstart texexec --format=cont-cz --mode=print file.texBut it seems the --format switch is not processed correctly because the cont-en format is always used. On the other hand, the mode is passed correctly.Where's the problem? Thanks,Richard___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart problem

2006-05-19 Thread Richard Gabriel




Thanks Hans, this way it works!Anyway, I'd suggest to list this option in the command line help (texmfstart texexec --help). I find it one of the most important texexec options...Another issue: 'texexec --version' also lists versions of TeXUtil, pdfTeX and the particular ConTeXt formats.'texmfstart texexec --version' shows only the version of texexec itself... :-(I've attached a small Czech test file (utf-8 encoded).-RichardFrom: Hans Hagen [mailto:[EMAIL PROTECTED]To: mailing list for ConTeXt users [mailto:[EMAIL PROTECTED]Sent: Fri, 19 May 2006 10:39:13 +0200Subject: Re: [NTG-context] texmfstart problemRichard Gabriel wrote: Hello Hans and others, I've got the following problem... I used to use such a command to compile my documents: texexec --format=cont-cz --mode=print file.tex After upgrade to latest ConTeXt (2006-05-17), I got a warning "Use  'texmfstart texexec' instead!". So I've changed my batch to call: texmfstart texexec --format=cont-cz --mode=print file.texmaybe --interface=cz works But it seems the --format switch is not processed correctly because  the cont-en format is always used. On the other hand, the mode is  passed correctly. Where's the problem?can you send me a small czech test file? 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-___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context


test.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart problem

2006-05-19 Thread Taco Hoekwater


Richard Gabriel wrote:
 Thanks Hans,
 
 this way it works!
 Anyway, I'd suggest to list this option in the command line help 
 (texmfstart texexec --help). I find it one of the most important texexec 
 options...
 Another issue:
 'texexec --version' also lists versions of TeXUtil, pdfTeX and the 
 particular ConTeXt formats.
 'texmfstart texexec --version' shows only the version of texexec 
 itself... :-(

Use:

   texmfstart texexec --check

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Weird texexec hang

2006-05-19 Thread nico
Hello,

I took me quite some time to extract the following sequence from a 300p  
book, that makes the compilation hang. It looks like if it's in an  
infinite loop, but I don't know what happens. It seems related to the  
interaction of float, verbatim, and background stuff.

I thought it was a local resource problem (few memory on my machine) but  
trying the code in live context never gave something either (i hope it is  
not still running!).

What's wrong in my definitions/setups to have such a behaviour?

\setuplayout[middle]
\setupcolors[state=start]
\setupinteraction[state=start]

\definefloat[dbsidebar]
\setupfloat
[dbsidebar]
[criterium=0.7\textwidth,
 leftmargindistance=-\outercombitotal,
 rightmargindistance=-\outercombitotal,
 default={outer,middle}]

\setupcaption[dbsidebar][location=bottom,number=no]

\defineframedtext
[framesidebar]
[width=.9\textwidth,bodyfont=small,
 corner=round,background=screen,backgroundscreen=.95]

\setupbackground
   [background=screen,
frame=on,
strut=yes,
topoffset=2mm,
width=broad,
before=\blank,
after={\blank[small]},
align=right]

% Verbatim environment for programlisting
\definetyping[code]

\setuptyping[code]
 [bodyfont=small,
  before={\startbackground},
  after={\stopbackground}]

\starttext

\input tufte
\input tufte

\placedbsidebar{joke}
{\startframesidebar
\startcode
some code
\stopcode
\stopframesidebar}

\input tufte
\input tufte

\placedbsidebar{joke}
{\startframesidebar
\startcode
some code
\stopcode
\stopframesidebar}

\stoptext


Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] textbackground and midaligned

2006-05-19 Thread Hans Hagen
Aditya Mahajan wrote:
 I encountered a very strange problem. The very presence of 
 \definetextbackground changed the meaning of \midaligned (and 
 \rightaligned). Attached are the minimal example that illustrate the 
 problem. The first file, nobackground.tex has no background and works 
 as expected. The second file background.tex has a textbackground and 
 \midaligned is no longer middle aligned.

 Any insight into this strange behaviour?
\def\doalignline#1#2% \\ == newline
 {\begingroup
  \setlocalhsize % new
  \def\\{\egroup\par\doalignline{#1}{#2}\bgroup}%
  \dowithnextbox
{\noindentation  % change this line in core-spa.tex 
 \hbox to \localhsize
   {\ifcase\alignstrutmode\or\strut\fi
 #1\unhbox\nextbox#2}\endgroup}
\hbox}

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Weird texexec hang

2006-05-19 Thread Hans Hagen
nico wrote:
 Hello,

 I took me quite some time to extract the following sequence from a 300p  
 book, that makes the compilation hang. It looks like if it's in an  
 infinite loop, but I don't know what happens. It seems related to the  
 interaction of float, verbatim, and background stuff.

 I thought it was a local resource problem (few memory on my machine) but  
 trying the code in live context never gave something either (i hope it is  
 not still running!).

 What's wrong in my definitions/setups to have such a behaviour?

 \setuplayout[middle]
 \setupcolors[state=start]
 \setupinteraction[state=start]

 \definefloat[dbsidebar]
 \setupfloat
 [dbsidebar]
 [criterium=0.7\textwidth,
  leftmargindistance=-\outercombitotal,
  rightmargindistance=-\outercombitotal,
  default={outer,middle}]

 \setupcaption[dbsidebar][location=bottom,number=no]

 \defineframedtext
 [framesidebar]
 [width=.9\textwidth,bodyfont=small,
  corner=round,background=screen,backgroundscreen=.95]

 \setupbackground
[background=screen,
 frame=on,
 strut=yes,
 topoffset=2mm,
 width=broad,
 before=\blank,
 after={\blank[small]},
 align=right]

 % Verbatim environment for programlisting
 \definetyping[code]

 \setuptyping[code]
  [bodyfont=small,
   before={\startbackground},
   after={\stopbackground}]

 \starttext

 \input tufte
 \input tufte

 \placedbsidebar{joke}
 {\startframesidebar
 \startcode
 some code
 \stopcode
 \stopframesidebar}

 \input tufte
 \input tufte

 \placedbsidebar{joke}
 {\startframesidebar
 \startcode
 some code
 \stopcode
 \stopframesidebar}

 \stoptext
   
backgrounds inside a float ... not the ideal combination (some otr 
intereference), but how about: 

\setuplayout[middle]
\setupcolors[state=start]
\setupinteraction[state=start]

\definefloat[dbsidebar]

\setupfloat
[dbsidebar]
[criterium=0.7\textwidth,
 leftmargindistance=-\outercombitotal,
 rightmargindistance=-\outercombitotal,
 default={outer,middle}]

\setupcaption[dbsidebar][location=bottom,number=no]

\defineframedtext
  [framesidebar]
  [width=.9\textwidth,bodyfont=small,
   corner=round,
   background=screen,backgroundscreen=.95]

\defineframedtext
  [nestedframesidebar]
  [width=broad,
   background=screen,backgroundscreen=.80]

\definetyping[code]

\setuptyping
  [code]
  [before={\startframesidebar\startnestedframesidebar},
   after={\stopnestedframesidebar\stopframesidebar}]

\starttext

\input tufte
\input tufte

\placedbsidebar{joke}{
\startcode
some code
\stopcode
}

\input tufte
\input tufte

\placedbsidebar{joke}{
\startcode
some code
\stopcode
}

\stoptext


-
  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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] texmfstart problem

2006-05-19 Thread Hans Hagen
Richard Gabriel wrote:
 Thanks Hans,

 this way it works!
here 

texexec --interface=cz   test.tex
texexec --format=cz  test.tex
texexec --format=cont-cz test.tex

all work ok 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Weird texexec hang

2006-05-19 Thread nico
On Fri, 19 May 2006 15:00:31 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 nico wrote:
 Hello,

 It took me quite some time to extract the following sequence from a 300p
 book, that makes the compilation hang. It looks like if it's in an
 infinite loop, but I don't know what happens. It seems related to the
 interaction of float, verbatim, and background stuff.

 I thought it was a local resource problem (few memory on my machine) but
 trying the code in live context never gave something either (i hope it  
 is
 not still running!).

 What's wrong in my definitions/setups to have such a behaviour?

 backgrounds inside a float ... not the ideal combination (some otr  
 intereference),

What does mean otr?

 but how about:

Yes, replacing background by a framedtext works fine. In fact I used that  
(and the 300 pages book compiled fine :-) but I changed to background to  
allow the code portions to split in several pages (when put in normal text  
flow). But if you say that background should be avoided in floats i'll use  
the framed typing definition for floats (that cannot split anyway).

BTW, is there other known unsafe combinations to avoid?

Thanks,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Weird texexec hang

2006-05-19 Thread Hans Hagen
nico wrote:
 Yes, replacing background by a framedtext works fine. In fact I used that  
 (and the 300 pages book compiled fine :-) but I changed to background to  
 allow the code portions to split in several pages (when put in normal text  
 flow). But if you say that background should be avoided in floats i'll use  
 the framed typing definition for floats (that cannot split anyway).
   
i adapted the backgrounds to recognize floats, i'll sen dyou the file
 BTW, is there other known unsafe combinations to avoid?
   
well, \starttextbackground is the more modern way to go (only one level needed 
since one can hook in mp code) 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Weird texexec hang

2006-05-19 Thread nico
On Fri, 19 May 2006 15:52:56 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 nico wrote:
 Yes, replacing background by a framedtext works fine. In fact I used  
 that
 (and the 300 pages book compiled fine :-) but I changed to background to
 allow the code portions to split in several pages (when put in normal  
 text
 flow). But if you say that background should be avoided in floats i'll  
 use
 the framed typing definition for floats (that cannot split anyway).

 i adapted the backgrounds to recognize floats, i'll sen dyou the file

Ok, thanks, i'll try it.

 BTW, is there other known unsafe combinations to avoid?

 well, \starttextbackground is the more modern way to go (only one level  
 needed since one can hook in mp code)

I tried this too, but it became a real nightmare. It compiles ok, but is  
so slow: there were hundred of MP files, and the result was ugly (strange  
offsets, strange framed lines, strange color...). I deduced that I  
certainly did something wrong, but had no time to investigate in this  
area. And the compilation time is certainly the main drawback for me.

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] textbackground and midaligned

2006-05-19 Thread Aditya Mahajan
On Fri, 19 May 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 I encountered a very strange problem. The very presence of
 \definetextbackground changed the meaning of \midaligned (and
 \rightaligned). Attached are the minimal example that illustrate the
 problem. The first file, nobackground.tex has no background and works
 as expected. The second file background.tex has a textbackground and
 \midaligned is no longer middle aligned.

 Any insight into this strange behaviour?
 \def\doalignline#1#2% \\ == newline
 {\begingroup
  \setlocalhsize % new
  \def\\{\egroup\par\doalignline{#1}{#2}\bgroup}%
  \dowithnextbox
{\noindentation  % change this line in core-spa.tex
 \hbox to \localhsize
   {\ifcase\alignstrutmode\or\strut\fi
 #1\unhbox\nextbox#2}\endgroup}
\hbox}

Thank you!
  This takes care of the problem.

Aditya
-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Framed in nested enumeration

2006-05-19 Thread Aditya Mahajan
Hi,
  Inside a nested enumeration \frame[align=leftflush] does not work 
correctly. For example
\defineenumeration
   [problem]
   [text=Problem,
location=hanging,
headstyle=\sc,
%headcolor=brown,
%before={\resetnumber[formula]\page[desirable]},
after=\blank,
   ]

\defineenumeration
   [solution]
   [
 text=Solution,
 number=no,
% headcolor=darkblue,
 headstyle=bold,
 location=serried,
 width=broad,
 before=\blank,
 after=\blank,
]

\starttext
  \startproblem
 \input knuth %A multi paragraph problem
   \startsolution
 A multi paragraph solution

 \leftaligned{In leftaligned works fine}

 \framed[frame=on,align=leftflushed,width=broad]
 { Inside framed does not}
 \startformula
   \stopsolution
\stopproblem
\stoptext


Is there an option other than align=leftflushed for this kind of 
thing.

Thanks,
Aditya


-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] textbackground and margin

2006-05-19 Thread Aditya Mahajan
Hi Hans,

  textbackground does not honour topoffset/bottomoffset at pagebreak. 
Is this by design?

\definetextbackground
   [test]
   [  location=paragraph,
 rulethickness=1pt,
leftoffset=1em,
 topoffset=5cm,
  bottomoffset=5cm] % For test purposes
\starttext

\starttextbackground[test]
\dorecurse{15}{\input knuth \endgraf}
\stoptextbackground

\stoptext

Is there some parameter to adjust the offset before and after a 
pagebreak. (I want them to be same as bottomoffset and topoffset.)
Or should I take care of this in mpos:par:columnset with something 
like (pseudo code)

if nofmultipars  1
  draw multipars[1] enlarge bottom by bottomoffset;
  for i = 2 upto nofmultipars:
   draw multipars[i]
 enlarge top by topoffset enlarge bottom by bottomoffset;
  endfor;
endif;


Or is there some easier way to just I influence boxfilloffset for 
do_draw_par in core-mp.tex?


Thanks,
Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] textbackground and margin

2006-05-19 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi Hans,

   textbackground does not honour topoffset/bottomoffset at pagebreak. 
 Is this by design?
   
ss everywhere in tex, skipe at the bottom and top of a page disappear at a 
pagebreak, and inserting it is tricky 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Tex Errors But Good PDF Output

2006-05-19 Thread Browder, Tom
I'm using definitions and abbreviations in section titles and get errors
from TeX during processing (using texexec).  If I ignore the errors and
hit return repeatedly, eventually the process ends and I get an
apparently good PDF file.

I've included the log file--notice the complaints about undefined
control sequences.  I'm using a master tex file and \input the various
chapters (I've turned off all but a couple of inputs for debugging).

Is there anything apparent I'm doing wrong?

Thanks so much.

-Tom


brltool.log
Description: brltool.log
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] batch mode

2006-05-19 Thread Aditya Mahajan
On Thu, 18 May 2006, Taco Hoekwater wrote:

 Aditya Mahajan wrote:
 On Tue, 9 May 2006, Aditya Mahajan wrote:


 --batch --interaction=batch does not always process file in batch
 mode, while internally running mp.

 \starttext
 \startMPpage
  draw path ;
 \stopMPpage
 \stoptext

 texmfstart texexec.rb --batch --interaction=batchmode --pdf test

 should not stop at the error.


 Realized that the correct method to run it is
 texmfstart texexec --batch --nonstopmode

 Is --batch redundant here?

 No, they are separate options, use:

   texmfstart texexec --batch
 or
   texmfstart texexec --nonstopmode

 The first has no terminal output, the second does.
 (cf. \batchmode and \nonstopmode).  texexec does
 not interpret --interaction at all, but maybe this works:

   texmfstart texexec.rb --passon='--interaction=batchmode'

Nope. texexec.rb does not honour --passon. A quick search of passon
in all sources just returns mptopdf.pl texexec.pl and texutil.pl

With texmfstart --verbose texexec --passon='--interaction=nonstopmode' 
-- verbose test, I get

using 'system' call: ruby 
e:/isoimage/usr/local/context/tex/texmf-local/scripts/context/ruby/texexec.rb 
--verbose --passon=--interaction=nonstopmode test

Notice there are no quote around passon arguments.

TeXExec | running: pdfetex -progname=context -fmt=cont-en 
-translate-file=natural.tcx  test.tex \emergencyend

 passon arguments not passed 

and in the log file

system(mpost  -progname=metafun -mem=metafun test-mpgraph)...executed.

Again passon argument not passed 


I need this to properly set makeprg for context in vim. Vim expects 
that the compiler will not run in an interactive manner.

Adding a \nonstopmode on the top of the file works correctly. That is, 
it calls mpost with -int=nonstopmode.

What is texexec equivalent of 'latex \\nonstopmode \\input file'

calling 'texmfstart texexec \\nonstopmode \\input file' treats the 
inputs as two files.


Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] open math

2006-05-19 Thread nico
On Thu, 18 May 2006 22:02:03 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 Hi,

 For those interested in mathml/openmath ... i've added some support for
 openmath - mathml conversion to the distribution (there is some stuff
 in the manual svn repos as well). I dunno how many of you actually have
 used openmath. Anyhow, it makes a nice demo of applying ctx job
 description files (used for automatic preprocessing of the xml files to
 content mathml and such).

Just a question about the ctx file as described in the doc: does it mean  
that every XML file is processed first by 'openmath' and then 'mathadore'?

If so, why not using the xsltproc piping, avoiding the intermediate .om  
files?

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Tex Errors But Good PDF Output

2006-05-19 Thread Hans Hagen
Browder, Tom wrote:
 I'm using definitions and abbreviations in section titles and get errors
 from TeX during processing (using texexec).  If I ignore the errors and
 hit return repeatedly, eventually the process ends and I get an
 apparently good PDF file.

 I've included the log file--notice the complaints about undefined
 control sequences.  I'm using a master tex file and \input the various
 chapters (I've turned off all but a couple of inputs for debugging).

 Is there anything apparent I'm doing wrong?

 Thanks so much.
   
can you make a small test file that fails? normally abbrev etc should behave 
normally in bookmarks, as long as you define them beforehand 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] open math

2006-05-19 Thread Hans Hagen
nico wrote:
 On Thu, 18 May 2006 22:02:03 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

   
 Hi,

 For those interested in mathml/openmath ... i've added some support for
 openmath - mathml conversion to the distribution (there is some stuff
 in the manual svn repos as well). I dunno how many of you actually have
 used openmath. Anyhow, it makes a nice demo of applying ctx job
 description files (used for automatic preprocessing of the xml files to
 content mathml and such).
 

 Just a question about the ctx file as described in the doc: does it mean  
 that every XML file is processed first by 'openmath' and then 'mathadore'?

 If so, why not using the xsltproc piping, avoiding the intermediate .om  
 files?
   
i'm not aware of piping ... how does the command look then? 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] open math

2006-05-19 Thread nico
On Fri, 19 May 2006 22:30:20 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 nico wrote:
 On Thu, 18 May 2006 22:02:03 +0200, Hans Hagen [EMAIL PROTECTED] wrote:

 Hi,

 For those interested in mathml/openmath ... i've added some support for
 openmath - mathml conversion to the distribution (there is some stuff
 in the manual svn repos as well). I dunno how many of you actually have
 used openmath. Anyhow, it makes a nice demo of applying ctx job
 description files (used for automatic preprocessing of the xml files to
 content mathml and such).

 Just a question about the ctx file as described in the doc: does it mean
 that every XML file is processed first by 'openmath' and then  
 'mathadore'?

 If so, why not using the xsltproc piping, avoiding the intermediate .om
 files?

 i'm not aware of piping ... how does the command look then?

Provided that it's possible to pipe commands via ctx and/or texexec:

xsltproc x-sm2om.xsl foo.xml | xsltproc -o foo.prep x-openmath.xsl -

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] textbackground and margin

2006-05-19 Thread Aditya Mahajan
On Fri, 19 May 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi Hans,

   textbackground does not honour topoffset/bottomoffset at pagebreak.
 Is this by design?

 ss everywhere in tex, skipe at the bottom and top of a page disappear at a 
 pagebreak, and inserting it is tricky

Any appararent drawback of using the following approach...

\definetextbackground
   [test]
   [ location=paragraph,
 leftoffset=1em,
 before={\blank[1cm]},
 after={\blank[1cm]}]

\startuseMPgraphic{mpos:par:columnset}
   path p;
   for i = 1 upto nofmultipars  :
 p := multipars[1]  topenlarged 1cm bottomenlarged 1cm;
 fill p withcolor 0.9white ;
 draw p withcolor \MPvar{linecolor}
 withpen pencircle scaled \MPvar{linewidth};
   endfor;
\stopuseMPgraphic

\starttext

\input knuth \endgraf
\hairline \par
\starttextbackground[test]
\dorecurse{13}{\input knuth \endgraf}
\stoptextbackground
\hairline \par
\input knuth \endgraf

\stoptext

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Margin definition trouble.

2006-05-19 Thread Johannes Graumann
Hello,

I define my margins like so:

% Papersize is 'letter'
\setuppapersize[letter][letter]

% CIT thesis regulations: 1 in margins, 1.5 in on the binding side
% Johannes: no footer
\setuplayout[
  margin=1in,
  backspace=1.5in,
  footer=0in
]

but the margins on top, bottom and right differ significantly from 1 in (ca.
1 in 3/16) and on the left from 1.5 in (ca. 1 in 11/16). This is in the
printout. Do I have to go adjusting this arbitrarily, printing it and
checking manually?

Can anybody tell me what I'm doing wrong?

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Margin definition trouble.

2006-05-19 Thread Mojca Miklavec
On 5/19/06, Johannes Graumann wrote:
 Hello,

 I define my margins like so:

 % Papersize is 'letter'
 \setuppapersize[letter][letter]

 % CIT thesis regulations: 1 in margins, 1.5 in on the binding side
 % Johannes: no footer
 \setuplayout[
   margin=1in,
   backspace=1.5in,
   footer=0in
 ]

 but the margins on top, bottom and right differ significantly from 1 in (ca.
 1 in 3/16) and on the left from 1.5 in (ca. 1 in 11/16). This is in the
 printout. Do I have to go adjusting this arbitrarily, printing it and
 checking manually?

Do you know the command \showlayout?

 Can anybody tell me what I'm doing wrong?

Margin as the dimension parameter in \setuplayout is not the distance
between text and the border, but the width of an auxiliary field on
the left and right (chech the command above to see those fields).

Does
\setuplayout[
 backspace=1.5in,
 width=6in,
 topspace=1in,
 height=9in, % or even better: height=middle
 footer=0in
]
work OK for you?

(width=middle can adjust the width automatically if backspace equals
forwardspace, but I'm not aware of an option that would calculate
the width automatically for different space on left and right; perhaps
you can use \dimexpr, but I didn't try it)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Margin definition trouble.

2006-05-19 Thread Johannes Graumann
Mojca Miklavec wrote:

 Margin as the dimension parameter in \setuplayout is not the distance
 between text and the border, but the width of an auxiliary field on
 the left and right (chech the command above to see those fields).

Thanks for pointing out my folly. I did some more digging in the
ConTeXtgarden and came up with the following:

\setuplayout[
  topspace=1in, % the space at the very top of the page
  backspace=1.5in,  % the space in the left hand side of the page 
  cutspace=1in, % the space on the right hand side of the page
  bottomspace=1in,
  footer=0in
]

This gets me significantly closer to where I need to be, but the right edge
is more at 15/16 than at 1 in and the bottom one more at 17/16.

Any hints on how to get it even closer?

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context