From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25757 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Adjusting the indentation of nested numbered lists in docx Date: Mon, 03 Aug 2020 13:34:09 -0700 Message-ID: References: <20200731133752.86795023266c495b6a77dd4b@gmail.com> <20200802193128.c8aa7e41f80663d4980b7d89@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38524"; mail-complaints-to="usenet@ciao.gmane.io" To: Anton Shepelev , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBT7JUH4QKGQELEKMEOI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 03 22:34:26 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k2hAA-0009v4-Ad for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 03 Aug 2020 22:34:26 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id x194sf19006561ooa.20 for ; Mon, 03 Aug 2020 13:34:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1596486865; cv=pass; d=google.com; s=arc-20160816; b=M9J5SZODNFTCgIBpQAdEN3QPoTve68+MeoxTyl79xMxepf4hniJns0O77b6oV5LaAa mkWkRFAYaDV4myQwBG9DzCbeBUuHqRCW9MQJR3JICwxty0bgcDEO5eXQfEZ2LMQiTJW3 Rq1lpz+FAtPEJ+J/km+g6nzcmSRGBOTwKXEOEXNp3f8DPYjhVZGhFjHvVgs5v9tcFFeL mNAglcJKBXsvrBtPlbCjTFXjS+nbUuimFwx9fhm85JVtG1WcFjjKSNNbE173OVCkzhtv VOAiKUCB+ctY5b+fe3sZQR8xSeQwH8JyR342iNvFygMFP0XSgz+QOjL3O8SOJpWCu/ww J8qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=BPRfOIicORyDyi2+KPDyhzPYv0oba4/HlIRz841sexY=; b=tQXWxzHW8O0jyYmMlRWVKh11N8QUrwnlw4XQX1heIPpqDoME6exCHG91rCFzhdQ3v9 zDqphcFLicHgmQ4i/Fisao28nieReDmOJldq7thiqf67vbQRYTQsqL/HR1Dp9gbjTEWE 4ERqwvGMN3tO/OX4ddXSjeQ7Fj46BFox/CS4fmqUQJLIAJIkGrQnxnys5pj43dzGqLfk HotmT92PS/gf7iR8Tr2YSTm3puhScCLxn/1DYg9W6OuS7htpAJmWuc6yox4dd1NS/3a+ ctIsgN6v06/3+fu3kRvf79kpa+GLeudo+vEUkyYXqq3068JNEfe/iliw7wBrvUR5M8A1 cObg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HZR8igZ2; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=BPRfOIicORyDyi2+KPDyhzPYv0oba4/HlIRz841sexY=; b=RHpP4Nlx7AEXq+CVKoDsss/CRTiHQz0fPoY1sEYEiG3+MMhIKoOi0O7ndurym1QObr OBwCbBMGylvQ1NmGl2It8Wxll1XlOLikFa5tYDsHgvlJ00uJGmGsCWEemrfmlMD9kEtq xSc2Qrt8HBtXCSyZ2p/cuvPbqj18QpjzZf86DuK10iRTMDYBvJLpcnLnbjn9BD2JM/Fw 6K6OoXOoJm7uWFnta/mYHTLjeTwNAT9udce+SB9Le8gr2i3SRDY0J+sToggXesLAYXDh ZsU8KX0omxy0Mjsa5GFFt9YKIZqbHBLqjjWroX6n3w6jdzT8on4jXChXP4HchRRECdtQ p/Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=BPRfOIicORyDyi2+KPDyhzPYv0oba4/HlIRz841sexY=; b=J0ayyDYD5sKfRLQrdEjVn7SJT0WNCRbBRyc+JO6W64CFAbwzIp4Rs7fBi1VNum8H8l BTITeLUgaTqnZKaPPl9fRTNIUYsSxkfjNMPVdCcQPkDmZLPtbwqpUNU/+bU7Y2TCLHUC GaYCqA9iERvS7qOjREJUBA5lU/iPB/+9W4FEmdxlmizL0h5BOwL7q4ZOTafSbCK07UkM WripO44kLjLjyBT7zWdpjZx80PvxdQ3RrxPYRiOYLqPcg8NZ3bX7zJKgEDO+oGtxexP6 XTGBig0dmA9cDM5uxR95o0zfx4MOayHcP44c+9DEGlp5StNvH9XQq9jF4+dl9ioy/x6m 5Dfw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5324f/8Iq6OGlYsZUzxTSgpv/stoLmQm2u6LYMA2lgtUyIK3Wge9 iRx0ooUtXCYut7HByLxeWp4= X-Google-Smtp-Source: ABdhPJzsnIvAh4rZDdDjKYREPGJswkU0x6m6Lu14qNbc4a/X5T/CCmDBjSnDlg3lQxV9e0ApPFYgpg== X-Received: by 2002:a4a:3553:: with SMTP id w19mr15771658oog.79.1596486865358; Mon, 03 Aug 2020 13:34:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:3ad5:: with SMTP id h204ls3466899oia.0.gmail; Mon, 03 Aug 2020 13:34:22 -0700 (PDT) X-Received: by 2002:a54:4f85:: with SMTP id g5mr931709oiy.27.1596486862532; Mon, 03 Aug 2020 13:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596486862; cv=none; d=google.com; s=arc-20160816; b=eeVPGvIs0bzjERrHxgyXSdl4RUncHQ6rKEsO3N03/AHNM7XMSMKg0rcp6EbrxlcICV dN9K/g6nXUFnttltgAIJKLcAxSY0cODyFUyOmUK76P2tQnJzkASDwUatUvKuhnGD0W0N LnDeFeJi+TzamViZ7NjCFOb8PoqwSKJx5h/FdgCp7soeiFI0WDn2Vmr/1rh8attvZi1x rZm8ty4DrGSIOEuf5ewE8VkCH22udgmgd9/GVcjzUb5V+odDa2WiEj6+C96zdJZh2irw a65YMKkZvz4Sbecsf9RiwA2xu5H7vHFGbNu2kQmG4CWaurydT0dsYAQI/5H01otpgm6E ZCJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=uFcpb29e4ncDr/u+EDggkfm/afqVFrB4CawQ3R4kqB0=; b=0gyHE+t8NM/Moyv720k/xt/P6kjCToVs1Ii8UbFarcj/MVpoqod7oR2nv18tP+6Bun NvvXOIvSH8UuRXrWk5Q46XY3hMzOBauR6owTt5XwZ0WmGnNWgALt7zu1Bx3Wg6Hrt4fG MD7MWlLyxueNfh6A+iO0zvFcK97KFQihIeo7kUq1b9Otcgwd4goxklDur7eU7Nlbfxv5 gjwdtM3110nBhPFk0/mIp10Brs8l4a14dzxs68mAxHXwmg2PKCKvAyMKrWsxwLrYu0L0 LHROhvZH5THcR1zGO21/P6FXqIZA74LSpaSXSXeZ6zUQIhmKVpo33mra+UcEbqaQ0xbt 2nCg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HZR8igZ2; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com. [2607:f8b0:4864:20::52d]) by gmr-mx.google.com with ESMTPS id m21si1197024oih.4.2020.08.03.13.34.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Aug 2020 13:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52d as permitted sender) client-ip=2607:f8b0:4864:20::52d; Original-Received: by mail-pg1-x52d.google.com with SMTP id h12so9395965pgf.7 for ; Mon, 03 Aug 2020 13:34:22 -0700 (PDT) X-Received: by 2002:a62:1c8b:: with SMTP id c133mr17870964pfc.134.1596486861701; Mon, 03 Aug 2020 13:34:21 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id 75sm9626123pfx.187.2020.08.03.13.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 13:34:20 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id EB6D2A2A1; Mon, 3 Aug 2020 16:34:09 -0400 (EDT) In-Reply-To: <20200802193128.c8aa7e41f80663d4980b7d89-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=HZR8igZ2; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::52d as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:25757 Archived-At: All I can say is that there is a good reason -- which I no longer fully remember -- why I used a fix indentation. I believe it has to do with getting the list continuation paragraphs (and other child block-level content) to line up correctly, which i important. There may be better ways to go, but it's going to take some thought. Anton Shepelev writes: > John MacFarlane to Anton Shepelev: > >> > Which settings in the reference document define the >> > indentation of nested numbered lists in docx? I have tried >> > modifying styles "List" and "List number" -- but to no >> > avail. In the rendered document, the elements of a numbered >> > list have style "Compact" and invariably a hanging indent of >> > 0.85 cm. How can I change that? >> This is hard-coded, I'm afraid. >> >> We need to create the numbering.xml entries for ordered >> lists on the fly, since they depend on start numbers and >> list types. When we generate them we use this fixed indent. > > Hmmm, that is no good -- lack of flexibility in so basic a > functionality. Would you consider, for example, an option to use > the "List number" styles, sacrificing some advanced features such > as continuations, e.g. --use-list-styles. After all, that is the > purpose of list styles in MS Word, and those styles are present in > the default reference document. > >> I suppose it might be possible to have pandoc read something >> from the style and use it instead of this fixed value. >> For example, we could include a style entry for ordered >> lists -- even though it would be overwritten by the autogenerated >> one we could still read a value from it and use it in the code. >> Feel free to submit an issue or PR. > > Sounds possible too, but harder than using the style as is. > I cannot offer a PR, and will file an issue. > > -- > () ascii ribbon campaign - against html e-mail > /\ http://preview.tinyurl.com/qcy6mjc [archived] > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20200802193128.c8aa7e41f80663d4980b7d89%40gmail.com.