ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange behavior with the command \inframed{}
@ 2018-10-22  9:24 Fabrice Couvreur
  2018-10-22 10:45 ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Couvreur @ 2018-10-22  9:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,
When I use the \inframed{} command twice, they are not on the same baseline.
Thank you.
Fabrice

\starttext
    \inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times A
\times X=A^{-1}\times B}}
\stoptext

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

[-- Attachment #2: 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
___________________________________________________________________________________

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

* Re: Strange behavior with the command \inframed{}
  2018-10-22  9:24 Strange behavior with the command \inframed{} Fabrice Couvreur
@ 2018-10-22 10:45 ` Aditya Mahajan
  2018-10-23  7:46   ` Fabrice Couvreur
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2018-10-22 10:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 22 Oct 2018, Fabrice Couvreur wrote:

> Hi,
> When I use the \inframed{} command twice, they are not on the same baseline.
> Thank you.
> Fabrice
>
> \starttext
Add \dontleavehmode
>    \inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times A
> \times X=A^{-1}\times B}}
> \stoptext

See
https://wiki.contextgarden.net/Unexpected_behavior#Unsolicited_Vertical_Mode

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

* Re: Strange behavior with the command \inframed{}
  2018-10-22 10:45 ` Aditya Mahajan
@ 2018-10-23  7:46   ` Fabrice Couvreur
  2018-10-23  8:20     ` Fabrice Couvreur
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Couvreur @ 2018-10-23  7:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Aditya,
Thanks.
Fabrice

Le lun. 22 oct. 2018 à 12:45, Aditya Mahajan <adityam@umich.edu> a écrit :

> On Mon, 22 Oct 2018, Fabrice Couvreur wrote:
>
> > Hi,
> > When I use the \inframed{} command twice, they are not on the same
> baseline.
> > Thank you.
> > Fabrice
> >
> > \starttext
> Add \dontleavehmode
> >    \inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times A
> > \times X=A^{-1}\times B}}
> > \stoptext
>
> See
>
> https://wiki.contextgarden.net/Unexpected_behavior#Unsolicited_Vertical_Mode
>
> Aditya
>
> ___________________________________________________________________________________
> 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: 2196 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

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

* Re: Strange behavior with the command \inframed{}
  2018-10-23  7:46   ` Fabrice Couvreur
@ 2018-10-23  8:20     ` Fabrice Couvreur
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2018-10-23  8:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi Aditya,
Sorry but with this file, there are some problems, especially with the last
item.
Thanks.
Fabrice

Le mar. 23 oct. 2018 à 09:46, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
a écrit :

> Hi Aditya,
> Thanks.
> Fabrice
>
> Le lun. 22 oct. 2018 à 12:45, Aditya Mahajan <adityam@umich.edu> a écrit :
>
>> On Mon, 22 Oct 2018, Fabrice Couvreur wrote:
>>
>> > Hi,
>> > When I use the \inframed{} command twice, they are not on the same
>> baseline.
>> > Thank you.
>> > Fabrice
>> >
>> > \starttext
>> Add \dontleavehmode
>> >    \inframed{\m{I\times X=A^{-1}\times B}}  ; \inframed{\m{A^{-1}\times
>> A
>> > \times X=A^{-1}\times B}}
>> > \stoptext
>>
>> See
>>
>> https://wiki.contextgarden.net/Unexpected_behavior#Unsolicited_Vertical_Mode
>>
>> Aditya
>>
>> ___________________________________________________________________________________
>> 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: 2925 bytes --]

[-- Attachment #2: ntg8.tex --]
[-- Type: text/x-tex, Size: 5339 bytes --]

 \definefloat
    [recipe]
    [figure]

  \setupfloat
    [recipe]
    [default={right,none}]

    \define\ItemCommand
  {\hskip\zeropoint\relax\autoinsertnextspace}

  \setupitemgroup
    [itemize]
    [color=black,
     style=bold,
     distance=\zeropoint]

  \setupitemgroup
    [itemize:1]
    [option={n,packed,fit,intext},
    command=\ItemCommand]

  \setupitemgroup
    [itemize:2]
    [lefttext=,
    righttext=,
    option={a,text}]
  
\starttext
  \placerecipe{}{
    \startxtable[align={lohi,middle},bodyfont=9pt,offset=0.5ex]
      \startxrow
        \startxcell[nx=5,frame=off,align={right}]
          Prénom : Marion
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell
          \rotate[rotation=30,width=1.5cm]{\darkred Admise}
        \stopxcell
        \startxcell
          Anglais
        \stopxcell
        \startxcell
          Maths
        \stopxcell
        \startxcell[width=1.5cm]
          Culture générale
        \stopxcell
        \startxcell[width=2.25cm]
          Économie
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell
          Note/20
        \stopxcell
        \startxcell
          12
        \stopxcell
        \startxcell
          14
        \stopxcell
        \startxcell
          8
        \stopxcell
        \startxcell
          11
        \stopxcell
      \stopxrow
      \startxrow[frame=off]
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell[frame=on]
          \bf Moyenne 11,8
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell[nx=5,frame=off,align={right}]
          Prénom : Hichem
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell
          \rotate[rotation=30,width=1.5cm]{\darkred Admis }
        \stopxcell
        \startxcell
          Anglais
        \stopxcell
        \startxcell
          Maths
        \stopxcell
        \startxcell
          Culture générale
        \stopxcell
        \startxcell[width=2cm]
          Économie
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell
          Note/20
        \stopxcell
        \startxcell
          13
        \stopxcell
        \startxcell
          15
        \stopxcell
        \startxcell
          10
        \stopxcell
        \startxcell
          16
        \stopxcell
      \stopxrow
      \startxrow[frame=off]
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell[frame=on]
          \bf Moyenne 14,5
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell[nx=5,frame=off,align={right}]
          Prénom : Lucas
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell
          \rotate[rotation=30,width=1.5cm]{\darkred Refusé}
        \stopxcell
        \startxcell
          Anglais
        \stopxcell
        \startxcell
          Maths
        \stopxcell
        \startxcell
          Culture générale
        \stopxcell
        \startxcell[width=2cm]
          Économie
        \stopxcell
      \stopxrow
      \startxrow
        \startxcell
          Note/20
        \stopxcell
        \startxcell
          9
        \stopxcell
        \startxcell
          8
        \stopxcell
        \startxcell
          4
        \stopxcell
        \startxcell
          11
        \stopxcell
      \stopxrow
      \startxrow[frame=off]
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell
          
        \stopxcell
        \startxcell[frame=on]
          \bf Moyenne 9
        \stopxcell
      \stopxrow
    \stopxtable
  }
  
Trois lycéens comparent leurs relevés de notes à un concours d'entrée d'une école. Ils souhaitent retrouver les coefficients \m{a}, \m{m}, \m{c} et \m{e} associés à chaque matière dans le calcul de la moyenne sachant que la somme des coefficients fait 10.
\startitemize[packed]
\item Montrer que cette situation peut être modélisée par le système d'équations :
  \startformula
   (S) \startmathcases
      \NC 12a+14m+8c+11e   = 118  \NR
      \NC 13a+15m+10c+16e  = 145  \NR
      \NC 9a+8m+4c+11e     =  90  \NR
      \NC a+m+c+e          =  10  \NR     
    \stopmathcases
  \stopformula 
\item 
  \startitemize
  \item Montrer que résoudre le système \m{(S)} revient à résoudre l'équation matricielle \m{A\times X=B} où \m{A} est une matrice carrée d'ordre 4, \m{X} la matrice colonne des coefficients et \m{B} une matrice colonne de dimension \m{4\times 1}.\par
  \item Ci dessous, les étapes de résolution de l'équation matricielle \m{A\times X=B} ont été mélangées. Les remettre dans l'ordre.

\dontleavehmode\inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times A \times X=A^{-1}\times B}} ; \inframed{\m{A\times X=B}} ; \inframed{\m{X=A^{-1}\times B}} ; \inframed{Vérifier que \m{A^{-1}} existe.}\par
\item En déduire, avec une calculatrice, les coefficients \m{a}, \m{m}, \m{c} et \m{e}.
  \stopitemize
\stopitemize

\stoptext

[-- Attachment #3: 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
___________________________________________________________________________________

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

end of thread, other threads:[~2018-10-23  8:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-22  9:24 Strange behavior with the command \inframed{} Fabrice Couvreur
2018-10-22 10:45 ` Aditya Mahajan
2018-10-23  7:46   ` Fabrice Couvreur
2018-10-23  8:20     ` Fabrice Couvreur

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