Re: [NTG-context] Layer vs. overlay

2013-01-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Sat, 12 Jan 2013 19:11:47 +0100, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


Move \definelayer and \setupbackgrounds *before* \startTEXpage because the 
environment creates a local group and you background setup is lost.


... Thanks for the hint - here's my next trial.

It should write BEFORE to tho top right corner of the page.


\setupbodyfont[30pt]

\starttext
  A

  \bgroup
\definelayer[beforetext][width=\paperwidth,preset=righttop]

\setupbackgrounds
  [page]
  [background={foreground,beforetext}]

\startTEXpage
  \setlayer[beforetext]{\framed[width=2in]{BEFORE}}
  \externalfigure[cow][width=30cm]
\stopTEXpage
  \egroup

  Z
\stoptext


The problem now is the layer beforetext has width of the page in the moment 
is is defined - 21 cm.

But the layer is supposed to be used later inside \start/stop-TEXpage whose 
page size may be arbitrary, or better, the size will result from the content it 
will contain.

In my example - an image of 30 cm width is to define the page size.

And the text BEFORE is not put to the top right corner of the (30 cm) page 
(what I'd like to achieve) but to cca 2 thirds of these 30 cm (given by \pagewidth which 
was 21 cm at the moment of definition).

I would probably need a way to alter the layer size to the current content...

Or any other way to place something to the top right corner of the page from 
within \start/stop-TEXpage, where page size is not known in advance?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] index: distinguish entries by pagestyle

2013-01-15 Thread Andreas Mang

Am Jan 14, 2013 um 5:36 PM schrieb Philipp Gesang 
philipp.ges...@alumni.uni-heidelberg.de:

 ···date: 2013-01-14, Monday···from: Schmitz Thomas A.···
 
 
 On Jan 14, 2013, at 2:54 PM, Andreas Mang m...@imt.uni-luebeck.de wrote:
 
 Hi there,
 
 I got a question considering the registers. I'd like to distinguish between 
 the definition of some term and its appearance/use somewhere else (boldface 
 vs. normal font of page number for instance). The garden provides a 
 solution, which does not seem to work for me:
 
 %%%
 \setupregister[index][nb][pagestyle=bold]
 
 \starttext
 
 My \index[nb::dog]{dog}dog is a cat\index{cat}.
 
 \placeindex
 \stoptext
 %%%
 
 (modified from http://wiki.contextgarden.net/Registers).
 
 What I'd like to have is, that dog appears with a bold page number and that 
 cat doesn't.
 
 Your example produces the expected output with Mkii, and your code is OK, so 
 i assume this must be a bug in Mkiv. Hans?
 
 Hi Andreas and Thomas,
 
 this was reported a while back [0] but is still a “todo” in the
 source [1].
 
 [0] http://www.ntg.nl/pipermail/ntg-context/2011/059544.html
 [1] 
 http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/strc-reg.mkiv

Hi there,

Thomas  Philipp: Thanks a lot for looking into this.

In my opinion this is a very helpful feature, as it allows to differentiate 
between definition and use.

@Hans: May I humbly ask, if it is possible to fix this?! (it doesn't hurt to 
ask, I suppose ;) )

Cheers,
Andreas



___
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] Layer vs. overlay

2013-01-15 Thread Wolfgang Schuster

Am 15.01.2013 um 09:04 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz:

 On Sat, 12 Jan 2013 19:11:47 +0100, Wolfgang Schuster 
 wolfgang.schus...@gmail.com wrote:
 
 Move \definelayer and \setupbackgrounds *before* \startTEXpage because the 
 environment creates a local group and you background setup is lost.
 
 ... Thanks for the hint - here's my next trial.
 
 It should write BEFORE to tho top right corner of the page.
 
 
 \setupbodyfont[30pt]
 
 \starttext
  A
 
  \bgroup
\definelayer[beforetext][width=\paperwidth,preset=righttop]
 
\setupbackgrounds
  [page]
  [background={foreground,beforetext}]
 
\startTEXpage
  \setlayer[beforetext]{\framed[width=2in]{BEFORE}}
  \externalfigure[cow][width=30cm]
\stopTEXpage
  \egroup
 
  Z
 \stoptext
 
 
 The problem now is the layer beforetext has width of the page in the moment 
 is is defined - 21 cm.
 
 But the layer is supposed to be used later inside \start/stop-TEXpage whose 
 page size may be arbitrary, or better, the size will result from the content 
 it will contain.
 
 In my example - an image of 30 cm width is to define the page size.
 
 And the text BEFORE is not put to the top right corner of the (30 cm) page 
 (what I'd like to achieve) but to cca 2 thirds of these 30 cm (given by 
 \pagewidth which was 21 cm at the moment of definition).
 
 I would probably need a way to alter the layer size to the current content...
 
 Or any other way to place something to the top right corner of the page from 
 within \start/stop-TEXpage, where page size is not known in advance?

\setupbodyfont[30pt]

\starttext

A

\definelayer  [beforetext][width=\overlaywidth,height=\overlayheight]
\defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}]

\startsetups[beforetext]
  \setlayer[beforetext][preset=righttop]{\framed[width=2in]{BEFORE}}
\stopsetups

\startTEXpage[background={foreground,beforetext}]
  \externalfigure[cow][width=30cm]
\stopTEXpage

Z

\stoptext

A similar example is also on the wiki: 
http://wiki.contextgarden.net/Layers#Place_labels_on_pictures

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] Force a fixed number of lines between titles

2013-01-15 Thread H. Özoguz

Hi there,

I am setting with grids. Can I control the empty lines between a 
section-titel and a subsection-title?


\section{Blabla}
\subsection{Blup}

I want to have exactly x empty lines between them (zero should be 
allowed for x, too), how to force that?


Best Regards


___
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] Deactivating Grid-Setting for titles

2013-01-15 Thread H. Özoguz

Hi there,

I am setting with grids. Now in classical typographie not all 
text-elements have to be grid-setted, f.e. titles not.


How to deactivate gridsetting for titles? This is relevant, because 
titles and the distances between a title and the before and the after 
text ist very important for text-aesthetics.


F.e. if I have
++
Paragraph

\section{Blub}
\seubsection{blub1}

Nextparagraph
++

I want to deactivate grid-setting after the first paragraph and want to 
activate it with the beginning of the next. How to do that?


Best regards
Huseyin
___
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] Force a fixed number of lines between titles

2013-01-15 Thread Wolfgang Schuster

Am 15.01.2013 um 11:57 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi there,
 
 I am setting with grids. Can I control the empty lines between a 
 section-titel and a subsection-title?
 
 \section{Blabla}
 \subsection{Blup}
 
 I want to have exactly x empty lines between them (zero should be allowed for 
 x, too), how to force that?

\setuphed[section][after={\blank[NUMBER*line]}]

or

\setuphead[section][after={\blank[nowhite]}]

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] Deactivating Grid-Setting for titles

2013-01-15 Thread Wolfgang Schuster

Am 15.01.2013 um 12:01 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi there,
 
 I am setting with grids. Now in classical typographie not all text-elements 
 have to be grid-setted, f.e. titles not.
 
 How to deactivate gridsetting for titles? This is relevant, because titles 
 and the distances between a title and the before and the after text ist very 
 important for text-aesthetics.
 
 F.e. if I have
 ++
 Paragraph
 
 \section{Blub}
 \seubsection{blub1}
 
 Nextparagraph
 ++
 
 I want to deactivate grid-setting after the first paragraph and want to 
 activate it with the beginning of the next. How to do that?


\setuphead[section,subsection,…][grid=no]

or

\setuphead[grid=no]

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] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-15 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks again.

On Tue, 15 Jan 2013 11:09:48 +0100, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


\setupbodyfont[30pt]

\starttext

A

\definelayer  [beforetext][width=\overlaywidth,height=\overlayheight]
\defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}]

\startsetups[beforetext]
  \setlayer[beforetext][preset=righttop]{\framed[width=2in]{BEFORE}}
\stopsetups

\startTEXpage[background={foreground,beforetext}]
  \externalfigure[cow][width=30cm]
\stopTEXpage

Z

\stoptext

A similar example is also on the wiki: 
http://wiki.contextgarden.net/Layers#Place_labels_on_pictures


Yes, I started altering it... But I wans't sure abou relation layers vs. 
overlays vs. setups.

I'd need also to add some dynamically generated content, something like 
\pagenumber in the wiki example, but to be generated by Lua.

So I extended your example:


\setupbodyfont[30pt]

\starttext
  A

  \definelayer  [beforetext][width=\overlaywidth,height=\overlayheight]
  \defineoverlay[beforetext][{\setups[beforetext]\tightlayer[beforetext]}]

  \startsetups[beforetext]

\setlayer[beforetext][preset=righttop]{\framed[width=2in]{\directlua{context(userdata.LPr.text)}}}
  \stopsetups

  \startTEXpage[background={foreground,beforetext}]
\startluacode
  userdata = userdata or {}
  userdata.LPr = userdata.LPr or {}
  userdata.LPr.text = BEF

  context.externalfigure({cow},{width=30cm})
\stopluacode
  \stopTEXpage

  Z
\stoptext


I believe I used a proper way; if not so, please correct bad places.

(Finally: I'd like to achieve a Lua function which will copy all pages of a .pdf file, keeping size 
of each page, and adding a customizable string with page-in-the-pdf number (with default value 
page-i/n-pages), being placed to the right top corner of the i-th page. 
All to be provided by Lua.)

Thanks again.

Best regards,

Lukas


Wolfgang



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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/VIR***] Re: Layer vs. overlay

2013-01-15 Thread Aditya Mahajan

On Tue, 15 Jan 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

(Finally: I'd like to achieve a Lua function which will copy all pages of a 
.pdf file, keeping size of each page, and adding a customizable string with 
page-in-the-pdf number (with default value page-i/n-pages), being 
placed to the right top corner of the i-th page. All to be provided by Lua.)


A few years ago I wrote a module that, amongst other things, did this. 
(The mail purpose of the module was to cut 2 column journal papers to one 
column PDF so that they are easy to read on an eink reader. I haven't used 
this in a while, so it may not work out of the box).


https://github.com/adityam/cut-n-paste/blob/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex

In this case, I used a MetaPost overylay to draw the page number (search 
for cnp:text). The user could manipulate the location of the page number 
by using the location key (which had to be a valid Metapost pair).


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] index: distinguish entries by pagestyle

2013-01-15 Thread Robert Blackstone

On 15 Jan 2013, at 10:08 ,  Andreas Mang m...@imt.uni-luebeck.de wrote
 
 In my opinion this is a very helpful feature, as it allows to differentiate 
 between definition and use.
 
 @Hans: May I humbly ask, if it is possible to fix this?! (it doesn't hurt to 
 ask, I suppose ;) )
 
 Cheers,
 Andreas
 +1 !!
Best regards,
Robert Blackstone
___
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] buffers (append)

2013-01-15 Thread Sietse Brouwer
Hi Alan,

  In addition to \startbuffer \stopbuffer
  it would be nice to have \startappendbuffer \stopappendbuffer.
 
  I see that the lua function buffer.append() exists but I have not
  worked-out how to add this functionality cleanly as conTeXt macros.

Here you go!

% We want to join appended pieces with a newline
% but '\n' is a bit rotten to pass inside \ctxlua
% so we simply prepare the appending function inside \startluacode, instead
\startluacode
userdata = userdata or { }
function userdata.addTempToBuffer(buffername)
buffers.append(
buffername,
'\n' .. buffers.getcontent('APPENDTEMP')
)
end
\stopluacode

\def\startappendbuffer[#1]%
  {% 1: create a \stopappendbuffer that appends APPENDTEMP to the buffer #1
   \def\stopappendbuffer%
  {\ctxlua{userdata.addTempToBuffer('#1')}}
   % 2: write the buffer to APPENDTEMP instead of overwriting buffer #1
   % then addTempToBuffer will take care of the appending.
   \dostartbuffer[APPENDTEMP][startappendbuffer][stopappendbuffer]}


%%% --- And here is an example --- %%%
%%% --- With my respects to Dorothy L. Sayers --- %%%


\setuplayout[backspace=6cm, leftmargin=5cm, width=11cm]
\showframe

\starttext

\startbuffer[x]
\inmargin{Harriet Vane}
Here then at home, by no more storms distrest,
Folding laborious hands we sit, wings furled;
Here in close perfume lies the rose-leaf curled,
Here the sun stands and knows not east nor west,
Here no tide runs; we have come, last and best,
From the wide zone through dizzying circles hurled,
To that still centre where the spinning world
Sleeps on its axis, to the heart of rest.
\stopbuffer

\startlines
\getbuffer[x]
\stoplines

--

\startappendbuffer[x]

\inmargin{Lord Peter Wimsey}
Lay on thy whips, O Love, that we upright,
Poised on the perilous point, in no lax bed
May sleep, as tension at the verberant core
Of music sleeps; for, if thou spare to smite,
Staggering, we stoop, stooping, fall dumb and dead,
And, dying so, sleep our sweet sleep no more.
\stopappendbuffer

\startlines
\getbuffer[x]
\stoplines

--

\typebuffer[x]

\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] ntg-context Digest, Vol 103, Issue 43

2013-01-15 Thread H. Özoguz

Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:

\setuphed[section][after={\blank[NUMBER*line]}]

or

\setuphead[section][after={\blank[nowhite]}]

Wolfgang

Hi Wolfgang,

that does not work here.

My minexample is:

\setuplayout[grid=yes]

\showgrid

\setuphead[section][after={\blank[1*line]}]

\starttext

Bli bla blu. Trallalalala.

\section{First section}

\subsection{First subsection}

Blublablubtrallalala.

\stoptext


Between First section and First subsection you see 4 lines. But it 
should be only one line according to your suggestion. Is that a bug, a 
version issue, or did I something wrong?



Regards
Huseyin


___
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] ntg-context Digest, Vol 103, Issue 43

2013-01-15 Thread Wolfgang Schuster

Am 15.01.2013 um 15:54 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:
 \setuphed[section][after={\blank[NUMBER*line]}]
 
 or
 
 \setuphead[section][after={\blank[nowhite]}]
 
 Wolfgang
 Hi Wolfgang,
 
 that does not work here.
 
 My minexample is:
 
 \setuplayout[grid=yes]
 
 \showgrid
 
 \setuphead[section][after={\blank[1*line]}]
 
 \starttext
 
 Bli bla blu. Trallalalala.
 
 \section{First section}
 
 \subsection{First subsection}
 
 Blublablubtrallalala.
 
 \stoptext
 
 Between First section and First subsection you see 4 lines. But it should 
 be only one line according to your suggestion. Is that a bug, a version 
 issue, or did I something wrong?


Dunno, looks like a unwanted side effect of grid mode.

\setuplayout[grid=yes]

\showgrid

\setuphead[section,subsection][grid=no,before=,after=]

\starttext

Before

\section{Section}

\subsection{Subsection}

After

\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] [***Spam/VIR***] Re: Layer vs. overlay

2013-01-15 Thread Philipp Gesang
···date: 2013-01-15, Tuesday···from: Aditya Mahajan···

 On Tue, 15 Jan 2013, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
 
 (Finally: I'd like to achieve a Lua function which will copy all
 pages of a .pdf file, keeping size of each page, and adding a
 customizable string with page-in-the-pdf number (with default
 value page-i/n-pages), being placed to the right top corner
 of the i-th page. All to be provided by Lua.)
 
 A few years ago I wrote a module that, amongst other things, did
 this. (The mail purpose of the module was to cut 2 column journal
 papers to one column PDF so that they are easy to read on an eink
 reader. I haven't used this in a while, so it may not work out of
 the box).
 
 https://github.com/adityam/cut-n-paste/blob/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex

It works reliably with recent versions. I use it quite a lot atm
for a project that requires compiling several individual
documents into larger ones and it has never failed me so far.
Thanks, btw, this saves some work!

Regards
Philipp



pgpWRoNqSGQg8.pgp
Description: PGP 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
___

Re: [NTG-context] getnameinfo

2013-01-15 Thread Wolfgang Werners-Lucchini
 The Mojca's team of binary magicians boils down to a certain Japanese
 physicist when it comes down to Windows. You would have to ask him.

Would you please tell me the name and the email address of this 
physicist?

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

2013-01-15 Thread Mojca Miklavec
On Tue, Jan 15, 2013 at 5:44 PM, Wolfgang Werners-Lucchini wrote:
 The Mojca's team of binary magicians boils down to a certain Japanese
 physicist when it comes down to Windows. You would have to ask him.

 Would you please tell me the name and the email address of this
 physicist?

Akira Kakuto is doing an amazing job by building the binaries for
windows, see http://w32tex.org. (The rest goes off-list.)

Mojca
___
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] ntg-context Digest, Vol 103, Issue 43

2013-01-15 Thread Bill Meahan

On 01/15/2013 11:07 AM, Wolfgang Schuster wrote:

Am 15.01.2013 um 15:54 schrieb H. Özoguz h.oezo...@mmnetz.de:


Am 15.01.2013 14:41, schrieb ntg-context-requ...@ntg.nl:

\setuphed[section][after={\blank[NUMBER*line]}]

or

\setuphead[section][after={\blank[nowhite]}]

Wolfgang

Hi Wolfgang,

that does not work here.

My minexample is:

\setuplayout[grid=yes]

\showgrid

\setuphead[section][after={\blank[1*line]}]

\starttext

Bli bla blu. Trallalalala.

\section{First section}

\subsection{First subsection}

Blublablubtrallalala.

\stoptext

Between First section and First subsection you see 4 lines. But it should 
be only one line according to your suggestion. Is that a bug, a version issue, or did I something 
wrong?


Dunno, looks like a unwanted side effect of grid mode.




FYI:

I have had similar problems with the grid. I set a portion of my book in 
a different typeface to simulate a hand-written letter. With the grid 
on, the lines in the alternate typeface are spaced quite widely (double 
space?). It seems to be related to the size or x-height of the 
alternate font. If different than the size of the body font, things go 
awry. If I use something like italics instead of a different typeface, 
though, no problems are seen.


--
Bill Meahan
Westland, Michigan USA

___
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] Lettrine not Working as Expected

2013-01-15 Thread Malte Stien
Hello everyone,

I have been trying the lettrine module and have come across some unexpected 
behaviour. I have been following the documentation found here

  
http://modules.contextgarden.net/dl/t-lettrine/doc/context/third/lettrine/lettrine-doc.pdf

and have proceeded to make a minimal example:

  \usemodule[lettrine]

  \starttext
  \lettrine[Lines=3]{T}{his is a test} \input knuth
  \stoptext

Unfortunately the output is not quite what (I think) it should be. It appears 
that the first line is rendered as expected, but that it is followed by a 
vertical gap---an extraordinary line spacing if you will---that places the 
second line all the way beneath the 'T', where the forth line would be 
expected. However, the second and third line are indented the way you would 
expect, they are just two lines further down as they should.

As this may be hard to express, I have attached a small PDF with the result of 
the above code.

Thank you,
Malte.



test.pdf
Description: Adobe PDF document
___
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] Lettrine not Working as Expected

2013-01-15 Thread Aditya Mahajan

On Wed, 16 Jan 2013, Malte Stien wrote:


Hello everyone,

I have been trying the lettrine module and have come across some unexpected 
behaviour. I have been following the documentation found here

 
http://modules.contextgarden.net/dl/t-lettrine/doc/context/third/lettrine/lettrine-doc.pdf

and have proceeded to make a minimal example:

 \usemodule[lettrine]

 \starttext
 \lettrine[Lines=3]{T}{his is a test} \input knuth
 \stoptext

Unfortunately the output is not quite what (I think) it should be. It appears 
that the first line is rendered as expected, but that it is followed by a 
vertical gap---an extraordinary line spacing if you will---that places the 
second line all the way beneath the 'T', where the forth line would be 
expected. However, the second and third line are indented the way you would 
expect, they are just two lines further down as they should.

As this may be hard to express, I have attached a small PDF with the result of 
the above code.


If you don't need the fancier features of letterine module, you may just 
use \placeinitial.


http://wiki.contextgarden.net/Initials

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

2013-01-15 Thread Mojca Miklavec
On Fri, Jan 11, 2013 at 4:04 PM, Wolfgang Werners-Lucchini wrote:
 I have to update LuaTex on a win2k machine. But I get
 two errors while running mtxrun.exe and texlua.exe

I'm forwarding the answer:

 I know problems, but I have given up to support Windows 2000
 in LuaTeX 0.74.0 or later, and LuaJITTeX.
 XeTeX is still running on W2K, but it is quite probable that
 I also give up to support it. The officieal ICU 50.1 does not
 run on W2K, and I applied my patch, since I found a solution.
 Very sorry Windows 2000 users.

 Thanks,
 Akira
___
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
___