[NTG-context] page number with brief centered line above

2020-05-13 Thread jbf

Hi list,

I am trying to achieve a layout where there is a brief line above the 
bottom-centered page number (of a double-sided document). I am able to 
achieve the centered bottom-located page number easily and obviously 
enough with:


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfooter
  [style=bold]

And I was able to achieve a result with a short line above where the 
page number should be - but by adopting the solution below I have now 
lost the page number.


\setuppagenumbering
  [alternative=doublesided,location={footer,middle}]
\setupfootertexts[{\framed[frame=off,topframe=on,width=.5\textwidth]}]

So then I thought that having left out any reference to page numbers I 
had better put it in, so I added [pagenumber] to the above, but I ended 
up with two page numbers, one centered, the other to the inner or outer 
margins (depending on recto/verso), and the line was likewise to the 
right or left of the centred number. So clearly not what I want.


Maybe the solution lies with some combination of the above I haven't 
thought of, or maybe there is another solution altogether. Any thoughts?


Julian

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Is it possible to make xml.load a bit more 'verbose' when it encounters errors?

2020-05-13 Thread Gerben Wierda
I am loading an xml.file. I sometimes make mistakes editing that file and then 
xml.load creates a string that contains

invalid xml file - parsed text

At that point I check my file and sometimes (like now) I cannot find the error.

Is there a way to make xml.load somewhat more verbose about where it encounters 
the error? 

G___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___