ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* fixing indentation of xtable inside item
@ 2021-11-22 23:57 Andres Conrado Montoya via ntg-context
  2021-11-23  0:19 ` fv leung via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Andres Conrado Montoya via ntg-context @ 2021-11-22 23:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Andres Conrado Montoya


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

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

[-- Attachment #1.2: Type: text/html, Size: 3109 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fixing indentation of xtable inside item
  2021-11-22 23:57 fixing indentation of xtable inside item Andres Conrado Montoya via ntg-context
@ 2021-11-23  0:19 ` fv leung via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: fv leung via ntg-context @ 2021-11-23  0:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: fv leung


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-23  0:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 23:57 fixing indentation of xtable inside item Andres Conrado Montoya via ntg-context
2021-11-23  0:19 ` fv leung via ntg-context

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