ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* creating multiline paragraph in \tabulate
@ 2015-05-19 15:54 John Culleton
  2015-05-19 17:16 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: John Culleton @ 2015-05-19 15:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Supposedly \tablulate can handle a multiline
paragraph in a single cell. It didn't work for
me. The text just ran off the right edge of
the page. So here is my two column table with a
workaround.
---------------------------------------------
\starttext
{\bf Figure 2.3: Specialty Food Store
Classifications}
\setupframed[framecorner=rectanglular,background=none]
\tfx
\placetable[force,none]{}
\starttabulate[|lw(.25\textwidth)|lpw(.75\textwidth)|]
\HL 
...
\NC Housewares \NC Gourmet pots and pans and other cookware, with some impulse\NC\NR 
\NC \null \NC and companion food items \NC\NR
...
\HL 
\stoptabulate 
\tf
\stoptext
-------------
In my version the \null command was necessary to
skip the left column.

Also, I want the title of the table at the top
and not the bottom. So I have to add a separate
title line at the top and blank out the generated
title with a graphic of blank space placed below
the table thus:
\vskip -0.35in
\externalfigure[blanker.pdf]

There ought to be an easier way to get rid of the
title at the bottom of the table but this is the
best I could come up with. The file blanker.pdf
was generated in Scribus 1.5.0
----------------------------------------------------------------------
John Culleton Wexford Press Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html 
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: creating multiline paragraph in \tabulate
  2015-05-19 15:54 creating multiline paragraph in \tabulate John Culleton
@ 2015-05-19 17:16 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2015-05-19 17:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Tue, 19 May 2015, John Culleton wrote:

> Supposedly \tablulate can handle a multiline
> paragraph in a single cell. It didn't work for
> me. The text just ran off the right edge of
> the page. So here is my two column table with a
> workaround.
> ---------------------------------------------
> \starttext
> {\bf Figure 2.3: Specialty Food Store
> Classifications}
> \setupframed[framecorner=rectanglular,background=none]
> \tfx
> \placetable[force,none]{}
> \starttabulate[|lw(.25\textwidth)|lpw(.75\textwidth)|]

Simply use p(.75\textwidth)


\setupcaption[table][location=top]
\starttext
\startplacetable
     [title={Specialty Food Store Classifications},
      location={here,top}]
\starttabulate[|lw(.25\textwidth)|p(.75\textwidth)|]
\HL 
\NC Housewares 
\NC Gourmet pots and pans and other cookware, with some
     impulse and companion food items 
\NC\NR
\HL 
\stoptabulate 
\stopplacetable
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-19 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 15:54 creating multiline paragraph in \tabulate John Culleton
2015-05-19 17:16 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).