ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: fv leung via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: fv leung <fvleung@gmail.com>
Subject: Re: fixing indentation of xtable inside item
Date: Tue, 23 Nov 2021 08:19:49 +0800	[thread overview]
Message-ID: <CAN-yaT=KRD_tmrY+X-rCXkmX3A+_F0mjZJokw88TENsVAK3GZQ@mail.gmail.com> (raw)
In-Reply-To: <CAGhDZhCJbBvbriCerVCzev4MpTaN0URB9XBMQkKErQkgWFgnCA@mail.gmail.com>


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

add

\dontleavehmode

before the table

Andres Conrado Montoya via ntg-context <ntg-context@ntg.nl> 於 2021年11月23日
週二 上午7:58寫道:

> Considering the following MWE, I would like to know how I can get
> the table inside the item to be aligned with the item. It seems the
> tabel takes the width right, but it gets pushed to the left, disregarding
> the item's indentation.
>
> I think I read about this behaviour somewhere, but I have spent 4 hours
> looking for it in the manuals and I can't find it. :(
>
> Any help would be appreciated.
>
> %-------------------------startwme
> \starttext
> \startitemize
> \item
>   Determine la {\sc an} de cada objetivo del microscopio, con los ángulos
> de la tabla y teniendo en cuenta lo siguiente: $n_{\text{aire}} = 1$ y
> $n_{\text{aceite de inmersión}} = 1.515$:
>   \blank
>   \startxtable[align=middle,option=stretch]
>   \startxtablebody[body]
>   \startxrow
>   \startxcell Objetivo 4x \stopxcell
>   \startxcell $n=1$ \stopxcell
>   \startxcell $\alpha=5.8$ \stopxcell
>   \startxcell {\sc an}$=$ \stopxcell
>   \stopxrow
>   \startxrow
>   \startxcell Objetivo 10x \stopxcell
>   \startxcell $n=1$ \stopxcell
>   \startxcell $\alpha=14.5$ \stopxcell
>   \startxcell {\sc an}$=$ \stopxcell
>   \stopxrow
>   \startxrow
>   \startxcell Objetivo 40x \stopxcell
>   \startxcell $n=1$ \stopxcell
>   \startxcell $\alpha=40.5$ \stopxcell
>   \startxcell {\sc an}$=$ \stopxcell
>   \stopxrow
>   \stopxtablebody
>   \startxtablefoot[foot]
>   \startxrow
>   \startxcell Objetivo 100x \stopxcell
>   \startxcell $n=1.515$ \stopxcell
>   \startxcell $\alpha=55.6$ \stopxcell
>   \startxcell {\sc an}$=$ \stopxcell
>   \stopxrow
>   \stopxtablefoot
>   \stopxtable
>
> \stopitemize
> \stoptext
> %-------------------------startwme
>
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconrado@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> ----------------------------------------
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> ----------------------------------------
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 493 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:[~2021-11-23  0:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22 23:57 Andres Conrado Montoya via ntg-context
2021-11-23  0:19 ` fv leung via ntg-context [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='CAN-yaT=KRD_tmrY+X-rCXkmX3A+_F0mjZJokw88TENsVAK3GZQ@mail.gmail.com' \
    --to=ntg-context@ntg.nl \
    --cc=fvleung@gmail.com \
    /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).