[NTG-context] Difference in doifinset in MkII and MkIV

2011-09-20 Thread Aditya Mahajan

The following works in MkIV but fails in MkIV:

\unprotect
\def\!!yesandon{yes,on}
\doifinsetelse{yes}\!!yesandon
{\writestatus{TEST}{YES}}
{\writestatus{TEST}{NO}}
\protect


This can be fixed by changing the definition

 \def\p!doifinsetelse#1#2#3#4%
   {\donefalse
\edef\!!stringa{#3}%
\ifx\!!stringa\empty
\else
- \processcommalist[#4]\p!docheckiteminset
+ \processcommacommand[#4]\p!docheckiteminset
\fi
\ifdone\expandafter#1\else\expandafter#2\fi}


Can this be changed in syst-gen.mkii?

Thanks,
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] t-vim: additional space in \inlineX{}

2011-09-20 Thread Aditya Mahajan

On Wed, 21 Sep 2011, Romain Diss wrote:


I tried the t-vim module today and I had a line-break problem with \inlineX. I
found the thread started by Peter Münster (last week). So I downloaded the
last context beta and this problem is gone.

But I got another problem : there is an unwanted additional space at the
begining of the \inlineX content.

See this minimal example (copy paste from Peter Münster mail):

\usemodule[vim]
\definevimtyping[C][syntax=c]
\starttext
bla \inlineC{void func(void)} bla
\stoptext


\ReadFile introduces a spurious space when reading the file! Here is a 
minimal example (compare the output of \ReadFile and \input):


\startbuffer[test]
{\bf bold}
\stopbuffer

\savebuffer[test][test]
\starttext
»{\bf bold}«
\endlinechar\minusone %to prevent line break after reading file
»\ReadFile{\jobname-test.tmp}«
»\input\jobname-test.tmp\relax«
\stoptext

t-vim uses \ReadFile internally and hence inherits the bug.

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
___

[NTG-context] t-vim: additional space in \inlineX{}

2011-09-20 Thread Romain Diss
Hi,

I tried the t-vim module today and I had a line-break problem with \inlineX. I 
found the thread started by Peter Münster (last week). So I downloaded the 
last context beta and this problem is gone.

But I got another problem : there is an unwanted additional space at the 
begining of the \inlineX content.

See this minimal example (copy paste from Peter Münster mail):

\usemodule[vim]
\definevimtyping[C][syntax=c]
\starttext
bla \inlineC{void func(void)} bla
\stoptext


Thanks for help.

-- 
Romain Diss

___
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] Problem with \columnsetspan

2011-09-20 Thread Marcin Borkowski
Dnia 2011-09-20, o godz. 09:13:47
Marcin Borkowski  napisał(a):

> Hello,
> 
> I tried columnsets today, and the following minimal example shows that
> something is wrong with columnsetspans (which I wanted to use to make
> a title).
> 
> \definecolumnset[main][n=2]
> \definecolumnsetspan[title][n=2]
> 
> \starttext
> \startcolumnset[main]
> 
> \startcolumnsetspan[title]
>   \input knuth
> \stopcolumnsetspan
> \dorecurse{10}{\input knuth}
> 
> \stopcolumnset
> 
> \stoptext
> 
> Is it a bug or am I doing something wrong?

Update: it works fine in MkII, so I am afraid that it might be a bug.

> 
> BTW: is there a better way to have a title centered on the top of the
> page and then text in columnsets?
> 
> Regards,
> 


-- 
Marcin Borkowski
___
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] placing endnotes throws a "missing number" error

2011-09-20 Thread Daniel Schopper

Dear list,
I’m running into a strange issue with endnotes. I seem to hit a limit of 
how many endnotes I can place in a document - although there are only 52 
of them in the document. Recursing the following minimal example 12 
times works fine on my machine (using today’s beta 2011.09.20 00:09)


Any clues?
Thanks in advance!
Daniel

Here’s an example:

-
\definenote[myFirstEndnote][endnote]
\definenote[mySecondEndnote][endnote]
\definenote[myThirdEndnote][endnote]
\definenote[myFourthEndnote][endnote]

\starttext
\dorecurse{13}{
\myFirstEndnote{endnote}
\input tufte
\mySecondEndnote{endnote}
\input tufte
\myThirdEndnote{endnote}
\input tufte
\myFourthEndnote{endnote}
\input tufte
}
\page
\placenotes[myFirstEndnote]
\placenotes[mySecondEndnote]
\placenotes[myThirdEndnote]
\placenotes[myFourthEndnote]

\stoptext

-
… this leads to a "missing number" error:


! Missing number, treated as zero.

system  > tex > error on line 106 in file enTest.tex: Missing 
number, treated as zero ...




   f
\v!fit ->f
  it
\dochecknote ...\dimexpr \noteparameter \c!height
  *\scratchcounter 
\relax \f...

\doprocesssomenote ...n \currentnote \dochecknote
  \ifbottomnotes \else 
\done...

\dopagecontents ...tomnotes \else \donefalse \fi }
  \ifcase 
\kindofpagetextare...

\normalsettextpagecontent ... \dopagecontents #2#3
  }}\dp #1\zeropoint 
\setbox...

...
l.22

___
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] Verbatim in framed text

2011-09-20 Thread Felix Ingram
Some of my verbatim lines are overflowing the framed text box I'm
putting them in. I see that I could define a pretty printer to handle
this but I came up with the following:


\starttext
\startframedtext[middle][width=.8\textwidth]
\startframedtext[left][frame=off, width=.6\textwidth]
\starttyping
import x
from x import y
for z in b:
print dfdg
Some text
Some text
Some text
Some text
Some really long text Some really long text Some really long text Some
really long text Some really longtextSomereallylong text Some really
long text Some really long text Some really long text Some really long
text Some really long text
\stoptyping
\stopframedtext
\stopframedtext
\stoptext


This works but seems like cheating.

Is there a better third way I could try, or could someone point to a
mkiv pretty printer example I could study?

Many thanks,

Felix
___
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] MetaObj with labels in built-in objects (MetaObj Standard Library)

2011-09-20 Thread Stefan Müller

Hi list,

some time ago I posted on this list about problems with MetaObj in 
ConTeXt when using labels.  There's a wiki article about this now [1]. 
Just recently I was forced to notice that this solution does not work 
when the label to be drawn is part of the object definition.  So the 
example from [1] works fine with the added boolean flag, but the 
following example (which means basically all built-in MetaObj objects 
with text) does not.  It compiles well but there is no text.


--88stop>8--

I'm out of ideas how to fix this.  I tried putting the text into a 
separate pictrue variable and use this in "newBox".  In addition, I 
thought it should be possible to modify metaobj.mp to check for a 
boolean variable (e.g. "firstrun") and let the macros there react to its 
value accordingly , but I always got either no text or errors.


I can draw the picture I wanted to get in the first place with plain 
MetaFun, but I thought MetaObj would be even more "fun".  Now I'm very 
curious if someone on this list can come up with something.  I think it 
would be great if MetaObj could be fully used within ConTeXt.


Thanks in advance for taking the time to think about this and any hints!
Kind regards,
Stefan.


[1] http://wiki.contextgarden.net/MetaObj_and_Labels
___
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] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Andreas Harder

On 20.09.2011, at 11:50, Stefan Müller wrote:

> Ah, thank you very much!  Can you tell me why it's called "broad"?  I don't 
> get the intention behind this key…

I’ve no clue. Wolfgang Schuster postet this solution a several times, so I've 
remembered it.

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] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Stefan Müller
Ah, thank you very much!  Can you tell me why it's called "broad"?  I 
don't get the intention behind this key...


Stefan

On 20.09.2011 11:34, Andreas Harder wrote:


On 20.09.2011, at 11:31, Stefan Müller wrote:


Hi again,

in one of my documents I want the text to be flushedleft and not hyphenated, 
see the following example.

\setupalign[flushleft, nothyphenated]
\starttext
\showlayout
bb bb bb bb bb 
aa bb
\stoptext


\setupalign[flushleft,nothyphenated,broad]

\starttext \showframe
bb bb bb bb bb 
aa bb
\stoptext


Greeting
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] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Andreas Harder

On 20.09.2011, at 11:31, Stefan Müller wrote:

> Hi again,
> 
> in one of my documents I want the text to be flushedleft and not hyphenated, 
> see the following example.
> 
> \setupalign[flushleft, nothyphenated]
> \starttext
> \showlayout
> bb bb bb bb bb 
> aa bb
> \stoptext

\setupalign[flushleft,nothyphenated,broad]

\starttext \showframe
bb bb bb bb bb 
aa bb
\stoptext


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


[NTG-context] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Stefan Müller

Hi again,

in one of my documents I want the text to be flushedleft and not 
hyphenated, see the following example.


\setupalign[flushleft, nothyphenated]
\starttext
\showlayout
bb bb bb bb bb 
aa bb

\stoptext

However, in this example the aaa...a-"word" is not moved to the next 
line but written partially into the margin instead.  I understand this 
behaviour for right-left-aligned text to avoid extremely stretched-out 
spaces, but here it doesn't seem right to me.  Can I change this 
behaviour somehow?


Thanks for any advice!
Best regards,
Stefan
___
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] style=bold in \setuphead does not work anymore

2011-09-20 Thread Stefan Müller

Hi,

In ConTeXt standalone MkIV 2011.08.04 00:42 this used to work:

\setuphead[section][style=bold]
\starttext
\section{Ward}
\input ward
\stoptext

In 2011.09.20 00:09 it doesn't anymore.  If I use "style=\bf" I still 
get bold face.  Is this a bug or was the interface changed deliberately?


Best regards,
Stefan
___
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] Double interline spacing with headings

2011-09-20 Thread Stefan Müller

Hi list,

I want to have double line spacing in my document setup, including the 
headings.  But in the following example, the space before the heading is 
slightly different from the interline spacing between the other lines. 
How to do this right?  (standalone MkIV 2011.09.20 00:09)


\setuphead[section][style=normal, interlinespace=big, before=, after=]
\starttext
\setupinterlinespace[big]
\input ward
\section{\input ward}
\input ward
\stoptext

TIA for your help!
Kind regards,
Stefan
___
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] Console Verbosity & Optimized Output Generation

2011-09-20 Thread Henning Hraban Ramm


Am 2011-09-20 um 01:12 schrieb Kip Warner:


On Fri, 2011-09-16 at 14:23 +0200, Wolfgang Schuster wrote:
Separate you document in components and process only the component  
your

working on, this is faster then the whole book (product).


I've done that already. The whole book is one product, but each  
chapter

is its own component. When one component changes, ConTeXt seems to
rebuild the whole book.


Of course - the number of pages and the placement of references  
(including start of sections, important for ToC) may have changed.


If you don’t care about proper ToC, registers etc. you can use the -- 
once switch. But if you "compile" the product, of course the whole  
thing will get re-processed.


Greetlings from Lake Constance!
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
___


[NTG-context] Problem with \columnsetspan

2011-09-20 Thread Marcin Borkowski
Hello,

I tried columnsets today, and the following minimal example shows that
something is wrong with columnsetspans (which I wanted to use to make a
title).

\definecolumnset[main][n=2]
\definecolumnsetspan[title][n=2]

\starttext
\startcolumnset[main]

\startcolumnsetspan[title]
  \input knuth
\stopcolumnsetspan
\dorecurse{10}{\input knuth}

\stopcolumnset

\stoptext

Is it a bug or am I doing something wrong?

BTW: is there a better way to have a title centered on the top of the
page and then text in columnsets?

Regards,

-- 
Marcin Borkowski
http://mbork.pl

___
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] insert unicode character

2011-09-20 Thread Hans van der Meer
I looked into the recent Fonts in Context book, but could not figure out how to 
access characters directly in unicode. In my case this is inside a MetaPost 
picture something like:

\switchtobodyfont[courier,24pt]
..
label ("UNICODE character U+2B06 here"…

How to?

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
___