Re: [NTG-context] inline diagrams/charts?

2007-08-15 Thread Hamid Kamrani
Are you looking for an inline table? If so, here is the snippet of the
code that I had gotten from somewhere. Perhaps some examples from
Hans.

\starttext

\installframedlocator {table}
  {}
  {\hbox{\lower\dimexpr\dp\strutbox+.25ex+.4pt\relax\box\framebox}}

\defineframed
  [inlinetable]
  [location=table,
   offset=overlay,
   frame=off]

\startitemize[n,broad]
\item Hello world!
\inlinetable{\bTABLE\bTR\bTD \strut Little\eTD \bTD \strut table\eTD\eTR\eTABLE}
First item continues.
\item Second item.
\stopitemize


\stoptext


On 8/15/07, Henning Hraban Ramm <[EMAIL PROTECTED]> wrote:
> Hi there!
>
> A long time ago there was a discussion about some kind of tiny block
> charts that run within the text. Now I would need such for the
> summary of a poll.
> But I can't remember the name, and thus I can't find the thread and
> website.
> Can you help me?
>
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Batch Files and texmf

2007-08-09 Thread Hamid Kamrani
That is a pretty interesting ConTeXt question. I mean it makes a
laudable effort to bring ConTeXt into its context!!

On 8/9/07, Idris Samawi Hamid <[EMAIL PROTECTED]> wrote:
> Dear gang,
>
> To all you expert script writers and batch wizards on Windows, I have a
> question:
>
> I want to create a batch file to open a program so that it will search the
> contents of C:\ConTeXt, which contains my entire system, including
> subdirectories. For example, if foo.tex is a file in C:\ConTeXt, and
> goo.exe is some program, then for
>
> > goo.bat foo.tex
>
> I want goo to seach C:\ConTeXt for foo.tex. Is there a straightforward way
> to edit the following to get this effect?
>
> 
> rem batch file
>
> goo %
> 
>
> Any pointers will be appreciated.
>
> Best wishes
> Idris
>
> --
> Professor Idris Samawi Hamid
> Department of Philosophy
> Colorado State University
> Fort Collins, CO 80523
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Booktabs equivalent in Context

2007-08-09 Thread Hamid Kamrani
Wolfgang,

It is not just a matter of forgetting the NC. When you add that NC
then the tabbing and alignment is incorrect for the last column. The
rules should not extend beyond the last column and in this case they
do.

Aditya's formatted correctly but had the wrong syntax. Yours has the
right syntax but formats incorrectly.

-Hamid


On 8/9/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> 2007/8/9, Hamid Kamrani <[EMAIL PROTECTED]>:
> > Aditya,
> >
> > In the example you give with CMID you have only two column preambles
> > whereas the table has 3 columns and if one adds the missing preamble
> > then one gets an error. Some how your new code breaks the calculation
> > for number of columns.
> >
> > -Hamid
>
> He forgot only to put a \NC before the \AR.
>
> The correct code should be
>
> \starttable[s0|l|l|l|]
>  \HL[3]
>  \NC Monat \NC 1965  \NC 1966  \NC\AR
>  \NC \CMID \NC \CMID \NC \CMID \DR
>  \NC September \NC 2000  \NC 1700 \NC\AR
>  \HL[3]
> \stoptable
>
> Wolfgang
>
> > On 8/8/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> > > Quoting Johannes Graumann <[EMAIL PROTECTED]>:
> > >
> > > > Aditya Mahajan wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> The question of how to get tables equivalent to latex's booktabs
> > > >> package has been discussed quite a few times in the past. Booktabs
> > > >> package provides (top|mid|bottom)rule commands and a cmidrule command.
> > > >> The top and bottom rules are 0.08em thick, the midrule is 0.05em thick,
> > > >> and the cmidrules are 0.03em thick. The cmidrules do not extend beyond
> > > >> the columns edge. Here is an example of how to do something similar
> > > >> using tables in context <http://wiki.contextgarden.net/Table#Booktabs>.
> > > >>
> > > >> To me this looks exactly similar to the example in the booktabs manual.
> > > >> Am I missing something, or is it fair to say that context can generate
> > > >> booktabs like tables?
> > >
> > > > Hello,
> > > >
> > > > I'm one of the booktab-equivalent requesters and in my case the request 
> > > > is
> > > > motivated by the (sadly German-only)
> > > > http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf
> > > > Please compare examples on pages 4 and 5 for the cmidrule functionality 
> > > > I'm
> > > > missing in ConTeXt. The clarity you can give classy looking tables with
> > > > trimmed cmidrules is even more evident in the example on page 9. There's
> > > > lots of more use of this in the document, but it gets too esoteric to be
> > > > easily grasped quickly (IMHO).
> > >
> > > Here is one attempt, which works correctly. Of course the best solution
> > > is to forget about the \omit and set the halign preamble correctly. But
> > > I have not been able to figure that out yet.
> > >
> > > \starttext
> > >
> > > \def\CMID{\normalTABLEshortrule}
> > >
> > > \unprotect
> > > \def\TableNC
> > >   {\checkTABLEautorow
> > >\nextTABLEgrayline
> > >\ifnum\currentTABLEcolumn>\maxTABLEcolumn
> > >  \setTABLEerror\TABLEmissingrow
> > >  \handleTABLEerror
> > >\else
> > >  \global\advance\currentTABLEcolumn \plusone
> > >  \ifnum\currentTABLEcolumn=1\relax
> > >\normalTABLEquote
> > >  \else
> > >\fancyTABLEquote
> > >   \fi
> > >\fi}
> > >
> > > \def\fancyTABLEquote  {\unskip\!ttRightGlue&\omit\hskip2em&} % "
> > > \protect
> > >
> > > \setuptables[rulethickness=0.03em]
> > >
> > > \starttable[s0|l|l|]
> > >   \HL[3]
> > >   \NC Monat \NC 1965  \NC 1966  \AR
> > >   \NC \CMID \NC \CMID \NC \CMID \DR
> > >   \NC September \NC 2000  \NC 1700 \AR
> > >   \HL[3]
> > > \stoptable
> > >
> > > \stoptext
> > >
> > >
> > > 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.pragm

Re: [NTG-context] Booktabs equivalent in Context

2007-08-08 Thread Hamid Kamrani
Aditya,

In the example you give with CMID you have only two column preambles
whereas the table has 3 columns and if one adds the missing preamble
then one gets an error. Some how your new code breaks the calculation
for number of columns.

-Hamid

On 8/8/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> Quoting Johannes Graumann <[EMAIL PROTECTED]>:
>
> > Aditya Mahajan wrote:
> >
> >> Hi,
> >>
> >> The question of how to get tables equivalent to latex's booktabs
> >> package has been discussed quite a few times in the past. Booktabs
> >> package provides (top|mid|bottom)rule commands and a cmidrule command.
> >> The top and bottom rules are 0.08em thick, the midrule is 0.05em thick,
> >> and the cmidrules are 0.03em thick. The cmidrules do not extend beyond
> >> the columns edge. Here is an example of how to do something similar
> >> using tables in context .
> >>
> >> To me this looks exactly similar to the example in the booktabs manual.
> >> Am I missing something, or is it fair to say that context can generate
> >> booktabs like tables?
>
> > Hello,
> >
> > I'm one of the booktab-equivalent requesters and in my case the request is
> > motivated by the (sadly German-only)
> > http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf
> > Please compare examples on pages 4 and 5 for the cmidrule functionality I'm
> > missing in ConTeXt. The clarity you can give classy looking tables with
> > trimmed cmidrules is even more evident in the example on page 9. There's
> > lots of more use of this in the document, but it gets too esoteric to be
> > easily grasped quickly (IMHO).
>
> Here is one attempt, which works correctly. Of course the best solution
> is to forget about the \omit and set the halign preamble correctly. But
> I have not been able to figure that out yet.
>
> \starttext
>
> \def\CMID{\normalTABLEshortrule}
>
> \unprotect
> \def\TableNC
>   {\checkTABLEautorow
>\nextTABLEgrayline
>\ifnum\currentTABLEcolumn>\maxTABLEcolumn
>  \setTABLEerror\TABLEmissingrow
>  \handleTABLEerror
>\else
>  \global\advance\currentTABLEcolumn \plusone
>  \ifnum\currentTABLEcolumn=1\relax
>\normalTABLEquote
>  \else
>\fancyTABLEquote
>   \fi
>\fi}
>
> \def\fancyTABLEquote  {\unskip\!ttRightGlue&\omit\hskip2em&} % "
> \protect
>
> \setuptables[rulethickness=0.03em]
>
> \starttable[s0|l|l|]
>   \HL[3]
>   \NC Monat \NC 1965  \NC 1966  \AR
>   \NC \CMID \NC \CMID \NC \CMID \DR
>   \NC September \NC 2000  \NC 1700 \AR
>   \HL[3]
> \stoptable
>
> \stoptext
>
>
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize with zero start

2007-07-27 Thread Hamid Kamrani
Here is a minimal example of how this happens. I had posted it sometime back.

\starttext
\setupitemize[each][][stopper=:]
\bTABLE
\bTR
\bTD
\startitemize[a]
\item Bla
\item Blub
\item Bautz
\stopitemize
\eTD
\eTR
\eTABLE
\stoptext

On 7/27/07, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Wolfgang Werners-Lucchini wrote:
> > Hallo!
> >
> > I have a problem with \startstopitemize
> > with
> >
> > \setupitemize[each][][stopper=:]
> >
> > After some \startitemize ... \stopitemize groups
> >
> > conTeXt(ver. 2007.07.25) starts to count from zero (not longer from
> > one).
> >
> > I get
> >
> >  : Bla
> > a: Blub
> > b: Bautz
> >
> > not
> >
> > a: Bla
> > b: Blub
> > c: Bautz
> >
> > A few weeks ago someone has found an itemize bug. Is this my problem
> > too, or what could be my problem.
> >
> > I tried to create a minimal example. But I am not able to reproduce
> > the problem in a smaller file.
>
> hm, looks like somthing gets out of sync
>
> i really need an example for that
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | fax: 038 477 53 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why does every new \setupTABLE add more whitespace to the left of table?

2007-07-04 Thread Hamid Kamrani
This is what I meant:

\starttext
\startbuffer
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\bTABLE
 \bTR\bTD \input knuth \relax \eTD\eTR
\eTABLE
\stopbuffer

% vertical mode
\getbuffer

% horizontal mode
%\dontleavehmode\getbuffer

\placetable[frame=off]
   {whow}
   {\placelegend[align={right}]
  {\dontleavehmode\getbuffer}
  {NOTE: hmode or not hmode the legend is still off to the left}
   }

\stoptext


On 7/4/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> 2007/7/4, Hamid Kamrani <[EMAIL PROTECTED]>:
> > Not exactly. I only framed it in order to demonstrate my problem. You
> > may encounter it even when you don't explicitly frame the table. I
> > became aware of it when I noticed that my legends under the table were
> > slightly off to the left. That means that the code that joins the
> > legend to the table must put an invisible frame around the table.
>
> \starttext
>
> \showframe
>
> \startbuffer
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \bTABLE
>   \bTR\bTD text \eTD\eTR
> \eTABLE
> \stopbuffer
>
> % vertical mode
> \getbuffer
>
> % horizontal mode
> \dontleavehmode\getbuffer
>
> \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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why does every new \setupTABLE add more whitespace to the left of table?

2007-07-04 Thread Hamid Kamrani
Not exactly. I only framed it in order to demonstrate my problem. You
may encounter it even when you don't explicitly frame the table. I
became aware of it when I noticed that my legends under the table were
slightly off to the left. That means that the code that joins the
legend to the table must put an invisible frame around the table.


On 7/4/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> 2007/7/3, Hamid Kamrani <[EMAIL PROTECTED]>:
> > Got it. Thanks. I didn't know that the chars after setupTABLE could
> > disturb the alignment.
> >
>
> only in horizontal mode, e.g. in \hbox or \framed
>
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Powerit Holdings, Inc., The Leader in Energy-Demand Management Systems, Completes Series A Financing Round - Joe Merlo

2007-07-03 Thread Hamid Kamrani
What does this have to do with ConTeXt? Is this Spam mail?

On 7/3/07, paul.kholer paul.kholer <[EMAIL PROTECTED]> wrote:
>
> Joe Merlo
>
>
>
> Powerit Holdings, Inc. the leading provider of intelligent, automated demand
> control & demand response systems for industrial and commercial buildings,
> today announced the successful completion of the company's "Series A" round
> of venture financing.
>
> Led by @Ventures with a $3.0 million investment, the $7.1 million round also
> included co-investor Expansion Capital Partners with $3.0 million and the
> balance from existing investors including Stellar Holdings and Company
> management.
>
> "This funding from @Ventures and Expansion Capital Partners, two recognized
> leaders in clean technology venture capital, will allow us to accelerate our
> growth and product offerings to meet the demands of a growing number of
> industrial and utility customers who need proven demand response and demand
> control energy management solutions to better control rising energy costs,"
> said Claes Olsson, CEO of Powerit Holdings.
>
> Powerit Solutions is especially well-poised to support the growth of demand
> response services to the electric utility industry. Their primary product
> solution, the Energy Director, is based on the principal that the best,
> cleanest and most cost-efficient way to obtain needed power during times of
> peak usage is to leverage the hidden inefficiencies that cause high peak
> demand. The Energy Director system automatically predicts, regulates, and
> reduces demand by carefully lowering the consumption from selected loads
> with precisely-timed curtailment actions and manages these actions in a way
> that it limits any impact to productivity or building comfort. As such, it
> is a system that is distinctively tailored to enable industrial & commercial
> users to meet challenging power savings goals and has been approved for
> demand response (DR) incentive programs by public utilities which have
> strong interest in finding reliable cost-saving and demand-savvy solutions
> for those challenging sectors.
>
> According to Olsson, sixty percent of all energy in the domestic U.S. market
> is consumed by commercial and industrial buildings. "Powerit systems reduce
> demand charges on an ongoing basis between 10- and 40-percent and can allow
> those previously savings-challenged industrial manufacturing companies to
> participate in demand response programs," he said. "Do the math. The
> financial benefits, measured by dramatically reduced demand charges and the
> opportunity to participate in DR programs, are substantial, often creating a
> project payback in the range of 1 to 18 months, - not to mention the
> benefits to local energy utilities struggling to keep power to their
> customers during peak usage periods."
>
> As part of the financing, Marc Poirier, Managing Director, @Ventures and
> Bernardo Llovera, General Partner, Expansion Capital Partners will take
> seats on Powerit's Board of Directors.
>
> "Powerit's technologies are uniquely-suited to meet the demanding needs of
> large industrial electricity users," said Marc Poirier. "By deploying
> fully-automated intelligent systems to help companies reduce their energy
> bills without hindering productivity, Powerit delivers strong economic value
> to its customers. And by helping utilities manage their peak-demand periods
> without increasing internal capacity, Powerit helps address the increasing
> demand for electricity while minimizing carbon emissions and other
> environmental impacts associated with power generation," added Poirier.
>
> "The combination of Powerit's exceptional energy management and demand
> response solutions, and its proven leadership in high technology innovation,
> are strong indicators that the company will continue to excel," said
> Bernardo Llovera. "We are impressed with Claes Olsson's track record of
> driving growth in companies like Powerit."
>
> Evolution Capital Advisors, a boutique investment bank serving
> entrepreneurial stage companies in energy, information, communications, and
> media technology markets, served as advisor to Powerit on the transaction.
>
> About Powerit Holdings, Inc.
> Powerit Holdings, Inc. (Powerit) is a global leader in intelligent,
> energy-demand management. Through its wholly owned companies, Powerit
> Solutions in the U.S. and Diana Control in Europe, Powerit helps
> organizations manage and reduce peak energy demand - saving money and
> conserving energy without compromising production and processing operations
> or building comfort factors. The company has hundreds of installed systems
> globally, many in industrial sectors that have high-energy demand, including
> mechanical fabrication and manufacturing, agriculture and food products,
> petroleum and petrochemicals, forest products, and primary metals
> fabrication, as well as in commercial and recreational facilities.
>
>
> About Expansion Capital Partners, LLC:
> Fou

Re: [NTG-context] Why does every new \setupTABLE add more whitespace to the left of table?

2007-07-03 Thread Hamid Kamrani
Got it. Thanks. I didn't know that the chars after setupTABLE could
disturb the alignment.

On 7/3/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> 2007/7/2, Hamid Kamrani <[EMAIL PROTECTED]>:
> > What's the reaosn for this behaviour?
> >
> > Try:
> >
> > \starttext
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> >
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \setupTABLE[c][1][align=right]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> >
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \setupTABLE[c][1][align=right]
> > \setupTABLE[c][1][align=right]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> >
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \setupTABLE[c][1][align=right]
> > \setupTABLE[c][1][align=right]
> > \setupTABLE[c][1][align=right]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> > \stoptext
>
> Hi,
>
> you comment chars after your \setupTABLE commands.
>
> Your \start/\stop pair can also be removed in your examples,
> \framed keeps the \setups local.
>
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Why does every new \setupTABLE add more whitespace to the left of table?

2007-07-02 Thread Hamid Kamrani
What's the reaosn for this behaviour?

Try:

\starttext
\startbuffer
\start
\setupTABLE[frame=on]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}

\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}

\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}

\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize problem

2007-07-02 Thread Hamid Kamrani
This happens on live context too. Itemize starts with 0 in some
situations. You can create the problem with:

\starttext

\bTABLE
\bTR
\bTD
\startitemize[n]
\item one
\item two
\stopitemize
\eTD
\eTR
\eTABLE

\stoptext

On 7/1/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
> On Mon, 2 Jul 2007, [EMAIL PROTECTED] wrote:
>
> > To Aditya
> >
> >> It is possible that this change caused your existing setup to break.
> >> Can you create a minimum example that exhibits the problem? Start with
> >> Patrick's example, and start adding lines from your setup, so that the
> >> problem reappears. That may help in figuring out if it is something
> >> wrong in your setup, or a bug.
> >
> > I already provide a minimum example. Patrick just used my example on
> > Context live where it works. On my system with the latest Context it does
> > not.
> >
> > In addition, what could be wrong with my setup ? The setup
> > is all Context and nothing special and the setup
> > I am using, did not give me problems in the past.
> > I will try to debug but I think it must be a bug with the latest Context.
>
> Can you send the log file that you get with
>
> \tracingmacros 2
> \starttext
> \startitemize[n]
> \item one
> \item two
> \stopitemize
> \stoptext
>
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-27 Thread Hamid Kamrani
And so you did. This is beautiful. Thank you Hans.

On 6/25/07, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Taco Hoekwater wrote:
> > Hamid Kamrani wrote:
> >>
> >> Taco, I very much appreciate your solution. It allows me to continue
> >> for now but I humbly ask, in fact, beg to have a solution built in the
> >> core of ConTeXt.
> >
> > See the attached file how to make a special version of itemize
> > that has default behaviour like you want. I could have used
> > \setupitemgroup[itemize] directly instead, but I assume you don't
> > want your bullet lists right aligned as well.
> >
> > Since ConTeXt cannot know beforehand how wide the number space
> > should be (neither do eplain and latex), the 'width' key has to
> > be a fixed quantity, but you can still change all of the default
> > parameters where you call \startenumerate, just like you did
> > before with \startitemize, so that should be only a minor
> > nuisance.
> >
> > I do agree it would be better if the core was extended so that
> > the two setups were not necessary.
>
> I'll upload a beta that supports:
>
> \startitemize[n,fit,broad][itemalign=flushright]
>   \dorecurse{100}{\item The first item.}
> \stopitemize
>
> \setupitemgroup[itemize][each][fit]
> \setupitemgroup[itemize][each][distance=.5em,factor=1,itemalign=flushright]
>
> \startitemize[n]
>   \dorecurse{100}{\item The first item.}
> \stopitemize
>
> others should wikify this
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | fax: 038 477 53 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-25 Thread Hamid Kamrani
Thank you both, Taco and Wolfgang.

I will make use of your suggestions and solutions.

BTW. It seems that now I have to put some of the styling of the
numerals, such as using small caps in the setups of right and left.
For example:

\unprotect
\startsetups [numberitemleft]
  \hbox to \dimexpr\getitemparameter\itemlevel \c!width -
   \getitemparameter\itemlevel \c!distance\relax
  \bgroup\hfill
  \cap\bgroup(
\stopsetups

\startsetups [numberitemright]
  )\egroup
  \egroup
\stopsetups
\protect

\starttext
\startitemize[n][style=bold]
\item As a college student, how do you rate yourself?
\startitemize[R,packed][left={\setups[numberitemleft]},
right={\setups[numberitemright]},
stopper={.},
width=4.5em,
style=\sl,
distance=2em]
 \item The first item.
 \item The second item.
 \item The third item.
 \item The fourth item.
 \item The fifth item.
 \item The sixth item.
 \item The seventh item.
 \item The eighth item.
 \item The ninth item.
 \item The tenth item.
\stopitemize
\stopitemize
\stoptext

Thanks again,
-Hamid

On 6/25/07, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> Hamid Kamrani wrote:
> >
> > Taco, I very much appreciate your solution. It allows me to continue
> > for now but I humbly ask, in fact, beg to have a solution built in the
> > core of ConTeXt.
>
> See the attached file how to make a special version of itemize
> that has default behaviour like you want. I could have used
> \setupitemgroup[itemize] directly instead, but I assume you don't
> want your bullet lists right aligned as well.
>
> Since ConTeXt cannot know beforehand how wide the number space
> should be (neither do eplain and latex), the 'width' key has to
> be a fixed quantity, but you can still change all of the default
> parameters where you call \startenumerate, just like you did
> before with \startitemize, so that should be only a minor
> nuisance.
>
> I do agree it would be better if the core was extended so that
> the two setups were not necessary.
>
> Best wishes,
> Taco
>
>
>
>
>
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] horizontal list turns into vertical list in framedtext. A bug or feature?

2007-06-25 Thread Hamid Kamrani
Thank you, Hans, for directing me to use streams. Not only it takes
care of this problem it also shows me how to do some other stuff that
I had struggled with.

-Hamid

On 6/24/07, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Hamid Kamrani wrote:
> > Hi Wolfgang,
> >
> > Thanks for your explanation and patch. I appreciate it.
> > However, with the patch, now I have the problem of correct indentation.
> > As this example shows:
> >
> > \input core-itm-patch
>
> \starttext
>
> \usemodule[streams]
>
> \definestreamlayer[whatever][width=12cm]
>
> \startstreamlayer[whatever]
>\startitemize[columns,two][after=]
>  \item one
>  \item two
>  \item three
>  \item four
>\stopitemize
> \stopstreamlayer
>
> \framed[strut=no,align=normal]{\placestreamlayer[whatever]\obeydepth}
>
> \starttextstreamlayer[whatever]
>\startitemize[columns,two]
>  \item one
>  \item two
>  \item three
>  \item four
>\stopitemize
> \stoptextstreamlayer
>
> \framed[strut=no]{\placetextstreamlayer[whatever]}
>
> \stoptext
>
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | fax: 038 477 53 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Hamid Kamrani
On 6/24/07, Hamid Kamrani <[EMAIL PROTECTED]> wrote:
> On 6/24/07, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> > Hamid Kamrani wrote:
> > > Taco and Wolfang,
> > >
> > > Thanks both for your responses.
> > > But:
> > > 1. The setup offered by Taco does not line up the numerals on the
> > > dots. Maybe my problem was misunderstood.
> >
> > Did you miss this?
On a follow-up to previous note:
I think this is how I missed the width issue. In my testing, I had
both distance and width parameters. I may  be doing something wrong
but these two conflict.
\unprotect
\startsetups [numberitemleft]
  \hbox to \dimexpr\getitemparameter\itemlevel \c!width -
   \getitemparameter\itemlevel \c!distance\relax
  \bgroup\hfill
\stopsetups

\startsetups [numberitemright]
  \egroup
\stopsetups
\protect

\starttext
\startitemize[n][style=bold]
\item As a college student, how do you rate yourself?
\startitemize[R,packed][left={\setups[numberitemleft]},
right={\setups[numberitemright]},
stopper={.},
width=3em,
style=\sc,
distance=5em]
 \item The first item.
 \item The second item.
 \item The third item.
 \item The fourth item.
 \item The fifth item.
 \item The sixth item.
 \item The seventh item.
 \item The eighth item.
 \item The ninth item.
 \item The tenth item.
\stopitemize
\stopitemize
\stoptext

Best,
-Hamid

>
> I certainly did. I'm sorry, the misunderstanding was on my part.
>
> I do like your solution. But how to make it the default? This should
> be the default behavior and in fact the required width should be
> calculated by ConTeXt. Otherwise ConTeXt is behaving like MS Word.
>
> Please note that, second to paragraphs, lists are the most widely used
> text blocks. It is imperative that they format correctly.
>
> If you're using Arabic numerals then you have the chance to list your
> first 9 items correctly.But, alas, if you have to use roman numeral.
> The problem shows up in the second item. (you would not itemize if you
> had only one item!)
>
> Taco, I very much appreciate your solution. It allows me to continue
> for now but I humbly ask, in fact, beg to have a solution built in the
> core of ConTeXt.
>
> My apologies for discounting your solution too quickly.
>
> Best regards,
> -Hamid
>
>
>
>
>
> >
> > Taco wrote:
> > > You probably want to increase the 'width' parameter, but that should be
> > > straightforward.
> >
> > It should work with width=2pc (two digits and a dot do not fit in the
> > default allocated space, so the 10. sticks out to the right)
> >
> > Taco
> > ___
> > 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Hamid Kamrani
On 6/24/07, Taco Hoekwater <[EMAIL PROTECTED]> wrote:
> Hamid Kamrani wrote:
> > Taco and Wolfang,
> >
> > Thanks both for your responses.
> > But:
> > 1. The setup offered by Taco does not line up the numerals on the
> > dots. Maybe my problem was misunderstood.
>
> Did you miss this?

I certainly did. I'm sorry, the misunderstanding was on my part.

I do like your solution. But how to make it the default? This should
be the default behavior and in fact the required width should be
calculated by ConTeXt. Otherwise ConTeXt is behaving like MS Word.

Please note that, second to paragraphs, lists are the most widely used
text blocks. It is imperative that they format correctly.

If you're using Arabic numerals then you have the chance to list your
first 9 items correctly.But, alas, if you have to use roman numeral.
The problem shows up in the second item. (you would not itemize if you
had only one item!)

Taco, I very much appreciate your solution. It allows me to continue
for now but I humbly ask, in fact, beg to have a solution built in the
core of ConTeXt.

My apologies for discounting your solution too quickly.

Best regards,
-Hamid





>
> Taco wrote:
> > You probably want to increase the 'width' parameter, but that should be
> > straightforward.
>
> It should work with width=2pc (two digits and a dot do not fit in the
> default allocated space, so the 10. sticks out to the right)
>
> Taco
> ___
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-24 Thread Hamid Kamrani
Taco and Wolfang,

Thanks both for your responses.
But:
1. The setup offered by Taco does not line up the numerals on the
dots. Maybe my problem was misunderstood.

2. With Wolfgang's patch, I think I must be missing some code because
I get the Undefined control sequence error.


systems : begin file itemize-test02 at line 3
! Undefined control sequence.
\redostartitemgroup ...ands \checkcurrentnofitems
  \let \listitem \empty \doi...

\dostartitemgroup ... \dodostartitemgroup [#2][#3]
  \else \doifassignmentelse ...
l.6 \startitemize[n][style=bold]

?
! Undefined control sequence.
\dolistitem ...stelements \optimizelistitemsbreak
  \noindent \setbox 8\hbox {...

Best regards,
-Hamid

On 6/24/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> On Sat, 23 Jun 2007 23:13:22 -0400
> "Hamid Kamrani" <[EMAIL PROTECTED]> wrote:
>
> > At least in the U.S., it is the rule and a strict requirement to
> > typeset vertical lists in such a way that the numerals align on the
> > dot or parenthesis following the numeral.
> >
> > (even the daily violation of the rule by some of the most widely used
> > word processors such as MS Word has not changed this old-aged
> > convention.)
> >
> > I feel it must be possible in ConTeXt to do this because it is such a
> > basic requirement and ConTeXt is used professionally. However, it's
> > not the default behavior and I don't know which options will achieve
> > it.
> >
> > (And if by any chance, this is not yet possible in ConTeXt, can anyone
> > suggest a workaround for this, in ConTeXt of course.
> >
> > It is the default behavior in both LaTeX and eplain.
>
> Hi Hamid,
>
> I corrected my last patch and integrated a itemalign key. You can test
> it with the following example.
>
> \input core-itm-patch
>
> \starttext
>
> \startframedtext[width=\textwidth]
> \startitemize[n][style=bold]
> \item As a college student, how do you rate yourself?
>   \startitemize[5,columns,two]
>   \item Excellent student
>   \item Good student
>   \item Mediocre student
>   \item Poor student
>   \stopitemize
> \stopitemize
> \stopframedtext
>
> \startitemize[n][style=bold]
> \item As a college student, how do you rate yourself?
>   \startitemize[5, columns, two]
>   \item Excellent student
>   \item Good student
>   \item Mediocre student
>   \item Poor student
>   \stopitemize
> \stopitemize
>
> \startitemize[n,packed,broad][itemalign=left]
> \dorecurse{10}{\item Item \recurselevel.}
> \stopitemize
>
> \startitemize[n,packed,broad]
> \dorecurse{10}{\item Item \recurselevel.}
> \stopitemize
>
> \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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

2007-06-23 Thread Hamid Kamrani
At least in the U.S., it is the rule and a strict requirement to
typeset vertical lists in such a way that the numerals align on the
dot or parenthesis following the numeral.

(even the daily violation of the rule by some of the most widely used
word processors such as MS Word has not changed this old-aged
convention.)

I feel it must be possible in ConTeXt to do this because it is such a
basic requirement and ConTeXt is used professionally. However, it's
not the default behavior and I don't know which options will achieve
it.

(And if by any chance, this is not yet possible in ConTeXt, can anyone
suggest a workaround for this, in ConTeXt of course.

It is the default behavior in both LaTeX and eplain.

Compare (eplain):

\numberedlist\listcompact
 \li The first item.
 \li The second item.
 \li The third item.
 \li The fourth item.
 \li The fifth item.
 \li The sixth item.
 \li The seventh item.
 \li The eighth item.
 \li The ninth item.
 \li The tenth item.
\endnumberedlist

and (LaTeX)

\begin{enumerate}
 \item The first item.
 \item The second item.
 \item The third item.
 \item The fourth item.
 \item The fifth item.
 \item The sixth item.
 \item The seventh item.
 \item The eighth item.
 \item The ninth item.
 \item The tenth item.
\end{enumerate}

with (ConTeXt)

\startitemize[n,packed][stopper={.}]
 \item The first item.
 \item The second item.
 \item The third item.
 \item The fourth item.
 \item The fifth item.
 \item The sixth item.
 \item The seventh item.
 \item The eighth item.
 \item The ninth item.
 \item The tenth item.
\stopitemize

Thanks,
-Hamid
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] horizontal list turns into vertical list in framedtext. A bug or feature?

2007-06-22 Thread Hamid Kamrani
Hi Wolfgang,

Thanks for your explanation and patch. I appreciate it.
However, with the patch, now I have the problem of correct indentation.
As this example shows:

\input core-itm-patch

\starttext

Consider\par
\startframedtext[width=\textwidth]
\startitemize[n][style=bold]
\item As a college student, how do you rate yourself?
   \startitemize[5, columns, two]
   \item Excellent student \item Good student \item Mediocre student
\item Poor student
   \stopitemize
\stopitemize
\stopframedtext

versus\par

\startitemize[n][style=bold]
\item As a college student, how do you rate yourself?
   \startitemize[5, columns, two]
   \item Excellent student \item Good student \item Mediocre student
\item Poor student
   \stopitemize
\stopitemize
\stoptext

Thanks,
-Hamid


On 6/22/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:
> 2007/6/21, Hamid Kamrani <[EMAIL PROTECTED]>:
> > I am just wondering if this is a bug or feature or some lack of
> > understanding on my part. The horizontal list turns into a vertical
> > list inside a framedtext environment. The same happens in a background
> > environment.
> >
> > \starttext
> > \startframedtext[width=\textwidth]
> > \startitemize[5, columns, four]
> > \item Excellent student \item Good student \item Mediocre student
> > \item Poor student
> > \stopitemize
> > \stopframedtext
> > \stoptext
> >
> >
> > -Hamid
>
> Hi Hamid,
>
> this can not work because itemize use for the column option the normal
> column environment. I wrote a example that shows the problem and gives
> also a solution.
>
> \starttext
>
> \vbox{\hsize=\textwidth
> \startsimplecolumns
> \input knuth
> \stopsimplecolumns}
>
> \blank
>
> \vbox{\hsize=\textwidth
> \startcolumns
> \input knuth
> \stopcolumns}
>
> \stoptext
>
> The second column environment use the output routine to split the content
> and is only activated at outer level.
>
> A solution would be to include a test inside itemgroup whether we use
> itemize at outer level or inside a box.
>
> 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] horizontal list turns into vertical list in framedtext. A bug or feature?

2007-06-21 Thread Hamid Kamrani
I am just wondering if this is a bug or feature or some lack of
understanding on my part. The horizontal list turns into a vertical
list inside a framedtext environment. The same happens in a background
environment.

\starttext
\startframedtext[width=\textwidth]
\startitemize[5, columns, four]
\item Excellent student \item Good student \item Mediocre student
\item Poor student
\stopitemize
\stopframedtext
\stoptext


-Hamid
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] creating and placing floats with both text and graphics

2007-04-30 Thread Hamid Kamrani
Is it possible to create and place a float in ConTeXt containing both
text and graphics?

In the following sample code a framedtext is created containing a
figuretext but when placing the framedtext as a float on a doublesided
page layout the placement at bottom of the odd page has extra white
spaces below the box and is completely off on the even page (does not
obey the "location=inner" directive. Please advise.

\showframe \showgrid
\setupcolors[state=start]
\enableregime[mac]
\setuplayout[height=10.25in,width=4.75in,margin=2.625in,backspace=.5in,topspace=.75in,header=.25in,footer=.25in,location=middle]

\setuppagenumbering[alternative=doublesided,align=broad,location=]
\setuppapersize[US Letter][US Letter]
\setupbodyfont[rm,10pt]

\starttext

\startbuffer[MyFloat]
\startframedtext[][margin=yes,background=screen,backgroundscreen=.8,width=\dimexpr(\makeupwidth+\marginwidth+\rightmargindistance)]
 {\definedfont[Regular sa 3]  \framed[frame=off,bottomframe=on,strut=no]{Knuth}}

\startfiguretext
[right]
[]
{none}
{\framed[width=5cm,height=3cm]{!}}

 \blank[big]
 \par   
\input knuth
\par
\stopfiguretext
\input knuth
\par
\stopframedtext
\stopbuffer
\placefigure[bottom,location=inner,nonumber][]{none}{\externalfigure[MyFloat.tmp][]}
\dorecurse{3}{\input tufte \par \input knuth \par}
\placefigure[bottom,location=inner,nonumber][]{none}{\externalfigure[MyFloat.tmp][]}

\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___