From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105979 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: Indentation problem inside enumeration Date: Thu, 2 Jan 2020 18:56:14 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8882100066963688805==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="86840"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 02 18:57:18 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1in4ik-000MQ9-5q for gctc-ntg-context-518@m.gmane.org; Thu, 02 Jan 2020 18:57:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 02D1B1648C9; Thu, 2 Jan 2020 18:56:44 +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 wPRyIpFTzNoe; Thu, 2 Jan 2020 18:56:43 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C2ABA1648DE; Thu, 2 Jan 2020 18:56:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7D9551648CE for ; Thu, 2 Jan 2020 18:56:42 +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 MTFIcQ2RMX0a for ; Thu, 2 Jan 2020 18:56:41 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.170; helo=mail-qt1-f170.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 97FCD1648C9 for ; Thu, 2 Jan 2020 18:56:41 +0100 (CET) Original-Received: by mail-qt1-f170.google.com with SMTP id j5so35174648qtq.9 for ; Thu, 02 Jan 2020 09:56:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=SKE5W3Ojpyzb8VKVkELgJ9j/aYuvMUskWa86US37eVI=; b=PpeA5ojExka4ezTYrSx592dxvi2j1n5/yIN3FudLcgpTffZdl5go05kp5gbvKFbnDV xy+TTlMqHDDDBX7mbtp3V51osYbxhBIdyMgpvDwUYbgOAfp0OZUlyaR00rm7VQxE1l+a HoM5Jzh79FHlqTh7SkVE0VjpNGmKnZfzxbQtEibzlo+hA0QyT75Z6elHUjh0QA+Slm4V 2ZkoVMgdeEz2AHzDbUcdJcqC5K1DAi5YNXyqB58LsQujfFr1jl4VHncsQmhshH9eW371 jvIY7MCQgP0HzvR6ZiNrYl39abWvegAhWexhmiVoy7qilkYCpe3HTROvk5MUfNTACVfr obZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=SKE5W3Ojpyzb8VKVkELgJ9j/aYuvMUskWa86US37eVI=; b=V7XJy/puQDMxkPHqM7NjbQ0IPBGDIAzI+NzOPkn4vQ9r7N/zvt+x0Er5zbVtGu5dTm zN7xpTgecmYhvvllR44yYnFcd6moY6MnZW35VeX3n9Qe2PfcKulf+wl9NWmOURZqonGY jdiKwP/zCHmZzACgnjlT7YAuQHEEcLYXh5NrXjn2AilALbJ57sBAuoH4WT1PYMLRo9uT A3hFcMqbpP0AIqcYqRQRLAXqSwjBis16gY0lSMX/CnMeKq8Ap6IttLhlnSjvleSbnf0b FyGpkHaDWREk2obbOG56Evu0VsLKDD/Pcd6B7pYRQJRFaufHo+62p4Nb4S9uJ7GpyJzF zpeA== X-Gm-Message-State: APjAAAVVHbn8jpdKcBdPTM3CJafViKdeH10OxECm6IvzrUetew0QtmA5 rTHpcD6Juzau9TTfzZ0HxSYgcsFKFM2hLYZilqop9A== X-Google-Smtp-Source: APXvYqyXGRRHtYAAgxjeOHwqAHnsJd8TguD4DccetGnm/0Ed4LaUzHG4md9oWqSfzZXRlmzKAJec7A07zLgzhzkh3vQ= X-Received: by 2002:ac8:31f0:: with SMTP id i45mr61421865qte.327.1577987799969; Thu, 02 Jan 2020 09:56:39 -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.org gmane.comp.tex.context:105979 Archived-At: --===============8882100066963688805== Content-Type: multipart/alternative; boundary="00000000000046f52f059b2bea6e" --00000000000046f52f059b2bea6e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Dec 17, 2019 at 8:39 AM Mikael P. Sundqvist wrote: > Hi! > > I've met a strange problem with indentation in consecutive enumerations. > It seems to me that if > > 1) the first enumeration uses indentnext=3Dno > AND > 2) the next enumeration uses a background > > then the second(?) paragraph of the second enumeration is not indented. > > Here is a small example (see what lines to comment to avoid the problem). > > %%% > \defineenumeration[losning][ > text=3DL=C3=B6sning, > title=3Dyes, > alternative=3Dserried, > width=3Dfit, > number=3Dno, > headstyle=3D{\em}, > titlestyle=3D, > indentnext=3Dno,% another way to get indentation is to comment this line > indenting=3D{yes,medium}, > ] > > \defineframedtext[anm=C3=A4rkningsbakgrunden][ > width=3D\textwidth, > background=3Dcolor, > backgroundcolor=3Dgray, > ] > > \defineenumeration[anmarkning][ > text=3DAnm=C3=A4rkning, > title=3Dyes, > headstyle=3D{\definedfont[Bold*default]\WORD}, > alternative=3Dserried, > width=3Dfit, > number=3Dno, > prefix=3Dno, > indentnext=3Dno, > indenting=3D{yes,medium}, > before=3D{\startanm=C3=A4rkningsbakgrunden},% if these two lines are comm= ented > then > after=3D{\stopanm=C3=A4rkningsbakgrunden},% the indentation works > ] > > \starttext > > \startlosning > This environment destroys indentation in the next. > \stoplosning > > \startanmarkning > This is just a first paragraph. > > This paragraph should be indented. > > This paragraph is always indented. > \stopanmarkning > \stoptext > %%% > > (This is a stripped down example with some settings removed. But it shows > the point.) > > Am I doing something wrong? The resulting pdf is attached. > > /Mikael > > PS I think I saw this problem both with mkiv and lmtx. > > Bump. (Am I doing something wrong?) /Mikael --00000000000046f52f059b2bea6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Dec 17, 2019 at 8:39 AM Mikael P.= Sundqvist <mickep@gmail.com>= wrote:
Hi!

I've met a s= trange problem with indentation in consecutive enumerations. It seems to me= that if

1) the first enumeration uses indentnext= =3Dno
AND
2) the next enumeration uses a background

then the second(?) paragraph of the second enumeratio= n is not indented.

Here is a small example (see wh= at lines to comment to avoid the problem).

%%%
\defineenumeration[losning][
text=3DL=C3=B6sning,
title=3Dyes,=
alternative=3Dserried,
width=3Dfit,
number=3Dno,
headstyle=3D{= \em},
titlestyle=3D,
indentnext=3Dno,% another way to get indentation= is to comment this line
indenting=3D{yes,medium},
]

\definefr= amedtext[anm=C3=A4rkningsbakgrunden][
width=3D\textwidth,
= background=3Dcolor,
backgroundcolor=3Dgray,
]

\defineenumerati= on[anmarkning][
text=3DAnm=C3=A4rkning,
title=3Dyes,
headstyle=3D{= \definedfont[Bold*default]\WORD},
alternative=3Dserried,
width=3Dfit,=
number=3Dno,
prefix=3Dno,
indentnext=3Dno,
indenting=3D{yes,me= dium},
before=3D{\startanm=C3=A4rkningsbakgrunden},% if these two lines = are commented then
after=3D{\stopanm=C3=A4rkningsbakgrunden},% the inden= tation works
]

\starttext

\startlosning
This environme= nt destroys indentation in the next.
\stoplosning

\startanmarknin= g
This is just a first paragraph.

This paragraph should be indent= ed.

This paragraph is always indented.
\stopanmarkning
\stopte= xt
%%%

(This is a stripped down exam= ple with some settings removed. But it shows the point.)

Am I doing something wrong? The resulting pdf is attached.

/Mikael

PS I think I saw this prob= lem both with mkiv and lmtx.

Bump. (Am I doing something wrong?)

/= Mikael

=C2=A0
--00000000000046f52f059b2bea6e-- --===============8882100066963688805== 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== --===============8882100066963688805==--