ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Float objects problem (was TABLE in Header ?)
@ 2010-07-19 10:25 Vnpenguin
  2010-07-19 10:31 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Vnpenguin @ 2010-07-19 10:25 UTC (permalink / raw)
  To: ConTeXt list

On Mon, Jul 19, 2010 at 09:21, Hans Hagen <pragma@wxs.nl> wrote:
> On 18-7-2010 4:14, Vnpenguin wrote:
>>
>> Hi,
>> It's possible to put TABLE within header ? I'm looking for an example
>> in Wiki but I can not found yet.
>
> sure, best put the table in a buffer and then call that buffer
>
> (actually, your page can be a table itself ... see example in page-plg.*)
>
> Hans
>

Thanks,
It works with TABLE within header. But I have another problem with
float image. In fact, I have a logo in a cell of my TABLE which is
found in header. Here is the code :
%%======================================================
\startsetups[myheader]
\bTABLE[setups=mytable-header]
\bTR
	\bTD[nr=2] \placefigure[here,force]{none}{\externalfigure[logo][width=22mm]}
\eTD
	\bTD {\tfb Foobar} \eTD
	\bTD[nr=2] Right1\\ Right2 \\ Right3	\eTD
\eTR
\bTR \bTD {\tfa Title \\ Sub-title} \eTD \eTR
\eTABLE
\stopsetups
\setupheadertexts[{\setups[myheader]}]
%%============================================

I got some page OK with this logo[1]. But there are also some bad
pages where I can not found my logo at all [2], or there are many logo
in the page [3].

Is this problem of float objects ? How to fix this ?

All files of my test are downloadable at : https://my.vnoss.net/pub/context/
ConTeXt source file : https://my.vnoss.net/pub/context/test.tex
PDF created by context : https://my.vnoss.net/pub/context/test.pdf

I use ConTeXt 2010.06.23 on Windows XP.

E:\tex> context --version

MTXrun | main context file:
C:/context/tex/texmf-context/tex/context/base/context.tex
MTXrun | current version: 2010.06.23 12:45

Thank you in advance,

Links:
[1] https://my.vnoss.net/pub/context/screenshot-ok.png
[2] https://my.vnoss.net/pub/context/screenshot-ko-1.png
[3] https://my.vnoss.net/pub/context/screenshot-ko-2.png
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Float objects problem (was TABLE in Header ?)
  2010-07-19 10:25 Float objects problem (was TABLE in Header ?) Vnpenguin
@ 2010-07-19 10:31 ` Hans Hagen
  2010-07-19 19:17   ` Vnpenguin
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2010-07-19 10:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 19-7-2010 12:25, Vnpenguin wrote:
> On Mon, Jul 19, 2010 at 09:21, Hans Hagen<pragma@wxs.nl>  wrote:
>> On 18-7-2010 4:14, Vnpenguin wrote:
>>>
>>> Hi,
>>> It's possible to put TABLE within header ? I'm looking for an example
>>> in Wiki but I can not found yet.
>>
>> sure, best put the table in a buffer and then call that buffer
>>
>> (actually, your page can be a table itself ... see example in page-plg.*)
>>
>> Hans
>>
>
> Thanks,
> It works with TABLE within header. But I have another problem with
> float image. In fact, I have a logo in a cell of my TABLE which is
> found in header. Here is the code :
> %%======================================================
> \startsetups[myheader]
> \bTABLE[setups=mytable-header]
> \bTR
> 	\bTD[nr=2] \placefigure[here,force]{none}{\externalfigure[logo][width=22mm]}

don't use placefloat in a table, just \externalfigure

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


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

* Re: Float objects problem (was TABLE in Header ?)
  2010-07-19 10:31 ` Hans Hagen
@ 2010-07-19 19:17   ` Vnpenguin
  0 siblings, 0 replies; 3+ messages in thread
From: Vnpenguin @ 2010-07-19 19:17 UTC (permalink / raw)
  To: ConTeXt list

On Mon, Jul 19, 2010 at 12:31, Hans Hagen <pragma@wxs.nl> wrote:
>> \startsetups[myheader]
>> \bTABLE[setups=mytable-header]
>> \bTR
>>        \bTD[nr=2]
>> \placefigure[here,force]{none}{\externalfigure[logo][width=22mm]}
>
> don't use placefloat in a table, just \externalfigure

Super!
Thank you very much Hans!
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2010-07-19 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19 10:25 Float objects problem (was TABLE in Header ?) Vnpenguin
2010-07-19 10:31 ` Hans Hagen
2010-07-19 19:17   ` Vnpenguin

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).