Re: [NTG-context] Automatic replacement?

2013-05-04 Thread Wolfgang Schuster

Am 03.05.2013 um 16:05 schrieb luigi scarso luigi.sca...@gmail.com:

 
 
 
 On Fri, May 3, 2013 at 3:24 PM, H. Özoguz h.oezo...@mmnetz.de wrote:
 Is it possible to define an automatic replacement?
 
 I want to replace every
 
 اللَّـه
 by
 اللهِ
 
 First is a combination of letters, second is the correct arabic one-symbol 
 for the name Allah. I know, I can do this in the editor, but would helpful, 
 if it is possible in the compiling.
 
 Huseyin
 
 
 \directlua{ local function replace_txt (buffer) 
 buffer=string.gsub(buffer,A,BB) return buffer end 
 callback.register(process_input_buffer,replace_txt)
 }
 
 \starttext my text A \stoptext 
 
 copied  pasted in real time at 16:04 on friday May 3 from the Hans's talk at 
 bachotek 2013 about luatex and plain tex.
 Please test with your characters.

\usemodule[translate]

\starttext

\translateinput[Apple][Orange]

\enableinputtranslation

Apple, Banana and Strawberry.

\stoptext

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Aditya Mahajan
On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote:

 Seems finally solved (sigh). I cleaned out all files loading typescripts on 
 the fly. 
 - typescript macros ending in ] at the end of a line have now ]% at the end 
 of the line
 - empty lines have been removed for clarity
 - all files now have \endinput at the end.
 
 The files changed fit in a 54KB zip and I can send them if Hans/Wolfgang/.. 
 wants to incorporate them in the next beta.

I haven't followed this thread in detail, but an alternative is to redefine 
\starttypescript etc. to use a different catcode regime so that new lines and 
spaces are ignores (similar to \starttexdefinition, etc)

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Alternative rendering of some TOC levels

2013-05-04 Thread Wolfgang Schuster

Am 03.05.2013 um 16:27 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 Hello,
 
 how to change the way (alternative) how a particular level - e.g. sections 
 - are rendered in TOC?
 
 I tried:
 
 
 \setupcombinedlist
  [content]
  [alternative=c]
 
 \setuplist
  [section]
  [alternative=b]
 
 %\setupcombinedlist
 %  [content]
 %  [section]
 %  [alternative=b]
 
 \starttext
  \placecontent
 
  \chapter{Ch}
\section{Sec}
  \subsection{SSec}
\input knuth
 \stoptext
 
 
 This should change the alternative for section to be b (i.e. page numbers 
 without filling dots), whilst the default look should be alternative c 
 (i.e. dots and page numbers).

When you use \setupcombinedlist to change the alternative values this applies 
to all levels and individual settings are ignored.

The global setup can be better done with \setuplist[alternative=c].

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Meer, H. van der


On 4 May 2013, at 9:21 AM, Aditya Mahajan adit...@umich.edu wrote:

 On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote:
 
 Seems finally solved (sigh). I cleaned out all files loading typescripts on 
 the fly. 
 - typescript macros ending in ] at the end of a line have now ]% at the end 
 of the line
 - empty lines have been removed for clarity
 - all files now have \endinput at the end.
 
 The files changed fit in a 54KB zip and I can send them if Hans/Wolfgang/.. 
 wants to incorporate them in the next beta.
 

 I haven't followed this thread in detail, but an alternative is to redefine 
 \starttypescript etc. to use a different catcode regime so that new lines and 
 spaces are ignores (similar to \starttexdefinition, etc)

Would be nice. But doing this is left to other people than me, I feel not 
qualified to tinker with that code. You would like to challenge Hans Hagen?

Hans van der Meer

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Best Practise!?

2013-05-04 Thread Verhaag, G.C.H.M.

Hi ConTeXt User's,

I'm currently considering a new project, but wondering whether I'd 
choose for a MkII or MkIV basis?


I've been using MkIV for some time now, but have the impression that it 
is less well documented than the MkII setup. Please correct me when I'm 
wrong here! Okay, the help of this mailing list and of course 
http://wiki.contextgarden.net solved most of the problems I encountered. 
However the mailing list dependency makes me feel a bit uncomfortable. 
Maybe that's the way it works, because the development is very dynamic!


Any suggestions are very much appreciated. Thanks in advance!

Regards,
Verhaag, G.C.H.M.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Automatic replacement?

2013-05-04 Thread Arthur Reutenauer
 If I remember correctly

  You don't.

Arthur
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Automatic replacement?

2013-05-04 Thread luigi scarso
On Fri, May 3, 2013 at 6:29 PM, Keith J. Schultz keithjschu...@web.dewrote:

 HI Everybody,

 If I remember correctly Lua is not rl-compatible. There the below code can
 not work!


The solution from Wolfgang is ok, as I can see (I've checked with  some
small examples in arabic)
The callback process_input_buffer is not enabled in MkIV (this is my
second fault,could be that gsub works)
which is ok because in general is better to modify the source .


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] \placepublications with criterium=chapter

2013-05-04 Thread Enrique Jiménez Gallego
Hi,

I am porting a book from mkii to mkiv and I have found an issue with the
bibliography module. As Alan Braslau pointed out on 23 Mar, using
\placepublications [criterium=chapter] at the end of each chapter does not
show a cited reference if the reference is cited in an earlier chapter.

This may be a bug. Indeed, in mkii the reference was printed.

Is there any way in mkiv to reset the references at the end of each
chapter to fix the issue?

Minimal example (sample.bib in tex/texmf-context/tex/context/bib/):

\setupbibtex[database={sample}]
\setuppublications[alternative=num,criterium=chapter]

\starttext
\chapter{One}
Some text.\cite[hh2010a]

\subject{References}
\placepublications[criterium=chapter]

\chapter{Two}
Another text.\cite[hh2010a]

\subject{References}
\placepublications[criterium=chapter]
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Sietse Brouwer
Hi Hans, everybody,

Hans van der Meer wrote:
 Would be nice. But doing this is left to other
 people than me, I feel not qualified to tinker
 with that code. You would like to challenge Hans
 Hagen?

Last week's thread about ligatures got unpleasantly close to flaming
at times; so, just in case, I'd like to ask that this one stays calm.
That last sentence sounded a bit more antagonistic than you intended,
perhaps. Aditya was simply making a suggestion, not ‘challenging’ Hans
(either of the Hanses ^_^).

Also: thank you for the work you put into removing/commenting out all
spaces in typescript files; a 54 kB zip is nothing to sneeze at.

My best wishes to everybody in Bachotek / at BachoTeX — I hope the
weather is as fine there as it is here in Leiden.

Cheers,
Sietse
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TEXpage filename

2013-05-04 Thread Alan Bowen
Wolfgang—

Can this be extended so as to allow the extraction of the individual
component files (as PDFs with their component names) when processing a
product file?

Alan



On Thu, May 2, 2013 at 2:44 AM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 01.05.2013 um 23:02 schrieb Wolfgang Schuster 
 schuster.wolfg...@gmail.com:

 
  Am 01.05.2013 um 12:16 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
  Hello,
 
  In the production of (scientific) articles for journal submissions,
  one is often expected to supply the figures as separate files.
 
  One workflow can be through the use of \startTEXpage\stopTEXpage
  followed by an external extraction of single pdf pages to separate
  files.
 
  However, is it possible or would it be possible to directly output to a
  named file, as in:
   \startTEXpage{figure1.pdf}
   \stopTEXpage
  or perhaps
   \startTEXpage [file=figure1.pdf]
   \stopTEXpage
  ? (I could not find an answer looking at the source.)
 
  One could then (optionally) reinclude the figure in a review copy of
  the full text through the use of \externalfigure [figure1]
 
  You can put each graphic in a separate document and tell context to
  create a pdf with the \typesetfile command.

 \startbuffer[extract:before]
   \startTEXpage
 \stopbuffer

 \startbuffer[extract:after]
   \stopTEXpage
 \stopbuffer

 \def\startextract
   {\dosingleempty\dostartextract}

 \def\dostartextract[#1]%
   {\edef\extractfilename{#1}%
\grabbufferdata[extract:content][startextract][stopextract]}

 \def\stopextract
   {\doifsomething\extractfilename

  
 {\savebuffer[list={extract:before,extract:content,extract:after},file=\extractfilename.tex,prefix=no]%
   \typesetfile[\extractfilename][]}}

 \starttext

 \startplacefigure[title={External file}]
   \startextract[extract-1]
   \blackrule[width=4cm,height=4cm,color=orange]
   \stopextract
 \stopplacefigure

 \stoptext

  Creating a new environment which does all of this itself isn’t hard
  because most of the stuff which is needed can be seen in the example
  below.
 
  % the external file
 
  \startbuffer[figure-1]
  \startTEXpage
  \blackrule[width=4cm,height=4cm,color=blue]
  \stopTEXpage
  \stopbuffer
 
  \savebuffer[list=figure-1,file=figure-1.tex,prefix=no]
 
  % process the external file at runtime
 
  \starttext
  \placefigure{External file}{\typesetfile[figure-1]}

 The second argument for \typesetfile is needed to get this working:

 \placefigure{External file}{\typesetfile[figure-1][]}

 Wolfgang

 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] fontloader: “can't convert float into tounicode”

2013-05-04 Thread Hans Hagen

On 5/3/2013 9:04 PM, Philipp Gesang wrote:

Hi,

loading this font:

 
https://collab.itc.virginia.edu/access/content/group/26a34146-33a6-48ce-001e-f16ce7908a6a/Tibetan%20fonts/Tibetan%20Unicode%20Fonts/TibetanMachineUnicodeFont.zip

causes the fontloader to emit a dozen or so messages of the kind

 fontsloading  can't convert 7.27550912993e+22 into tounicode
 fontsloading  can't convert 3.1248073774797e+32 into 
tounicode
 fontsloading  can't convert 4.731809353839e+27 into tounicode
 ...

example code:

 \starttext
   foo
   {\definedfont[file:TibMachUni-1.901b.ttf*tibetan at 33pt]༡༢་༣༤་༥༦་༧༨}
   bar
 \stoptext

is this harmless? The typeset result appears to be satisfying.


in general yes; only can affect rare cases of cut-and-paste from the pdf

(fixed anyway but no upload this weekend)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] TEXpage filename

2013-05-04 Thread Wolfgang Schuster

Am 04.05.2013 um 13:50 schrieb Alan Bowen bowenala...@gmail.com:

 Wolfgang—
 
 Can this be extended so as to allow the extraction of the individual 
 component files (as PDFs with their component names) when processing a 
 product file?

There is no need for such a feature because you can process individual 
component files without problem, you have to add only a reference to the 
project or environment at the begin of each component.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Blank page when using natural table.

2013-05-04 Thread john Culleton
this is an annoyance rather than a deal breaker, but why does
this file generate a blank page numbered one and then the table?

-
\setuppapersize[letter]
\setuplayout{margin=0.5in,topspace=0.5in}
\starttext
\startstandardmakeup[doublesided=no]
\bTABLE
   \setupTABLE[frame=on]
\bTR 
\bTD foo \eTD
\eTR   
 \eTABLE
\stopstandardmakeup
\stoptext
--

I tried it with [doublesided=yes] and no parameter at all. Same
results. First a blank page numbered 1, then the table on the
second page. 
-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at http://www.booklocker.com/books/4055.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Blank page when using natural table.

2013-05-04 Thread Wolfgang Schuster

Am 04.05.2013 um 18:18 schrieb john Culleton j...@wexfordpress.com:

 this is an annoyance rather than a deal breaker, but why does
 this file generate a blank page numbered one and then the table?
 
 -
 \setuppapersize[letter]
 \setuplayout{margin=0.5in,topspace=0.5in}

\setuplayout[…]

 \starttext
 \startstandardmakeup[doublesided=no]
 \bTABLE
   \setupTABLE[frame=on]

Move \setupTABLE before \bTABLE or write \bTABLE[frame=on] even though you 
don’t need this setup because rules are enabled by default.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Blank page when using natural table.

2013-05-04 Thread luigi scarso
On Sat, May 4, 2013 at 6:18 PM, john Culleton j...@wexfordpress.com wrote:

 this is an annoyance rather than a deal breaker, but why does
 this file generate a blank page numbered one and then the table?

 -
 \setuppapersize[letter]
 \setuplayout{margin=0.5in,topspace=0.5in}
 \starttext
 \startstandardmakeup[doublesided=no]
 \bTABLE
\setupTABLE[frame=on]
 \bTR
 \bTD foo \eTD
 \eTR
  \eTABLE
 \stopstandardmakeup
 \stoptext


\setuppapersize[letter]
\setuplayout[margin=0.5in,topspace=0.5in]
\starttext
\startstandardmakeup[doublesided=no]
\bTABLE
   \setupTABLE[frame=on]
\bTR
\bTD foo \eTD
\eTR
 \eTABLE
\stopstandardmakeup
\stoptext

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] extra line after switchtobodyfont

2013-05-04 Thread Wolfgang Schuster

Am 04.05.2013 um 09:21 schrieb Aditya Mahajan adit...@umich.edu:

 On 2013-05-03, at 7:36 PM, Meer, H. van der h.vanderm...@uva.nl wrote:
 
 Seems finally solved (sigh). I cleaned out all files loading typescripts on 
 the fly. 
 - typescript macros ending in ] at the end of a line have now ]% at the end 
 of the line
 - empty lines have been removed for clarity
 - all files now have \endinput at the end.
 
 The files changed fit in a 54KB zip and I can send them if Hans/Wolfgang/.. 
 wants to incorporate them in the next beta.
 
 I haven't followed this thread in detail, but an alternative is to redefine 
 \starttypescript etc. to use a different catcode regime so that new lines and 
 spaces are ignores (similar to \starttexdefinition, etc)


A better method is to ignore the endlinechar when typescript files are loaded.

\newcount\savedendlinechar

\starttext

Line 1\crlf
\savedendlinechar\endlinechar \endlinechar\minusone
\switchtobodyfont[pagella]
\endlinechar\savedendlinechar
Line 2

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Alternative rendering of some TOC levels

2013-05-04 Thread Lukáš Procházka

On Sat, 04 May 2013 09:31:45 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:



Am 03.05.2013 um 16:27 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:


Hello,

how to change the way (alternative) how a particular level - e.g. sections - 
are rendered in TOC?

I tried:


\setupcombinedlist
 [content]
 [alternative=c]

\setuplist
 [section]
 [alternative=b]

%\setupcombinedlist
%  [content]
%  [section]
%  [alternative=b]

\starttext
 \placecontent

 \chapter{Ch}
   \section{Sec}
 \subsection{SSec}
   \input knuth
\stoptext


This should change the alternative for section to be b (i.e. page numbers without filling 
dots), whilst the default look should be alternative c (i.e. dots and page numbers).


When you use \setupcombinedlist to change the alternative values this applies 
to all levels and individual settings are ignored.

The global setup can be better done with \setuplist[alternative=c].

Wolfgang


... OK, thanks for explanation.

Best regards,

Lukas


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] [***SPAM***] heading in margin - strange extra vertical spaces

2013-05-04 Thread Zenlima
Hi,

I want to display the lowest heading in the outer margin. But as soon
the simple text becomes a heading, a strange extra line appears on top
of the margin. 

In my minimum example below the first paragraph shows how it should look
like in the pdf-file; the second paragraph is with a heading in the
margin. 

Can anyone tell me, 

a) how to get rid of the unwanted extra vertical space? 

b) Why is the line-break in the margin of the second paragraph
different than above?

Thanks,
H.

--8---

\definesection[section-8]
\definehead[myheader][][number=no,before=,style=\bf,aligntitle=yes,section=section-8]

\starttext

\inouter{Hasselt makes headlines}
\input tufte

\inouter{\myheader{Hasselt makes headlines}}
\input tufte

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [***SPAM***] heading in margin - strange extra vertical spaces

2013-05-04 Thread Marco Patzer
On 2013–05–04 Zenlima wrote:

 I want to display the lowest heading in the outer margin. But as soon
 the simple text becomes a heading, a strange extra line appears on top
 of the margin. 
 
 In my minimum example below the first paragraph shows how it should look
 like in the pdf-file; the second paragraph is with a heading in the
 margin. 
 
 Can anyone tell me, 
 
   a) how to get rid of the unwanted extra vertical space? 

You can use a custom headalternative setup:

\definesection [section-8]

\definehead
  [myheader] []
  [alternative=myheader,
   section=section-8]

\defineheadalternative
  [myheader]
  [alternative=horizontal,
   renderingsetup=setup:myheader]

\startsetups [setup:myheader]
  \inouter{\headtextcontent}
\stopsetups

\starttext
  \inouter{Hasselt makes headlines}
  \input tufte

  \myheader{Hasselt makes headlines}
  \input tufte
\stoptext

   b) Why is the line-break in the margin of the second paragraph
   different than above?

The margin box itself is positioned correctly, but I have no clue
where the empty line comes from. You can visualise the box with:

  \setupmarginframed [inouter] [frame=on]


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___