Re: [NTG-context] [***SPAM***] Provide showgrid as a PDF layer

2013-11-30 Thread Hans Hagen

On 11/30/2013 12:04 AM, Jan Tosovsky wrote:

Dear All,

it would be nice to have a possibility to interactively disable/enable a
grid rendered via \showgrid command. Whereas this grid is helpful for
debugging, it disturbs when the page is evaluated as the whole. Using layers
could make this process more efficient (not requiring to generate both
variants).

I've noticed something like this is already implemented for the body area
(visualizer vbox layer).

Or is there any option for this already?


\setupinteraction[state=start]
\showgrid  \showframe \showmakeup \showlayoutcomponents

\starttext
\input tufte \placefigure{}{}
\stoptext

but you need a viewer that supports layers (can turn them on and off)

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] [***SPAM***] Provide showgrid as a PDF layer

2013-11-30 Thread Jan Tosovsky
On 2013-11-30 Hans Hagen wrote:
 On 11/30/2013 12:04 AM, Jan Tosovsky wrote:
 
  it would be nice to have a possibility to interactively
  disable/enable a  grid rendered via \showgrid command. 
 
 
 \setupinteraction[state=start]
 \showgrid  \showframe \showmakeup \showlayoutcomponents
 
 \starttext
  \input tufte \placefigure{}{}
 \stoptext

Wow, thanks! 

So to show grids as a layer at least \showlayoutcomponents must be set as
well. To be honest, I'd expect displaying the grid directly without this
dependency...

Anyway, it works fine in Adobe Reader.

Jan

___
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] Persian numbers for page numbering

2013-11-30 Thread Wolfgang Schuster

Am 29.11.2013 um 16:49 schrieb Mingranina Gingranina mingran...@gmail.com:

 Dear All,
 Hello,
 
 How can I force ConTeXt to use Persian numbers for page numbering?

\setuppagenumber[numberconversion=persiannumerals]

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] Duplexing a single-sided layout?

2013-11-30 Thread Adam Khan
I have a document in which left and right cannot be equated with inner and 
outer respectively (outside the header texts). So I use 
\setuppagenumbering[alternative={singlesided,doublesided}]. But I still need a 
gutter along (what would be) the inner margin. So, how would I go about 
duplexing a single-sided layout?

For example:

\definepapersize[custom][width=335mm,height=500mm]
\setuppapersize[custom][B3]
\setuplayout[%
  width=middle,%
  height=middle,%
  backspace=90mm,%
  topspace=25mm,%
  leftmargin=30mm,%
  rightmargin=15mm,%
  leftmargindistance=5mm,%
  rightmargindistance=20mm,%
  location={doublesided,duplex},%
  bottomspace=25mm,%
  cutspace=90mm]
\setuppagenumbering[alternative={singlesided,doublesided}]

Sincerely yours,
Adam Khan

___
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] Keeping titles together with the following text when grid is on

2013-11-30 Thread Jan Tosovsky
Dear All,

when grid is on, orphan and widows have to be eliminated using additional
penalty settings. Whereas it works fine for body text, section titles are
still sometimes left at the bottom of the page.

It can be reproduced using this example:

\setuppapersize[B5]

\startsetups[grid][mypenalties]
\setdefaultpenalties
\setpenalties\widowpenalties{2}{1}
\setpenalties\clubpenalties {2}{1}
\stopsetups

%comment the following line to see the difference
\setuplayout[grid=yes, setups=mypenalties] 
\showgrid 

\starttext
   \blank[force, 9.5cm]
   \input tufte
   \section{Tufte}
   \input tufte
\stoptext

Is there any extra option for handling this?

Thanks, Jan

___
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] Placefigure without Caption-Numbering

2013-11-30 Thread Jan Tosovsky
On 2013-04-16 Wolfgang Schuster wrote:
 Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezoguz at mmnetz.de:
 
  How to deactive the Caption-Numbering:
  
  \starttext
  
  \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
  
  \stoptext
  
  I want the caption Blub, but not the Figure 1 label.

 \placefigure[here,nonumber]{.}{.}

It helped me now. 

Btw, there is no such an option mentioned in the WIKI or user guide...

http://wiki.contextgarden.net/Command/placefigure

But I'd like to add:
(1) caption=none renders 'none' instead of nothing...
(2) when key=none is combined, e.g. [none, page], the numbering is
suppressed, but the second option is ignored. But [page, none] works fine.
The order matters. It is same for [page, nonumber].

It would be nice to fix those examples in Wiki or if MkIV behaves
differently, add an appropriate alternative there.

Thanks, Jan


___
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] Placefigure without Caption-Numbering

2013-11-30 Thread Alan Braslau
On Sat, 30 Nov 2013 19:42:54 +0100
Jan Tosovsky j.tosov...@email.cz wrote:

 On 2013-04-16 Wolfgang Schuster wrote:
  Am 16.04.2013 um 18:56 schrieb H. Özoguz h.oezoguz at mmnetz.de:
  
   How to deactive the Caption-Numbering:
   
   \starttext
   
   \placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
   
   \stoptext
   
   I want the caption Blub, but not the Figure 1 label.
 
  \placefigure[here,nonumber]{.}{.}
 
 It helped me now. 
 
 Btw, there is no such an option mentioned in the WIKI or user guide...
 
 http://wiki.contextgarden.net/Command/placefigure
 
 But I'd like to add:
 (1) caption=none renders 'none' instead of nothing...
 (2) when key=none is combined, e.g. [none, page], the numbering is
 suppressed, but the second option is ignored. But [page, none] works
 fine. The order matters. It is same for [page, nonumber].
 
 It would be nice to fix those examples in Wiki or if MkIV behaves
 differently, add an appropriate alternative there.
 
 Thanks, Jan

I find that the \startplacefigure \stopplacefigure interface is much
cleaner:

\startplacefigure [location=here,numbering=no,title=Blub]
  \externalfigure [image] [width=6cm]
\stopplacefigure

Alan

___
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] Placefigure without Caption-Numbering

2013-11-30 Thread Jan Tosovsky
On 2013-11-30 Alan Braslau wrote:
 On Sat, 30 Nov 2013 19:42:54 +0100
 Jan Tosovsky j.tosov...@email.cz wrote: 
  On 2013-04-16 Wolfgang Schuster wrote:
   Am 16.04.2013 um 18:56 schrieb H. Özoguz
   
How to deactive the Caption-Numbering:
   
\starttext
   
\placefigure[here]{Blub}{\externalfigure[image][width=6cm]}
   
\stoptext
   
I want the caption Blub, but not the Figure 1 label.
  
   \placefigure[here,nonumber]{.}{.}
 
  It helped me now.
 
  Btw, there is no such an option mentioned in the WIKI or user
  guide...
 
  http://wiki.contextgarden.net/Command/placefigure
 
  But I'd like to add:
  (1) caption=none renders 'none' instead of nothing...
  (2) when key=none is combined, e.g. [none, page], the numbering is
  suppressed, but the second option is ignored. But [page, none] works
  fine. The order matters. It is same for [page, nonumber].
 
  It would be nice to fix those examples in Wiki or if MkIV behaves
  differently, add an appropriate alternative there.
 
 I find that the \startplacefigure \stopplacefigure interface is much
 cleaner:
 
 \startplacefigure [location=here,numbering=no,title=Blub]
   \externalfigure [image] [width=6cm]
 \stopplacefigure
 

Indeed much cleaner. But that numbering option seems to be ignored ;-)
Does it work for you?

Jan

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