Re: [NTG-context] setupbars

2012-07-09 Thread Meer, H. van der
There is still an issue here.

\setupbars[unit=mm,rulethickness=1]
AB\startbar[underbar]CD\stopbar EF\crlf
\setupbars[unit=ex,rulethickness=1]
AB\startbar[underbar]CD\stopbar EF\crlf
\setupbars[unit=pt,rulethickness=1]
AB\startbar[underbar]CD\stopbar EF\crlf

The first and third setup do not give an underbar, the second does.
Question: why does ex qualify as a dimension unit but pt and mm do not? 
Sounds strange.

If I want an underbar exactly 1mm or 3pt's thick, why isn't that made possible? 
Doing the math myself is no option, becaus ex will not be known beforehand.

Hans van der Meer


On 8 jul. 2012, at 23:40, Meer, H. van der wrote:

Thansk,

I see. \setupbars doesn't give a hit on ConTeXt-wiki, so I couldn't find this.
Still I dare say, it is a pity that [rulethickness=] gets a different meaning 
here than elsewhere. I would like to ask to reconsider, because I strongly 
believe in consistency in the API (though I am ready to admit that it is not 
easy to maintain and confess guilty myself at more than one occasion). That is 
either change all rulethickness's everywhere to this scheme or otherwise. Or 
did this already happened and did I miss that? And of course, the easiest 
solution would be if the code itself could sort out the difference between 
having been given a fraction or a length.

Hans van der Meer



On 8 jul. 2012, at 22:44, Wolfgang Schuster wrote:


Am 08.07.2012 um 22:24 schrieb Meer, H. van der:

This gives an error:

\starttext
\setupbars[rulethickness=4pt]
\stoptext

! LuaTeX error main ctx instance:1: malformed number near '4pt'.
ConTeXt  ver: 2012.07.04 23:48 MKIV  fmt: 2012.7.6  int: english/english

Elsewhere this is ok, as for example in: \framed[rulethickness=4pt]{}
Strangely in node-rul.mkiv I see: \c!rulethickness=2.5
whereas in pack-rul.mkiv:  \c!rulethickness=\linewidth

I am inclined to spot an error here, or at least an inconsistency in the API.


\setupbars[rulethickness=0.5]

\starttext

\setupbars[unit=ex]\underbar{ex}

\setupbars[unit=em]\underbar{em}

\stoptext

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

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

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

maillist : ntg-context@ntg.nlmailto: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
___



rule.pdf
Description: rule.pdf
___
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] setupbars

2012-07-09 Thread Wolfgang Schuster

Am 09.07.2012 um 09:09 schrieb Meer, H. van der:

 There is still an issue here.
 
 \setupbars[unit=mm,rulethickness=1]
 AB\startbar[underbar]CD\stopbar EF\crlf
 \setupbars[unit=ex,rulethickness=1]
 AB\startbar[underbar]CD\stopbar EF\crlf
 \setupbars[unit=pt,rulethickness=1]
 AB\startbar[underbar]CD\stopbar EF\crlf
 
 The first and third setup do not give an underbar, the second does.
 Question: why does ex qualify as a dimension unit but pt and mm do not? 
 Sounds strange.
 
 If I want an underbar exactly 1mm or 3pt's thick, why isn't that made 
 possible? Doing the math myself is no option, becaus ex will not be known 
 beforehand.

The underlying Lua code accepts only “ex” and “em” as valid options for the 
“unit” key but I would also vote to accept either “pt”, “mm” etc. as unit value 
or to allow “rulethickness=…pt”.

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

2012-07-09 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Mon, 09 Jul 2012 09:26:51 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


to allow “rulethickness=…pt”.


+1

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] Page Backgrounds

2012-07-09 Thread Hans Hagen

On 9-7-2012 04:47, Kip Warner wrote:

Hey list,

On the cover page of my book I'd like just an image displayed and
another image used as the background for every other page in the book.
So I put this in my environment,

 % Cover image...
 \definelayer
 [CoverImage]
 [x=0mm, y=0mm,
  \paperwidth,
  \paperheight]
 \setupbackgrounds[page][background=CoverImage]

 \setlayer
 [CoverImage]   % name of the layer
 {\externalfigure
 [Makeup/Images/Cover.jpg]
 [align=center,
  \paperwidth,
  \paperheight]}  % the actual contents of the layer

 % Regular background image...
 \definelayer
 [BackgroundImage]
 [x=0mm, y=0mm,
  \paperwidth,
  \paperheight,
  repeat=yes]

 \setlayer
 [BackgroundImage]  % name of the layer
 {\externalfigure
 [Makeup/Images/Background.png]
 [align=center,
  \paperwidth,
  \paperheight]}  % the actual contents of the layer


less code:

\defineoverlay
  [BackgroundImage]
  [\overlayfigure{Makeup/Images/Background.png}]


, the following in the book's first page,

 \setupbackgrounds[page][background=CoverImage]

, and the following on second page,

 \setupbackgrounds[page][background=BackgroundImage]

.. But this does not work properly. What ends up happening is the cover
image is displayed correctly, but every page after that just has a blank
white background.


state=repeat

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
___


[NTG-context] extra \fi

2012-07-09 Thread Meer, H. van der
Is the following a known issue with this beta? When a float block moves the 
error appears:
ConTeXt  ver: 2012.07.04 23:48 MKIV  fmt: 2012.7.6  int: english/english

floatblocks  1 placed
floatblocks  1 saved
pagesflushing realpage 5, userpage 1
floatblocks  1 moved
floatblocks  2 moved
! Extra \fi.

A short example is difficult to procure, but adding one line of text, inducing 
the float to move, triggers the error.

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] Incorrect spacing in math

2012-07-09 Thread Otared Kavian
Hi Hans,

In mkiv, the spacing of an index in the integral sign, in displayed math, is 
incorrect since a few weeks: for instance 
\starttext
\startformula
\int_{\Omega}f(x)dx = \int_{0}^\infty g(t)dt
\stopformula
\stoptext
gives an Omega which is too far away from the integral sign. 
(Using ConTeXt  ver: 2012.07.08 20:02 MKIV  fmt: 2012.7.8  int: 
english/english).
In mkii there is no bug in this regard.

Is there a quick fix for this? In some of my documents I must use mkiv and the 
appearance of this bug is a little bit annoying…
(I already reported this bug in June).

Best regards: OK



math-integral-mkiv-bug.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
___

[NTG-context] glyph outlines

2012-07-09 Thread Jan Kula

Hello to everybody,

how to draw character outlines for plotter to cut the letters out of the 
plate in mkiv? mmakempy.pdf is over 10 years old, so the situation could 
change since then.


Anyway, even if I stick to the above method, the minimal example

\starttext
  \startMPcode
graphictext Test;
  \stopMPcode
\stoptext

doesn't work as expected in mkiv. *.mpy file is empty.

In mkii error is issued during the run. Ignoring it finally produces the 
outlines, so it seems, everything needed is available (gs, pdftops, 
pstoedit). Anyway, mkiv way is preferred.


Thanks for the help,

Jano

___
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] Page Backgrounds

2012-07-09 Thread Wolfgang Schuster

Am 09.07.2012 um 04:47 schrieb Kip Warner:

 Hey list,
 
 On the cover page of my book I'd like just an image displayed and
 another image used as the background for every other page in the book.
 So I put this in my environment,
 
% Cover image...
\definelayer
[CoverImage]
[x=0mm, y=0mm,
 \paperwidth, 
 \paperheight]
\setupbackgrounds[page][background=CoverImage]
 
\setlayer
[CoverImage]   % name of the layer
{\externalfigure
[Makeup/Images/Cover.jpg]
[align=center,
 \paperwidth,
 \paperheight]}  % the actual contents of the layer
 
% Regular background image...
\definelayer
[BackgroundImage]
[x=0mm, y=0mm,
 \paperwidth, 
 \paperheight,
 repeat=yes]
 
\setlayer
[BackgroundImage]  % name of the layer
{\externalfigure
[Makeup/Images/Background.png]
[align=center,
 \paperwidth,
 \paperheight]}  % the actual contents of the layer
 
 , the following in the book's first page,
 
\setupbackgrounds[page][background=CoverImage]
 
 , and the following on second page,
 
\setupbackgrounds[page][background=BackgroundImage]
 
 . But this does not work properly. What ends up happening is the cover
 image is displayed correctly, but every page after that just has a blank
 white background.

\setupexternalfigures[directory=Makeup/Images]

\defineoverlay
  [backgroundimage]
  [{\ifnum\rawcountervalue[userpage]=1\relax
  \overlayfigure{Cover}%
\else
  \overlayfigure{Background}%
\fi}]

\setupbackgrounds[page][background=backgroundimage]

\starttext
\dorecurse{4}{\input knuth\page}
\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
___


[NTG-context] table of contents

2012-07-09 Thread Meer, H. van der
Is there a simple manner to restrict the table of contents to chapter and 
section, excluding subsections, subsubsections?

Now I use (and get all)

\startfrontmatter% the table of contents
  \setuppagenumber[number=1,numberconversion=romannumerals]
  \completecontent
\stopfrontmatter

I tried  \completecontent[criterium={chapter,section}] bat that doesn't work.
Could not find it on the wiki, but I might have missed the right search term.

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
___


Re: [NTG-context] table of contents

2012-07-09 Thread Wolfgang Schuster

Am 09.07.2012 um 11:43 schrieb Meer, H. van der:

 Is there a simple manner to restrict the table of contents to chapter and 
 section, excluding subsections, subsubsections?
 
 Now I use (and get all)
 
 \startfrontmatter% the table of contents
  \setuppagenumber[number=1,numberconversion=romannumerals]

You can put this setup in a sectionblockenvironment.

  \completecontent
 \stopfrontmatter
 
 I tried  \completecontent[criterium={chapter,section}] bat that doesn't work.
 Could not find it on the wiki, but I might have missed the right search term.


The list archive should contain dozens of answers to this question but here it 
is again.

\starttext

\title{Contents} % use \title{\headtext{content}} to get a language dependent 
title
\placelist[chapter,section]

…

\stoptext

or

\definecombinedlist[content][chapter,section]

\starttext

\completecontent

…

\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] table of contents

2012-07-09 Thread Wolfgang Schuster

Am 09.07.2012 um 11:54 schrieb Wolfgang Schuster:

 I tried  \completecontent[criterium={chapter,section}] bat that doesn't work.
 Could not find it on the wiki, but I might have missed the right search term.
 
 
 The list archive should contain dozens of answers to this question but here 
 it is again.
 
 \starttext
 
 \title{Contents} % use \title{\headtext{content}} to get a language dependent 
 title
 \placelist[chapter,section]
 
 …
 
 \stoptext
 
 or
 
 \definecombinedlist[content][chapter,section]
 
 \starttext
 
 \completecontent
 
 …
 
 \stoptext

There two additional ways with the new code.

\setupcombinedlist[content][list={chapter,section}]

\starttext

\completecontent

…

\stoptext

and

\starttext

\completecontent[list={chapter,section}]

…

\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] Incorrect spacing in math

2012-07-09 Thread Aditya Mahajan
On 2012-07-09, at 9:52 AM, Otared Kavian ota...@gmail.com wrote:

 Hi Hans,
 
 In mkiv, the spacing of an index in the integral sign, in displayed math, is 
 incorrect since a few weeks: for instance 
 \starttext
 \startformula
 \int_{\Omega}f(x)dx = \int_{0}^\infty g(t)dt
 \stopformula
 \stoptext
 gives an Omega which is too far away from the integral sign. 
 (Using ConTeXt  ver: 2012.07.08 20:02 MKIV  fmt: 2012.7.8  int: 
 english/english).
 In mkii there is no bug in this regard.
 
 Is there a quick fix for this? In some of my documents I must use mkiv and 
 the appearance of this bug is a little bit annoying…
 (I already reported this bug in June).
 

Does it help if you use an opentype math font? (Sorry but I do not have access 
to a Context installation right now)

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] table of contents

2012-07-09 Thread Aditya Mahajan

On 2012-07-09, at 11:54 AM, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:
 
 The list archive should contain dozens of answers to this question but here 
 it is again.

So someone needs to wikify these answers. 

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] Incorrect spacing in math

2012-07-09 Thread Otared Kavian
Hi Aditya,

Thanks for your attention: the spacing bug is there no matter the fonts one 
uses.
The bug appeared some three weeks ago, and the only turn around I have found so 
far is to use
\int_{\!\!\!\Omega}f(x)dx
instead of
\int_{\Omega}f(x)dx
but this is not a solution in a large file which has to be modified all over…
Interestingly the « inline math » does not suffer from th ebug, that is 
$\int_{\Omega}f(x)dx$ gives the expected result.

Best regards: OK

On 9 juil. 2012, at 13:23, Aditya Mahajan wrote:

 On 2012-07-09, at 9:52 AM, Otared Kavian ota...@gmail.com wrote:
 
 Hi Hans,
 
 In mkiv, the spacing of an index in the integral sign, in displayed math, is 
 incorrect since a few weeks: for instance 
 \starttext
 \startformula
 \int_{\Omega}f(x)dx = \int_{0}^\infty g(t)dt
 \stopformula
 \stoptext
 gives an Omega which is too far away from the integral sign. 
 (Using ConTeXt  ver: 2012.07.08 20:02 MKIV  fmt: 2012.7.8  int: 
 english/english).
 In mkii there is no bug in this regard.
 
 Is there a quick fix for this? In some of my documents I must use mkiv and 
 the appearance of this bug is a little bit annoying…
 (I already reported this bug in June).
 
 
 Does it help if you use an opentype math font? (Sorry but I do not have 
 access to a Context installation right now)
 
 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
 ___

___
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] Broken Nightly 2012.07.08 20:02 - unpredictable errors on blank lines

2012-07-09 Thread Prashanth

Hi,
I get mysterious error messages on blank lines or on lines that were 
completely innocuous a month ago. The error message I get is:
system   tex  error on line 315 in file 
proposal-context.context: Extra  ...


305 \bTR\bTDof  \eTD\bTD73  \eTD\eTR
306 \bTR\bTDon  \eTD\bTD71  \eTD\eTR
307 \bTR\bTDsay \eTD\bTD87  \eTD\eTR
308 \bTR\bTDto  \eTD\bTD86  \eTD\eTR
309 \bTR\bTDup  \eTD\bTD34  \eTD\eTR
310   \eTABLE
311 }
312
313   Comparing the accuracy of GMB tags of words against those 
generated by the CC parser (see \in{Table}[tab:tag-accuracy]) revealed 
some problematic words for the parser.
314   Specifically, other than PP attachments, it revealed faults in 
telling transitives and ditransitives apart.

315 
316
317   \chapter{Evaluation}
318   The evaluation of the output would be similar to the methods 
we use for analyzing parses. Given sentences that have specific features 
that result in wrong parses, my software will be able to generate the 
correct parse trees.

319
320   \completepublications[criterium=text]
321
322   %\showfontstrip
323   %\showbodyfont
324   \stopbodymatter
325 \stoptext


After trying to hunt down error messages on \startitemize[n] ... \item 
... in some completely unrelated segment of the same file, the error 
message (essentially, the same) moved to this line. All the citations 
and cross-references in the document are broken too, but I suppose 
that's because the compiler fails at line 315.


I'm sorry, no minimal example this time - I tried but I was unable to 
reproduce the problem in a minimal example. I have uploaded the entire 
set to https://rapidshare.com/files/3050234632/trial.tgz. I have 
included my build logs too.


Best regards,
Prash
___
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 \fi

2012-07-09 Thread Prashanth
Looks like this is what triggers an error in my document too. [Ref. 
Broken Nightly 2012.07.08 20:02 - unpredictable errors on blank lines]


Commenting out all floats got rid of the error.

On 09/07/12 09:50, Meer, H. van der wrote:

Is the following a known issue with this beta? When a float block moves the 
error appears:
ConTeXt  ver: 2012.07.04 23:48 MKIV  fmt: 2012.7.6  int: english/english

floatblocks  1 placed
floatblocks  1 saved
pagesflushing realpage 5, userpage 1
floatblocks  1 moved
floatblocks  2 moved
! Extra \fi.

A short example is difficult to procure, but adding one line of text, inducing 
the float to move, triggers the error.

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
___


___
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 \fi

2012-07-09 Thread Andreas Mang
Hi,

Same here. Interestingly, the minimal example

% start example
\starttext
\placefigure[top][ref:somefigure]{some 
caption}{\externalfigure[cow][width=0.5\makeupwidth]}
\stoptext
% stop example

works fine.

I have managed to reproduce the error on my machine (MAC OS X: ConTeXt  ver: 
2012.07.07 15:04 MKIV  fmt: 2012.7.8) by putting multiple \input knuths 
(note, that I had to put them exactly as given below; not introducing an empty 
line after \input knuth or fewer \input knuths in front, does not yield an 
error):

% start example
\starttext
\input knuth

\input knuth

\input knuth

\placefigure[top][ref:somefigure]{some 
caption}{\externalfigure[cow][width=0.5\makeupwidth]}

\input knuth

\input knuth

\stoptext
% stop example

Hope this helps.

Cheers,
Andreas

Error message:
Extra \fi.

\page_otr_triggered_output_routine ...routine \fi

output ...ut \page_otr_triggered_output_routine
  \relax \the \everyafterout...
l.11


Am Jul 9, 2012 um 5:08 PM schrieb Prashanth:

Looks like this is what triggers an error in my document too. [Ref. Broken 
Nightly 2012.07.08 20:02 - unpredictable errors on blank lines]

Commenting out all floats got rid of the error.

On 09/07/12 09:50, Meer, H. van der wrote:

Is the following a known issue with this beta? When a float block moves the 
error appears:
ConTeXt  ver: 2012.07.04 23:48 MKIV  fmt: 2012.7.6  int: english/english

floatblocks  1 placed
floatblocks  1 saved
pagesflushing realpage 5, userpage 1
floatblocks  1 moved
floatblocks  2 moved
! Extra \fi.

A short example is difficult to procure, but adding one line of text, inducing 
the float to move, triggers the error.

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.nlmailto:ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / 
http://tex.aanhet.nethttp://tex.aanhet.net/
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.nethttp://contextgarden.net/
___


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

maillist : ntg-context@ntg.nlmailto: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] setupbars

2012-07-09 Thread Bill Meahan
On Mon, 9 Jul 2012 09:26:51 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:


 
 The underlying Lua code accepts only “ex” and “em” as valid options
 for the “unit” key but I would also vote to accept either “pt”, “mm”
 etc. as unit value or to allow “rulethickness=…pt”.
 
 Wolfgang

It proposal has my vote!


-- 
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.
___
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] imposition broken again

2012-07-09 Thread Henning Hraban Ramm
With at least today’s and yesterday’s beta I can’t get no satisfaction  
WRT imposition.


Before, only 2UP was broken, and I got a workaround. Now, every schema  
that I tried doesn’t do anything.

Was there another syntax change?
Of course I ran context with --arrange


\setuppapersize [A7][A3,landscape]
\setuppagenumbering [alternative=doublesided,location=footer]
\setuplayout [margin=0pt,width=fit]
\setupbackgrounds [text][text][background=screen,backgroundscreen=0.7]
\setupcolors [state=start]
\setuplayout [location=middle,marking=on]
%\setuppaper[nx=4,ny=2]
\setuparranging [2UP] %[2*2*4,doublesided]

\def\Style{[2UP]} %{[2*2*4,doublesided]}


\startbuffer[Fakepage]
\strut
\blank[force]
\midaligned{\Style}
\vfill
\midaligned{This is page \recurselevel}
\vfill
\stopbuffer

\setupheadertexts[\CONTEXT]

\starttext
% \showframe
\dorecurse{16}{\getbuffer[Fakepage]\page}

\stoptext


Grüßlinge, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] imposition broken again

2012-07-09 Thread Henning Hraban Ramm


Am 2012-07-09 um 19:06 schrieb Henning Hraban Ramm:

With at least today’s and yesterday’s beta I can’t get no  
satisfaction WRT imposition.


Before, only 2UP was broken, and I got a workaround. Now, every  
schema that I tried doesn’t do anything.

Was there another syntax change?
Of course I ran context with --arrange


Sorry, I saw the thread modes + arranging by Thomas A. Schmitz just  
as I pressed send.

I guess the next beta will fix it, yes?

Greetlings, Hraban
___
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 \fi

2012-07-09 Thread Hans Hagen

On 9-7-2012 17:34, Andreas Mang wrote:


A short example is difficult to procure, but adding one line of text, inducing 
the float to move, triggers the error.



\ifcoditional = \ifconditional

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
___


[NTG-context] beta

2012-07-09 Thread Hans Hagen

Hi,

In the process of mkiv-ing a new beta has been uploaded. This time the 
rendering of sections has been dealt with. New is that one can use 
'setups' for rendering. This mechanism is still somewhat experimental 
(and might get improved) but the idea is given below:



\starttext

\section{test}

\unexpanded\def\whatever#1#2{[#1][#2]}

\setuphead[section][command=\whatever] % traditional

\section{test}

\defineheadplacement[whatever]#1#2{(#1)(#2)} % traditional

\setuphead[section][command=,alternative=whatever]

\section{test}

\defineheadalternative % new
  [whatever]
  [alternative=vertical,
   renderingsetup=whatever]

\startsetups[whatever]
/\headnumbercontent/\headtextcontent/
\stopsetups

\setuphead[section][command=,alternative=whatever]

\section{test}

\stoptext

There are some helpers. These fetch content:

\headnumbercontent \headtextcontent

These are dimensions:

\headwidth
\headtextwidth
\headnumberdistance
\headnumberwidth

This is for local spacing setup:

\headsetupspacing

These are conditionals

\headshownumber
\headisdisplay

Maybe these names will change. Setups are also used in constructions 
(the building blocks for descriptions, enumerations, notes etc) but 
there some more work is needed.


The code is somewhat faster, but that will probably go unnoticed unless 
one has documents with hundreds of heads.


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
___


[NTG-context] linenumbering

2012-07-09 Thread Thomas A. Schmitz
OK, here's another one. For the code, I must admit: 
http://www.alyssahiba.com/wp-content/uploads/2012/02/no-idea-what-im-doing-dog.jpg


I think it was the Wolfgang who helped me with this a couple of months 
ago. I want a start/stop pair that will take as an argument a key-value 
to set the beginning of the line numbering. So here's my example:


\def\startnumberedblockquote
  {\dosingleempty\dostartnumberedblockquote}

\def\dostartnumberedblockquote[#1]%
  {\getrawparameters[numberedblockquote][start=1,#1]%
   \blank[line]%
   \begingroup
   \setupindenting[no]%
   \setuplinenumbering[location=text]
   \startlinenumbering[width=1cm][\numberedblockquotestart]}

\def\stopnumberedblockquote
  {\stoplinenumbering
   \endgroup
   \blank[line]}

\starttext

\startnumberedblockquote[start=3]

\input knuth

\stopnumberedblockquote

\stoptext

This works with 2012.06.30 12:32, but not with 2012.07.07 15:04.

All best

Thomas
___
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] beta

2012-07-09 Thread Meer, H. van der
This new beta crashed here immidiately:
ConTeXt  ver: 2012.07.09 20:28 MKIV  fmt: 2012.7.9  int: english/english
metapost loading 'metafun': 
/Users/hans/TeX/context-new/tex/texmf-context/metapost/context/base/metafun.mpiv
structuresectioning   @ level 1 : 0 - \headtext {content}
! Extra \else.

system   tex  error on line 23 in file practicum.tex: Extra  ...

13 
14 \starttext
15 
16 \startstandardmakeup
17 \input front % the front page
18 \stopstandardmakeup
19 
20 \startfrontmatter% the table of contents
21  \setuppagenumber[number=1,numberconversion=romannumerals]
22  \completecontent
23   \stopfrontmatter
24 
25 \startbodymatter % the main body of the contents
26 \setuppagenumber[number=1,numberconversion=numbers]\resetpagenumber
27 \page[right]\input algemeen
28 \page[right]\input transpositie
29 \page[right]\input monoalfabeet
30 \page[right]\input polyalfabeet
31 \page[right]\input midway
32 \page[right]\input isomorfie
33 \page[right]\input kerckhoffs


\strc_sectioning_handle ...ioning_after_yes \else 
  \ifconditional \c_strc_sec...
\strc_sectioning_start_named_section_indeed ...#3}
  \headparameter \c!insidese...
to be read again 
   \strc_lists_combined_place 
\strc_lists_combined_complete ...s_combined_place 
  [#1][#2]\stopnamedsection 
to be read again 
   \stopfrontmatter 
l.23 \stopfrontmatter


Hans van der Meer



On 9 jul. 2012, at 20:38, Hans Hagen wrote:

 Hi,
 
 In the process of mkiv-ing a new beta has been uploaded. This time the 
 rendering of sections has been dealt with. New is that one can use 'setups' 
 for rendering. This mechanism is still somewhat experimental (and might get 
 improved) but the idea is given below:
 

___
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] beta

2012-07-09 Thread Hans Hagen

On 9-7-2012 20:59, Meer, H. van der wrote:

This new beta crashed here immidiately:


how new? keep in mind that the garden needs to sync as well

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

2012-07-09 Thread Philipp Gesang
···date: 2012-07-09, Monday···from: Hans Hagen···

 On 9-7-2012 20:59, Meer, H. van der wrote:
 This new beta crashed here immidiately:
 
 how new? keep in mind that the garden needs to sync as well

I can confirm this for 2012.07.09 20:28. Minimal example:

···
\setuphead [section] [ page=yes, header=sectiontext, ]
\definetext [sectiontext] [header] [foo] [bar]

\starttext
\startsection[title=Foo] \input dawkins \stopsection
\stoptext \endinput
···

But I can’t tell if this code requires a rewrite with the new
functionality.

Regards
Philipp





-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpaK2jiM6LpB.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] beta

2012-07-09 Thread Meer, H. van der
Your message was posted 20:38 this day.

The format told me:
ConTeXt  ver: 2012.07.09 20:28 MKIV  fmt: 2012.7.9  int: english/english

I therefore concluded this would be the newst version. Did you perhaps procure 
a new beta within that 10 minute interval? I would call that a close finish ;-)
I see and do another rush to the server now.

Hans van der Meer



On 9 jul. 2012, at 20:59, Meer, H. van der wrote:

ConTeXt  ver: 2012.07.09 20:28 MKIV  fmt: 2012.7.9  int: english/english

___
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] beta

2012-07-09 Thread Prashanth

Version 2012.07.09 20:28 seems to have fixed all my problems. Thank you!


On 09/07/12 21:30, Hans Hagen wrote:

On 9-7-2012 20:59, Meer, H. van der wrote:

This new beta crashed here immidiately:


how new? keep in mind that the garden needs to sync as well

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
___ 



___
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] linenumbering

2012-07-09 Thread Hans Hagen

On 9-7-2012 20:50, Thomas A. Schmitz wrote:

\def\startnumberedblockquote
   {\dosingleempty\dostartnumberedblockquote}

\def\dostartnumberedblockquote[#1]%
   {\getrawparameters[numberedblockquote][start=1,#1]%
\blank[line]%
\begingroup
\setupindenting[no]%
\setuplinenumbering[location=text]
\startlinenumbering[width=1cm][\numberedblockquotestart]}

\def\stopnumberedblockquote
   {\stoplinenumbering
\endgroup
\blank[line]}

\starttext

\startnumberedblockquote[start=3]

\input knuth

\stopnumberedblockquote

\stoptext


fixed

% \startlinenumbering[startvalue|continue|settings|name]
% \startlinenumbering[name][startvalue|continue|settings]

btw, you can define linenumberings ...

\definelinenumbering
  [blocked]
  [width=1cm,
   location=text,
   before={\blank[line]},
   after={\blank[line]}]

\getrawparameters
  [numberedblockquote]
  [start=1]

\unexpanded\def\startnumberedblockquote
  {\dosingleempty\dostartnumberedblockquote}

\def\dostartnumberedblockquote[#1]%
  {\begingroup
   \setupindenting[no]%
   \getrawparameters[numberedblockquote][#1]%
   \startlinenumbering[blocked][start=\numberedblockquotestart]}

\unexpanded\def\stopnumberedblockquote
  {\stoplinenumbering
   \endgroup}

--

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

2012-07-09 Thread Hans Hagen

On 9-7-2012 21:44, Philipp Gesang wrote:

···date: 2012-07-09, Monday···from: Hans Hagen···


On 9-7-2012 20:59, Meer, H. van der wrote:

This new beta crashed here immidiately:


how new? keep in mind that the garden needs to sync as well


I can confirm this for 2012.07.09 20:28. Minimal example:

···
\setuphead [section] [ page=yes, header=sectiontext, ]
\definetext [sectiontext] [header] [foo] [bar]

\starttext
\startsection[title=Foo] \input dawkins \stopsection
\stoptext \endinput
···

But I can’t tell if this code requires a rewrite with the new
functionality.


fixed in next upload

-
  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
___


[NTG-context] new beta 2012.07.09 22:35 failing

2012-07-09 Thread Meer, H. van der
This is beta: ConTeXt  ver: 2012.07.09 22:35 MKIV  fmt: 2012.7.9  int: 
english/english

It fails me with (see below). I am fairly sure now this must be an error seeing 
the minimal example provided. Here is the most minimal example I could concoct:

\setuphead[chapter][header=high]
\starttext
\chapter{c-one}
\stoptext

structuresectioning   @ level 1 : 1 - c-one
! Extra \else.

system   tex  error on line 3 in file practicum.tex: Extra  ...

 1 \setuphead[chapter][header=high]
 2 \starttext
 3   \chapter{c-one}
 4 \stoptext
 5 
 6 \def\edition{2012}   % the year of production
 7 
 8 \disablemode[concept]% concept/final
 9 
10 \disablemode[docent] % typeset teacher info
11 
12 \input setup % parameter settings
13 \setuppagenumbering[alternative=doublesided]


\strc_sectioning_handle ...ioning_after_yes \else 
  \ifconditional \c_strc_sec...
l.3 \chapter{c-one}

I guess the problem is signalled in strc-sec.mkiv where 
strc_sectioning_after_yes occurs in lines 780, 802 and 943, the first two seem 
the most likely candidates.
I do not see at first hand a wrong \if\else\fi count there. Maybe the culprit 
hides elsewhere.

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
___


Re: [NTG-context] imposition broken again

2012-07-09 Thread Henning Hraban Ramm

Am 2012-07-09 um 19:06 schrieb Henning Hraban Ramm:

With at least today’s and yesterday’s beta I can’t get no  
satisfaction WRT imposition.


Before, only 2UP was broken, and I got a workaround. Now, every  
schema that I tried doesn’t do anything.

Was there another syntax change?
Of course I ran context with --arrange


Sorry, I saw Thomas’ thread modes + arranging only after pressing  
send.

This is fixed with tonight’s beta, thank you!

But the table of content is missing now...



Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] setupbars

2012-07-09 Thread Hans Hagen

On 9-7-2012 09:26, Wolfgang Schuster wrote:


Am 09.07.2012 um 09:09 schrieb Meer, H. van der:


There is still an issue here.

\setupbars[unit=mm,rulethickness=1]
AB\startbar[underbar]CD\stopbar EF\crlf
\setupbars[unit=ex,rulethickness=1]
AB\startbar[underbar]CD\stopbar EF\crlf
\setupbars[unit=pt,rulethickness=1]
AB\startbar[underbar]CD\stopbar EF\crlf

The first and third setup do not give an underbar, the second does.
Question: why does ex qualify as a dimension unit but pt and mm do not? 
Sounds strange.

If I want an underbar exactly 1mm or 3pt's thick, why isn't that made possible? 
Doing the math myself is no option, becaus ex will not be known beforehand.


The underlying Lua code accepts only “ex” and “em” as valid options for the 
“unit” key but I would also vote to accept either “pt”, “mm” etc. as unit value 
or to allow “rulethickness=…pt”.


actually it does accept more units but they were pretty small (needed an 
1/u)


anyhow, in the next beta we can do

\starttext

\setupbars[unit=mm,rulethickness=1] 
bar\startbar[underbar]foo\stopbar bar\blank
\setupbars[unit=ex,rulethickness=1] 
bar\startbar[underbar]foo\stopbar bar\blank
\setupbars[unit=pt,rulethickness=1] 
bar\startbar[underbar]foo\stopbar bar\blank
\setupbars[unit=pt,rulethickness=10pt] 
bar\startbar[underbar]foo\stopbar bar\blank


\stoptext

but someone has do document it

-
  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] new beta 2012.07.09 22:35 failing

2012-07-09 Thread Hans Hagen

On 9-7-2012 23:40, Meer, H. van der wrote:

This is beta: ConTeXt  ver: 2012.07.09 22:35 MKIV  fmt: 2012.7.9  int: 
english/english

It fails me with (see below). I am fairly sure now this must be an error seeing 
the minimal example provided. Here is the most minimal example I could concoct:


it should be ok now
-
  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] Incorrect spacing in math

2012-07-09 Thread Hans Hagen

On 9-7-2012 13:37, Otared Kavian wrote:

Hi Aditya,

Thanks for your attention: the spacing bug is there no matter the fonts one 
uses.
The bug appeared some three weeks ago, and the only turn around I have found so 
far is to use
\int_{\!\!\!\Omega}f(x)dx
instead of
\int_{\Omega}f(x)dx
but this is not a solution in a large file which has to be modified all over…
Interestingly the « inline math » does not suffer from th ebug, that is 
$\int_{\Omega}f(x)dx$ gives the expected result.


we have three cases:

\setupmathematics[integral=nolimits]
\setupmathematics[integral=limits]
\setupmathematics[integral=displaylimits]

the question is what should be default (displaylimits places the limist 
a bit lower it seems)


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] Incorrect spacing in math

2012-07-09 Thread Hans Hagen

On 9-7-2012 13:37, Otared Kavian wrote:

Hi Aditya,

Thanks for your attention: the spacing bug is there no matter the fonts one 
uses.
The bug appeared some three weeks ago, and the only turn around I have found so 
far is to use
\int_{\!\!\!\Omega}f(x)dx
instead of
\int_{\Omega}f(x)dx
but this is not a solution in a large file which has to be modified all over…
Interestingly the « inline math » does not suffer from th ebug, that is 
$\int_{\Omega}f(x)dx$ gives the expected result.


the next beta will have:

\setupmathematics[integral=autolimits]

nolimits  displaylimits  limits  autolimits  none

to play with

-
  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] Page Backgrounds

2012-07-09 Thread Kip Warner
On Mon, 2012-07-09 at 10:06 +0200, Wolfgang Schuster wrote:
 \setupexternalfigures[directory=Makeup/Images]
 
 \defineoverlay
   [backgroundimage]
   [{\ifnum\rawcountervalue[userpage]=1\relax
   \overlayfigure{Cover}%
 \else
   \overlayfigure{Background}%
 \fi}]
 
 \setupbackgrounds[page][background=backgroundimage]
 
 \starttext
 \dorecurse{4}{\input knuth\page}
 \stoptext
 
 Wolfgang

Thanks Wolfgang. That did it. Although I did change userpage to
realpage.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] \subsection produces the wrong result

2012-07-09 Thread Hongwen Qiu
With ConTeXt version: 2012.07.10 00:56, the following minimal example 
produces the wrong result:


\starttext

\section{Section}

\subsection{Subsection} % This generates a section other than a subsection

\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] linenumbering

2012-07-09 Thread Thomas A. Schmitz

On 7/9/12 10:46 PM, Hans Hagen wrote:

fixed

% \startlinenumbering[startvalue|continue|settings|name]
% \startlinenumbering[name][startvalue|continue|settings]

btw, you can define linenumberings ...


Thanks for the fix, and for the code - I'll play with it later today!

All best

Thomas
___
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
___