[NTG-context] Graphics not being aligned correctly in natural tables

2016-05-17 Thread cryo shock
Hello fellow ConTeXt lovers,

I am having trouble with placing graphics in between \bTD and \eTD. I am
using the \externalfigure to do so which works great. The problem is that
they aren't being aligned at all when i use
\setupTABLE[align={middle,lohi}] whereas text is being aligned perfectly in
the middle of each cell.
I found out that one can use \dontleavehmode\externalfigure to force
alignment, which als works. But when I use \dontleave... the graphic isn't
being placed perfectly in the middle but slightly a little bit more to the
top of the cell.
It's not a real problem for me but since everything looks great in the
document, the slightly to the top moved graphics bother me somehow.
Does anybody know a workaround maybe?

Greets, Sebastian
___
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] Graphics not being aligned correctly in natural tables

2016-05-17 Thread luigi scarso
On Tue, May 17, 2016 at 6:47 PM, cryo shock  wrote:

> Hello fellow ConTeXt lovers,
>
> I am having trouble with placing graphics in between \bTD and \eTD. I am
> using the \externalfigure to do so which works great. The problem is that
> they aren't being aligned at all when i use
> \setupTABLE[align={middle,lohi}] whereas text is being aligned perfectly in
> the middle of each cell.
> I found out that one can use \dontleavehmode\externalfigure to force
> alignment, which als works. But when I use \dontleave... the graphic isn't
> being placed perfectly in the middle but slightly a little bit more to the
> top of the cell.
> It's not a real problem for me but since everything looks great in the
> document, the slightly to the top moved graphics bother me somehow.
> Does anybody know a workaround maybe?
>
> Greets, Sebastian
>
mwe...


-- 
luigi
___
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] Graphics not being aligned correctly in natural tables

2016-05-17 Thread

Hi Luigi,

I am afraid that "mwe..." doesn't help.

Thanks tho bro,

Sebastian




Am 17.05.2016 um 18:55 schrieb luigi scarso:



On Tue, May 17, 2016 at 6:47 PM, cryo shock > wrote:


Hello fellow ConTeXt lovers,

I am having trouble with placing graphics in between \bTD and
\eTD. I am using the \externalfigure to do so which works great.
The problem is that they aren't being aligned at all when i use
\setupTABLE[align={middle,lohi}] whereas text is being aligned
perfectly in the middle of each cell.
I found out that one can use \dontleavehmode\externalfigure to
force alignment, which als works. But when I use \dontleave... the
graphic isn't being placed perfectly in the middle but slightly a
little bit more to the top of the cell.
It's not a real problem for me but since everything looks great in
the document, the slightly to the top moved graphics bother me
somehow.
Does anybody know a workaround maybe?

Greets, Sebastian

mwe...


--
luigi


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

Re: [NTG-context] Graphics not being aligned correctly in natural tables

2016-05-17 Thread luigi scarso
On Tue, May 17, 2016 at 9:44 PM, L.S.-Soc&Gam  wrote:

> Hi Luigi,
>
> I am afraid that "mwe..." doesn't help.
>

a minimal working example (a.k.a mwe) that show your  problem.



-- 
luigi
___
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] Graphics not being aligned correctly in natural tables

2016-05-17 Thread Wolfgang Schuster

L.S.-Soc&Gam 
17. Mai 2016 um 22:22
ah ok! I am sorry Luigi, I didn't expect that. :D

code is below; I also packed a ZIP file with this mail, with the 
correct graphics folder, *.tex and precompiled *.pdf, in case that the 
code isn't enough.
but i checked the graphics, they are perfectly aligned on the canvas, 
so they shouldn't be the problem.

Add

\setupTABLE[c][4][strut=no]

at the begin of your table.

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
___