* [NTG-context] The formula after the text
@ 2025-02-17 16:09 Ursula Hermann
2025-02-17 16:22 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Ursula Hermann @ 2025-02-17 16:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1502 bytes --]
Dear List,
There is a formula in my example, after the text, (vi) Wir berechnen ..., in the next line left should be the formula
setuppapersize[A4,width=19cm,height=24cm]]
\setcounter[userpage][439]
\setupbodyfont[, 12.95pt]
\setuplayout[backspace=2.9cm,
width=13.50cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[GrayBackground][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize,
rightoffset=.5\bodyfontsize,
topoffset=.5\bodyfontsize,
bottomoffset=.5\bodyfontsize,
frame=off,]
\starttext
\blackrule[color=black, height=0.10ex, width=13.50cm]\dontleavehmode
\inrightmargin{\blackrule[color=black, height=0.10ex, width=1.11cm]\par {\bf 7.3.53}}
\usecolors[svg]
\setupinteraction
[state=start,
contrastcolor=cornflowerblue]
\reference[Abschnitt:1]{7.3.52}
{\bi Beweis (von Proposition \goto{7.3.53} [Abschnitt:1]). \tf Die Eigenschaften (i)-(iii) fol-\par
gen unmittelbar durch leichte Rechnung aus der Definition. \blank
(iv) \quad Wir berechnen \m {u × (v × w)}:
\startformula \startalign[n=2, align={1: right, 2: right}]
\NC u \times (v \times \ w) \NC = u \times \pmatrix{v_2w_3 - v_3w_2} \NR
\stopalign \stopformula
\stoptext
but the alignment is not right, because the formula should be more on the left. What is the right way now?
Many thanks
Uschi
[-- Attachment #1.2: Type: text/html, Size: 7321 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* [NTG-context] Re: The formula after the text
2025-02-17 16:09 [NTG-context] The formula after the text Ursula Hermann
@ 2025-02-17 16:22 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2025-02-17 16:22 UTC (permalink / raw)
To: ntg-context
Am 17.02.2025 um 17:09 schrieb Ursula Hermann:
> Dear List,
>
> There is a formula in my example, after the text, (vi) Wir berechnen …,
> in the next line left should be the formula
>
> setuppapersize[A4,width=19cm,height=24cm]]
>
> \setcounter[userpage][439]
>
> \setupbodyfont[, 12.95pt]
>
> \setuplayout[backspace=2.9cm,
> width=13.50cm]
>
> \defineenumeration
> [theorem]
> [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
> ]
>
> \definetextbackground[GrayBackground][
> location=paragraph,
> background=color,
> backgroundcolor=lightgray,
> leftoffset=.5\bodyfontsize,
> rightoffset=.5\bodyfontsize,
> topoffset=.5\bodyfontsize,
> bottomoffset=.5\bodyfontsize,
> frame=off,]
>
> \starttext
>
> \blackrule[color=black, height=0.10ex, width=13.50cm]\dontleavehmode
>
> \inrightmargin{\blackrule[color=black, height=0.10ex, width=1.11cm]\par
> {\bf 7.3.53}}
>
> \usecolors[svg]
>
> \setupinteraction
> [state=start,
> contrastcolor=cornflowerblue]
>
> \reference[Abschnitt:1]{7.3.52}
>
> {\bi Beweis (von Proposition \goto{7.3.53} [Abschnitt:1]). \tf Die
> Eigenschaften (i)-(iii) fol-\par
> gen unmittelbar durch leichte Rechnung aus der Definition. \blank
> (iv) \quad Wir berechnen \m {u × (v × w)}:
>
> \startformula \startalign[n=2, align={1: right, 2: right}]
> \NC u \times (v \times \ w) \NC = u \times \pmatrix{v_2w_3 - v_3w_2} \NR
> \stopalign \stopformula
>
> \stoptext
>
> but the alignment is not right, because the formula should be more on
> the left. What is the right way now?
Add \showframe at start of your document to see how much space is at
both sides of the formula, when I do this with your document (after
adding the missing "}") the space on both sides is the same.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-17 16:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-17 16:09 [NTG-context] The formula after the text Ursula Hermann
2025-02-17 16:22 ` [NTG-context] " Wolfgang Schuster
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).