[NTG-context] unwanted pagebreak

2004-02-22 Thread R. Ermers



Dear Contex'ers,

Does anyone know how I can prevent the occurrence 
of a pagebreak after:

\section, \subsection, ...
(followed by \startitemize)

\head (in an itemization)

I do not want to have to check all the section 
headings and put \page[no] before the heading.

Kind regards,

Robert Ermers


[NTG-context] alignment of marginal material

2004-02-22 Thread Jonathan Nicholl
I am trying to write a macro which places a picture in the margin. I 
would like the centre of the picture to be aligned vertically with the 
centre of the paragraph in which I call the macro. The following works 
in simple cases:

\def\hazard#1{%The argument is the text of the paragraph
	\setbox0=\vbox{#1}% 		I do this to work out the height of the paragraph
	\inleft [low] {%
		\framed%
			[height=\ht0,%	This makes the height of the frame equal to the 
height of the paragraph
			top=\vss,%
			bottom=\vss,%	These two lines centre the picture in the frame
			frame=off]%
			{\externalfigure [sharp turn sign]}%
		}%
	#1}%		It goes wrong if you replace #1 with \box0

If I type something like

\hazard{paragraph text}

this produces what I want. But it breaks down with mathematics.

\hazard{%
\startformula
mathematics
\stopformula
}
produces the picture aligned with the bottom of the mathematics.

A solution to this problem escapes me. Can anyone suggest an improved 
macro?

Best wishes,

Jonathan

---

Jonathan Nicholl
Department of Philosophy
King's College London
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] boldsymbol workaround

2004-02-22 Thread David Munger
Hi all,

I've just found a little workaround for using boldsymbols. It works  
even with the nath module. It's probably not the best way of doing it,  
but since it does the trick for me, I guess it might useful to other  
ConTeXters.

Here it is:

\define[1]\boldsymbol{{\hbox{\formula{\bfm #1

I also have to:

\definebodyfont
 [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt]
 [mm]
 [mrbf=cmbx10 sa 1,
  exbf=cmex10  sa 1,
  mibf=cmmib10 sa 1,
  sybf=cmbsy10 sa 1,
  mabf=msam10  sa 1]
\setupformulae[method=bold]

Then, I may define very handy commands like

\define\grad{\boldsymbol{\nabla}}
\define[1]\vec{\boldsymbol{#1}}
\define[1]\unitvec{\hat{\vec{#1}}}
and formulas like this typeset perfectly:

\[ \grad h = a \unitvec{n} \]



___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


ReĀ : [NTG-context] boldsymbol workaround

2004-02-22 Thread David Munger
\define[1]\boldsymbol{{\hbox{\formula{\bfm #1
When using nath, it doesn't work with inline formulas. So in that case,  
better use

\unprotect
[EMAIL PROTECTED] \bfm #1 [EMAIL PROTECTED]
\protect
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context