ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: issue with xtable in latest beta
Date: Wed, 13 May 2015 19:12:31 +0200	[thread overview]
Message-ID: <555385FF.7050306@wxs.nl> (raw)
In-Reply-To: <9C5FA21D-F3D6-4062-B2F9-958979F47320@gmail.com>

On 5/13/2015 5:57 PM, Wolfgang Schuster wrote:
>
>> Am 13.05.2015 um 17:34 schrieb Pablo Rodriguez <oinos@gmx.es>:
>>
>> Hans,
>>
>> I have the following sample:
>>
>>     \setupindenting[yes, always, big]
>>     \starttext
>>     This is the first pagraph.
>>
>>     \startbuffer[somextable]
>>     \startxtable[option=stretch, align=center]
>>         \startxrow
>>             \startxcell[width=.3\textwidth] a \stopxcell
>>             \startxcell[width=.2\textwidth] b \stopxcell
>>             \startxcell[width=.2\textwidth] c \stopxcell
>>             \startxcell[width=.3\textwidth] d \stopxcell
>>         \stopxrow
>>     \stopxtable
>>     \stopbuffer
>>
>>     \startxtable[option=stretch, align=center]
>>         \startxrow
>>             \startxcell[width=.2\textwidth] a \stopxcell
>>             \startxcell b \stopxcell
>>             \startxcell c \stopxcell
>>             \startxcell[width=.2\textwidth] d \stopxcell
>>         \stopxrow
>>     \stopxtable
>>
>>     This is the second paragraph.
>>
>>     \getbuffer[somextable]
>>
>>     This is the third paragraph.
>>     \stoptext
>>
>> With beta from 2015.05.13 13:04, the second and third paragraphs aren’t
>> indented. With beta from 2015.03.25 22:13, all three paragraphs are
>> indented.
>>
>> I’m afraid this may be a bug.
>
>
> The missing indentation of the paragraph after the table is caused by the \noindentation
> command which is called when you set “split=no” for your xtables. In older versions of
> the code Hans used \noindent instead which didn’t lead to the indentation problem.
>
> \setvalue{\??xtableflushsplit\v!no}%
>    {\noindentation % better than \noindent (no \dontleavehmode here) % else no leftskip etc
>    %\ignorespaces
>     \clf_x_table_flush
>       method {\v!normal}%
>     \relax
>     \removeunwantedspaces}

it's hard to find a robust solution

\setvalue{\??xtableflushsplit\v!no}%
   {% \noindent       % gives extra line after table
    % \dontleavehmode % no leftskip
    \kern\zeropoint   % yet another guess
    \ignorespaces
    \clf_x_table_flush
      method {\v!normal}%
    \relax
    \removeunwantedspaces}


(test with \leftskip3cm)



-- 

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

  parent reply	other threads:[~2015-05-13 17:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 15:34 Pablo Rodriguez
2015-05-13 15:57 ` Wolfgang Schuster
2015-05-13 17:00   ` Pablo Rodriguez
2015-05-13 17:12   ` Hans Hagen [this message]
2015-05-13 17:36     ` Pablo Rodriguez
2015-05-13 18:02       ` Hans Hagen

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=555385FF.7050306@wxs.nl \
    --to=pragma@wxs.nl \
    --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).