ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] There is something wrong with this paragraph.
@ 2025-04-08 14:55 Ursula Hermann
  2025-04-08 15:37 ` [NTG-context] " Wolfgang Schuster
  2025-04-08 15:57 ` Aditya Mahajan
  0 siblings, 2 replies; 3+ messages in thread
From: Ursula Hermann @ 2025-04-08 14:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Dear List,
There is a problem with this paragraph, because the has not the right height?

\starttext
\switchtobodyfont[termes, 7.70pt]
\definetextbackground[MyBackground][
  location=paragraph,
  background=color,
  backgroundcolor=greenyellow, x=F1E788,
  leftoffset=.8\bodyfontsize,
  rightoffset=.8\bodyfontsize,
  topoffset=.8\bodyfontsize,
  bottomoffset=.8\bodyfontsize,
  frame=off,
  width=.8\textwidth]
\startMyBackground
\usemodule[amsl]
\startnarrow[left=2.90mm, right=2.90mm][left, right]
{\bf Lebesque-integrierbare Funktionen}\par
\definehspace[ein 1,2][0.25em]
Wenn ($ a$,$ b$) $\subseteq$ $\reals$ ein Intervall bezeichnet, dann ist die Menge $L$$^\uparrow$(($a$,$b$)) die Menge der Funktionen, die fast über- all Grenzwert einer monoton wachsenden Folge von Trep
penfunktionen ($\varphi_k$) sind für die  die Folge ($\int^b_a$ $\varphi_k$ ($x$) $dx$) konvergiert. Für $f$  $\in$
\startformula
\quad \int[method=auto] {f(x) \dd x}_{a}^{b}=\lim_{k\to\infty}\int[method=auto]_{a}^{b}\varphi_k (x) dx).
\stopformula
\stopMyBackground
\stoptext

Many Thanks

Uschi



[-- Attachment #1.2: Type: text/html, Size: 5213 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] 3+ messages in thread

* [NTG-context] Re: There is something wrong with this paragraph.
  2025-04-08 14:55 [NTG-context] There is something wrong with this paragraph Ursula Hermann
@ 2025-04-08 15:37 ` Wolfgang Schuster
  2025-04-08 15:57 ` Aditya Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2025-04-08 15:37 UTC (permalink / raw)
  To: ntg-context

Am 08.04.2025 um 16:55 schrieb Ursula Hermann:
> Dear List,
> 
> There is a problem with this paragraph, because the has not the right 
> height?

What has the wrong height?

> \starttext
> 
> \switchtobodyfont[termes, 7.70pt]
> 
> \definetextbackground[MyBackground][
>    location=paragraph,
>    background=color,
>    backgroundcolor=greenyellow, x=F1E788,

1. The color setting doesn't work because greenyellow isn't defined by 
default.

2. The setting x=F1E788 isn't recognized by \definetextbackground.

>    leftoffset=.8\bodyfontsize,
>    rightoffset=.8\bodyfontsize,
>    topoffset=.8\bodyfontsize,
>    bottomoffset=.8\bodyfontsize,
>    frame=off,
>    width=.8\textwidth]
> 
> \startMyBackground
> 
> \usemodule[amsl]

1. The module shouldn't be necessary because ConTeXt provides the 
functionality of the module out of the box.

2. The module isn't part of ConTeXt itself and unless you installed it 
yourself, nothing is loaded.

> \startnarrow[left=2.90mm, right=2.90mm][left, right]
> {\bf Lebesque-integrierbare Funktionen}\par
> \definehspace[ein 1,2][0.25em]
> Wenn ($ a$,$ b$) $\subseteq$ $\reals$ ein Intervall bezeichnet, dann ist 
> die Menge $L$$^\uparrow$(($a$,$b$)) die Menge der Funktionen, die fast 
> über- all Grenzwert einer monoton wachsenden Folge von Trep
> penfunktionen ($\varphi_k$) sind für die  die Folge ($\int^b_a$ $ 
> \varphi_k$ ($x$) $dx$) konvergiert. Für $f$  $\in$
> \startformula
> \quad \int[method=auto] {f(x) \dd x}_{a}^{b} 
> =\lim_{k\to\infty}\int[method=auto]_{a}^{b}\varphi_k (x) dx).
> \stopformula
> \stopMyBackground
> 
> \stoptext

You're missing \stopnarrow before \stopMyBackground.

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] 3+ messages in thread

* [NTG-context] Re: There is something wrong with this paragraph.
  2025-04-08 14:55 [NTG-context] There is something wrong with this paragraph Ursula Hermann
  2025-04-08 15:37 ` [NTG-context] " Wolfgang Schuster
@ 2025-04-08 15:57 ` Aditya Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2025-04-08 15:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

On Tue, 8 Apr 2025, Ursula Hermann wrote:

> Dear List,
> There is a problem with this paragraph, because the has not the right height?
> 
> \starttext
> \switchtobodyfont[termes, 7.70pt]
> \definetextbackground[MyBackground][
>   location=paragraph,
>   background=color,
>   backgroundcolor=greenyellow, x=F1E788,
>   leftoffset=.8\bodyfontsize,
>   rightoffset=.8\bodyfontsize,
>   topoffset=.8\bodyfontsize,
>   bottomoffset=.8\bodyfontsize,
>   frame=off,
>   width=.8\textwidth]
> \startMyBackground
> \usemodule[amsl]
> \startnarrow[left=2.90mm, right=2.90mm][left, right]
> {\bf Lebesque-integrierbare Funktionen}\par
> \definehspace[ein 1,2][0.25em]
> Wenn ($ a$,$ b$) $\subseteq$ $\reals$ ein Intervall bezeichnet, dann ist die Menge $L$$^\uparrow$(($a$,$b$)) die Menge der Funktionen, die fast über- all Grenzwert einer monoton wachsenden Folge von Trep
> penfunktionen ($\varphi_k$) sind für die  die Folge ($\int^b_a$ $\varphi_k$ ($x$) $dx$) konvergiert. Für $f$  $\in$
> \startformula
> \quad \int[method=auto] {f(x) \dd x}_{a}^{b}=\lim_{k\to\infty}\int[method=auto]_{a}^{b}\varphi_k (x) dx).
> \stopformula
> \stopMyBackground
> \stoptext

Wolfgang has already answered your main question but I would like to point out that the way you are writing math will give wrong horizontal spacing. The standard method is to use $ to start math mode and then $ again to stop math mode: so one would write

Wenn $(a,b) \subseteq \reals$ ein .... Menge $L^{\uparrow}((a,b))$ .... Folge ($\int^b_a \varphi_k(x) \dd x$) .... etc.

Aditya

[-- 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] 3+ messages in thread

end of thread, other threads:[~2025-04-08 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-08 14:55 [NTG-context] There is something wrong with this paragraph Ursula Hermann
2025-04-08 15:37 ` [NTG-context] " Wolfgang Schuster
2025-04-08 15:57 ` Aditya Mahajan

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