From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id C2F3B21002 for ; Fri, 22 Mar 2024 16:01:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9BCAA483B30 for ; Fri, 22 Mar 2024 16:00:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=univie.ac.at Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gqqyfKNkjCXB for ; Fri, 22 Mar 2024 16:00:38 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 986C3483E92 for ; Fri, 22 Mar 2024 15:58:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 95BA2482A92 for ; Fri, 22 Mar 2024 15:58:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PgMf2Hk2staV for ; Fri, 22 Mar 2024 15:58:03 +0100 (CET) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=131.130.3.115; helo=grace.univie.ac.at; envelope-from=ursula.hermann@univie.ac.at; receiver= Received: from grace.univie.ac.at (grace.univie.ac.at [131.130.3.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 2BE7E482A7D for ; Fri, 22 Mar 2024 15:58:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev4; h=MIME-Version:Content-Type:In-Reply-To:References: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=MO97OyiIeN4htl6++ghrw/bD+IaX+fu8mE3fQPwjrxs=; b=kp4wSVHcQJgPaZDvyrt2EXtGWZ +nXhcpQE6OGymeVLi5pXsnz/ySXWcsP9irQJuJkvrepCBvAVl35EY4xeB5tnK7W1kp5ygl+ZHQ7V+ 34XVelP/L4OdxLEp3SKDab0ijoSivE05FeTS+9Yu+9f+s1CPoLshlOwwhuk/vwKqm9ytIawJrrnaG SanZvGpxtIRQidpbd73gl9qXQifOFweuugiEZbXe2dVZPvIXfMDv6D619ILZrZH+QjN2mBkJ1Vq3B 5lUGyUV7XL5jp97JhFAYe4JkCXMkUkpbUEkpt33BYxo9+RSBlaQ4ZADwohv2zZd4KKi1pXLbgCBeF opMiAF9g==; Received: from joan.univie.ac.at ([131.130.3.110] helo=joan.univie.ac.at) by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1rngLK-00000009Oko-2NWh for ntg-context@ntg.nl; Fri, 22 Mar 2024 15:58:02 +0100 Received: from exdb1.d.univie.ac.at ([131.130.95.51] helo=EXDB1.d.univie.ac.at) by joan.univie.ac.at with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.97.1) (envelope-from ) id 1rngLK-0000000DiuW-0F0k for ntg-context@ntg.nl; Fri, 22 Mar 2024 15:58:02 +0100 Received: from EXDB1.d.univie.ac.at (131.130.95.51) by EXDB1.d.univie.ac.at (131.130.95.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 22 Mar 2024 15:57:54 +0100 Received: from EXDB1.d.univie.ac.at ([fe80::e345:900f:7707:9815]) by EXDB1.d.univie.ac.at ([fe80::e345:900f:7707:9815%4]) with mapi id 15.02.1544.009; Fri, 22 Mar 2024 15:57:54 +0100 From: Ursula Hermann To: mailing list for ConTeXt users Thread-Topic: [NTG-context] Re: Struggling with the distance and right margin text Thread-Index: AQHadthRpk6dul/0cU+i75A22zxc4LE5F6qAgArMhVU= Date: Fri, 22 Mar 2024 14:57:54 +0000 Message-ID: <3b89c2fc3b734d3e8bbea51f6de20d83@univie.ac.at> References: <4950e68606c144a7a32aabbfe9196b81@univie.ac.at>,<2af428b2-1676-3d30-4c1c-6b4b59a6edd2@gmx.es> In-Reply-To: <2af428b2-1676-3d30-4c1c-6b4b59a6edd2@gmx.es> Accept-Language: de-AT, en-US Content-Language: de-AT X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [217.149.173.55] x-process: ESTProcessDone MIME-Version: 1.0 X-Univie-Virus-Scan: scanned by ClamAV on joan.univie.ac.at Message-ID-Hash: MBHQFQTJDZ2E6FA7ASUUETZRBVRSOEAT X-Message-ID-Hash: MBHQFQTJDZ2E6FA7ASUUETZRBVRSOEAT X-MailFrom: ursula.hermann@univie.ac.at X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Struggling with the distance and right margin text List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5731281712275267069==" --===============5731281712275267069== Content-Language: de-AT Content-Type: multipart/alternative; boundary="_000_3b89c2fc3b734d3e8bbea51f6de20d83univieacat_" --_000_3b89c2fc3b734d3e8bbea51f6de20d83univieacat_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Dear Pablo, Many thanks for your example. Sorry for writing so late. At least I found out, how it works for me . This is the best way. \setuppapersize[A8,landscape] \setupbodyfont[termes, 12.50pt] \setuplayout[inrightmargin=3D5.1cm backspace=3D2.9cm, inleftmargin=3D0cm,width=3D4cm] \inrightmargin{\blackrule\\{3.2.2}}\par \dontleavehmode \blackrule \showframe \starttext Me \stoptext ________________________________ Von: Pablo Rodriguez via ntg-context Gesendet: Freitag, 15. M=E4rz 2024 20:00:35 An: ntg-context@ntg.nl Cc: Pablo Rodriguez Betreff: [NTG-context] Re: Struggling with the distance and right margin te= xt On 3/15/24 14:06, Ursula Hermann wrote: > Dear List, Dear Ursula, this might help you (it isn=92t perfect, but you just seem to copy and paste fragments from your source files): %\showframe\showstruts \mainlanguage[de-at] \setuppagenumbering[alternative=3Ddoublesided] \definemargindata [MyInMargin][ininner] \definemarginframed[MyInMargin] [topframe=3Don,bottomframe=3Don,rulethickness=3D1pt,width=3D1.90cm] \defineframed[topruletitle] [width=3Dmax, frame=3Doff, topframe=3Don, rulethickness=3D1pt, align=3D{justify}, extras=3D\dontleavehmode] \starttext \topruletitle{\MyInMargin {1.1.1}\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par \input knuth\page \topruletitle{\MyInMargin{3.2.22}{\bf Theorem 3.2.22 (Rechenregeln f=FCr Quantoren)}. Seien \m P(\m x)und \input zapf b} \stoptext Sorry for saying that again, but please elaborate both your minimal samples and your descriptions of the issues you are experiencing. Some comments on the code fragments you sent. First of all, please include always code that can be compiled simply after being copied and pasted. This requires \starttext (most of the time) and \stoptext (mandatory to avoid stupid errors). > \definepapersize[MyBook][width=3D19cm,height=3D29.7cm] > \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook > %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 paper > \setupbodyfont[modern, 12.50pt] If these lines are irrelevant for the issue you are experiencing, please don=92t include them. > \definemargindata [MyInMargin][inleft] > \definemarginframed[MyInMargin][topframe=3Don,bottomframe=3Don,rulethickn= ess=3D1pt,width=3D1.90cm] You define this margin framed, but your sample makes no use of it. Sorry, but I don=92t get it. > \defineenumeration > [theorem] > [ > text=3DTheorem, > title=3Dyes, > width=3Dfit, > distance=3D0.2em, > alternative=3Dserried, > ] > \definetextbackground[GrayBackground][ > location=3Dparagraph, > background=3Dcolor, > backgroundcolor=3Dlightgray, > leftoffset=3D.5\bodyfontsize, > rightoffset=3D.5\bodyfontsize, > topoffset=3D.5\bodyfontsize, > bottomoffset=3D.5\bodyfontsize, > frame=3Doff,] > \margintext{\blackrule[color=3Dblack, height=3D0.10ex, width=3D1cm]\\} > \blackrule[color=3Dblack, height=3D0.10ex, width=3D13.50cm] If your sample includes no theorem or text background, please remove these definitions when sending code. BTW, avoid include text content (such as margin and body rules [but not their definitions]) before \starttext. Also, use \clrf instead of \\ (since the mailing list displays the relevant line as ("\" instead of "\\"): > \margintext{\blackrule[color=3Dblack, height=3D0.10ex, width=3D1cm]\} Here starts your text: > \starttext > \margintext {1.1.1} > {\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par Your margin text is undefined. Your code has a defined margin text command, but it isn=92t used. > So I have here an example from the second page: Sorry, but I=92m having the impression you are using ConTeXt as a kind of command-based DTP software (which I think it isn=92t at all). Or, do you define commands for each page? I think it is better to define a single margin text command and use a doublesided page setup. > \definemargindata[inrightmargin][right][margin=3Dmargin,width=3D.50em\rig= htmarginwidth,style=3D,color=3D] > \definemarginframed[MyInMargin][topframe=3Don,bottomframe=3Don,rulethickn= ess=3D1pt, width=3D.90cm] Again, margin text commands defined, but never used. > \blackrule[color=3Dblack, height=3D0.10ex, width=3D13.40cm] > {\blackrule[color=3Dblack, height=3D0.10ex, width=3D1cm, distance=3D.90cm= ]\par Here you open a brace that is not closed at all. At least, consider that this won=92t be extremely readable for other people (this is only a sample). It also may be problematic for you, if you leave the source untouched for some weeks. > \defineenumeration > [theorem] > [ > text=3DTheorem, > title=3Dyes, > width=3Dfit, > distance=3D0.2em, > alternative=3Dserried, > ] At least, it would be better not to include a definition inside content that seems to (or may) be grouped with braces. BTW, it is exactly the same definition as the one included before. It isn=92t just to be removed in minimal samples, your final code doesn=92t need the duplicated command definition. > \inright{3.2.22} > {\bf Theorem 3.2.22 (Rechenregeln f=FCr Quantoren)}. Seien \m P(\m x)und > > My problem here is that there is not the same distance between the the > text and the margintext . Please, always compile the minimal samples that you send to the list. This is simply to ensure other list subscribers will get the same results as you. After adding a final \stoptext command, I had to run: mtxrun --script check source-sample.tex This allowed me to spot the problem with the unclosed brace (mentioned before). > And now the margintext should be on the right side. I get the second margin text on the right side (after all, this is what \inright does). > So maybe someone could help me please. Please, help us to help you. Please, send both more verbose and acurate descriptions and minimal working code samples. I really hope this may help, Pablo ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-c= ontext.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________= ________ --_000_3b89c2fc3b734d3e8bbea51f6de20d83univieacat_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Dear Pablo, 


Many thanks for your example. Sorry for writing so late. 

At least I found out, how it works for me .  This is the best way.&= nbsp;


\setuppapersize[A8,landscape]
\setupbodyfont[termes, 12.50pt]
\setuplayout[inrightmargin=3D5.1cm
             backspace=3D2.9cm,
             inleftmargin=3D0cm,wid= th=3D4cm]
\inrightmargin{\blackrule\\{3.2.2}}\par \dontleavehmode \blackrule
\showframe
\starttext
Me

\stoptext



Von: Pablo Rodriguez via = ntg-context <ntg-context@ntg.nl>
Gesendet: Freitag, 15. M=E4rz 2024 20:00:35
An: ntg-context@ntg.nl
Cc: Pablo Rodriguez
Betreff: [NTG-context] Re: Struggling with the distance and right ma= rgin text
 
On 3/15/24 14:06, Ursula Hermann wrote:
> Dear List, 

Dear Ursula,

this might help you (it isn=92t perfect, but you just seem to copy and
paste fragments from your source files):

  %\showframe\showstruts
  \mainlanguage[de-at]
  \setuppagenumbering[alternative=3Ddoublesided]
  \definemargindata  [MyInMargin][ininner]
  \definemarginframed[MyInMargin]
    [topframe=3Don,bottomframe=3Don,rulethickness=3D1pt,widt= h=3D1.90cm]
  \defineframed[topruletitle]
    [width=3Dmax,
     frame=3Doff,
     topframe=3Don,
     rulethickness=3D1pt,
     align=3D{justify},
     extras=3D\dontleavehmode]
  \starttext
  \topruletitle{\MyInMargin {1.1.1}\bf
  Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \par<= br>   \input knuth\page

  \topruletitle{\MyInMargin{3.2.22}{\bf
  Theorem 3.2.22 (Rechenregeln f=FCr Quantoren)}. Seien \m P(\m x)und<= br> \input zapf b}
  \stoptext

Sorry for saying that again, but please elaborate both your minimal
samples and your descriptions of the issues you are experiencing.

Some comments on the code fragments you sent.

First of all, please include always code that can be compiled simply
after being copied and pasted.

This requires \starttext (most of the time) and \stoptext (mandatory to
avoid stupid errors).

> \definepapersize[MyBook][width=3D19cm,height=3D29.7cm]
> \setuppapersize[MyBook][MyBook] % Prints on paper the size of MyBook > %\setuppapersize[MyBook][A4] %Would print MyBook-size pages on A4 pape= r
> \setupbodyfont[modern, 12.50pt]

If these lines are irrelevant for the issue you are experiencing, please don=92t include them.

> \definemargindata  [MyInMargin][inleft]
> \definemarginframed[MyInMargin][topframe=3Don,bottomframe=3Don,rulethi= ckness=3D1pt,width=3D1.90cm]

You define this margin framed, but your sample makes no use of it.

Sorry, but I don=92t get it.

> \defineenumeration
>   [theorem]
>   [
>     text=3DTheorem,
>     title=3Dyes,
>     width=3Dfit,
>     distance=3D0.2em,
>     alternative=3Dserried,
>   ]
> \definetextbackground[GrayBackground][
>   location=3Dparagraph,
>   background=3Dcolor,
>   backgroundcolor=3Dlightgray,
>   leftoffset=3D.5\bodyfontsize,
>   rightoffset=3D.5\bodyfontsize,
>   topoffset=3D.5\bodyfontsize,
>   bottomoffset=3D.5\bodyfontsize,
>   frame=3Doff,]
>   \margintext{\blackrule[color=3Dblack, height=3D0.10ex, width=3D= 1cm]\\}
>   \blackrule[color=3Dblack, height=3D0.10ex, width=3D13.50cm]

If your sample includes no theorem or text background, please remove
these definitions when sending code.

BTW, avoid include text content (such as margin and body rules [but not
their definitions]) before \starttext.

Also, use \clrf instead of \\ (since the mailing list displays the
relevant line as ("\" instead of "\\"):

>   \margintext{\blackrule[color=3Dblack, height=3D0.10ex, wid= th=3D1cm]\}

Here starts your text:

> \starttext
> \margintext {1.1.1}
> {\bf Beispiel 3.2.17. (Vertauschung von All- und Existenzquantor).} \p= ar

Your margin text is undefined. Your code has a defined margin text
command, but it isn=92t used.

> So  I have here an example from the second page: 

Sorry, but I=92m having the impression you are using ConTeXt as a kind of command-based DTP software (which I think it isn=92t at all).

Or, do you define commands for each page?

I think it is better to define a single margin text command and use a
doublesided page setup.

> \definemargindata[inrightmargin][right][margin=3Dmargin,width=3D.50em\= rightmarginwidth,style=3D,color=3D]
> \definemarginframed[MyInMargin][topframe=3Don,bottomframe=3Don,rulethi= ckness=3D1pt, width=3D.90cm]

Again, margin text commands defined, but never used.

> \blackrule[color=3Dblack, height=3D0.10ex, width=3D13.40cm]
> {\blackrule[color=3Dblack, height=3D0.10ex, width=3D1cm, distance=3D.9= 0cm]\par

Here you open a brace that is not closed at all.

At least, consider that this won=92t be extremely readable for other
people (this is only a sample).

It also may be problematic for you, if you leave the source untouched
for some weeks.

> \defineenumeration
>   [theorem]
>   [
>     text=3DTheorem,
>     title=3Dyes,
>     width=3Dfit,
>     distance=3D0.2em,
>     alternative=3Dserried,
>   ]

At least, it would be better not to include a definition inside content
that seems to (or may) be grouped with braces.

BTW, it is exactly the same definition as the one included before.

It isn=92t just to be removed in minimal samples, your final code doesn=92t=
need the duplicated command definition.

> \inright{3.2.22}
> {\bf Theorem 3.2.22 (Rechenregeln f=FCr Quantoren)}. Seien \m P(\m x)u= nd 
>
> My problem here is that there is not the same distance between the &nb= sp;the
> text and the  margintext .

Please, always compile the minimal samples that you send to the list.

This is simply to ensure other list subscribers will get the same
results as you.

After adding a final \stoptext command, I had to run:

  mtxrun --script check source-sample.tex

This allowed me to spot the problem with the unclosed brace (mentioned
before).

> And now the margintext should be on the right side. 

I get the second margin text on the right side (after all, this is what
\inright does).

> So maybe someone could help me please. 

Please, help us to help you.

Please, send both more verbose and acurate descriptions and minimal
working code samples.

I really hope this may help,

Pablo
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ad= e.nl / https://context.aanhet.net (mirror)
archive  : https:= //github.com/contextgarden/context
wiki     : h= ttps://wiki.contextgarden.net
___________________________________________________________________________= ________
--_000_3b89c2fc3b734d3e8bbea51f6de20d83univieacat_-- --===============5731281712275267069== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============5731281712275267069==--