From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113916 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fv leung via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Two questions on enumerations/indentation Date: Fri, 31 Dec 2021 07:26:36 +0800 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6407483228096525714==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5243"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fv leung To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 31 00:27:20 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 1n34pM-0001DR-9c for gctc-ntg-context-518@m.gmane-mx.org; Fri, 31 Dec 2021 00:27:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 86D51286DDE; Fri, 31 Dec 2021 00:26:54 +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 dutK65AVahz5; Fri, 31 Dec 2021 00:26:52 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CA753280F94; Fri, 31 Dec 2021 00:26:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 64F2B280F94 for ; Fri, 31 Dec 2021 00:26:51 +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 aF7P4GA0S3va for ; Fri, 31 Dec 2021 00:26:49 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.46; helo=mail-ua1-f46.google.com; envelope-from=fvleung@gmail.com; receiver= Original-Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (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 4021D280F89 for ; Fri, 31 Dec 2021 00:26:49 +0100 (CET) Original-Received: by mail-ua1-f46.google.com with SMTP id v14so27255597uau.2 for ; Thu, 30 Dec 2021 15:26:49 -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=V4Fc0PPiftks4xcy+CGkoF9gLwUmCvIHr3rdFKXLdFw=; b=mcTe1gXbqFWRap4SP9az5OZ2//RJuoXLfPKr/oKuFM4PiRrxsgcKJPfX4zV/nq0K+M koK+jbDjBot4bfH4Zo+uIxIcSxs7ZOWDFJs9M4DQk5ve//ggU90GCVBL5sonsSqvO2Mb z0KrnUiESRI609tfznqwWRiRoq8JbKM7s+ongubUkBp4hi4seNKU5hCnRisaPqKnNKOd ZFCs8YOx5uTZhhtNi7a1LeHCLO8SgKF3Ss9o/M5u43VMpo3EoBbtrjSPEN2M03YbJtW3 insovtri43GnQM7iijzDRMIFIvA0nSCC/EhFsDZ0FuS8+SnYH+8WUt3vGayCa+NpW/zX EZIA== 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=V4Fc0PPiftks4xcy+CGkoF9gLwUmCvIHr3rdFKXLdFw=; b=ndL+PaCYOHtGrVPcPEdpFd2H0NkmMSdiM99DisBReGLdk0I5zbYkfHIS7Y7ew3yX4L 0WT1kBRl2QrDmpoS/PcWYJ89TNXD69OdxMJ0kcHkaCSd6RsZ5M5kGVxV26TCm6pyaOgU RCVV/D1qbw7v6D/zxit/V8uhliMWfqIgsLfBzwTZSVQjy2MxBHWKAgOBiiCRPJheZjg3 aYjalGxjqIvKQ2BF0D+fWQzvJ9cT2FMnMHIncMGpNjOSacKzK+rvpFeiXgyXEDYdBwkX sMmDGmWpqFMlUwolt2htVHYjhpZGQJZY72w4+UwHlmws6dCoFh84btd86yVa697iNgO8 Gxyg== X-Gm-Message-State: AOAM533HOE5VpffVRVSDHsHvXqatboTA2zBgxcpck27ncdD1+ccV3Qtf OVcvkd5Qbx6tHcYRwc7HVh48qAn9Qscgje3hvox8+hQCnKc= X-Google-Smtp-Source: ABdhPJxz6JJR411paBBhQzqIuF3ZRRFoV8n0Rp0eDi/2Dc5b5rRZzocBA0WfQd0Riajuko19buUQp3aHUp+lMq2Szhc= X-Received: by 2002:a67:d78a:: with SMTP id q10mr9391364vsj.49.1640906807130; Thu, 30 Dec 2021 15:26:47 -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:113916 Archived-At: --===============6407483228096525714== Content-Type: multipart/alternative; boundary="000000000000593e9105d46563d5" --000000000000593e9105d46563d5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 > > _________________________________________________________________________= __________ > --000000000000593e9105d46563d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can solve with


\defineenumeration[r= emark][
=C2=A0 alternative=3Dserried,
=C2=A0 width=3Dfit,
=C2=A0 t= ext=3D{{\it Remark}},
=C2=A0 headstyle=3D\tf,
=C2=A0 indenting=3D{fir= st,medium},
=C2=A0 %headcommand=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-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000593e9105d46563d5-- --===============6407483228096525714== 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== --===============6407483228096525714==--