From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113921 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mikael Sundqvist via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Two questions on enumerations/indentation Date: Fri, 31 Dec 2021 13:19:11 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3812110498676492256==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24922"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mikael Sundqvist To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 31 13:19:57 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n3Gt3-0006Hy-5U for gctc-ntg-context-518@m.gmane-mx.org; Fri, 31 Dec 2021 13:19:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 06F6F2868D0; Fri, 31 Dec 2021 13:19:30 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HhglAggNf1Zd; Fri, 31 Dec 2021 13:19:28 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0C4BB288952; Fri, 31 Dec 2021 13:19:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 38671288952 for ; Fri, 31 Dec 2021 13:19:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yLwCga8O6RMS for ; Fri, 31 Dec 2021 13:19:25 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.54; helo=mail-ua1-f54.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C17C52868D0 for ; Fri, 31 Dec 2021 13:19:24 +0100 (CET) Original-Received: by mail-ua1-f54.google.com with SMTP id c36so21343716uae.13 for ; Fri, 31 Dec 2021 04:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4lCkh6jwYynkVsqbW7YXHKSIbPNVf99+qK3nKI9s+C0=; b=CsyQjxqnneLC2BKqhCP020hr346imRjpAidfEez6FgUFlUL8lfNaCzo9yu5FuClwzH Nauq1rxG7kw6hICkADe3Bc31f2AejXQs/XzqEg7IxoIohK4UhfXrXNL6zRJ77pw1bAX0 r5xJbV6WQfJggP8ejDi+bUzWPeaQQrFMbZhH+sRjlV1yaGYIRddZTME5vwFkDAxcdWtL NdoN0UJjwlJNp2VdtkHd0GPjT89WCPoBIlc5SayykbN+mEZt8ll+DSeGep9lXts2/u9E 9h6TetS7c+2/QhZV8oCqFHYUrXesy25AtMgUnFsW/0L9awnXMu0mhVwIEhpZ/xkyEY+l 6eLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4lCkh6jwYynkVsqbW7YXHKSIbPNVf99+qK3nKI9s+C0=; b=IBjZvWCXpHUNdLGcTsz4OjPBfGs++OcM6ClCiOHkdi6N/F4+wCRrwFE82+UsbHnzOe OXbjo7ajAInq+SZArkdXShewJoK/kGLS+/V8xp1MEa+xQh2Ccg5eVJ05MLg3gXpeEZT8 ZJTPsPZdl/aN4AsbuUyqQe4/ywQpZqH9Jm1g1/TH08EIjZATDmGhHaOnxXLUuCpcGDez bIdjNcAQT8iufNGjMznNRKxOVfYIEr+wcDZ1pY8EvF3dU1DQGMm+rHexsHOeVcfVGA46 z0Nvx3B7/lphD4LUngyWyCFM/J42MBhX1uOyggruoUQ/hOZ7Pws/U8/3fNQGmS9FNzVO R7ZQ== X-Gm-Message-State: AOAM5304KmvBVy2LjllACRvELpEUhStfTFpugf6T9pwrFkwwJzGID6y1 vl7Y9AuNZvlpPVAitPznDlvk5o3s19dZSg4ZxmT14QN6 X-Google-Smtp-Source: ABdhPJzGYyfA5MWO6gqwBtrjAj6rGHIcb+LFDyyNXeG1wsmmIEL7D8h6ek8Mt+lJ1zZhlDD1SETkiZ+sZAvXAech+N0= X-Received: by 2002:a67:f84e:: with SMTP id b14mr1833492vsp.32.1640953163385; Fri, 31 Dec 2021 04:19:23 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113921 Archived-At: --===============3812110498676492256== Content-Type: multipart/alternative; boundary="000000000000658f2d05d4702e96" --000000000000658f2d05d4702e96 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for that! This certainly gives me an italic Remark and an upright 1. I feel a bit uneasy about adding the style to the text key, but if there is no other way out... I do not get the head indented with your code. /Mikael Den fre 31 dec. 2021 00:26fv leung via ntg-context skrev: > Can solve with > > > \defineenumeration[remark][ > alternative=3Dserried, > width=3Dfit, > text=3D{{\it Remark}}, > headstyle=3D\tf, > indenting=3D{first,medium}, > %headcommand=3D\groupedcommand{\hskip 1em}{}, > ] > > > Mikael Sundqvist via ntg-context =E6=96=BC 2021=E5= =B9=B412=E6=9C=8831=E6=97=A5 =E9=80=B1=E4=BA=94 > =E4=B8=8A=E5=8D=884:55=E5=AF=AB=E9=81=93=EF=BC=9A > >> Hi, >> >> I have two questions: >> >> 1) What is the correct way to indent the first line of a (serried) >> enumeration? In the example below, I can use headcommand, but then I >> do not know what I should replace "1em" below to fit the medium >> indenting. >> >> 2) I miss a numberstyle. What is the correct way to (in the example >> below) get Remark in italic and the number upright? >> >> /Mikael >> >> \defineenumeration[remark][ >> alternative=3Dserried, >> width=3Dfit, >> text=3DRemark, >> headstyle=3Ditalic, >> indenting=3D{yes,medium}, >> %headcommand=3D\groupedcommand{\hskip 1em}{}, >> ] >> >> \starttext >> >> \samplefile{tufte} >> >> \startremark >> This line should be indented. The next line should not be indented. I >> wonder how we can fix that. >> >> This line is fine and is here for comparison. >> \stopremark >> >> \samplefile{tufte} >> >> \stoptext >> >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o >> 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 >> >> ________________________________________________________________________= ___________ >> > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --000000000000658f2d05d4702e96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for that!

This certainly gives me an italic Remark and an upright 1. I feel= a bit uneasy about adding the style to the text key, but if there is no ot= her way out...

I do not get th= e head indented with your code.

/Mikael

Den fre 31 dec. 2021 00:26fv leung via ntg-co= ntext <ntg-context@ntg.nl> = skrev:
Can solve w= ith


\defineenumeration[remark][
=C2=A0 alternativ= e=3Dserried,
=C2=A0 width=3Dfit,
=C2=A0 text=3D{{\it Remark}},
=C2= =A0 headstyle=3D\tf,
=C2=A0 indenting=3D{first,medium},
=C2=A0 %headc= ommand=3D\groupedcommand{\hskip 1em}{},
]

=
Mikael= Sundqvist via ntg-context <ntg-context@ntg.nl> =E6=96=BC 2021=E5= =B9=B412=E6=9C=8831=E6=97=A5 =E9=80=B1=E4=BA=94 =E4=B8=8A=E5=8D=884:55=E5= =AF=AB=E9=81=93=EF=BC=9A
Hi,

I have two questions:

1) What is the correct way to indent the first line of a (serried)
enumeration? In the example below, I can use headcommand, but then I
do not know what I should replace "1em" below to fit the medium indenting.

2) I miss a numberstyle. What is the correct way to (in the example
below) get Remark in italic and the number upright?

/Mikael

\defineenumeration[remark][
=C2=A0 alternative=3Dserried,
=C2=A0 width=3Dfit,
=C2=A0 text=3DRemark,
=C2=A0 headstyle=3Ditalic,
=C2=A0 indenting=3D{yes,medium},
=C2=A0 %headcommand=3D\groupedcommand{\hskip 1em}{},
]

\starttext

\samplefile{tufte}

\startremark
This line should be indented. The next line should not be indented. I
wonder how we can fix that.

This line is fine and is here for comparison.
\stopremark

\samplefile{tufte}

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

maillist : ntg-context@ntg.nl / http://= www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://= context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / http://= www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://= context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000658f2d05d4702e96-- --===============3812110498676492256== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3812110498676492256==--