Re: [NTG-context] tex error in curent beta

2015-10-16 Thread Jan Tosovsky
On 2015-10-15 Wolfgang Schuster wrote:
>
> Create a command and apply it to the numbercommand key.
> 
> \define[1]\ChapterListNumbercommand
> {\simplealignedbox{\listparameter{width}}{flushright}{#1}}
> 
> \setuplist
> [chapter]
> [
> before=,
> distance=0.5cm,
> width=-0.5cm,
> margin=2cm,
> numbercommand=\ChapterListNumbercommand,
> pageconversionset=pagenumber,
> ]
> 

This compiles, thanks, but that number is not hanging on the right any more :-(

This is my more complete MWE:

\setuphead[chapter][
   alternative=middle,
   before={\blank[force,10mm]},
   after={\blank[1*line]},
   style=\bfc,
   numberstyle={\kerncharacters[0.125]\bfa},
   numbercommand=\groupedcommand{}{\blank[4mm]},
   sectionstopper={.},
   conversion=Romannumerals,
]
 
\define[1]\ChapterListNumbercommand
{\simplealignedbox{\listparameter{width}}{flushright}{#1}}

\setupcombinedlist[chapter][
   before=,
   distance=0.5cm,
   width=-0.5cm,
   margin=2cm,
   numbercommand=\ChapterListNumbercommand,
   pageconversionset=pagenumber,
]

\starttext
\startfrontmatter
\title{TOC}
\placecontent
\chapter{Preface}
\stopfrontmatter
\startbodymatter
\chapter{Chapter 1}
\stopbodymatter
\stoptext

Desired output is attached.

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] How to start a \definedescription-defined description's body on a new line, not the same as the description's header?

2015-10-16 Thread Otared Kavian
Hi Louis,

II guess what you need is the keyword

alternative=top

in the setup of your descritiption.

Best regards: OK

> On 09 Oct 2015, at 18:13, Louis Strous  wrote:
> 
> With
>  
> [start sample]
> \definedescription[cmddescription][headstyle=bold,width=broad,style=normal,align=flushleft,alternative=hanging,margin=1cm]
>  
> ...
>  
> \startcmddescription{mycommand}
>  
> This is a very useful command.  It knows just what to do, and you don't even 
> have to specify any options!
>  
> \stopcmddescription
> [end sample]
>  
> the text "This is a very useful command" begins on the same line as the 
> "mycommand" header.  I want the text to begin on the next line, so that 
> "mycommand" is on a line of its own.  How should I adjust the 
> \definedescription command to achieve this?  I've tried all kinds of things 
> with the 'before', 'inbetween', 'after', 'indentnext', 'command', and 
> 'headcommand' options of the \definedescription command (based on 
> http://wiki.contextgarden.net/Command/setupdescriptions 
> ), using \par, 
> \crlf, and \vspace, but didn't get the desired results.
>  
> Regards,
> Louis Strous
>  
> IntelliMagic - Availability Intelligence
> T: +31 (0)71-579 6000
> www.intellimagic.com 
>  
> ___
> 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] How to start a \definedescription-defined description's body on a new line, not the same as the description's header?

2015-10-16 Thread Louis Strous
With

[start sample]
\definedescription[cmddescription][headstyle=bold,width=broad,style=normal,align=flushleft,alternative=hanging,margin=1cm]

...

\startcmddescription{mycommand}

This is a very useful command.  It knows just what to do, and you don't even 
have to specify any options!

\stopcmddescription
[end sample]

the text "This is a very useful command" begins on the same line as the 
"mycommand" header.  I want the text to begin on the next line, so that 
"mycommand" is on a line of its own.  How should I adjust the 
\definedescription command to achieve this?  I've tried all kinds of things 
with the 'before', 'inbetween', 'after', 'indentnext', 'command', and 
'headcommand' options of the \definedescription command (based on 
http://wiki.contextgarden.net/Command/setupdescriptions), using \par, \crlf, 
and \vspace, but didn't get the desired results.

Regards,
Louis Strous

IntelliMagic - Availability Intelligence
T: +31 (0)71-579 6000
www.intellimagic.com

___
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] \startplacefloat [location=bottom]

2015-10-16 Thread Alan BRASLAU
Hello,

When placing floats, location=bottom will attempt to place the float at
the bottom of the current page; if it will not fit, then it will be
placed at the *top* of the following page. How can one specify that
the float is be placed at the *bottom* of the subsequent page if there
is not enough room for it to be placed at the bottom of the current
page?

MWE:

\starttext
\dorecurse{4}{\input knuth\par}
\startplacetable [location=bottom]
  \input tufte
\stopplacetable
\dorecurse{2}{\input dawkins\par}
\stoptext

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
___

[NTG-context] footnotes spanning margin and textwidth

2015-10-16 Thread Brian R. Landy
Hi, is it possible to get the footnote area to span the full width of 
textwidth+margins?  For example, in this layout I have a wide left margin and 
I’d like the footnotes to start at the left edge of the left margin rather than 
the left edge of the text area, but still extend to the right edge of the text 
area.


\setuplayout[backspace=2.75in,cutspace=0.50in,leftmargin=2.25in,rightmargin=0.00in,width=middle,topspace=0.0in,header=0.88in,height=middle,footer=1.50in,location=middle]
\starttext
text\footnote{one} text\footnote{\input knuth}
\stoptext


Best regards,
Brian
___
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
___