Re: [NTG-context] unwanted head behavior

2016-04-06 Thread Zhichu Chen
If I understand correctly, the "continue=yes" key prevents a new page generated by a lower-level structure, e.g., section, following a higher-level structure, e.g., chapter. Then why the checking is so complex in strc-sec.mkiv: == \def\strc_sectioning_handle_page

Re: [NTG-context] unwanted head behavior

2016-04-06 Thread Zhichu Chen
Hi, I found the empty line is due to the definition of \strc_rendering_place_head_empty in strc-ren.mkiv: \unexpanded\def\strc_rendering_place_head_empty {\hbox \headreferenceattributes {\getheadsyncs}} The definition in strc-sec.mkiv works fine (put

Re: [NTG-context] Microtypography in ConTeXt

2016-04-06 Thread Hans Hagen
On 4/6/2016 9:03 PM, Jan Tosovsky wrote: the other things ... well, they are up to the macro package Indeed, you most likely figured the problem. They are mentioning luatex, while those features require ConTeXt 'preprocessing'. i didn't read that document but i assume it refers to latex whi

Re: [NTG-context] Microtypography in ConTeXt

2016-04-06 Thread Jan Tosovsky
On 2016-04-06 Hans Hagen wrote: > On 4/5/2016 11:51 PM, Jan Tosovsky wrote: > > On 2016-04-05 Hans Hagen wrote: > >> On 4/5/2016 10:55 PM, Jan Tosovsky wrote: > >>> > >>> according to http://texdoc.net/texmf- > >>> dist/doc/latex/microtype/microtype.pdf > >>> pdfTeX offers fine tuning of: > >>> (1)

Re: [NTG-context] How to center \framed on a position?

2016-04-06 Thread Pablo Rodriguez
On 04/06/2016 01:30 PM, Procházka Lukáš Ing. wrote: > Hello, > > how to center vertically and horizontally a \framed text at the layer origin? > > I'm not able to figure it out... > [...] > And - where has the text "Hello, world!" disappeared? Hi Lukáš, here you have the code: \setuplayout

[NTG-context] How to center \framed on a position?

2016-04-06 Thread Procházka Lukáš Ing .
Hello, how to center vertically and horizontally a \framed text at the layer origin? I'm not able to figure it out... Here's my code: \setuplayout[page] \definelayer[mybg] \setlayer[mybg] [x=\dimexpr.5\paperwidth\relax,y=\dimexpr.5\paperheight\relax,] {\framed [frame=on,offset=

Re: [NTG-context] Consistent random number generation

2016-04-06 Thread Norbert Melzer
In programming usually a (non-crypto-safe) RNG returns the same sequence everytime it is started with the same seed. Therefore, you often seed with the current time if you do not want to have reproducable sequences and use a specific seed when you want reproducable results across certain runs. The

[NTG-context] combining itemize and starttabulate

2016-04-06 Thread Jan Willem Flamma
Dear members, The following combination of itemize and starttabulate is numbered from 'd. to f.' instead of from 'a. to c.' \starttext \startitemize[a] \starttabulate[|l|p|] \item \NC column1 \NC column2 \NC \NR \item \NC column1 \NC column2 \NC \NR \item \NC column1 \NC column2 \NC \NR

Re: [NTG-context] Square pens and dash pattern

2016-04-06 Thread luigi scarso
On Wed, Apr 6, 2016 at 9:52 AM, Hans Hagen wrote: > On 4/6/2016 1:44 AM, Aditya Mahajan wrote: > >> Hi, >> >> There appears to be a metapost bug with square pens and dash patterns: >> >> \starttext >> >> \startMPcode >> pickup pencircle scaled 1bp; >> drawarrow origin -- (5cm, 4cm) dash

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Hans Hagen
On 4/6/2016 9:04 AM, Thomas A. Schmitz wrote: On 04/06/2016 08:57 AM, Wolfgang Schuster wrote: The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [german] \stopsetups \setupnote[footnote][setups=footnote] Thank you, Wolfgang, this w

Re: [NTG-context] Square pens and dash pattern

2016-04-06 Thread Hans Hagen
On 4/6/2016 1:44 AM, Aditya Mahajan wrote: Hi, There appears to be a metapost bug with square pens and dash patterns: \starttext \startMPcode pickup pencircle scaled 1bp; drawarrow origin -- (5cm, 4cm) dashed evenly; pickup pensquare scaled 1bp; drawarrow origin -- (5cm,-4c

Re: [NTG-context] Microtypography in ConTeXt

2016-04-06 Thread Hans Hagen
On 4/6/2016 6:48 AM, Henning Hraban Ramm wrote: Am 2016-04-06 um 03:51 schrieb Jan Tosovsky : Note that character protrusion requires pdfTeX (version 0.14f or later), LuaTeX, or XeTeX (at least version 0.9997). Font expansion works with pdfTeX (version 1.20 for automatic expansion) or LuaTeX

Re: [NTG-context] Microtypography in ConTeXt

2016-04-06 Thread Hans Hagen
On 4/5/2016 11:51 PM, Jan Tosovsky wrote: On 2016-04-05 Hans Hagen wrote: On 4/5/2016 10:55 PM, Jan Tosovsky wrote: according to http://texdoc.net/texmf- dist/doc/latex/microtype/microtype.pdf pdfTeX offers fine tuning of: (1) Character protrusion (2) Font expansion (3) Tracking (4) Additional

Re: [NTG-context] \replaceword in footnotes

2016-04-06 Thread Thomas A. Schmitz
On 04/06/2016 08:57 AM, Wolfgang Schuster wrote: The feature is disabled in footnotes and you have to reenable it: \startsetups[footnote] \setreplacements [german] \stopsetups \setupnote[footnote][setups=footnote] Thank you, Wolfgang, this works indeed! Thomas __