ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Tabulate containing high element
Date: Wed, 01 Nov 2017 09:03:56 +0100	[thread overview]
Message-ID: <op.y80l0uhl62epfj@lpr> (raw)
In-Reply-To: <575F19E4-A342-4F20-86C2-3F1A01FB3C4C@elvenkind.com>

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

Hello Taco,

thank you for the hack.

\tabulatesplitlinemode=0 has local effect, so one may enclose it into group to protect global setting.

I also had to enclose some elements into \tbox to get proper vertical alignment - see the MWE attached.

Thank you anyway.

Best regards,

Lukas


On Tue, 31 Oct 2017 13:37:00 +0100, Taco Hoekwater <taco@elvenkind.com> wrote:

>
> Hi,
>
> This should work:
>
>   \tabulatesplitlinemode=0 % 1 | 2, default: 1
>   % controls the splitting dimensions for lines in ‘p’ mode
>   % 0: do nothing
>   % 1: make each line exactly the height and depth of \strut
>   % 2: make each line at least the height and depth height of \strut
>
>
> Undocumented, so likely to change in the next beta ;)
>
> Best wishes,
> Taco


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

[-- Attachment #2: Tabul-with-HighElem.mkiv --]
[-- Type: application/octet-stream, Size: 1059 bytes --]

\setupexternalfigures[location=default]

\starttext
  \starttabulate[|pd(.4\textwidth)|p|]
    \HL
    \NC
      Pepa
    \VL
      \framed[location=top,width=1in,height=1in]{Zdepa}
    \NC\NR
    \HL
  \stoptabulate

  \start
    \tabulatesplitlinemode=0
    \starttabulate[|pd(.4\textwidth)|p|]
      \HL
      \NC
        \framed[location=top,width=1in,height=1in]{Abc}
      \VL
        Def
      \NC\NR
%
      \HL
      \NC
        Ghi
      \VL
        \framed[location=top,width=1in,height=1in]{Abc}
      \NC\NR
      \HL
%
      \NC
        Hacker in tbox
      \VL
        \tbox{\externalfigure[hacker][height=1in]}
      \NC\NR
      \HL
%
      \NC
        \externalfigure[hacker][height=1in]
      \VL
        Hacker without tbox
      \NC\NR
      \HL
%
      \NC
        Comb with tbox
      \VL
        \tbox{%
          \startcombination[1*2]
            {Bar}{1}
            {Baz}{2}
          \stopcombination%
        }
      \NC\NR
      \HL
    \stoptabulate
  \stop
\stoptext

[-- Attachment #3: Tabul-with-HighElem.pdf --]
[-- Type: application/pdf, Size: 44538 bytes --]

[-- Attachment #4: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2017-11-01  8:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29 12:14 Procházka Lukáš Ing.
2017-10-29 22:50 ` Aditya Mahajan
2017-10-30  8:04   ` Procházka Lukáš Ing.
2017-10-31 11:55     ` Procházka Lukáš Ing.
2017-10-31 12:37       ` Taco Hoekwater
2017-11-01  8:03         ` Procházka Lukáš Ing. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.y80l0uhl62epfj@lpr \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).