ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Graphics not being aligned correctly in natural tables
@ 2016-05-17 16:47 cryo shock
  2016-05-17 16:55 ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: cryo shock @ 2016-05-17 16:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 754 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Graphics not being aligned correctly in natural tables
  2016-05-17 16:47 Graphics not being aligned correctly in natural tables cryo shock
@ 2016-05-17 16:55 ` luigi scarso
  2016-05-17 19:44   ` L.S.-Soc&Gam
  0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2016-05-17 16:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 879 bytes --]

On Tue, May 17, 2016 at 6:47 PM, cryo shock <axteffekt@gmail.com> 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

[-- Attachment #1.2: Type: text/html, Size: 1324 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Graphics not being aligned correctly in natural tables
  2016-05-17 16:55 ` luigi scarso
@ 2016-05-17 19:44   ` L.S.-Soc&Gam
  2016-05-17 19:50     ` luigi scarso
  0 siblings, 1 reply; 7+ messages in thread
From: L.S.-Soc&Gam @ 2016-05-17 19:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1622 bytes --]

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 <axteffekt@gmail.com 
> <mailto:axteffekt@gmail.com>> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3397 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Graphics not being aligned correctly in natural tables
  2016-05-17 19:44   ` L.S.-Soc&Gam
@ 2016-05-17 19:50     ` luigi scarso
  2016-05-17 20:22       ` L.S.-Soc&Gam
  0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2016-05-17 19:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 211 bytes --]

On Tue, May 17, 2016 at 9:44 PM, L.S.-Soc&Gam <axteffekt@gmail.com> wrote:

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

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



-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 768 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Graphics not being aligned correctly in natural tables
  2016-05-17 19:50     ` luigi scarso
@ 2016-05-17 20:22       ` L.S.-Soc&Gam
  2016-05-17 21:05         ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: L.S.-Soc&Gam @ 2016-05-17 20:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2558 bytes --]

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.


Greets, Seba


---------------------------------------------

\define\AND{\wedge}
\define\OR{\vee}
\define\NOT{\overbar}

\starttext

\placetable[here][Logikgatter]{Logikgatter}
{\bTABLE
\setupTABLE[offset=1mm,align={middle,lohi}]
\setupTABLE[r][1][style=bold]
\bTR
\bTD Name \eTD
\bTD Bezeichnung \eTD
\bTD Gleichung \eTD
\bTD Funktionsbaustein \eTD
\eTR
\bTR
\bTD NOT \eTD
\bTD nicht \eTD
\bTD $Y=\NOT{A}$ \eTD
\bTD \dontleavehmode\externalfigure[PX/NOT.png][width=50px] \eTD
\eTR
\bTR
\bTD AND \eTD
\bTD und \eTD
\bTD $Y=A \AND B$ \eTD
\bTD \dontleavehmode\externalfigure[PX/AND.png][width=50px] \eTD
\eTR
\bTR
\bTD OR \eTD
\bTD oder \eTD
\bTD $Y=A \OR B$ \eTD
\bTD \dontleavehmode\externalfigure[PX/OR.png][width=50px] \eTD
\eTR
\bTR
\bTD NAND \eTD
\bTD nicht und \eTD
\bTD $Y=\NOT{A \AND B}$ \eTD
\bTD \dontleavehmode\externalfigure[PX/NAND.png][width=50px] \eTD
\eTR
\bTR
\bTD NOR \eTD
\bTD nicht oder \eTD
\bTD $Y=\NOT{A \OR B}$ \eTD
\bTD \dontleavehmode\externalfigure[PX/NOR.png][width=50px] \eTD
\eTR
\bTR
\bTD XOR \eTD
\bTD entweder oder \eTD
\bTD $Y=(\NOT{A} \AND B) \OR (A \AND \NOT{B})$ \eTD
\bTD \dontleavehmode\externalfigure[PX/XOR.png][width=50px] \eTD
\eTR
\bTR
\bTD XNOR \eTD
\bTD nicht entweder oder \eTD
\bTD $Y=\NOT{(\NOT{A} \AND B) \OR (A \AND \NOT{B})}$ \eTD
\bTD \dontleavehmode\externalfigure[PX/XNOR.png][width=50px] \eTD
\eTR
\eTABLE}

\stoptext

---------------------------------------------


Am 17.05.2016 um 21:50 schrieb luigi scarso:
>
>
> On Tue, May 17, 2016 at 9:44 PM, L.S.-Soc&Gam <axteffekt@gmail.com 
> <mailto:axteffekt@gmail.com>> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 5077 bytes --]

[-- Attachment #2: algnprb.zip --]
[-- Type: application/octet-stream, Size: 26914 bytes --]

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* Re: Graphics not being aligned correctly in natural tables
  2016-05-17 20:22       ` L.S.-Soc&Gam
@ 2016-05-17 21:05         ` Wolfgang Schuster
  2016-05-17 22:58           ` [SOLVED] " L.S.-Soc&Gam
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2016-05-17 21:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 471 bytes --]

> L.S.-Soc&Gam <mailto:axteffekt@gmail.com>
> 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

[-- Attachment #1.2: Type: text/html, Size: 1599 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

* [SOLVED] Graphics not being aligned correctly in natural tables
  2016-05-17 21:05         ` Wolfgang Schuster
@ 2016-05-17 22:58           ` L.S.-Soc&Gam
  0 siblings, 0 replies; 7+ messages in thread
From: L.S.-Soc&Gam @ 2016-05-17 22:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 655 bytes --]

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


And of course it works.

Danke sehr Wolfgang.


Cheers, Seba

[-- Attachment #1.2: Type: text/html, Size: 1603 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2016-05-17 22:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 16:47 Graphics not being aligned correctly in natural tables cryo shock
2016-05-17 16:55 ` luigi scarso
2016-05-17 19:44   ` L.S.-Soc&Gam
2016-05-17 19:50     ` luigi scarso
2016-05-17 20:22       ` L.S.-Soc&Gam
2016-05-17 21:05         ` Wolfgang Schuster
2016-05-17 22:58           ` [SOLVED] " L.S.-Soc&Gam

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