[NTG-context] google search box in wiki

2011-11-19 Thread Mojca Miklavec
Dear ConTeXt-ers,

Thanks to Siep and Taco, the wiki now has google search box again.

Mojca

(The complication came from the fact that the site now uses only a
single text window and three buttons that do different things.)
___
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] textbackground

2011-11-19 Thread Hans van der Meer
I get the impression that textbackground is not yet completely repaired in:

The small example below shows that location text starts at the left margin 
instead of at the chosen point in the text. That is, the green part should be 
text with background instead of result. This is text w.

Paragraph background looks like it works again.

% Testing textbackground
\setuppapersize[A5]A5]
\definetextbackground[testA][%
location=paragraph,state=start,background=color,backgroundcolor=yellow]
\definetextbackground[testB][%
location=text,state=start,background=color,backgroundcolor=green]
\starttext
First para for test.
\starttestA
\input tufte
\stoptestA
Last para for text.\blank
Intermediate.\par
This is to fill up things a bit going to the next line in the result.
This is \starttestB text with background \stoptestB within.\blank
Afterwards.\par
\stoptext



textbackground.pdf
Description: Adobe PDF document



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] Framed environment

2011-11-19 Thread Aditya Mahajan

On Nov 18, 2011, at 2:23 PM, Troy Henderson thend...@gmail.com wrote:

 Is there an environment (i.e., like a \startframed ... \stopframed)
 method for using \framed{ ... } on a block of text?  Certain \start ...
 \stop combinations don't seem to play well with \framed{ ... }.  For
 example,
 
 \usemodule[amsl]

Please do not use the amsl module.  It has not been updated in years and 
context core provides almost all the functionality. 

 \starttext
\framed{
\startformula
\startalign
A=B
\stopalign
\stopformula
}
 \stoptext
 
 fails evidently because \framed{ ... } and the \startalign ...
 \stopalign don't like one another.

Untested, but the most likely reason is that framed starts a hbox rather than a 
vbox. Use 

\framed[align=normal]{...}

to start a vbox.  

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] Framed environment

2011-11-19 Thread Wolfgang Schuster

Am 19.11.2011 um 17:32 schrieb Aditya Mahajan:

 On Nov 18, 2011, at 2:23 PM, Troy Henderson thend...@gmail.com wrote:
 
 Is there an environment (i.e., like a \startframed ... \stopframed)
 method for using \framed{ ... } on a block of text?  Certain \start ...
 \stop combinations don't seem to play well with \framed{ ... }. 
 
 Untested, but the most likely reason is that framed starts a hbox rather than 
 a vbox. Use 
 
 \framed[align=normal]{...}
 
 to start a vbox.  

Or \startframedtext[width=broad] … \stopframedtext.

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] Small issue with dimensions

2011-11-19 Thread Vedran Miletić
Datuma 17. studenoga 2011. 09:26 Hans Hagen pra...@wxs.nl je napisao/la:
 On 15-11-2011 11:12, Vedran Miletić wrote:

 Datuma 14. studenoga 2011. 20:44 Romain Dissromain.d...@yahoo.fr  je
 napisao/la:

 \starttext
 1\unit{second}
 \stoptext

 gives 1 econd.

 But \unit{1 second} gives the correct result...

 Indeed, but IIRC Hans' original approach was 1\unit{second} style of
 writing[1]. I would like to know if this can be fixed.

 I'll look into it (first I have some deadlines to catch).

 Hans

Just updated to latest minimals and rechecked, it's fixed. Thanks.

Vedran
___
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] Hide section content

2011-11-19 Thread Aditya Mahajan

Hi,

I have a tex file that looks like follows:

  \startsection[title=...][review=yes]
 ...
  \stopsection

  \startsection[title=...][review=no]
 ...
  \stopsection

When I compile the document with --mode=review, I want that all sections 
that have `review=no` should not be displayed. What is the best way of 
achieving this? In particular, can we have an option that'll let us say:


\setuphead[section][placebody=hidden] (analogous to placehead=hidden).

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] Chart module

2011-11-19 Thread Aditya Mahajan

Hi,

Nested flow charts do not work in the current chart module.

\usemodule[chart]
\startFLOWchart[A]
  \startFLOWcell
\name{A}
\location{1,1}
\text{A}
  \stopFLOWcell
\stopFLOWchart

\startFLOWchart[B]
  \includeFLOWchart[A][x=1,y=1]
\stopFLOWchart

\startFLOWchart[C]
  \includeFLOWchart[B][x=1,y=1]
\stopFLOWchart

\starttext
\FLOWchart[A]

\FLOWchart[B]

\FLOWchart[C]
\stoptext

gives

! LuaTeX error 
...-minimals/texmf-context/tex/context/base/m-chart.lua:563: attempt to 
get length of local 'connections' (a nil value)

stack traceback:
	...-minimals/texmf-context/tex/context/base/m-chart.lua:563: in 
function 'process_connections'
	...-minimals/texmf-context/tex/context/base/m-chart.lua:827: in 
function 'makechart'
	...-minimals/texmf-context/tex/context/base/m-chart.lua:870: in 
function 'flow_make_chart'

main ctx instance:1: in main chunk.

system   tex  error on line 24 in file te


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
___